/* ==========================================================================
   Ac1tech global styles
   ========================================================================== */

:root {
  /* cool blue-navy base, tinted toward the logo's blue */
  --bg: #060d19;
  --bg-2: #0a1324;
  --surface: #0f1a2e;
  --surface-2: #15223a;
  --border: #1e2c45;
  --border-strong: #2c3e5e;
  --text: #e8ecf4;
  --text-muted: #9aa4b8;
  --text-dim: #8592a8;
  /* brand palette, taken from the Ac1tech logo */
  --accent: #22b8f5;
  --accent-2: #0d6fd6;
  --accent-glow: #35d6ff;
  --accent-soft: rgba(34, 184, 245, 0.12);
  --success: #34d399;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --container: 1200px;
  --header-h: 80px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

@media (min-width: 1600px) {
  :root {
    --header-h: 96px;
    --container: 1320px;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 68px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--text-muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: #000;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 1000;
}

.skip-link:focus {
  left: 8px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0d6fd6);
  color: #041018;
  box-shadow: 0 8px 30px -8px rgba(34, 184, 245, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px -8px rgba(34, 184, 245, 0.7);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 15, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  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(7, 9, 15, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.logo svg {
  width: 34px;
  height: 34px;
}

.logo span b {
  color: var(--accent);
  font-weight: 700;
}

.logo img {
  /* grows on wide screens, capped so it never crowds the nav */
  height: clamp(46px, 3.2vw, 68px);
  width: auto;
}

.site-footer .logo img {
  height: 46px;
}

@media (max-width: 600px) {
  .logo img {
    height: 36px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta .btn {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: rgba(7, 9, 15, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 1.05rem;
  }

  .nav-links .mobile-only {
    display: block;
    margin-top: 8px;
  }
}

.nav-links .mobile-only {
  display: none;
}

/* ---------- Sections ---------- */

section {
  position: relative;
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section-head.center .eyebrow::after {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

@media (max-width: 700px) {
  section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 80px 0 88px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 80% 20%, rgba(13, 111, 214, 0.22), transparent 70%),
    radial-gradient(700px 500px at 10% 80%, rgba(34, 184, 245, 0.14), transparent 70%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero-badge strong {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  aspect-ratio: 37 / 50;
  max-width: 420px;
  margin-left: auto;
  width: 100%;
}

.hero-visual .pc-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 30px 60px rgba(34, 184, 245, 0.18));
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(16, 21, 31, 0.88);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  animation: float 6s ease-in-out infinite;
}

.float-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.float-card .icon svg {
  width: 20px;
  height: 20px;
}

.float-card b {
  display: block;
  font-size: 0.95rem;
}

.float-card small {
  color: var(--text-muted);
}

.float-card.one {
  top: 4%;
  left: -14%;
}

.float-card.two {
  bottom: 6%;
  right: -12%;
  animation-delay: -3s;
}

.float-card.two .icon {
  background: rgba(13, 111, 214, 0.15);
  color: var(--accent-2);
}

.fan-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 2.4s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 960px) {
  /* Show the machine first on narrow screens, then the pitch */
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .hero-visual {
    order: -1;
    margin: 0 auto;
    max-width: 290px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero p.lead {
    font-size: 1.08rem;
  }

  .float-card.one {
    top: 2%;
    left: -6%;
  }

  .float-card.two {
    bottom: 2%;
    right: -6%;
  }
}

/* Page hero (inner pages) */

.page-hero {
  padding: 90px 0 70px;
  overflow: hidden;
}

.page-hero .container {
  position: relative;
}

.page-hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
}

/* ---------- Pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pillar {
  position: relative;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.pillar::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 184, 245, 0.18), transparent 70%);
  transition: opacity 0.3s ease;
}

.pillar.violet::before {
  background: radial-gradient(circle, rgba(13, 111, 214, 0.22), transparent 70%);
}

.pillar:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.pillar h3 {
  font-size: 1.6rem;
}

.pillar p {
  color: var(--text-muted);
}

.pillar ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: grid;
  gap: 10px;
}

.pillar li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
}

.pillar li svg {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--accent);
  flex-shrink: 0;
}

.pillar.violet li svg {
  color: var(--accent-2);
}

@media (max-width: 860px) {
  .pillars {
    grid-template-columns: 1fr;
  }

  .pillar {
    padding: 28px;
  }
}

/* ---------- Icon badge ---------- */

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(34, 184, 245, 0.25);
  margin-bottom: 20px;
}

.icon-badge svg {
  width: 26px;
  height: 26px;
}

.icon-badge.violet {
  background: rgba(13, 111, 214, 0.12);
  color: #5bb7f7;
  border-color: rgba(13, 111, 214, 0.3);
}

.icon-badge.green {
  background: rgba(52, 211, 153, 0.1);
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.28);
}

.icon-badge.amber {
  background: rgba(53, 214, 255, 0.1);
  color: #35d6ff;
  border-color: rgba(53, 214, 255, 0.28);
}

/* ---------- Cards grid ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}

.card .card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.card:hover .card-link svg {
  transform: translateX(3px);
}

/* ---------- Build tier cards ---------- */

.builds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.build-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.build-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.build-card.featured {
  border-color: rgba(34, 184, 245, 0.45);
  box-shadow: 0 0 0 1px rgba(34, 184, 245, 0.15), 0 30px 60px -30px rgba(34, 184, 245, 0.35);
}

.build-media {
  position: relative;
  height: 180px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(220px 140px at 50% 60%, var(--glow, rgba(34, 184, 245, 0.25)), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border-bottom: 1px solid var(--border);
}

.build-media svg {
  height: 140px;
  width: auto;
}

.build-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(7, 9, 15, 0.7);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

.build-card.featured .build-tag {
  background: var(--accent);
  color: #041018;
  border-color: var(--accent);
}

.build-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.build-body h3 {
  margin-bottom: 4px;
}

.build-target {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

.spec-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.spec-list span {
  color: var(--text-dim);
}

.spec-list b {
  font-weight: 500;
  text-align: right;
}

.build-body .spec-list {
  flex: 1;
  align-content: start;
}

.build-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.build-price small {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.build-price strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.step p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Feature split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 16px;
}

.check-list li {
  display: flex;
  gap: 14px;
}

.check-list li > svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-top: 2px;
}

.check-list b {
  display: block;
  margin-bottom: 2px;
}

.check-list span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Stat strip ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.stat {
  padding: 28px;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (max-width: 800px) {
  .stat-strip {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
}

/* ---------- Terminal / panel visual ---------- */

.panel {
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.panel-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.panel-bar i:nth-child(2) {
  background: #febc2e;
}

.panel-bar i:nth-child(3) {
  background: #28c840;
  margin-right: 8px;
}

.panel-body {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.progress-row {
  display: grid;
  gap: 8px;
}

.progress-row header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.progress-row header span {
  color: var(--text-muted);
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.flow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.flow-node {
  flex: 1;
  min-width: 110px;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  text-align: center;
}

.flow-node b {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.flow-node small {
  color: var(--text-dim);
}

.flow-arrow {
  color: var(--text-dim);
}

.flow-arrow svg {
  width: 18px;
  height: 18px;
}

/* ---------- Service detail blocks ---------- */

.service-block {
  scroll-margin-top: var(--header-h);
}

.subnav ~ .service-block {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 760px) {
  .service-list {
    grid-template-columns: 1fr;
  }
}

.service-item {
  display: flex;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.25s ease;
}

.service-item:hover {
  border-color: var(--border-strong);
}

.service-item .icon-badge {
  margin-bottom: 0;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
}

.service-item .icon-badge svg {
  width: 22px;
  height: 22px;
}

.service-item h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.service-item p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

.subnav {
  position: relative;
  z-index: 2;
  background: rgba(7, 9, 15, 0.9);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.subnav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav ul::-webkit-scrollbar {
  display: none;
}

.subnav a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.subnav a:hover,
.subnav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- Pricing plans ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.plan.featured {
  border-color: rgba(13, 111, 214, 0.55);
  background: linear-gradient(180deg, rgba(13, 111, 214, 0.08), var(--surface) 40%);
}

.plan-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.plan-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 24px;
}

.plan-price small {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 500;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
}

.plan li {
  display: flex;
  gap: 10px;
}

.plan li svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 3px;
}

.plan .btn {
  margin-top: auto;
}

/* ---------- Configurator ---------- */

.configurator {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1000px) {
  .configurator {
    grid-template-columns: 1fr;
  }
}

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.preset-btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

.preset-btn.active {
  color: #041018;
  background: var(--accent);
  border-color: var(--accent);
}

.cfg-group {
  margin-bottom: 28px;
  border: 0;
  padding: 0;
  min-width: 0;
}

.cfg-group legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 12px;
  padding: 0;
}

.cfg-group legend small {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.option {
  position: relative;
  display: block;
  cursor: pointer;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option .opt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.option:hover .opt {
  border-color: var(--border-strong);
}

.option input:checked + .opt {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.option input:focus-visible + .opt {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.opt-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.opt-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.opt-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.summary {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: 26px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.summary h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 10px;
  font-size: 0.88rem;
}

.summary-list li {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 10px;
  align-items: baseline;
}

.summary-list span {
  color: var(--text-dim);
}

.summary-list b small {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--success);
}

.summary-list em {
  font-style: normal;
  color: var(--text-muted);
  white-space: nowrap;
}

.perf {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  margin: 8px 0 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.perf-row {
  display: grid;
  grid-template-columns: 52px 1fr 76px;
  gap: 10px;
  align-items: center;
  font-size: 0.82rem;
}

.perf-row span:first-child {
  color: var(--text-muted);
}

.perf-row span:last-child {
  text-align: right;
  color: var(--text-muted);
}

.perf-row .bar i {
  transition: width 0.4s ease;
}

.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.total span {
  color: var(--text-muted);
}

.total strong {
  font-family: var(--font-display);
  font-size: 2rem;
}

.total-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.summary .btn + .btn {
  margin-top: 10px;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: var(--border-strong);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 24px 20px;
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa4b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
}

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--success);
  font-size: 0.92rem;
}

.form-status.show {
  display: block;
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #fca5a5;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: rgba(248, 113, 113, 0.55);
}

.form-status.is-error {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

/* ---------- Contact page rail ---------- */

.contact-rail {
  display: grid;
  gap: 16px;
  align-content: start;
}

.quick-contact {
  display: grid;
  gap: 10px;
}

.quick-contact .btn {
  width: 100%;
}

/* WhatsApp is how most South African customers actually make first contact */
.btn-whatsapp {
  background: #25d366;
  color: #05230f;
  font-weight: 600;
  box-shadow: 0 8px 30px -10px rgba(37, 211, 102, 0.6);
}

.btn-whatsapp:hover {
  background: #2ee472;
  transform: translateY(-2px);
}

.nudge {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  background: rgba(34, 184, 245, 0.04);
}

.nudge b {
  display: block;
  margin-bottom: 6px;
}

.nudge p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.nudge a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}

.nudge a svg {
  width: 16px;
  height: 16px;
}

.contact-card small {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.contact-card .icon-badge {
  margin: 0;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.contact-card .icon-badge svg {
  width: 20px;
  height: 20px;
}

.contact-card b {
  display: block;
}

.contact-card span,
.contact-card a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-card a:hover {
  color: var(--accent);
}

.form-card {
  padding: 36px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
}

@media (max-width: 600px) {
  .form-card {
    padding: 24px;
  }
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  padding: 64px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(500px 300px at 90% 0%, rgba(13, 111, 214, 0.3), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(34, 184, 245, 0.22), transparent 70%),
    var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-mascot {
  height: 150px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.55));
}

@media (max-width: 860px) {
  .cta-mascot {
    height: 110px;
  }
}

.cta-band h2 {
  margin-bottom: 8px;
}

.cta-band p {
  color: var(--text-muted);
  margin: 0;
  max-width: 560px;
}

.cta-band .hero-actions {
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 28px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 72px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-grid p {
  color: var(--text-muted);
  max-width: 320px;
  margin-top: 16px;
  font-size: 0.95rem;
}

/* Headings, so the document outline stays in order, styled as small labels */
.footer-grid h2 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin: 0 0 16px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-grid a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.88rem;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Polish layer: scroll progress, hover spotlight, assembly scrollytelling
   ========================================================================== */

/* ---------- Scrollbar ---------- */

@supports (scrollbar-color: red blue) {
  html {
    scrollbar-color: var(--border-strong) var(--bg);
    scrollbar-width: thin;
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: #3b4766;
}

::selection {
  background: rgba(34, 184, 245, 0.28);
}

/* ---------- Scroll progress ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 200;
  pointer-events: none;
}

/* ---------- Hover spotlight on panels ---------- */

.card,
.build-card,
.plan,
.service-item,
.step,
.stat {
  position: relative;
  isolation: isolate;
}

.card::after,
.build-card::after,
.plan::after,
.service-item::after,
.step::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 184, 245, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.card > *,
.build-card > *,
.plan > *,
.service-item > *,
.step > * {
  position: relative;
  z-index: 1;
}

.card:hover::after,
.build-card:hover::after,
.plan:hover::after,
.service-item:hover::after,
.step:hover::after {
  opacity: 1;
}

.plan.featured::after {
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(13, 111, 214, 0.16), transparent 60%);
}

/* ---------- Button shine ---------- */

.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-150%) skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.btn:hover::after {
  animation: shine 0.75s ease;
}

@keyframes shine {
  from {
    transform: translateX(-150%) skewX(-18deg);
    opacity: 1;
  }
  to {
    transform: translateX(300%) skewX(-18deg);
    opacity: 1;
  }
}

/* ---------- Animated hero aura ---------- */

.hero-bg {
  animation: aura 14s ease-in-out infinite alternate;
}

@keyframes aura {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1.02);
  }
  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.06);
  }
}

/* ---------- Counter ---------- */

.stat strong[data-count] {
  font-variant-numeric: tabular-nums;
}

/* ---------- Section divider glow ---------- */

.section-alt::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 70%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 184, 245, 0.5), transparent);
}

/* ==========================================================================
   Assembly scrollytelling
   ========================================================================== */

.assembly {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.assembly-steps {
  display: grid;
  gap: 0;
}

.assembly-step {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 0;
  opacity: 0.32;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.assembly-step.active {
  opacity: 1;
  transform: none;
}

.assembly-step .step-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.assembly-step .step-index::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: width 0.45s ease;
}

.assembly-step.active .step-index::before {
  width: 44px;
}

.assembly-step h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.assembly-step p {
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 0;
}

.assembly-step .tags {
  margin-top: 18px;
}

.assembly-stage {
  position: sticky;
  top: clamp(96px, 15vh, 190px);
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(500px 340px at 50% 30%, rgba(34, 184, 245, 0.08), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.assembly-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  pointer-events: none;
}

.assembly-stage svg {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 60vh;
}

.assembly-stage .part {
  opacity: 0;
  transform: translateY(-18px) scale(0.97);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.assembly-stage .part.on {
  opacity: 1;
  transform: none;
}

.assembly-stage .part.glow-part {
  transition-delay: 0.1s;
}

.stage-caption {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stage-caption b {
  color: var(--text);
  font-weight: 600;
}

.stage-dots {
  display: flex;
  gap: 6px;
}

.stage-dots i {
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: var(--border-strong);
  transition: background 0.3s ease;
}

.stage-dots i.on {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

@media (max-width: 900px) {
  .assembly {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  /* Full-bleed sticky stage: sits flush under the header so step text
     never shows through the gaps around a floating card. */
  .assembly-stage {
    order: -1;
    position: sticky;
    top: calc(var(--header-h) - 1px);
    z-index: 2;
    margin: 0 -24px;
    padding: 14px 24px 12px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    background:
      radial-gradient(400px 240px at 50% 35%, rgba(34, 184, 245, 0.1), transparent 70%),
      var(--bg-2);
    box-shadow: 0 18px 30px -22px rgba(0, 0, 0, 0.9);
    gap: 10px;
  }

  .assembly-stage svg {
    max-height: 32vh;
  }

  .stage-caption {
    font-size: 0.78rem;
  }

  .assembly-step {
    min-height: 46vh;
    padding: 20px 0;
  }

  .assembly-step:first-child {
    padding-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .assembly-step {
    opacity: 1;
    transform: none;
  }

  .assembly-stage .part {
    opacity: 1;
    transform: none;
  }

  .hero-bg {
    animation: none;
  }
}

/* ---------- Configurator notes & tuning upsell ---------- */

.cfg-note {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 620px;
  margin: -4px 0 14px;
}

.tune-list {
  list-style: none;
  padding: 16px 18px;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.92rem;
}

.tune-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-muted);
}

.tune-list svg {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  flex-shrink: 0;
  color: var(--success);
}

.tune-list b {
  color: var(--text);
  font-weight: 600;
}

.summary-list li.included b {
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Clearer option selection ---------- */

.option .opt {
  padding-right: 42px;
}

/* tick in the corner of whichever option is active */
.option .opt::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.option input:checked + .opt::after {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23041018' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.option input:checked + .opt {
  border-color: var(--accent);
  background: rgba(34, 184, 245, 0.16);
  box-shadow: inset 0 0 0 1px var(--accent), 0 6px 22px -12px rgba(34, 184, 245, 0.8);
}

.option input:checked + .opt .opt-name {
  color: #fff;
}

.opt-badge {
  position: absolute;
  top: -9px;
  left: 14px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121f;
}

/* ---------- Tuning comparison ---------- */

.tune-intro {
  margin: 16px 0 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.tune-list li.no {
  color: var(--text-dim);
}

.tune-list li.no svg {
  color: var(--text-dim);
}

.tune-list li.no span {
  text-decoration: line-through;
  text-decoration-color: rgba(154, 164, 184, 0.35);
}

/* ---------- Consent checkbox ---------- */

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.checkbox:hover {
  border-color: var(--border-strong);
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ==========================================================================
   Page atmosphere: sits behind everything, never competes with content
   ========================================================================== */

/* Content layers above the backdrop */
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Slow-drifting brand-blue aurora */
body::before {
  content: "";
  position: fixed;
  inset: -8vmax;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 18% 12%, rgba(34, 184, 245, 0.10), transparent 62%),
    radial-gradient(34vmax 28vmax at 86% 28%, rgba(13, 111, 214, 0.13), transparent 64%),
    radial-gradient(40vmax 32vmax at 62% 88%, rgba(21, 90, 190, 0.10), transparent 66%);
  animation: drift 48s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(-2%, -1.5%, 0) scale(1);
  }
  to {
    transform: translate3d(2%, 1.5%, 0) scale(1.03);
  }
}

/* Fine grain: stops the big gradients banding on cheaper panels */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Let the backdrop breathe through the alternating sections */
.section-alt {
  background: rgba(10, 19, 36, 0.66);
}

/* Faint circuit trace, echoing the gear in the logo. One section only. */
.circuit-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' fill='none' stroke='%2322b8f5' stroke-opacity='0.13' stroke-width='1'%3E%3Cpath d='M20 0v54l26 26v60M120 0v30l-34 34v76M210 0v92l-30 30v138'/%3E%3Cpath d='M0 40h48l24 24h58M0 150h70l26-26h64M260 96h-60l-28 28H96'/%3E%3Ccircle cx='46' cy='80' r='3'/%3E%3Ccircle cx='86' cy='64' r='3'/%3E%3Ccircle cx='180' cy='122' r='3'/%3E%3Ccircle cx='96' cy='124' r='3'/%3E%3C/svg%3E");
  /* Fades in and out vertically, so it covers the whole section evenly however
     tall it is. A radial vignette bunched the pattern into the middle once the
     section grew past a screen or two. */
  mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
}

/* --------------------------------------------------------------------------
   Interactive layer: injected by main.js, so the markup stays clean.
   Sits between the aurora (-3) and the grain (-1).
   -------------------------------------------------------------------------- */

.fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  contain: layout paint;
}

/* Drifting motes that gather and brighten around the cursor */
.fx-sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* A surge of light running along the circuit traces */
/*
   The traces are the mask, so it rasterises once and never changes. The moving
   part is a plain gradient underneath, animated on the compositor. Animating
   the mask itself repaints the whole layer every frame, which is ruinous on a
   section this tall.
*/
.circuit-pulse {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' fill='none' stroke='%23fff' stroke-width='1.2'%3E%3Cpath d='M20 0v54l26 26v60M120 0v30l-34 34v76M210 0v92l-30 30v138'/%3E%3Cpath d='M0 40h48l24 24h58M0 150h70l26-26h64M260 96h-60l-28 28H96'/%3E%3Ccircle cx='46' cy='80' r='3'/%3E%3Ccircle cx='86' cy='64' r='3'/%3E%3Ccircle cx='180' cy='122' r='3'/%3E%3Ccircle cx='96' cy='124' r='3'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' fill='none' stroke='%23fff' stroke-width='1.2'%3E%3Cpath d='M20 0v54l26 26v60M120 0v30l-34 34v76M210 0v92l-30 30v138'/%3E%3Cpath d='M0 40h48l24 24h58M0 150h70l26-26h64M260 96h-60l-28 28H96'/%3E%3Ccircle cx='46' cy='80' r='3'/%3E%3Ccircle cx='86' cy='64' r='3'/%3E%3Ccircle cx='180' cy='122' r='3'/%3E%3Ccircle cx='96' cy='124' r='3'/%3E%3C/svg%3E");
  mask-size: 260px 260px;
  -webkit-mask-size: 260px 260px;
}

.circuit-pulse i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(110, 226, 255, 0.5), transparent);
  animation: surge 9s linear infinite;
}

@keyframes surge {
  from {
    transform: translate3d(-110%, 0, 0);
  }
  to {
    transform: translate3d(400%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }

  .circuit-pulse {
    display: none;
  }
}

/* Phones: keep the backdrop, drop the animation. Saves battery on long scrolls */
@media (max-width: 760px) {
  body::before {
    animation: none;
    inset: -10vmax;
  }

  .circuit-bg::after {
    opacity: 0.35;
  }

  .fx,
  .circuit-pulse {
    display: none;
  }
}
