/* ==========================================================================
   [COMPANY NAME] — AI Career System landing
   Dark theme · bold typography · glassmorphism + film grain (2026 style)
   Palette: "Royal Blue Depth" — https://coolors.co/06070e-10123a-3d52d5-8fa7f5-fbfff1
   ========================================================================== */

:root {
  --bg: #06070e;
  --bg-soft: #10123a;
  --surface: #171a4d;
  --border: rgba(251, 255, 241, 0.08);
  --text: #fbfff1;
  --text-dim: #98a0c3;
  --accent-1: #3d52d5; /* royal blue */
  --accent-2: #8fa7f5; /* periwinkle */
  --grad: linear-gradient(92deg, var(--accent-1), var(--accent-2));
  --radius: 18px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  /* Fixed ambient gradients: glass cards pick these colors up through blur */
  background:
    radial-gradient(ellipse 60% 50% at 15% 10%, rgba(36, 56, 184, 0.20), transparent 60%),
    radial-gradient(ellipse 50% 45% at 85% 35%, rgba(61, 82, 213, 0.14), transparent 60%),
    radial-gradient(ellipse 55% 50% at 40% 90%, rgba(143, 167, 245, 0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Film-grain noise overlay (SVG turbulence, replaces the old grid pattern) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 280px 280px;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -0.02em; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.section-title { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 30px rgba(61, 82, 213, 0.4);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(143, 167, 245, 0.35); }
.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }
.btn--block { display: block; text-align: center; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
/* Blur lives on a pseudo-element layer: backdrop-filter on .nav itself
   would flatten the 3D logo in Chromium (grouping forces flat rendering) */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 7, 14, 0.72);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
/* ---------- 3D briefcase logo ----------
   Pure CSS 3D: a box built from 6 faces + handle, spinning around the
   Y axis, with a soft elliptical ground shadow that breathes in sync
   (narrower when the case is edge-on). No libraries, no assets. */
.logo-3d {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  perspective: 200px;
  vertical-align: middle;
  flex-shrink: 0;
}
.logo-3d .case {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 17px;
  margin: -8px 0 0 -13px;
  transform-style: preserve-3d;
  animation: case-spin 7s linear infinite;
}
@keyframes case-spin {
  from { transform: rotateX(-15deg) rotateY(0turn); }
  to   { transform: rotateX(-15deg) rotateY(1turn); }
}
.logo-3d .face {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 2.5px;
}
.logo-3d .face--front,
.logo-3d .face--back {
  width: 26px;
  height: 17px;
  margin: -8.5px 0 0 -13px;
}
.logo-3d .face--front { transform: translateZ(5px); background: linear-gradient(160deg, #6d84f0, #3d52d5); }
.logo-3d .face--back  { transform: rotateY(180deg) translateZ(5px); background: #2c3fae; }
.logo-3d .face--left,
.logo-3d .face--right {
  width: 10px;
  height: 17px;
  margin: -8.5px 0 0 -5px;
  background: linear-gradient(180deg, #4a5fd9, #32439f);
}
.logo-3d .face--left  { transform: rotateY(-90deg) translateZ(13px); }
.logo-3d .face--right { transform: rotateY(90deg) translateZ(13px); }
.logo-3d .face--top,
.logo-3d .face--bottom {
  width: 26px;
  height: 10px;
  margin: -5px 0 0 -13px;
}
.logo-3d .face--top    { transform: rotateX(90deg) translateZ(8.5px); background: #7b90f2; }
.logo-3d .face--bottom { transform: rotateX(-90deg) translateZ(8.5px); background: #232f85; }
/* Lid seam + clasp on the front and back faces */
.logo-3d .face--front::after,
.logo-3d .face--back::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 38%;
  height: 1.5px;
  background: rgba(251, 255, 241, 0.30);
}
.logo-3d .face--front::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22%;
  width: 5px;
  height: 3px;
  margin-left: -2.5px;
  border-radius: 1px;
  background: #c7d2f8;
}
.logo-3d .handle {
  position: absolute;
  left: 50%;
  top: -7px;
  width: 12px;
  height: 8px;
  margin-left: -6px;
  border: 2.5px solid #8fa7f5;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  transform: translateZ(0);
}
.logo-3d .case-shadow {
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 26px;
  height: 6px;
  margin-left: -13px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6), transparent 65%);
  animation: case-shadow 7s linear infinite;
}
@keyframes case-shadow {
  0%, 50%, 100% { transform: scaleX(1); }
  25%, 75%      { transform: scaleX(0.55); }
}
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }
.btn--nav { padding: 10px 22px; font-size: 0.88rem; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.orb--1 { width: 480px; height: 480px; background: #2438b8; top: -120px; right: -100px; }
.orb--2 { width: 420px; height: 420px; background: #16247e; bottom: -140px; left: -120px; }
.orb--3 { width: 260px; height: 260px; background: #6d7ff0; top: 40%; left: 55%; opacity: 0.3; }


.hero__content { position: relative; z-index: 2; max-width: 780px; }
.hero__title {
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  font-weight: 700;
  margin-bottom: 24px;
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero__sub strong { color: var(--text); }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.hero__proof {
  display: flex;
  gap: 36px;
  list-style: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.hero__proof strong { display: block; font-size: 1.5rem; color: var(--text); font-family: var(--font-head); }

/* 3D coffee mug — floated right of the hero copy (desktop) */
.mug3d {
  position: absolute;
  top: 50%;
  right: max(24px, calc((100% - 1140px) / 2 + 20px));
  width: 340px;
  height: 340px;
  transform: translateY(-50%);
  z-index: 1; /* behind hero copy so it never covers the headline */
  pointer-events: none;
}
.mug3d canvas { display: block; width: 100%; height: 100%; }
.mug3d__shadow {
  position: absolute;
  bottom: 34px;
  left: 50%;
  width: 180px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5), transparent 65%);
}
/* CSS fallback (no WebGL): chosen texture on a spinning card */
.mugcss { position: absolute; inset: 0; perspective: 900px; }
.mugcss__spin {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 62%;
  aspect-ratio: 1;
  margin-left: -31%;
  transform-style: preserve-3d;
  animation: mug-spin 10s linear infinite;
}
@keyframes mug-spin {
  from { transform: rotateY(0turn); }
  to   { transform: rotateY(1turn); }
}
.mugcss__img {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(251, 255, 241, 0.14);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-dim);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent-2);
  animation: cue 1.8s infinite ease-in-out;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
}

/* ---------- Stats ---------- */
.stats { padding: 100px 0 60px; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.stat {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.stat__num {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.stat p { color: var(--text-dim); font-size: 0.95rem; }
.stats__note { margin-top: 20px; font-size: 0.78rem; color: var(--text-dim); opacity: 0.7; }

/* ---------- Gradient bands ---------- */
.band {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  text-align: center;
}
.band__layer {
  position: absolute;
  inset: -30% 0;
  background:
    radial-gradient(ellipse 50% 40% at 20% 50%, rgba(61, 82, 213, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 50%, rgba(143, 167, 245, 0.12), transparent 70%);
}
.band__layer--alt {
  background:
    radial-gradient(ellipse 60% 45% at 50% 50%, rgba(36, 56, 184, 0.22), transparent 70%);
}
.band__content { position: relative; max-width: 760px; }

/* 3D Tank Bot above the quote */
.tank3d {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto 20px;
}
.tank3d canvas { display: block; width: 100%; height: 100%; }
.tank3d__shadow {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 140px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5), transparent 65%);
}
/* CSS fallback (no WebGL): texture on a slowly spinning card */
.tankcss { position: absolute; inset: 0; perspective: 800px; }
.tankcss__spin {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 66%;
  aspect-ratio: 1;
  margin-left: -33%;
  transform-style: preserve-3d;
  animation: tank-spin 9s linear infinite;
}
@keyframes tank-spin {
  from { transform: rotateY(0turn); }
  to   { transform: rotateY(1turn); }
}
.tankcss__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 88px;
  border-radius: 50%;
  backface-visibility: hidden;
  background: linear-gradient(160deg, rgba(109, 132, 240, 0.28), rgba(61, 82, 213, 0.12));
  border: 1px solid rgba(251, 255, 241, 0.16);
  box-shadow: inset 0 1px 0 rgba(251, 255, 241, 0.22), 0 16px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.tankcss__face--back { transform: rotateY(180deg); }
.band h2, .band blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}
.band p { color: var(--text-dim); font-size: 1.1rem; }
.band__caption { font-size: 1rem; }

/* ---------- Modules ---------- */
.modules { padding: 100px 0; }
.modules__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(61, 82, 213, 0.6); }
.card__num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.15em;
}
.card h3 { font-size: 1.5rem; margin: 10px 0 12px; }
.card > p { color: var(--text-dim); margin-bottom: 20px; font-size: 0.96rem; }
.card ul { list-style: none; }
.card li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--text);
}
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent-2);
  border-bottom: 2px solid var(--accent-2);
  transform: rotate(-45deg) scale(0.8);
}

/* ---------- Pricing ---------- */
.pricing { padding: 100px 0; }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
}
.plan--featured {
  background: linear-gradient(180deg, rgba(61, 82, 213, 0.18), rgba(143, 167, 245, 0.05)), var(--bg-soft);
  border-color: rgba(61, 82, 213, 0.6);
  transform: scale(1.03);
}
.plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan h3 { font-size: 1.2rem; margin-bottom: 6px; }
.plan__price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; margin-bottom: 4px; }
.plan__desc { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 24px; }
.plan ul { list-style: none; margin-bottom: 28px; flex: 1; }
.plan li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 0.92rem;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent-1);
  border-bottom: 2px solid var(--accent-1);
  transform: rotate(-45deg) scale(0.8);
}
.pricing__note { margin-top: 32px; text-align: center; color: var(--text-dim); font-size: 0.85rem; }
.pricing__note a { color: var(--accent-2); }

/* ---------- Testimonials ---------- */
.testimonials { padding: 60px 0 100px; }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.quote {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.quote blockquote { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 20px; font-style: italic; }
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  opacity: 0.6;
  flex-shrink: 0;
}

/* ---------- FAQ teaser & FAQ page ---------- */
.faq-teaser { padding: 80px 0 100px; }
.faq-teaser .container, .legal .container { max-width: 760px; }
details {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
}
summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 52px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent-2);
  transition: transform 0.2s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 24px 20px; color: var(--text-dim); font-size: 0.95rem; }
.faq-teaser .btn { margin-top: 24px; }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  padding: 140px 0;
  text-align: center;
  overflow: hidden;
}
.final-cta__layer {
  position: absolute;
  inset: -30% 0;
  background: radial-gradient(ellipse 55% 45% at 50% 55%, rgba(61, 82, 213, 0.26), transparent 70%);
}
.final-cta h2 {
  position: relative;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 36px;
}

/* 3D wall clock above the final CTA headline */
.clock3d {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto 8px;
}
.clock3d canvas { display: block; width: 100%; height: 100%; }
.clock3d__shadow {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 150px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 65%);
}

/* CSS fallback clock (no WebGL): spinning 3D coin with the real face
   texture cropped out of the model's UV atlas */
.clockcss {
  position: absolute;
  inset: 0;
  perspective: 700px;
}
.clockcss__spin {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 74%;
  aspect-ratio: 1;
  margin-left: -37%;
  transform-style: preserve-3d;
  animation: coin-spin 8s linear infinite;
}
@keyframes coin-spin {
  from { transform: rotateY(0turn); }
  to   { transform: rotateY(1turn); }
}
.clockcss__face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  backface-visibility: hidden;
}
.clockcss__face--front {
  transform: translateZ(6px);
  /* UV atlas: face circle centred at ~74% / 74.5%, diameter ~50% of image */
  background-size: 201% 201%;
  background-position: 97.5% 98%;
  background-color: #e8e8e8;
  border: 3px solid #4b4f5c; /* case rim */
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.25);
}
.clockcss__face--back {
  transform: rotateY(180deg) translateZ(6px);
  background: radial-gradient(circle at 35% 30%, #565b6b, #33374a 70%);
  border: 3px solid #4b4f5c;
}
.clockcss__hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: 50% 100%;
  border-radius: 3px;
  background: #2a2d36;
}
.clockcss__hand--h { width: 6.5%; height: 26%; }
.clockcss__hand--m { width: 4.5%; height: 37%; }
.clockcss__hand--s { width: 2%;   height: 42%; background: #c0392b; }
.clockcss__cap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #2a2d36;
}
.final-cta__sub { margin-top: 18px; color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg-soft);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer__brand p { color: var(--text-dim); font-size: 0.88rem; margin-top: 14px; max-width: 260px; }
.footer__brand .logo-text { margin-left: 10px; }
.footer h4 {
  font-family: var(--font-head);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer nav a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 10px;
  opacity: 0.85;
}
.footer nav a:hover { opacity: 1; color: var(--accent-2); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  color: var(--text-dim);
  font-size: 0.78rem;
}

/* ---------- Inner pages (legal / about / faq) ---------- */
.page {
  padding: 140px 0 100px;
}
.page .container { max-width: 800px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.page .page-updated { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 48px; }
.page h2 { font-size: 1.5rem; margin: 44px 0 16px; }
.page h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.page p, .page li { color: var(--text-dim); font-size: 0.97rem; }
.page ul, .page ol { padding-left: 24px; margin: 12px 0; }
.page li { margin-bottom: 8px; }
.page a { color: var(--accent-2); }
.page strong { color: var(--text); }
.page .callout {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-1);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 0.9rem;
}

/* ---------- Glassmorphism surfaces ----------
   Cards become frosted glass: translucent fill + backdrop blur picks up
   the ambient body gradients and orbs behind them. */
.stat, .card, .plan, .quote, details {
  background: rgba(16, 18, 58, 0.38);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(251, 255, 241, 0.10);
  box-shadow: inset 0 1px 0 rgba(251, 255, 241, 0.08);
}
.plan--featured {
  background: linear-gradient(180deg, rgba(61, 82, 213, 0.28), rgba(143, 167, 245, 0.06)), rgba(16, 18, 58, 0.35);
  border-color: rgba(61, 82, 213, 0.6);
}
/* Fallback for browsers without backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .stat, .card, .plan, .quote, details { background: var(--bg-soft); }
}

/* ---------- Checkout modal ---------- */
.checkout {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.checkout.is-open { display: flex; }
.checkout__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.25s ease;
}
.checkout__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px 32px 32px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(23, 26, 77, 0.96), rgba(16, 18, 58, 0.98));
  border: 1px solid rgba(251, 255, 241, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
  animation: pop-in 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
.checkout__close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 255, 241, 0.06);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.checkout__close:hover { background: rgba(251, 255, 241, 0.14); }
.checkout__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-top: 4px;
}
.checkout__title {
  font-size: 1.5rem;
  margin: 6px 0 22px;
}
.checkout__price {
  display: inline-block;
  margin-left: 6px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.checkout__form label {
  display: block;
  text-align: left;
  margin-bottom: 14px;
}
.checkout__form label span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.checkout__form input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(251, 255, 241, 0.14);
  background: rgba(6, 7, 14, 0.5);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.checkout__form input:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(61, 82, 213, 0.25);
}
.checkout__form input::placeholder { color: rgba(152, 160, 195, 0.6); }
.checkout__error {
  text-align: left;
  color: #ff8a8a;
  font-size: 0.85rem;
  margin: 4px 0 12px;
}
.checkout__form .btn { margin-top: 6px; }
.checkout__note {
  margin-top: 14px;
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* 3D money stack in the checkout modal */
.money3d {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto -6px;
}
.money3d canvas { display: block; width: 100%; height: 100%; }
.money3d__shadow {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 110px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5), transparent 65%);
}
.moneycss { position: absolute; inset: 0; perspective: 700px; }
.moneycss__spin {
  position: absolute;
  top: 22%;
  left: 50%;
  width: 60%;
  aspect-ratio: 1;
  margin-left: -30%;
  transform-style: preserve-3d;
  animation: money-spin 6s linear infinite;
}
@keyframes money-spin {
  from { transform: rotateX(-20deg) rotateY(0turn); }
  to   { transform: rotateX(-20deg) rotateY(1turn); }
}
.moneycss__img {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
  /* The 38px logo keeps spinning deliberately — tiny decorative element,
     slowed down instead of stopped */
  .logo-3d .case, .logo-3d .case-shadow { animation-duration: 14s; }
  .clockcss__spin { animation-duration: 24s; }
  .tankcss__spin { animation-duration: 27s; }
  .mugcss__spin { animation-duration: 30s; }
  .moneycss__spin { animation-duration: 18s; }
}

/* ---------- Responsive ---------- */
/* Hide the hero mug once the copy needs the full width */
@media (max-width: 1080px) {
  .mug3d { display: none; }
}

@media (max-width: 960px) {
  .modules__grid { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .plan--featured { transform: none; }
  .testimonials__grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 7, 14, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__burger { display: flex; }
  .btn--nav { display: none; }

  .hero { min-height: auto; padding: 130px 0 90px; }
  .hero__proof { gap: 24px; }
  .stats__grid { grid-template-columns: 1fr; }
  .band { padding: 90px 0; }
  .orb { filter: blur(60px); }
  .orb--3 { display: none; }
  .clock3d { width: 180px; height: 180px; }
  .clock3d__shadow { width: 110px; height: 16px; }
  .tank3d { width: 170px; height: 170px; }
  .tank3d__shadow { width: 100px; height: 14px; }
  /* Cheaper glass on mobile GPUs */
  .stat, .card, .plan, .quote, details {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  body { background-attachment: scroll; }
  .scroll-cue { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}
