/* ============================================================================
   QuadCode AI — Brand Design System  (per official Guidebook)
   Dark navy base (never pure black) · coral→red gradient accent
   Display: League Spartan · Body: Inter · Signature: focus-grid corner frames
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- Tokens --------------------------------------------------------------- */
:root {
  /* surfaces — taken from the product UI; black is forbidden as primary */
  --bg:        #0B0D15;
  --bg-2:      #13131E;
  --surface-solid: #161823;
  --surface-2: #212233;
  --surface-3: #2a2c40;

  /* lines */
  --line:   rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);

  /* text */
  --text:      #FFFFFF;
  --text-soft: #AEB0BE;
  --text-mute: #6F7180;

  /* brand gradient (the accent across ALL materials) */
  --g1: #FF9569;
  --g2: #DD344D;
  --gradient: linear-gradient(135deg, #FF9569 0%, #F2585A 48%, #DD344D 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255,149,105,.16), rgba(221,52,77,.16));
  --accent: #F0584F;   /* solid accent for icons */
  --accent-soft: rgba(240,88,79,.14);

  /* radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 9999px;

  /* spacing */
  --s-xs: 8px; --s-sm: 12px; --s-md: 16px; --s-lg: 24px; --s-xl: 32px; --s-xxl: 48px; --s-section: 104px;

  --font-display: 'League Spartan', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --container: 1200px;
  --nav-h: 68px;
  --shadow: 0 30px 80px -40px rgba(0,0,0,.8);
  --glow: 0 18px 60px -20px rgba(221,52,77,.5);

  --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Cpath d='M23 18.5v9M18.5 23h9' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E");
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text-soft);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--g1); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(221,52,77,.35); color: #fff; }

/* ---- Typography ----------------------------------------------------------- */
.display-xl, .display-lg, .display-md, .display-sm, .title-lg {
  font-family: var(--font-display); color: var(--text); font-weight: 700; line-height: 1.04; letter-spacing: -0.01em;
}
.display-xl { font-size: clamp(40px, 6.4vw, 78px); }
.display-lg { font-size: clamp(33px, 4.6vw, 56px); line-height: 1.06; }
.display-md { font-size: clamp(27px, 3.4vw, 40px); line-height: 1.1; }
.display-sm { font-size: clamp(23px, 2.5vw, 30px); line-height: 1.15; }
.title-lg   { font-size: 22px; line-height: 1.2; }

.title-md { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--text); letter-spacing: -0.01em; }
.title-sm { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.35; color: var(--text); }

.body-lg { font-size: 18px; line-height: 1.65; color: var(--text-soft); }
.body-md { font-size: 16px; line-height: 1.6; color: var(--text-soft); }
.body-sm { font-size: 14px; line-height: 1.6; color: var(--text-soft); }
.caption-uppercase { font-family: var(--font-display); font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 0.18em; text-transform: uppercase; }

.t-white { color: var(--text); }
.t-soft { color: var(--text-soft); }
.t-mute { color: var(--text-mute); }
.text-balance { text-wrap: balance; }
.grad-text {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.underline-grad { position: relative; }
.underline-grad::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--gradient); }
.text-link { color: var(--g1); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: gap .15s, color .15s; }
.text-link:hover { gap: 9px; color: #fff; }

/* ---- Layout --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; }
.section { padding: var(--s-section) 0; position: relative; }
.section-sm { padding: 64px 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { margin: 0 auto 16px; }
.section-head p { margin-top: 18px; }
.lead { font-size: 19px; line-height: 1.65; color: var(--text-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display);
  color: var(--g1); font-weight: 600; font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--gradient); }
.section-head .eyebrow { justify-content: center; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-s{margin-top:12px}.mt-m{margin-top:24px}.mt-l{margin-top:40px}.mt-xl{margin-top:56px}
.mb-m{margin-bottom:24px}
.maxw-560{max-width:560px}.maxw-640{max-width:640px}

/* ---- Background textures -------------------------------------------------- */
.plusgrid { background-image: var(--plus); background-size: 46px 46px; }
.glow-bg { position: relative; overflow: hidden; }
.glow {
  position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(221,52,77,.32), transparent 68%);
}
.section > .container, .section-sm > .container { position: relative; z-index: 1; }

/* ---- Focus-grid corner frame (signature) ---------------------------------- */
.frame { position: relative; }
.frame > .cn { position: absolute; width: 26px; height: 26px; border: 2px solid rgba(255,255,255,.5); pointer-events: none; z-index: 3; }
.frame > .cn.tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.frame > .cn.tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-top-right-radius: 16px; }
.frame > .cn.bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-bottom-left-radius: 16px; }
.frame > .cn.br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }
.frame.accent > .cn { border-color: var(--g1); }
.frame.tight > .cn { width: 20px; height: 20px; }

/* corner brackets around inline phrase: [ with AI ] */
.brackets { position: relative; padding: 0 .35em; white-space: nowrap; }
.brackets::before, .brackets::after { content: ""; position: absolute; top: -.08em; bottom: -.08em; width: .26em; border: 2px solid var(--g1); }
.brackets::before { left: -.05em; border-right: 0; border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
.brackets::after { right: -.05em; border-left: 0; border-top-right-radius: 6px; border-bottom-right-radius: 6px; }

/* ---- Brand / logo --------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; }
.brand img { height: 26px; width: auto; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1;
  height: 46px; padding: 0 24px; border-radius: var(--r-pill); white-space: nowrap;
  transition: transform .12s ease, box-shadow .2s ease, background .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-lg { height: 54px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 30px -12px rgba(221,52,77,.65); }
.btn-primary:hover { box-shadow: var(--glow); transform: translateY(-1px); }

.btn-white { background: #fff; color: #0B0D15; }
.btn-white:hover { background: #f0f0f2; transform: translateY(-1px); }

.btn-ghost { background: rgba(255,255,255,.04); color: #fff; border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.28); }

/* ---- Badges --------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display);
  font-weight: 600; font-size: 12.5px; letter-spacing: .04em; line-height: 1;
  padding: 8px 14px; border-radius: var(--r-pill); background: rgba(255,255,255,.05);
  border: 1px solid var(--line-2); color: var(--text);
}
.badge-grad { background: var(--gradient); border: 0; color: #fff; text-transform: uppercase; letter-spacing: .1em; }
.badge-grad-soft { background: var(--gradient-soft); border: 1px solid rgba(255,149,105,.35); color: var(--g1); text-transform: uppercase; letter-spacing: .1em; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #43d17a; box-shadow: 0 0 8px #43d17a; }

/* ---- Navigation ----------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 60; height: var(--nav-h); background: rgba(11,13,21,.72); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.nav.scrolled { border-color: var(--line); background: rgba(11,13,21,.9); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: 6px; }
.nav-links a { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--text-soft); padding: 9px 13px; border-radius: var(--r-sm); transition: color .15s, background .15s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-links a.active { color: #fff; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-signin { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: #fff; padding: 8px 10px; }
.nav-signin:hover { color: var(--g1); }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: var(--r-sm); align-items: center; justify-content: center; color: #fff; }
.nav-burger:hover { background: rgba(255,255,255,.06); }
.nav-sheet { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 55; background: var(--bg); padding: 24px; display: none; flex-direction: column; gap: 4px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.nav-sheet.open { display: flex; }
.nav-sheet-overlay { display: none; position: fixed; inset: 0; z-index: 54; background: rgba(0,0,0,.5); }
.nav-sheet-overlay.open { display: block; }
body.nav-open { position: fixed; width: 100%; overflow: hidden; }
.nav-sheet a { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: #fff; padding: 15px 8px; border-bottom: 1px solid var(--line); }
.nav-sheet .sheet-cta { margin-top: 22px; display: grid; gap: 12px; }
.nav-sheet .sheet-cta a { border: none; padding: 0; }

/* ---- Announcement bar (500 free tokens) ----------------------------------- */
.announce { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; background: var(--gradient); color: #fff; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; line-height: 1.3; padding: 10px 18px; }
.announce svg { width: 16px; height: 16px; flex: none; }
.announce .announce-cta { display: inline-flex; align-items: center; gap: 4px; text-decoration: underline; text-underline-offset: 3px; opacity: .95; }
.announce:hover .announce-cta { opacity: 1; }
@media (max-width: 680px) { .announce .hide-sm { display: none; } .announce { font-size: 12.5px; padding: 9px 14px; gap: 7px; } }

/* ---- Hero ----------------------------------------------------------------- */
.hero { position: relative; padding: 60px 0 92px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-reassure { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: var(--text-mute); font-size: 13.5px; }
.hero-reassure .ok { display: inline-flex; align-items: center; gap: 7px; }
.hero-reassure svg { width: 16px; height: 16px; color: #43d17a; }
.proof { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.avatars { display: flex; }
.avatars img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--bg); object-fit: cover; margin-left: -11px; }
.avatars img:first-child { margin-left: 0; }
.proof .stars { color: var(--g1); letter-spacing: 2px; font-size: 14px; }

/* ---- Cards ---------------------------------------------------------------- */
.card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-xl); }
.card-soft { background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-xl); }

.feature-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; height: 100%; transition: transform .2s, border-color .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(255,149,105,.4); box-shadow: var(--shadow); }
.feature-icon { width: 50px; height: 50px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 22px; background: var(--accent-soft); color: var(--accent); }
.feature-icon svg { width: 25px; height: 25px; }
.feature-card h3 { margin-bottom: 10px; }

/* persona cards */
.persona-card { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--surface-2); border: 1px solid var(--line); min-height: 400px; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; transition: transform .2s, border-color .2s; }
.persona-card:hover { transform: translateY(-4px); border-color: rgba(255,149,105,.4); }
.persona-card .persona-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: .85; }
.persona-card .persona-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,21,0) 25%, rgba(11,13,21,.75) 62%, rgba(11,13,21,.97) 100%); }
.persona-card .persona-body { position: relative; z-index: 2; }
.persona-card h3 { margin: 12px 0 8px; }
.persona-card .kicker { color: var(--g1); }

/* showcase tiles */
.showcase-tile { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-solid); }
.showcase-tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; transition: transform .4s ease; }
.showcase-tile:hover img { transform: scale(1.04); }
.showcase-cap { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: rgba(11,13,21,.7); backdrop-filter: blur(6px); border: 1px solid var(--line-2); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 12.5px; padding: 7px 13px; border-radius: var(--r-pill); }

/* device mockup */
.mockup { border-radius: var(--r-lg); overflow: hidden; background: var(--surface-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.mockup-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #0f111a; border-bottom: 1px solid var(--line); }
.mockup-bar .d { width: 11px; height: 11px; border-radius: 50%; background: #3a3d4d; }
.mockup-bar .d:nth-child(1){ background:#f0584f } .mockup-bar .d:nth-child(2){ background:#f0a84f } .mockup-bar .d:nth-child(3){ background:#43d17a }
.mockup-bar .t { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); }
.mockup img { width: 100%; height: auto; display: block; }

/* code window */
.code-window { background: var(--surface-solid); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); }
.code-body { background: #0d0f17; padding: 22px 24px; overflow-x: auto; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; color: #c7c9d6; }
.code-body pre { margin: 0; }
.tok-key{color:#ff9569}.tok-fn{color:#7fb3ff}.tok-str{color:#7fd6a8}.tok-com{color:#5a5d70;font-style:italic}.tok-num{color:#f0a84f}

/* chat / agent thread */
.chat-line { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; }
.chat-line + .chat-line { border-top: 1px solid var(--line); }
.chat-line img { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; }
.chat-meta { font-size: 12px; color: var(--text-mute); margin-bottom: 3px; }
.chat-meta b { color: #fff; font-weight: 600; }
.chat-bubble { color: var(--text-soft); font-size: 14px; line-height: 1.55; }

/* connector tile */
.connector { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; display: flex; align-items: center; gap: 14px; transition: transform .15s, border-color .15s; }
.connector:hover { transform: translateY(-3px); border-color: rgba(255,149,105,.4); }
.connector .logo { width: 44px; height: 44px; border-radius: 11px; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.connector .logo img { width: 24px; height: 24px; object-fit: contain; }
.connector h4 { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: #fff; }
.connector p { font-size: 13px; color: var(--text-mute); }

/* ---- Models / hexagons ---------------------------------------------------- */
.hex-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.hex { width: 132px; height: 150px; display: flex; align-items: center; justify-content: center; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); position: relative; }
.hex.grad { background: var(--gradient); }
.hex.dark { background: var(--surface-2); }
.hex img { width: 44%; height: 44%; object-fit: contain; }

.model-list { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; }
.model-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); transition: background .15s; }
.model-row:hover { background: rgba(255,255,255,.04); }
.model-row + .model-row { border-top: 1px solid var(--line); }
.model-ic { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; flex: none; }
.model-ic img { width: 20px; height: 20px; }
.model-name { font-family: var(--font-mono); font-size: 14.5px; color: #fff; }
.model-by { margin-left: auto; font-size: 12.5px; color: var(--text-mute); }
.model-chip { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 14px; color: #fff; }
.model-chip .blip { width: 8px; height: 8px; border-radius: 50%; background: var(--g1); }

/* ---- Stats / steps -------------------------------------------------------- */
.stat .num { font-family: var(--font-display); font-size: 52px; font-weight: 800; line-height: 1; }
.stat .lab { color: var(--text-mute); font-size: 14px; margin-top: 10px; }
.step-num { width: 40px; height: 40px; border-radius: var(--r-pill); background: var(--gradient); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* ---- Offer (500 tokens) --------------------------------------------------- */
.offer-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: var(--r-pill); background: var(--gradient-soft); border: 1px solid rgba(255,149,105,.4); color: var(--g1); font-family: var(--font-display); font-weight: 600; font-size: 13.5px; }
.offer-pill svg { width: 16px; height: 16px; }
.offer-card { display: flex; gap: 20px; align-items: center; background: var(--surface-2); border: 1px solid rgba(255,149,105,.28); border-radius: var(--r-lg); padding: 26px 30px; }
.offer-badge { flex: none; width: 58px; height: 58px; border-radius: var(--r-md); background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--glow); }
.offer-badge svg { width: 28px; height: 28px; }
.offer-card h3 { color: #fff; margin-bottom: 4px; }

/* ---- CTA bands ------------------------------------------------------------ */
.cta-grad { position: relative; overflow: hidden; background: var(--gradient); border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px); text-align: center; box-shadow: var(--glow); }
.cta-grad h2 { color: #fff; margin-bottom: 14px; }
.cta-grad p { color: rgba(255,255,255,.92); max-width: 580px; margin: 0 auto 26px; font-size: 17px; }
.cta-grad .btn-primary { background: #fff; color: #0B0D15; box-shadow: 0 12px 34px -12px rgba(0,0,0,.5); }
.cta-grad .btn-primary:hover { background: #f1f1f3; }
.cta-grad .btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.cta-grad .btn-ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.cta-grad .cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-grad .cta-fine { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.85); }
.cta-grad .offer-pill { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); color: #fff; margin: 0 auto 24px; }

/* ---- Footer --------------------------------------------------------------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer h5 { font-family: var(--font-display); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links a { display: block; color: var(--text-soft); font-size: 14.5px; padding: 6px 0; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-blurb { font-size: 14px; color: var(--text-soft); max-width: 300px; margin: 18px 0 22px; line-height: 1.65; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: var(--r-sm); background: rgba(255,255,255,.05); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; }
.footer-social a:hover { background: rgba(255,255,255,.1); border-color: var(--line-2); }
.footer-social img { width: 17px; height: 17px; filter: brightness(0) invert(1); opacity: .8; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-bottom p { font-size: 13px; color: var(--text-mute); }
.footer-made { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-mute); }
.footer-made img { height: 15px; filter: brightness(0) invert(.7); }

/* ---- Mobile sticky CTA ---------------------------------------------------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(11,13,21,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.mobile-cta .btn { width: 100%; }

/* ---- Logo marquee --------------------------------------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.marquee-track img { height: 28px; width: auto; opacity: .5; filter: grayscale(1) brightness(2.2); transition: opacity .2s, filter .2s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img:hover { opacity: 1; filter: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Reveal --------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal{opacity:1;transform:none;transition:none} html{scroll-behavior:auto} .marquee-track{animation:none} }

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

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 900px) {
  :root { --s-section: 76px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 40px 0 64px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nav-links, .nav-right { display: none; }
  .nav-inner { position: relative; }
  .nav-burger { display: inline-flex; position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
}
@media (max-width: 680px) {
  .container { padding: 0 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { width: 100%; }
  .offer-card { flex-direction: column; text-align: center; align-items: center; }
  .mobile-cta { display: block; opacity: 0; pointer-events: none; transform: translateY(100%); transition: opacity .25s, transform .25s; }
  .mobile-cta.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
  body.has-mobile-cta { padding-bottom: 86px; }
  .section-head { margin-bottom: 36px; }
}

/* ---- Model catalog -------------------------------------------------------- */
.model-catalog { display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px; align-items: start; }
.col-stack { display: grid; gap: 22px; }
.cat-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cat-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; }
.cat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.cat-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--gradient-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.cat-ic svg { width: 21px; height: 21px; }
.cat-title { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 17px; letter-spacing: -.01em; }
.cat-count { margin-left: auto; font-size: 12px; color: var(--text-mute); font-family: var(--font-display); font-weight: 600; }
.cat-row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; }
.cat-row + .cat-row { border-top: 1px solid var(--line); }
.cat-row .blip { width: 7px; height: 7px; border-radius: 50%; background: var(--gradient); flex: none; }
.cat-row .nm { font-family: var(--font-mono); font-size: 14px; color: #fff; }
.cat-row .pv { margin-left: auto; font-size: 12.5px; color: var(--text-mute); }
@media (max-width: 900px) { .model-catalog { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .cat-2 { grid-template-columns: 1fr; } }

/* ---- Hero honeycomb infographic ------------------------------------------- */
.infographic { position: relative; overflow: hidden; background: var(--surface-solid); border-radius: var(--r-xl); padding: 46px 28px 30px; }
.infographic .glow { width: 360px; height: 360px; left: 50%; top: 44%; transform: translate(-50%,-50%); opacity: .6; }
.honeycomb { position: relative; width: 300px; height: 300px; margin: 0 auto; z-index: 1; }
.hc { position: absolute; left: 50%; top: 50%; width: 104px; height: 90px; display: flex; align-items: center; justify-content: center; clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); background: #1c1e2b; }
.hc img { width: 42px; height: 42px; object-fit: contain; }
.hc .hc-txt { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 19px; letter-spacing: .02em; }
.hc.center { background: var(--gradient); filter: drop-shadow(0 10px 26px rgba(221,52,77,.55)); transform: translate(-50%,-50%); z-index: 2; }
.hc.center svg { width: 46px; height: 46px; }
.hc.n  { transform: translate(-50%, calc(-50% - 97px)); }
.hc.s  { transform: translate(-50%, calc(-50% + 97px)); }
.hc.ne { transform: translate(calc(-50% + 84px), calc(-50% - 48px)); }
.hc.nw { transform: translate(calc(-50% - 84px), calc(-50% - 48px)); }
.hc.se { transform: translate(calc(-50% + 84px), calc(-50% + 48px)); }
.hc.sw { transform: translate(calc(-50% - 84px), calc(-50% + 48px)); }
.ic-cap { position: relative; z-index: 1; text-align: center; margin-top: 28px; }
.ic-cap .t { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 20px; letter-spacing: -.01em; }
.ic-cap .s { color: var(--text-soft); font-size: 14px; margin-top: 6px; }
@media (max-width: 480px) { .honeycomb { transform: scale(.84); } .infographic { padding: 30px 8px 20px; } }

/* ---- Download platform cards (polish) ------------------------------------- */
.plat-card { transition: transform .2s, border-color .2s, box-shadow .2s; }
.plat-card:hover { transform: translateY(-5px); border-color: rgba(255,149,105,.45); box-shadow: var(--shadow); }
.plat-card .plat-img { height: 150px; width: auto; object-fit: contain; margin: 0 auto 18px; }
.plat-card.featured { position: relative; }
@media (min-width: 900px) { .plat-card.featured { transform: scale(1.04); } .plat-card.featured:hover { transform: scale(1.04) translateY(-5px); } }

/* ---- Hero prompt box + chips + powered-by -------------------------------- */
.prompt-box { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 7px 7px 7px 20px; max-width: 540px; transition: border-color .15s, box-shadow .15s; }
.prompt-box:focus-within { border-color: rgba(255,149,105,.6); box-shadow: 0 0 0 4px rgba(255,149,105,.12); }
.prompt-input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; font: inherit; font-size: 15.5px; padding: 8px 0; }
.prompt-input::placeholder { color: var(--text-mute); }
.prompt-input:focus { outline: none; }
.prompt-go { height: 46px; padding: 0 20px; flex: none; }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; max-width: 560px; }
.chip { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--text-soft); background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 14px; transition: color .15s, border-color .15s, background .15s; }
.chip:hover { color: #fff; border-color: rgba(255,149,105,.5); background: rgba(255,149,105,.08); }
.powered { display: flex; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.powered .lbl { font-family: var(--font-display); font-weight: 600; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
.powered .marks { display: flex; align-items: center; gap: 16px; }
.powered .marks img { height: 19px; width: auto; opacity: .68; transition: opacity .15s; }
.powered .marks img:hover { opacity: 1; }

/* ---- Audience segmentation strip ------------------------------------------ */
.seg-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.seg-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 20px; transition: transform .18s, border-color .18s, box-shadow .18s; }
.seg-card:hover { transform: translateY(-4px); border-color: rgba(255,149,105,.45); box-shadow: var(--shadow); }
.seg-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--gradient-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.seg-ic svg { width: 22px; height: 22px; }
.seg-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #fff; }
.seg-card p { font-size: 13.5px; color: var(--text-soft); line-height: 1.5; flex: 1; }
.seg-card .seg-go { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--g1); display: inline-flex; align-items: center; gap: 5px; transition: gap .15s; }
.seg-card:hover .seg-go { gap: 9px; }
@media (max-width: 1024px) { .seg-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .seg-grid { grid-template-columns: 1fr; } }
