/* ============================================================
   LIVINITY LTD, "Dark AI Lab" Design System
   Single source of truth for the whole site.
   Author: coherent hand, do not fork per page.
   ============================================================ */

/* -------- Self-hosted fonts (latin subset, variable, swap) -------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/space-grotesk.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono.woff2') format('woff2');
}

/* -------- Design Tokens -------- */
:root {
  /* Brand */
  --lime:        #C1FF00;
  --teal:        #00E6B8;
  --teal-deep:   #00BFA5;
  --green:       #1FA36B;
  --green-deep:  #1A531A;
  --neon:        #37F5A0;

  /* Surfaces */
  --bg:          #05070A;
  --bg-2:        #070B0E;
  --bg-elev:     #0B1113;
  --card:        rgba(255,255,255,0.028);
  --card-2:      rgba(255,255,255,0.045);
  --glass:       rgba(8,14,15,0.55);

  /* Ink */
  --text:        #E9F3EE;
  --muted:       #93A69D;
  --faint:       #56655E;

  /* Lines & glow */
  --border:      rgba(255,255,255,0.08);
  --border-2:    rgba(120,255,205,0.16);
  --border-hi:   rgba(120,255,205,0.35);
  --glow-teal:   rgba(0,230,184,0.35);
  --glow-lime:   rgba(193,255,0,0.22);

  /* Gradients */
  --grad:        linear-gradient(120deg, #C1FF00 0%, #00E6B8 52%, #1FA36B 100%);
  --grad-soft:   linear-gradient(120deg, rgba(193,255,0,0.14), rgba(0,230,184,0.14) 55%, rgba(31,163,107,0.14));
  --grad-line:   linear-gradient(90deg, transparent, var(--teal), transparent);

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Metrics */
  --wrap:        1200px;
  --radius:      18px;
  --radius-sm:   12px;
  --radius-lg:   28px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --dur:         0.5s;
  --nav-h:       74px;
}

/* -------- Reset -------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient page backdrop: subtle grain + fixed brand glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(0,230,184,0.10), transparent 60%),
    radial-gradient(900px 620px at 8% 4%, rgba(193,255,0,0.06), transparent 55%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
          mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  opacity: 0.14;
}

a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: rgba(0,230,184,0.28); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #16211d; border-radius: 20px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #1f302a; }

/* -------- Layout -------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap--narrow { max-width: 860px; }

.section { position: relative; padding: 118px 0; }
.section--tight { padding: 80px 0; }
.section--flush-top { padding-top: 0; }

.divider { height: 1px; background: var(--border); border: 0; }
.grad-line { height: 1px; background: var(--grad-line); border: 0; opacity: 0.6; }

/* -------- Typography helpers -------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.section-sub, .hero__sub, .page-hero p, .split__text, .cta-band p, .card__text, .feature p, .step p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal);
  padding: 7px 14px;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  background: rgba(0,230,184,0.05);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon); box-shadow: 0 0 10px var(--neon);
}

.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-title {
  font-size: clamp(30px, 4.6vw, 52px);
  margin: 20px 0 16px;
}
.section-sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15.5px;
  border-radius: 100px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  position: relative; white-space: nowrap; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn--primary {
  background: var(--grad);
  color: #04120C;
  box-shadow: 0 8px 30px -8px var(--glow-teal), inset 0 0 0 1px rgba(255,255,255,0.14);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 44px -10px var(--glow-teal), inset 0 0 0 1px rgba(255,255,255,0.24); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost {
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn--ghost:hover { border-color: var(--border-hi); background: rgba(0,230,184,0.06); transform: translateY(-3px); }
.btn--lg { padding: 17px 34px; font-size: 16.5px; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Chip / pill / badge */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--card);
  font-size: 14px; color: var(--muted);
  font-family: var(--font-mono); letter-spacing: 0.02em;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pill:hover { border-color: var(--border-hi); color: var(--text); transform: translateY(-2px); }
.pill svg { width: 15px; height: 15px; color: var(--teal); }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--neon); padding: 5px 11px; border-radius: 7px;
  background: rgba(55,245,160,0.08); border: 1px solid rgba(55,245,160,0.2);
}

/* ============================================================
   NAVIGATION (injected by main.js)
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; width: 100%;
  height: var(--nav-h); z-index: 900;
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease), box-shadow 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
          backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,0.8);
}
.nav__inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav__logo img { height: 38px; width: auto; object-fit: contain; }
.nav__logo .wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  letter-spacing: 0.02em; color: var(--text);
}
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; padding: 9px 15px; border-radius: 9px;
  font-size: 15px; color: var(--muted); font-weight: 500;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); background: rgba(255,255,255,0.04); }
.nav__right { display: flex; align-items: center; gap: 14px; }

/* dropdown */
.nav__item { position: relative; }
.nav__item > .nav__link .caret { display: inline-block; width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 6px; transition: transform 0.3s var(--ease); }
.nav__item:hover > .nav__link .caret { transform: rotate(225deg) translateY(-1px); }
.nav__menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 280px; padding: 10px;
  background: rgba(9,15,16,0.92);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.85);
  opacity: 0; visibility: hidden; transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.nav__item:hover .nav__menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__menu a { display: flex; gap: 12px; padding: 12px 13px; border-radius: 11px; transition: background 0.25s; }
.nav__menu a:hover { background: rgba(0,230,184,0.07); }
.nav__menu .mi-ico { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-2); }
.nav__menu .mi-ico svg { width: 17px; height: 17px; color: var(--teal); }
.nav__menu .mi-t { display: block; font-weight: 600; font-size: 14.5px; color: var(--text); font-family: var(--font-display); }
.nav__menu .mi-d { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }

.nav__burger { display: none; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--border-2); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__burger span { width: 19px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); }
body.nav-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav__burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 890;
  background: rgba(5,8,10,0.97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: 30px 28px 50px; display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  overflow-y: auto;
}
body.nav-open .nav-drawer { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drawer a { padding: 15px 8px; font-family: var(--font-display); font-size: 21px; font-weight: 500; border-bottom: 1px solid var(--border); }
.nav-drawer a small { display: block; font-family: var(--font-body); font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.nav-drawer .btn { margin-top: 22px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 90px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
#bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7; }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; will-change: transform; }
.hero__orb--1 { width: 520px; height: 520px; top: -120px; right: -80px; background: radial-gradient(circle, rgba(0,230,184,0.5), transparent 70%); animation: float 18s ease-in-out infinite; }
.hero__orb--2 { width: 460px; height: 460px; bottom: -140px; left: -120px; background: radial-gradient(circle, rgba(193,255,0,0.28), transparent 70%); animation: float 22s ease-in-out infinite reverse; }
.hero__orb--3 { width: 360px; height: 360px; top: 30%; left: 40%; background: radial-gradient(circle, rgba(31,163,107,0.35), transparent 70%); animation: float 26s ease-in-out infinite; }

.hero__content { max-width: 900px; position: relative; }
.hero__title {
  font-size: clamp(37px, 5.8vw, 68px);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.03em;
  margin: 26px 0 24px;
  text-wrap: normal;
}
.hero__rotator { display: inline-block; position: relative; min-width: 3ch; }
.hero__rotator .rot-word {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero__sub { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); max-width: 620px; margin-bottom: 38px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 54px; padding-top: 30px; border-top: 1px solid var(--border); }
.hero__meta-item { display: flex; flex-direction: column; gap: 2px; }
.hero__meta-item b { font-family: var(--font-display); font-size: 26px; color: var(--text); }
.hero__meta-item span { font-size: 13px; color: var(--muted); }

.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--faint); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.scroll-cue .mouse { width: 24px; height: 38px; border: 2px solid var(--border-2); border-radius: 14px; position: relative; }
.scroll-cue .mouse::before { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; border-radius: 3px; background: var(--teal); animation: scrolldot 1.8s ease-in-out infinite; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { position: relative; overflow: hidden; padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--faint); white-space: nowrap; transition: color 0.3s; }
.marquee__item:hover { color: var(--text); }
.marquee__item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); opacity: 0.6; }

/* ============================================================
   CARDS / SERVICES
   ============================================================ */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; padding: 34px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(0,230,184,0.5), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.5s var(--ease); pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-2); background: var(--card-2); }
.card:hover::before { opacity: 1; }

.card__icon {
  width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border-2); margin-bottom: 24px;
  transition: transform 0.5s var(--ease);
}
.card:hover .card__icon { transform: scale(1.06) rotate(-3deg); }
.card__icon svg { width: 27px; height: 27px; color: var(--teal); }
.card__title { font-size: 22px; margin-bottom: 12px; }
.card__text { color: var(--muted); font-size: 15.5px; }
.card__num { position: absolute; top: 26px; right: 30px; font-family: var(--font-mono); font-size: 13px; color: var(--faint); }
.card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--teal); }
.card__link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.card__link:hover svg { transform: translateX(5px); }
.card__list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.card__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.card__list li svg { width: 17px; height: 17px; color: var(--neon); flex-shrink: 0; margin-top: 3px; }

/* Feature card (service subpages) */
.feature { padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); transition: border-color 0.4s, background 0.4s, transform 0.4s var(--ease); }
.feature:hover { border-color: var(--border-2); background: var(--card-2); transform: translateY(-4px); }
.feature h3 { font-size: 19px; margin-bottom: 10px; display: flex; align-items: center; gap: 11px; }
.feature h3 svg { width: 20px; height: 20px; color: var(--teal); }
.feature p { color: var(--muted); font-size: 15px; }

/* ============================================================
   BENTO
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; grid-auto-rows: minmax(180px, auto); }
.bento__item { position: relative; padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); overflow: hidden; transition: border-color 0.4s, background 0.4s; display: flex; flex-direction: column; }
.bento__item:hover { border-color: var(--border-2); background: var(--card-2); }
.bento__item h3 { font-size: 21px; margin-bottom: 10px; }
.bento__item p { color: var(--muted); font-size: 15px; }
.bento__item .b-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-2); margin-bottom: 20px; }
.bento__item .b-ico svg { width: 22px; height: 22px; color: var(--teal); }
.col-3 { grid-column: span 3; } .col-2 { grid-column: span 2; } .col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; }
.row-2 { grid-row: span 2; }
.bento__item--feature { background: linear-gradient(150deg, rgba(0,230,184,0.08), rgba(31,163,107,0.03)); }
.bento__glow { position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(0,230,184,0.25), transparent 70%); filter: blur(30px); bottom: -80px; right: -60px; pointer-events: none; }

/* ============================================================
   STATS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { padding: 34px 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); text-align: left; position: relative; overflow: hidden; transition: border-color 0.4s, transform 0.4s var(--ease); }
.stat:hover { border-color: var(--border-2); transform: translateY(-4px); }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 5vw, 56px); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { margin-top: 14px; font-size: 15px; color: var(--text); font-weight: 500; }
.stat__src { margin-top: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); letter-spacing: 0.03em; }

/* ============================================================
   PROCESS / STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 32px 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); transition: border-color 0.4s, background 0.4s, transform 0.4s var(--ease); }
.step:hover { border-color: var(--border-2); background: var(--card-2); transform: translateY(-4px); }
.step__num { font-family: var(--font-mono); font-size: 13px; color: var(--teal); letter-spacing: 0.1em; }
.step__title { font-size: 19px; margin: 16px 0 10px; }
.step p { color: var(--muted); font-size: 14.5px; }
.step__line { position: absolute; top: 44px; right: -13px; width: 26px; height: 1px; background: var(--border-2); z-index: 2; }
.step:last-child .step__line { display: none; }

/* ============================================================
   SPLIT / ALTERNATING CONTENT
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split--reverse .split__visual { order: 2; }
.split__title { font-size: clamp(28px, 3.6vw, 40px); margin: 18px 0 18px; }
.split__text { color: var(--muted); font-size: 16.5px; margin-bottom: 16px; }
.check-list { display: flex; flex-direction: column; gap: 13px; margin-top: 22px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; }
.check-list li svg { width: 20px; height: 20px; color: var(--neon); flex-shrink: 0; margin-top: 3px; }
.check-list li b { color: var(--text); font-weight: 600; }

/* Code panel visual */
.codeframe {
  border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden;
  background: linear-gradient(180deg, #0a1012, #070b0d);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.9), 0 0 0 1px rgba(0,230,184,0.05);
}
.codeframe__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.codeframe__bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.codeframe__bar .dot:nth-child(1){ background:#ff5f57; } .codeframe__bar .dot:nth-child(2){ background:#febc2e; } .codeframe__bar .dot:nth-child(3){ background:#28c840; }
.codeframe__bar .fname { margin-left: 10px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.codeframe__body { padding: 22px 24px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.85; overflow-x: auto; }
.codeframe__body .ln { color: var(--faint); user-select: none; margin-right: 18px; }
.tok-k { color: #ff7cc6; } .tok-f { color: var(--teal); } .tok-s { color: var(--lime); } .tok-c { color: var(--faint); font-style: italic; } .tok-n { color: #ffb86c; } .tok-v { color: var(--text); }

/* Orbit / AI visual */
.orbit { position: relative; aspect-ratio: 1; max-width: 440px; margin: 0 auto; display: grid; place-items: center; }
.orbit__ring { position: absolute; inset: 0; border: 1px solid var(--border); border-radius: 50%; }
.orbit__ring--2 { inset: 15%; border-color: var(--border-2); }
.orbit__ring--3 { inset: 30%; }
.orbit__core { width: 96px; height: 96px; border-radius: 26px; display: grid; place-items: center; background: var(--grad); box-shadow: 0 0 60px -8px var(--glow-teal); }
.orbit__core svg { width: 46px; height: 46px; color: #04120C; }
.orbit__node { position: absolute; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-elev); border: 1px solid var(--border-2); }
.orbit__node svg { width: 20px; height: 20px; color: var(--teal); }
.orbit__spin { position: absolute; inset: 0; animation: spin 26s linear infinite; }
.orbit__spin--rev { animation-direction: reverse; animation-duration: 34s; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); overflow: hidden; transition: border-color 0.35s; }
.faq__item.open { border-color: var(--border-2); }
.faq__q { width: 100%; text-align: left; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--text); }
.faq__q .ic { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq__q .ic::before, .faq__q .ic::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--teal); border-radius: 2px; }
.faq__q .ic::before { width: 13px; height: 2px; }
.faq__q .ic::after { width: 2px; height: 13px; transition: transform 0.35s var(--ease); }
.faq__item.open .faq__q .ic::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq__a-inner { padding: 0 24px 24px; color: var(--muted); font-size: 15.5px; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner {
  position: relative; text-align: center; padding: 84px 48px;
  border-radius: var(--radius-lg); border: 1px solid var(--border-2);
  background: linear-gradient(150deg, rgba(0,230,184,0.10), rgba(5,7,10,0.4) 55%), var(--bg-elev);
  overflow: hidden;
}
.cta-band__inner::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(0,230,184,0.22), transparent 65%); top: -300px; left: 50%; transform: translateX(-50%); filter: blur(40px); pointer-events: none; }
.cta-band h2 { font-size: clamp(30px, 4.6vw, 50px); position: relative; margin-bottom: 18px; }
.cta-band p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 34px; position: relative; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero { position: relative; padding: calc(var(--nav-h) + 80px) 0 60px; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-hero__glow { position: absolute; width: 700px; height: 500px; top: -180px; right: -120px; background: radial-gradient(circle, rgba(0,230,184,0.14), transparent 65%); filter: blur(50px); pointer-events: none; z-index: -1; }
.page-hero__inner { max-width: 820px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 700; letter-spacing: -0.03em; margin: 22px 0 20px; line-height: 1.04; }
.page-hero p { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 13px; color: var(--faint); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { color: var(--faint); }

/* ============================================================
   FORMS (contact)
   ============================================================ */
.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--text); font-family: var(--font-display); }
.field label .req { color: var(--teal); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  color: var(--text); transition: border-color 0.3s, background 0.3s, box-shadow 0.3s; outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--border-hi); background: rgba(0,230,184,0.04); box-shadow: 0 0 0 4px rgba(0,230,184,0.08); }
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 13px; color: var(--faint); }
.form-note a { color: var(--teal); }

.contact-card { padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); }
.contact-item { display: flex; gap: 15px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .ci-ico { width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-2); }
.contact-item .ci-ico svg { width: 19px; height: 19px; color: var(--teal); }
.contact-item .ci-label { font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; }
.contact-item .ci-val { font-size: 16px; color: var(--text); font-weight: 500; margin-top: 2px; }
.contact-item .ci-val a:hover { color: var(--teal); }

/* ============================================================
   PROSE (legal pages)
   ============================================================ */
.prose { max-width: 800px; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: 26px; margin-top: 52px; padding-top: 12px; }
.prose h3 { font-size: 19px; margin-top: 32px; color: var(--text); }
.prose p, .prose li { color: var(--muted); font-size: 16px; line-height: 1.75; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 9px; }
.prose ul li { list-style: none; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: -18px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--teal); font-family: var(--font-mono); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border: 1px solid var(--border); }
.prose th { background: rgba(255,255,255,0.02); color: var(--text); font-family: var(--font-display); font-size: 13px; }
.prose td { color: var(--muted); }

.legal-toc { position: sticky; top: calc(var(--nav-h) + 24px); padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); }
.legal-toc h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-family: var(--font-mono); margin-bottom: 16px; }
.legal-toc a { display: block; padding: 7px 0; font-size: 14px; color: var(--muted); border-left: 2px solid transparent; padding-left: 14px; transition: color 0.25s, border-color 0.25s; }
.legal-toc a:hover { color: var(--text); border-color: var(--teal); }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }

.notice-box { padding: 20px 24px; border-radius: var(--radius-sm); border: 1px solid rgba(193,255,0,0.22); background: rgba(193,255,0,0.05); display: flex; gap: 14px; align-items: flex-start; }
.notice-box svg { width: 22px; height: 22px; color: var(--lime); flex-shrink: 0; margin-top: 2px; }
.notice-box p { font-size: 14.5px; color: var(--muted); margin: 0; }
.notice-box strong { color: var(--text); }

/* Info grid (legal notice) */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 8px; }
.info-cell { background: var(--bg-2); padding: 24px 26px; }
.info-cell .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.info-cell .v { margin-top: 7px; font-size: 16px; color: var(--text); }

/* ============================================================
   FOOTER (injected by main.js)
   ============================================================ */
.footer { position: relative; border-top: 1px solid var(--border); padding: 78px 0 34px; margin-top: 40px; overflow: hidden; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--grad-line); opacity: 0.5; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.footer__brand .nav__logo { margin-bottom: 20px; }
.footer__tag { color: var(--muted); font-size: 15px; max-width: 300px; margin-bottom: 24px; }
.footer__col h5 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer__col a { display: block; padding: 6px 0; color: var(--muted); font-size: 15px; transition: color 0.25s, transform 0.25s; }
.footer__col a:hover { color: var(--text); transform: translateX(3px); }
.footer__social { display: flex; gap: 11px; }
.footer__social a { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); transition: all 0.3s var(--ease); }
.footer__social a:hover { border-color: var(--border-hi); color: var(--teal); transform: translateY(-3px); background: rgba(0,230,184,0.05); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer__bottom p { font-size: 13.5px; color: var(--faint); }
.footer__bottom .fb-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__bottom .fb-links a { font-size: 13.5px; color: var(--muted); }
.footer__bottom .fb-links a:hover { color: var(--teal); }

/* ============================================================
   CUSTOM CURSOR GLOW
   ============================================================ */
.cursor-glow { position: fixed; top: 0; left: 0; width: 480px; height: 480px; border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(0,230,184,0.10), transparent 62%); mix-blend-mode: screen; opacity: 0; transition: opacity 0.4s; will-change: transform; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
.reveal[data-d="5"] { transition-delay: 0.40s; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes float { 0%,100% { transform: translate(0,0); } 33% { transform: translate(30px,-40px); } 66% { transform: translate(-25px,25px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translate(-50%, 12px); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 0 40px -8px var(--glow-teal); } 50% { box-shadow: 0 0 70px -4px var(--glow-teal); } }
.blink { animation: blink 1.1s step-end infinite; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: 1fr; gap: 30px; }
  .legal-toc { position: static; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .col-4, .col-6 { grid-column: span 4; } .col-3 { grid-column: span 4; } .col-2 { grid-column: span 2; }
}
@media (max-width: 900px) {
  .nav__links, .nav__right .btn { display: none; }
  .nav__burger { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step__line { display: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__visual { order: 0; }
  .section { padding: 84px 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .grid-3, .grid-4, .grid-2, .stats, .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .col-2, .col-3, .col-4, .col-6 { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .cta-band__inner { padding: 56px 26px; }
  .hero__meta { gap: 20px; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; flex: 1; min-width: 140px; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  #bg-canvas, .hero__orb, .cursor-glow { display: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* Print */
@media print {
  .nav, .nav-drawer, .footer__social, .cursor-glow, #bg-canvas, .hero__orb, .scroll-cue { display: none !important; }
  body { background: #fff; color: #111; }
  body::before, body::after { display: none; }
  .prose a { color: #111; }
}
