:root {
  --bg: #04060d;
  --bg-soft: #0a0f20;
  --card: #0f1830;
  --card-2: #121d3a;
  --text: #eef2ff;
  --muted: #a7b2d0;
  --muted-soft: #7d88a5;
  --accent: #6ea8ff;
  --accent-2: #7b61ff;
  --accent-3: #22d3ee;
  --accent-4: #ff6ec7;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.85),
    0 10px 30px -12px rgba(110, 168, 255, 0.18);
  --radius-lg: 1.4rem;
  --radius-md: 1rem;
  --radius-sm: 0.6rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9em;
  color: #d6e1ff;
  background: rgba(110, 168, 255, 0.08);
  padding: 0.08em 0.4em;
  border-radius: 0.35em;
  border: 1px solid rgba(110, 168, 255, 0.18);
}

.container {
  width: min(1220px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ================ Cursor glow ================ */

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(110, 168, 255, 0.22),
    rgba(123, 97, 255, 0.06) 40%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body:hover .cursor-glow {
  opacity: 1;
}

@media (hover: none) {
  .cursor-glow {
    display: none;
  }
}

/* ================ Scroll progress ================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-4));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 100;
  box-shadow: 0 0 18px rgba(110, 168, 255, 0.55);
}

@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: scroll-progress linear;
    animation-timeline: scroll(root);
  }
  @keyframes scroll-progress {
    from {
      transform: scaleX(0);
    }
    to {
      transform: scaleX(1);
    }
  }
}

/* ================ Animated background ================ */

.bg-mesh {
  position: fixed;
  inset: -20% -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 40% at 15% 20%, rgba(110, 168, 255, 0.38), transparent 60%),
    radial-gradient(35% 35% at 85% 10%, rgba(123, 97, 255, 0.35), transparent 60%),
    radial-gradient(45% 45% at 75% 80%, rgba(34, 211, 238, 0.22), transparent 65%),
    radial-gradient(35% 35% at 10% 90%, rgba(255, 110, 199, 0.18), transparent 60%);
  filter: blur(60px) saturate(120%);
  animation: meshShift 22s ease-in-out infinite alternate;
  opacity: 0.9;
}

@keyframes meshShift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-3%, 2%, 0) scale(1.05);
  }
  100% {
    transform: translate3d(2%, -2%, 0) scale(1.02);
  }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 10%, transparent 70%);
  opacity: 0.55;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ================ Header ================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(4, 6, 13, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(4, 6, 13, 0.85);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  display: inline-grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px -10px rgba(110, 168, 255, 0.7);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 60% {
    transform: translateX(-100%);
  }
  80%, 100% {
    transform: translateX(100%);
  }
}

.brand.small .brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.65rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.93rem;
}

.nav a {
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.nav a:not(.nav-cta):hover {
  color: var(--text);
}

.nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav a.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 0.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px -10px rgba(110, 168, 255, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav a.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px -12px rgba(110, 168, 255, 0.8);
}

/* ================ Hero ================ */

.hero {
  padding: 6rem 0 4rem;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-parallax {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.float-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  will-change: transform;
}

.shape-1 {
  width: 360px;
  height: 360px;
  top: 10%;
  left: -6%;
  background: radial-gradient(circle, var(--accent), transparent 60%);
  animation: drift 14s ease-in-out infinite alternate;
}

.shape-2 {
  width: 260px;
  height: 260px;
  top: 55%;
  right: -4%;
  background: radial-gradient(circle, var(--accent-2), transparent 60%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

.shape-3 {
  width: 180px;
  height: 180px;
  bottom: 8%;
  left: 25%;
  background: radial-gradient(circle, var(--accent-3), transparent 60%);
  animation: drift 20s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(40px, -30px, 0);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(110, 168, 255, 0.08);
  border: 1px solid rgba(110, 168, 255, 0.22);
  backdrop-filter: blur(8px);
}

.pill strong {
  color: var(--text);
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30d17b;
  box-shadow: 0 0 0 4px rgba(48, 209, 123, 0.18);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(48, 209, 123, 0.18);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(48, 209, 123, 0.05);
  }
}

.pill-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--muted);
}

/* Split headline */

.split-headline {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 1.2rem 0 1.4rem;
  font-weight: 700;
}

.split-headline .line {
  display: block;
  overflow: hidden;
}

.split-headline .word {
  display: inline-block;
  transform: translateY(110%);
  animation: wordRise 0.9s var(--ease-out) forwards;
  will-change: transform;
}

.split-headline .line:nth-child(1) .word:nth-child(1) { animation-delay: 0.05s; }
.split-headline .line:nth-child(1) .word:nth-child(2) { animation-delay: 0.12s; }
.split-headline .line:nth-child(1) .word:nth-child(3) { animation-delay: 0.19s; }
.split-headline .line:nth-child(2) .word:nth-child(1) { animation-delay: 0.28s; }
.split-headline .line:nth-child(2) .word:nth-child(2) { animation-delay: 0.35s; }
.split-headline .line:nth-child(2) .word:nth-child(3) { animation-delay: 0.42s; }
.split-headline .line:nth-child(2) .word:nth-child(4) { animation-delay: 0.49s; }
.split-headline .line:nth-child(2) .word:nth-child(5) { animation-delay: 0.56s; }

@keyframes wordRise {
  to {
    transform: translateY(0);
  }
}

.grad-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 45%, var(--accent-4) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 8s ease-in-out infinite;
}

@keyframes gradShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 58ch;
  margin: 0 0 1.8rem;
}

.kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cta-row.center {
  justify-content: center;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 0.85rem;
  padding: 0.82rem 1.15rem;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), background 0.22s ease,
    border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
  will-change: transform;
  overflow: hidden;
  isolation: isolate;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
  z-index: -1;
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 20px 45px -18px rgba(110, 168, 255, 0.6);
}

.btn-primary:hover {
  box-shadow: 0 30px 70px -20px rgba(123, 97, 255, 0.8);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-discord {
  border-color: rgba(88, 101, 242, 0.45);
  background: rgba(88, 101, 242, 0.12);
  color: #cdd3ff;
}

.btn-discord:hover {
  background: rgba(88, 101, 242, 0.22);
  border-color: rgba(88, 101, 242, 0.7);
}

.btn-lg {
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 2rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}

.hero-stats div {
  display: grid;
  gap: 0.2rem;
}

.hero-stat-value {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.hero-stat-label {
  font-size: 0.76rem;
  color: var(--muted-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Hero card with 3D tilt */

.hero-card {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 32, 60, 0.8), rgba(10, 16, 32, 0.85));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  will-change: transform;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(110, 168, 255, 0.22), transparent 55%);
  pointer-events: none;
}

.tilt-shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.08),
    transparent 40%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.hero-card:hover .tilt-shine {
  opacity: 1;
}

.hero-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
}

.hero-card-version {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}

.hero-card-preview {
  position: relative;
  transform: translateZ(20px);
}

.preview-stub,
.visual-screen {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(110, 168, 255, 0.1), rgba(123, 97, 255, 0.1)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 10px,
      rgba(255, 255, 255, 0.04) 10px,
      rgba(255, 255, 255, 0.04) 20px
    );
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.preview-stub img,
.visual-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.preview-stub img:not(.missing),
.visual-screen img:not(.missing) {
  cursor: zoom-in;
}

.preview-stub img.missing,
.visual-screen img.missing {
  display: none;
}

.preview-placeholder {
  position: relative;
  padding: 0.65rem 1rem;
  background: rgba(5, 8, 15, 0.75);
  color: var(--muted);
  font-size: 0.85rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border);
  text-align: center;
  max-width: 80%;
}

.preview-stub img:not(.missing) ~ .preview-placeholder,
.visual-screen img:not(.missing) ~ .preview-placeholder {
  display: none;
}

.meta-note {
  color: var(--muted-soft);
  font-size: 0.82rem;
  margin: 0.9rem 0 0;
  position: relative;
}

/* Scroll hint */

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-top: 3rem;
  opacity: 0.7;
}

.scroll-bar {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  animation: scrollPulse 2s infinite ease-in-out;
}

@keyframes scrollPulse {
  0%, 100% {
    transform: scaleY(0.3);
    opacity: 0.3;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ================ Marquee ================ */

.marquee {
  position: relative;
  overflow: hidden;
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.marquee-track span:nth-child(even) {
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ================ Section heads ================ */

.section {
  padding: 6rem 0;
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head .kicker {
  margin: 0 0 0.5rem;
}

.section-head h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
  font-weight: 700;
}

.section-lede {
  color: var(--muted);
  margin: 0 auto;
  max-width: 62ch;
}

/* ================ Showcase (pinned features) ================ */

.showcase {
  padding: 6rem 0 4rem;
  position: relative;
}

.showcase-stage {
  position: relative;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.showcase-visual {
  position: sticky;
  top: 15vh;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  order: 2;
  transform-style: preserve-3d;
}

.visual-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(110, 168, 255, 0.2), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(123, 97, 255, 0.2), transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.visual-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
  aspect-ratio: unset;
  border-radius: 0;
  border: none;
  background:
    linear-gradient(135deg, rgba(110, 168, 255, 0.1), rgba(123, 97, 255, 0.1)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 10px,
      rgba(255, 255, 255, 0.04) 10px,
      rgba(255, 255, 255, 0.04) 20px
    );
}

.visual-screen.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.visual-rail {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 0.5rem 0;
  order: 1;
  align-items: flex-start;
}

.visual-tick {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted-soft);
  padding: 0.4rem 0.6rem;
  border-radius: 0.4rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease,
    transform 0.25s var(--ease-out);
}

.visual-tick.is-active {
  color: var(--text);
  border-color: rgba(110, 168, 255, 0.5);
  background: linear-gradient(135deg, rgba(110, 168, 255, 0.2), rgba(123, 97, 255, 0.2));
  transform: translateX(4px);
  box-shadow: 0 10px 25px -15px rgba(110, 168, 255, 0.6);
}

.showcase-scroll {
  display: grid;
  gap: 40vh;
  padding: 10vh 0 60vh;
}

.showcase-step {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
  opacity: 0.35;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.showcase-step.is-active {
  opacity: 1;
  transform: translateY(0);
}

.showcase-step h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0.4rem 0 1rem;
  font-weight: 700;
}

.showcase-step p {
  color: var(--muted);
  margin: 0 0 1.2rem;
  max-width: 54ch;
}

.feature-index {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  color: var(--accent);
  background: rgba(110, 168, 255, 0.1);
  border: 1px solid rgba(110, 168, 255, 0.3);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.tick-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.tick-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 22%, transparent 26%),
    linear-gradient(135deg, rgba(110, 168, 255, 0.3), rgba(123, 97, 255, 0.3));
  box-shadow: 0 0 14px rgba(110, 168, 255, 0.4);
}

/* ================ Modules ================ */

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.module-card {
  position: relative;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease,
    box-shadow 0.25s ease;
  overflow: hidden;
  isolation: isolate;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 50%),
    rgba(110, 168, 255, 0.12),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.module-card.spotlight:hover::before {
  opacity: 1;
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 168, 255, 0.4);
  box-shadow: 0 30px 50px -26px rgba(110, 168, 255, 0.45);
}

.module-card > * {
  position: relative;
  z-index: 1;
}

.module-icon {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(110, 168, 255, 0.1);
  border: 1px solid rgba(110, 168, 255, 0.3);
  border-radius: 0.65rem;
  margin-bottom: 0.9rem;
}

.module-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.01em;
}

.module-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.dev-card {
  grid-column: span 2;
  background:
    radial-gradient(circle at top right, rgba(123, 97, 255, 0.18), transparent 55%),
    linear-gradient(180deg, var(--card-2), var(--card));
  border-color: rgba(123, 97, 255, 0.35);
}

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: #d8d0ff;
  background: rgba(123, 97, 255, 0.15);
  border: 1px solid rgba(123, 97, 255, 0.45);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ================ FAQ ================ */

.faq {
  display: grid;
  gap: 0.9rem;
  max-width: 840px;
  margin: 0 auto;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.faq details[open] {
  border-color: rgba(110, 168, 255, 0.4);
  background: linear-gradient(135deg, rgba(110, 168, 255, 0.06), rgba(123, 97, 255, 0.06));
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 2rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 400;
  font-size: 1.4rem;
  transition: transform 0.25s var(--ease-out);
}

.faq details[open] summary::after {
  content: "−";
  color: var(--accent);
}

.faq p {
  color: var(--muted);
  margin: 0.75rem 0 0;
}

/* ================ CTA ================ */

.section-cta {
  padding-top: 2rem;
  padding-bottom: 6rem;
}

.cta-box {
  position: relative;
  text-align: center;
  background: linear-gradient(135deg, rgba(110, 168, 255, 0.1), rgba(123, 97, 255, 0.18));
  border: 1px solid rgba(140, 155, 230, 0.35);
  border-radius: var(--radius-lg);
  padding: 3.5rem 1.5rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.cta-gradient {
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(110, 168, 255, 0.18),
    rgba(123, 97, 255, 0.14),
    rgba(34, 211, 238, 0.1),
    rgba(255, 110, 199, 0.14),
    rgba(110, 168, 255, 0.18)
  );
  animation: spinSlow 30s linear infinite;
  filter: blur(40px);
  z-index: 0;
  opacity: 0.7;
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  margin: 0 0 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cta-box p {
  color: var(--muted);
  margin: 0 auto 2rem;
  max-width: 56ch;
}

/* ================ Footer ================ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.8rem 0;
  margin-top: 2rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted-soft);
  font-size: 0.88rem;
  gap: 1rem;
}

.footer-wrap a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-wrap a:hover {
  color: var(--text);
}

/* ================ Reveal animations ================ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Scroll-driven enhancements where supported */

@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 50%;
  }
  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(32px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .split-headline .word {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
  .marquee-track,
  .shape-1,
  .shape-2,
  .shape-3,
  .bg-mesh,
  .cta-gradient {
    animation: none !important;
  }
}

/* ================ Responsive ================ */

@media (max-width: 1024px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-visual {
    position: relative;
    top: 0;
  }

  .visual-card {
    order: 1;
  }

  .visual-rail {
    order: 2;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .showcase-scroll {
    gap: 4rem;
    padding: 3rem 0;
  }

  .showcase-step {
    min-height: auto;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .hero {
    padding: 4rem 0 2rem;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dev-card {
    grid-column: span 2;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    row-gap: 1rem;
  }
}

@media (max-width: 600px) {
  .nav {
    gap: 0.8rem;
    font-size: 0.85rem;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .dev-card {
    grid-column: auto;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }

  .marquee-track {
    font-size: 0.9rem;
  }
}

/* ===================== Live preview ===================== */

.preview-section {
  position: relative;
  padding: 5rem 0 2rem;
}

.preview-wrap {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.preview-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.01)
    ),
    rgba(10, 15, 32, 0.65);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}

.preview-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.preview-field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.preview-field input,
.preview-field select {
  appearance: none;
  font: inherit;
  color: var(--text);
  background: rgba(4, 8, 20, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out),
    background 0.2s var(--ease-out);
  width: 100%;
  min-height: 44px;
}

.preview-field input::placeholder {
  color: var(--muted-soft);
}

.preview-field input:focus,
.preview-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(110, 168, 255, 0.2);
  background: rgba(10, 20, 45, 0.9);
}

.preview-field-region {
  min-width: 7.5rem;
}

.preview-submit {
  align-self: end;
  min-height: 44px;
  padding: 0.75rem 1.2rem;
}

.preview-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.preview-panel {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0)
    ),
    rgba(7, 11, 26, 0.85);
  padding: 1.5rem;
  min-height: 180px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.preview-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 0% 0%,
      rgba(110, 168, 255, 0.08),
      transparent 60%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(123, 97, 255, 0.08),
      transparent 60%
    );
  pointer-events: none;
}

.preview-state {
  position: relative;
  z-index: 1;
}

/* Idle skeleton */
.preview-skeleton {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.skel-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skel-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--muted-soft);
  text-transform: uppercase;
  font-weight: 700;
}

.skel-bar {
  display: block;
  height: 1.4rem;
  width: 70%;
  border-radius: 0.5rem;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: skel-shimmer 1.8s linear infinite;
}

@keyframes skel-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skel-bar {
    animation: none;
  }
}

.preview-hint {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.preview-disclaimer {
  margin: 0;
  text-align: center;
  color: var(--muted-soft);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* Loading */
.preview-loading {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--muted);
}

.preview-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  animation: preview-spin 0.9s linear infinite;
}

@keyframes preview-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error / empty */
.preview-error,
.preview-empty {
  color: var(--muted);
}

.preview-error h3,
.preview-empty h3 {
  margin: 0 0 0.4rem;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.1rem;
  color: var(--text);
}

.preview-error p,
.preview-empty p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Result */
.preview-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.preview-identity h3 {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.preview-identity p {
  margin: 0.25rem 0 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted-soft);
}

.preview-region {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--text);
}

.preview-auto {
  color: var(--accent-3);
  font-size: 0.78rem;
}

.preview-acctid {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--muted-soft);
}

.preview-status {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--border-strong);
}

.preview-status.live {
  color: #7ef3a3;
  border-color: rgba(126, 243, 163, 0.35);
  background: rgba(126, 243, 163, 0.08);
}

.preview-status.hidden {
  color: #ffb86b;
  border-color: rgba(255, 184, 107, 0.35);
  background: rgba(255, 184, 107, 0.08);
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.preview-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--muted-soft);
  text-transform: uppercase;
  font-weight: 700;
}

.stat-value {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.stat-tier {
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

/* PR / WR colour scale (wows-numbers style) */
.pr-bad {
  color: #fe0e00;
}
.pr-below {
  color: #fe7903;
}
.pr-average {
  color: #ffc71f;
}
.pr-good {
  color: #44b300;
}
.pr-vgood {
  color: #318000;
}
.pr-great {
  color: #02c9b3;
}
.pr-uni {
  color: #d042f3;
}
.pr-super {
  color: #a00dc5;
}
.pr-na {
  color: var(--text);
}

.preview-datestamp {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted-soft);
}

.preview-datestamp strong {
  color: var(--text);
  font-weight: 600;
}

.preview-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease-out);
}

.preview-link:hover {
  border-bottom-color: var(--accent);
}

/* ================ Image lightbox ================ */

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.image-lightbox.is-open {
  display: block;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 16, 0.88);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.image-lightbox__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(98vw, 1800px);
  height: min(96vh, 1200px);
  margin-inline: auto;
  margin-top: 2vh;
  display: grid;
  place-items: center;
}

.image-lightbox__img {
  width: min(97vw, 1700px);
  height: auto;
  max-height: 95vh;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  background: #070b14;
  object-fit: contain;
}

.image-lightbox__close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* State visibility */
.preview-panel[data-state="idle"] .preview-state-idle {
  display: block;
}
.preview-panel:not([data-state="idle"]) .preview-state-idle {
  display: none;
}

/* Responsive */
@media (max-width: 720px) {
  .preview-section {
    padding: 3rem 0 1rem;
  }

  .preview-form {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .preview-field-name {
    grid-column: 1 / -1;
  }

  .preview-submit {
    grid-column: 1 / -1;
    width: 100%;
  }

  .preview-stats,
  .preview-skeleton {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-result-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
