:root {
  --bg: #080b12;
  --bg-soft: #0d1220;
  --card: rgba(255, 255, 255, 0.075);
  --card-strong: rgba(255, 255, 255, 0.11);
  --text: #f7f9ff;
  --muted: #aab4c8;
  --line: rgba(255, 255, 255, 0.14);
  --brand: #7c5cff;
  --brand-2: #00d4ff;
  --brand-3: #5dffb4;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img, svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p, h1, h2, h3 {
  margin: 0;
}

button, input, textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section-pad {
  padding: 112px 0;
}

.section-pad-sm {
  padding: 82px 0;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    radial-gradient(circle at 50% 0%, rgba(124, 92, 255, 0.20), transparent 32%),
    linear-gradient(135deg, #080b12 0%, #0d1020 44%, #080b12 100%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 82%);
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.42;
}

.bg-orb-one {
  width: 360px;
  height: 360px;
  right: -120px;
  top: 170px;
  background: var(--brand-2);
}

.bg-orb-two {
  width: 300px;
  height: 300px;
  left: -110px;
  bottom: 100px;
  background: var(--brand);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(8, 11, 18, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 16px 44px rgba(124, 92, 255, 0.28);
}

.logo-text {
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.2s ease;
}

.hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dfe6ff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.75);
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
  font-weight: 900;
}

h2 {
  font-size: clamp(2rem, 4.3vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
  font-weight: 900;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.hero-copy {
  max-width: 660px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: 0 18px 60px rgba(124, 92, 255, 0.32);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
  color: var(--text);
}

.btn-large {
  min-width: 190px;
  min-height: 58px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.trust-row span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d5dcf1;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 540px;
  perspective: 1200px;
  display: grid;
  place-items: center;
}

.scene-card {
  width: min(100%, 560px);
  min-height: 410px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.055));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.25);
  overflow: hidden;
  transform: rotateX(8deg) rotateY(-12deg) rotateZ(2deg);
  transform-style: preserve-3d;
  animation: calmFloat 7s ease-in-out infinite;
}

@keyframes calmFloat {
  0%, 100% { transform: rotateX(8deg) rotateY(-12deg) rotateZ(2deg) translateY(0); }
  50% { transform: rotateX(6deg) rotateY(-9deg) rotateZ(1deg) translateY(-12px); }
}

.browser-top {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
}

.browser-top span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.36);
}

.browser-top p {
  flex: 1;
  margin-left: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0,0,0,0.19);
  font-size: 0.8rem;
}

.browser-body {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  padding: 22px;
}

.preview-sidebar {
  min-height: 300px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(0,0,0,0.16);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-sidebar div,
.preview-lines span,
.preview-cards article,
.mini-grid span,
.mini-row,
.mini-hero,
.mini-browser-bar {
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
}

.preview-sidebar div:first-child {
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.preview-sidebar div:not(:first-child) {
  height: 16px;
}

.preview-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.preview-hero {
  height: 142px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 24% 32%, rgba(93,255,180,0.35), transparent 20%),
    linear-gradient(135deg, rgba(124,92,255,0.74), rgba(0,212,255,0.36));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.preview-lines {
  display: grid;
  gap: 9px;
}

.preview-lines span {
  height: 13px;
}

.preview-lines span:nth-child(1) { width: 82%; }
.preview-lines span:nth-child(2) { width: 60%; }
.preview-lines span:nth-child(3) { width: 72%; }

.preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.preview-cards article {
  height: 78px;
  border-radius: 18px;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.09);
}

.floating-panel {
  position: absolute;
  z-index: 2;
  min-width: 140px;
  padding: 17px 18px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  background: rgba(11, 17, 31, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
}

.floating-panel strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.floating-panel span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
}

.panel-analytics {
  left: -10px;
  bottom: 80px;
}

.panel-speed {
  right: 0;
  top: 74px;
}

.split-grid,
.showcase-grid,
.packages-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 66px;
  align-items: center;
}

.section-heading p:not(.eyebrow) {
  max-width: 650px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading.center {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 52px;
}

.section-heading.center .eyebrow {
  justify-content: center;
}

.section-heading.center p:not(.eyebrow) {
  margin-left: auto;
  margin-right: auto;
}

.text-block {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
}

.text-block p {
  color: #d4dbee;
  font-size: 1.06rem;
}

.text-block p + p {
  margin-top: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 290px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
  box-shadow: 0 18px 70px rgba(0,0,0,0.22);
  transform-style: preserve-3d;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.service-card:hover {
  transform: translateY(-7px) rotateX(2deg);
  border-color: rgba(0, 212, 255, 0.38);
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 26px;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 45px rgba(124, 92, 255, 0.26);
}

.service-card p {
  margin-top: 13px;
  color: var(--muted);
}

.showcase {
  overflow: hidden;
}

.stacked-sites {
  min-height: 540px;
  position: relative;
  perspective: 1300px;
}

.site-preview {
  position: absolute;
  width: min(88%, 500px);
  height: 330px;
  right: 0;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.055));
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.site-preview-one {
  top: 40px;
  transform: rotateY(-18deg) rotateX(8deg) rotateZ(-2deg);
  z-index: 3;
}

.site-preview-two {
  top: 120px;
  right: 44px;
  opacity: 0.78;
  transform: rotateY(-18deg) rotateX(8deg) rotateZ(-2deg) translateZ(-80px);
  z-index: 2;
}

.site-preview-three {
  top: 200px;
  right: 88px;
  opacity: 0.52;
  transform: rotateY(-18deg) rotateX(8deg) rotateZ(-2deg) translateZ(-160px);
  z-index: 1;
}

.mini-browser-bar {
  width: 100%;
  height: 28px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.12);
}

.mini-hero {
  height: 116px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(124,92,255,0.82), rgba(0,212,255,0.45));
}

.mini-row {
  width: 72%;
  height: 18px;
  margin-top: 20px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.mini-grid span {
  height: 62px;
  border-radius: 17px;
  background: rgba(255,255,255,0.12);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}

.timeline-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
}

.timeline-item span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 22px;
  font-weight: 900;
  background: rgba(255,255,255,0.11);
  color: #e8edff;
}

.timeline-item p {
  margin-top: 10px;
  color: var(--muted);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-list span {
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.07);
  color: #dce4f7;
  font-weight: 800;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 5vw, 58px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at 85% 15%, rgba(0,212,255,0.20), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.13), rgba(255,255,255,0.055));
  box-shadow: var(--shadow);
}

.cta-card p:not(.eyebrow) {
  max-width: 710px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.footer {
  padding: 34px 0;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer a {
  font-weight: 800;
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .hero-grid,
  .split-grid,
  .showcase-grid,
  .packages-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 500px;
  }

  .card-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .stacked-sites {
    min-height: 490px;
  }

  .site-preview {
    left: 50%;
    right: auto;
    transform-origin: center;
  }

  .site-preview-one {
    transform: translateX(-50%) rotateY(-10deg) rotateX(7deg) rotateZ(-1deg);
  }

  .site-preview-two {
    right: auto;
    transform: translateX(-44%) rotateY(-10deg) rotateX(7deg) rotateZ(-1deg) translateZ(-80px);
  }

  .site-preview-three {
    right: auto;
    transform: translateX(-38%) rotateY(-10deg) rotateX(7deg) rotateZ(-1deg) translateZ(-160px);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section-pad {
    padding: 82px 0;
  }

  .section-pad-sm {
    padding: 62px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 78px 14px auto 14px;
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(11, 16, 29, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 13px 14px;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.6rem, 15vw, 4.8rem);
  }

  .hero-visual {
    min-height: 390px;
  }

  .scene-card {
    min-height: 310px;
    border-radius: 24px;
    transform: rotateX(5deg) rotateY(-6deg) rotateZ(1deg);
    animation: none;
  }

  .browser-body {
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .preview-sidebar {
    min-height: 230px;
    padding: 10px;
  }

  .preview-hero {
    height: 104px;
  }

  .preview-cards {
    grid-template-columns: 1fr;
  }

  .preview-cards article {
    height: 42px;
  }

  .floating-panel {
    display: none;
  }

  .card-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .stacked-sites {
    min-height: 430px;
  }

  .site-preview {
    width: 92%;
    height: 270px;
  }

  .site-preview-two {
    top: 105px;
  }

  .site-preview-three {
    top: 170px;
  }

  .mini-hero {
    height: 90px;
  }

  .mini-grid span {
    height: 46px;
  }

  .cta-card,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
