/* PackGuru — design system from zip, with dark + light theme tokens */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif&family=JetBrains+Mono:wght@400;500&family=Geist:wght@300;400;500;600;700&display=swap');

/* ─── Tokens ─── */
:root, [data-theme="dark"] {
  --bg-0: #07060d;
  --bg-1: #0c0a17;
  --bg-2: #110e1f;
  --panel: #14122a;
  --panel-2: #1b1936;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #ffffff;
  --ink-2: #c9c5e3;
  --ink-3: #8b88a8;
  --ink-4: #5a5878;
  --accent: #a78bfa;
  --accent-2: #67e8f9;
  --accent-3: #f472b6;
  --warn: #fbbf24;
  --good: #4ade80;
  --nav-bg: rgba(7, 6, 13, 0.55);
  --bg-stage:
    radial-gradient(60% 40% at 80% -10%, rgba(167, 139, 250, 0.35) 0%, transparent 60%),
    radial-gradient(50% 35% at 10% 0%, rgba(103, 232, 249, 0.18) 0%, transparent 65%),
    radial-gradient(40% 30% at 50% 110%, rgba(244, 114, 182, 0.18) 0%, transparent 70%),
    var(--bg-0);
  --grid-line: rgba(255,255,255,0.04);
  --noise-blend: overlay;
  --noise-opacity: 0.4;
}

[data-theme="light"] {
  --bg-0: #ffffff;
  --bg-1: #fafaff;
  --bg-2: #f4f3fb;
  --panel: #f8f7fd;
  --panel-2: #efedf8;
  --line: rgba(20, 18, 42, 0.08);
  --line-2: rgba(20, 18, 42, 0.16);
  --ink: #14122a;
  --ink-2: #3b3760;
  --ink-3: #6a6789;
  --ink-4: #a3a1bd;
  --accent: #7c3aed;
  --accent-2: #0891b2;
  --accent-3: #db2777;
  --warn: #d97706;
  --good: #16a34a;
  --nav-bg: rgba(255, 255, 255, 0.75);
  --bg-stage:
    radial-gradient(60% 40% at 80% -10%, rgba(124, 58, 237, 0.10) 0%, transparent 60%),
    radial-gradient(50% 35% at 10% 0%, rgba(8, 145, 178, 0.06) 0%, transparent 65%),
    radial-gradient(40% 30% at 50% 110%, rgba(219, 39, 119, 0.05) 0%, transparent 70%),
    var(--bg-0);
  --grid-line: rgba(20, 18, 42, 0.05);
  --noise-blend: multiply;
  --noise-opacity: 0.04;
}

:root {
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── Background atmosphere ─── */
.bg-stage   { position: fixed; inset: 0; pointer-events: none; z-index: 0; background: var(--bg-stage); }
.bg-grid    { position: fixed; inset: 0; pointer-events: none; z-index: 0;
              background-image:
                linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
                linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
              background-size: 96px 96px;
              mask-image: radial-gradient(80% 60% at 50% 30%, black 0%, transparent 90%); }
.bg-noise   { position: fixed; inset: 0; pointer-events: none; z-index: 0;
              opacity: var(--noise-opacity); mix-blend-mode: var(--noise-blend);
              background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

.shell { position: relative; z-index: 1; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ─── Type ─── */
.eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 500;
           letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.eyebrow .num { color: var(--ink-4); margin-right: 8px; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; }

.display { font-family: var(--sans); font-size: clamp(48px, 6.4vw, 96px);
           line-height: 0.98; letter-spacing: -0.035em; font-weight: 500; }
.display .it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.display .accent { color: var(--accent); }

.h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; }
.h2 .it { font-family: var(--serif); font-style: italic; font-weight: 400; }
.h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
.lead { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--ink-3); }
.tiny  { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); text-transform: uppercase; }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; gap: 10px;
       padding: 14px 22px; border-radius: 999px;
       border: 1px solid var(--line-2);
       background: rgba(127, 127, 160, 0.04);
       color: var(--ink); font-size: 14px; font-weight: 500;
       letter-spacing: -0.01em;
       transition: background 0.18s, border-color 0.18s, transform 0.18s; }
.btn:hover { background: rgba(127, 127, 160, 0.08); border-color: var(--line-2); transform: translateY(-1px); }
[data-theme="light"] .btn { background: rgba(124, 58, 237, 0.04); border-color: rgba(124, 58, 237, 0.20); color: var(--ink); }
[data-theme="light"] .btn:hover { background: rgba(124, 58, 237, 0.08); border-color: rgba(124, 58, 237, 0.35); }

.btn-primary {
  background: linear-gradient(135deg, #2a1f4d 0%, #3d1f3a 50%, #1a1230 100%);
  color: #ffffff;
  border-color: rgba(255,255,255,0.14);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(123, 106, 243, 0.3),
              0 12px 32px -10px rgba(0, 0, 0, 0.7),
              inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover { background: linear-gradient(135deg, #34276b 0%, #4d2748 50%, #221638 100%); border-color: rgba(255,255,255,0.22); }

[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #6d28d9 100%);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.4),
              0 12px 32px -10px rgba(124, 58, 237, 0.4),
              inset 0 1px 0 rgba(255,255,255,0.25);
}
[data-theme="light"] .btn-primary:hover { background: linear-gradient(135deg, #6d28d9 0%, #9333ea 50%, #5b21b6 100%); }

.btn-ghost { background: transparent; border-color: transparent; padding-left: 4px; padding-right: 4px; }
.btn-ghost:hover { background: transparent; }
.btn-ghost .arrow { transition: transform 0.2s; }
.btn-ghost:hover .arrow { transform: translateX(4px); }

/* ─── Card primitive ─── */
.card { background: linear-gradient(180deg, rgba(127,127,160,0.04) 0%, rgba(127,127,160,0.015) 100%);
        border: 1px solid var(--line); border-radius: 20px; position: relative; overflow: hidden; }
.card-inner { padding: 28px; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
                background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0) 25%);
                pointer-events: none; }
[data-theme="light"] .card::before { background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0) 25%); }

/* ─── Section spacing ─── */
.section { padding: 120px 0; position: relative; }
@media (max-width: 720px) { .section { padding: 80px 0; } }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 56px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }

/* ─── Nav ─── */
.nav { position: sticky; top: 0; z-index: 50;
       backdrop-filter: blur(18px) saturate(140%);
       -webkit-backdrop-filter: blur(18px) saturate(140%);
       background: var(--nav-bg);
       border-bottom: 1px solid var(--line); }
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo  { height: 38px; display: block; }
.nav-mark  { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 13px; color: var(--ink-2); letter-spacing: -0.01em; transition: color 0.15s; }
.nav-links a:hover, .nav-links a[data-active="true"] { color: var(--ink); }
.nav-cta { font-size: 13px; padding: 9px 14px; border-radius: 999px;
           border: 1px solid var(--line-2); background: rgba(127,127,160,0.04); color: var(--ink); }
[data-theme="light"] .nav-cta { background: rgba(124, 58, 237, 0.06); border-color: rgba(124, 58, 237, 0.22); }
[data-theme="light"] .nav-cta:hover { background: rgba(124, 58, 237, 0.10); border-color: rgba(124, 58, 237, 0.4); }
.nav-right { display: flex; align-items: center; gap: 12px; }
@media (max-width: 880px) { .nav-links { display: none; } }

/* ─── Theme toggle ─── */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center;
                width: 32px; height: 32px; border-radius: 999px;
                border: 1px solid var(--line-2); background: transparent;
                color: var(--ink-2); cursor: pointer; transition: all 0.15s; }
.theme-toggle:hover { color: var(--ink); border-color: var(--accent); }
.theme-toggle svg { width: 14px; height: 14px; }
[data-theme="dark"]  .theme-toggle .icon-sun  { display: inline; }
[data-theme="dark"]  .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: inline; }

/* ─── Trust strip ─── */
.trust-strip { display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
               font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
               color: var(--ink-3); text-transform: uppercase; }
.trust-strip .dot { width: 4px; height: 4px; border-radius: 999px; background: var(--ink-4); }

/* ─── Stat strip ─── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
             border: 1px solid var(--line); border-radius: 20px;
             background: linear-gradient(180deg, rgba(127,127,160,0.025), rgba(127,127,160,0));
             overflow: hidden; }
.stat { padding: 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num   { font-size: clamp(36px, 3.2vw, 48px); letter-spacing: -0.03em; line-height: 1; font-weight: 500; }
.stat .label { margin-top: 12px; font-family: var(--mono); font-size: 11px;
               letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 880px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ─── Feature grid ─── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }

.feature { padding: 28px; border: 1px solid var(--line); border-radius: 18px;
           background: linear-gradient(180deg, rgba(127,127,160,0.035), rgba(127,127,160,0.01));
           display: flex; flex-direction: column; gap: 16px; min-height: 240px;
           transition: border-color 0.2s, transform 0.2s; color: var(--ink); }
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
[data-theme="light"] .feature { background: #ffffff; box-shadow: 0 1px 3px rgba(20,18,42,0.04); }
[data-theme="light"] .feature:hover { background: #ffffff; border-color: rgba(124, 58, 237, 0.25); box-shadow: 0 12px 40px -12px rgba(124, 58, 237, 0.15); }
.feature .icon { width: 36px; height: 36px; border-radius: 10px;
                 display: flex; align-items: center; justify-content: center;
                 background: rgba(167, 139, 250, 0.15);
                 border: 1px solid rgba(167, 139, 250, 0.3); color: var(--accent); }
[data-theme="light"] .feature .icon { background: rgba(124, 58, 237, 0.10); border-color: rgba(124, 58, 237, 0.25); }
.feature h3 { font-size: 18px; }
.feature p  { color: var(--ink-3); font-size: 14px; line-height: 1.55; margin: 0; }

/* ─── Problem cards ─── */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .problem-grid { grid-template-columns: 1fr; } }
.problem { padding: 32px; border: 1px solid var(--line); border-radius: 18px;
           background: rgba(127,127,160,0.02);
           display: flex; flex-direction: column; gap: 18px; }
[data-theme="light"] .problem { background: #ffffff; box-shadow: 0 1px 3px rgba(20,18,42,0.04); }
[data-theme="light"] .maint    { background: #ffffff; box-shadow: 0 1px 3px rgba(20,18,42,0.04); }
.problem .num { font-family: var(--mono); font-size: 11px; color: var(--ink-4);
                letter-spacing: 0.1em; text-transform: uppercase; }
.problem h3 { font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; }
.problem p  { color: var(--ink-3); font-size: 14px; line-height: 1.6; margin: 0; }

/* ─── Two-up ─── */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .two-up { grid-template-columns: 1fr; gap: 32px; } }

/* ─── Mock surfaces ─── */
.mock { background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
        border: 1px solid var(--line-2); border-radius: 20px; position: relative; overflow: hidden;
        box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05); }
.mock-chrome { display: flex; align-items: center; gap: 8px; padding: 14px 18px;
               border-bottom: 1px solid var(--line);
               font-family: var(--mono); font-size: 11px; color: var(--ink-3);
               letter-spacing: 0.04em; }
.mock-chrome .dots { display: flex; gap: 6px; margin-right: 10px; }
.mock-chrome .dots span { width: 9px; height: 9px; border-radius: 999px; background: rgba(127,127,160,0.25); }

/* ─── Hero ─── */
.hero { padding: 120px 0 60px; position: relative; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; overflow: visible; }
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid > div:last-child { width: 100% !important; margin: 0 !important; }
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-meta { display: flex; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta .item { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-3); }
.hero-meta .item::before { content: ""; width: 6px; height: 6px; border-radius: 999px;
                           background: var(--good); box-shadow: 0 0 10px var(--good); }

/* Generic placeholder strip */
.ph-strip { background-image: repeating-linear-gradient(135deg, rgba(127,127,160,0.05) 0 8px, transparent 8px 16px);
            border: 1px dashed var(--line-2); border-radius: 8px;
            display: flex; align-items: center; justify-content: center;
            font-family: var(--mono); font-size: 10px; color: var(--ink-4);
            letter-spacing: 0.08em; text-transform: uppercase; }

/* ─── Spotlight banner ─── */
.spotlight { border-radius: 28px; padding: 56px;
             background:
               radial-gradient(80% 100% at 100% 0%, rgba(244, 114, 182, 0.35) 0%, transparent 60%),
               radial-gradient(70% 90% at 0% 100%, rgba(167, 139, 250, 0.4) 0%, transparent 60%),
               linear-gradient(180deg, #1a1538 0%, #0e0a23 100%);
             border: 1px solid rgba(167, 139, 250, 0.25); position: relative; overflow: hidden; color: #fff; }
[data-theme="light"] .spotlight {
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(219, 39, 119, 0.18) 0%, transparent 60%),
    radial-gradient(70% 90% at 0% 100%, rgba(124, 58, 237, 0.20) 0%, transparent 60%),
    linear-gradient(180deg, #f1ecff 0%, #faf7ff 100%);
  border-color: rgba(124, 58, 237, 0.25); color: var(--ink);
}

/* ─── WhatsApp mock ─── */
.wa { width: 100%; border-radius: 22px; background: #0a0a0e;
      border: 1px solid var(--line-2); overflow: hidden; font-size: 13px; color: #fff; }
.wa-head { background: #1f2c33; padding: 14px 16px;
           display: flex; align-items: center; gap: 12px;
           border-bottom: 1px solid rgba(255,255,255,0.05); }
.wa-avatar { width: 36px; height: 36px; border-radius: 999px;
             background: linear-gradient(135deg, #a78bfa, #67e8f9);
             display: flex; align-items: center; justify-content: center;
             font-weight: 600; color: #0a0814; font-size: 13px; }
.wa-name { font-size: 14px; font-weight: 500; }
.wa-sub  { font-size: 11px; color: #8696a0; }
.wa-body { padding: 18px; background: #0b141a;
           background-image:
             radial-gradient(circle at 20% 30%, rgba(167,139,250,0.06) 0%, transparent 40%),
             radial-gradient(circle at 80% 70%, rgba(103,232,249,0.05) 0%, transparent 40%);
           display: flex; flex-direction: column; gap: 10px; min-height: 360px; }
.wa-msg { max-width: 78%; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.wa-msg.them { background: #202c33; align-self: flex-start; border-bottom-left-radius: 4px; }
.wa-msg.me   { background: #005c4b; align-self: flex-end; border-bottom-right-radius: 4px; }
.wa-msg .time { font-size: 10px; color: rgba(255,255,255,0.5); margin-left: 8px; }
.wa-video { width: 240px; height: 130px; border-radius: 8px; background: #000;
            background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 8px, transparent 8px 16px);
            display: flex; align-items: center; justify-content: center;
            font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.5);
            margin-bottom: 4px; }
.wa-pill { display: inline-flex; gap: 6px; align-items: center;
           padding: 4px 8px; border-radius: 999px;
           background: rgba(244, 114, 182, 0.18); color: #ffadd6;
           font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; margin-bottom: 6px; }
.wa-confidence { display: inline-flex; gap: 6px; align-items: center;
                 font-family: var(--mono); font-size: 10px; color: #6ee7a8; margin-top: 6px; }

/* ─── Roadmap ─── */
.roadmap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
@media (max-width: 1080px) { .roadmap { grid-template-columns: 1fr; } }
.phase { padding: 28px 24px; border: 1px solid var(--line); border-right: 0;
         background: rgba(127,127,160,0.02);
         display: flex; flex-direction: column; gap: 14px; position: relative; }
.phase:first-child { border-radius: 18px 0 0 18px; }
.phase:last-child  { border-right: 1px solid var(--line); border-radius: 0 18px 18px 0; }
@media (max-width: 1080px) {
  .phase { border-right: 1px solid var(--line); }
  .phase:first-child { border-radius: 18px 18px 0 0; }
  .phase:last-child  { border-radius: 0 0 18px 18px; border-top: 0; }
  .phase + .phase    { border-top: 0; }
}
.phase .week  { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.08em; }
.phase .name  { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.phase .desc  { font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.phase .step-num { font-family: var(--mono); font-size: 10px; color: var(--ink-4); }

/* ─── Roberta robot ─── */
.roberta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 980px) { .roberta-grid { grid-template-columns: 1fr; } }

.mode-list { display: flex; flex-direction: column; gap: 0;
             border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.mode { padding: 22px 24px;
        display: grid; grid-template-columns: 60px 1fr; gap: 18px;
        border-bottom: 1px solid var(--line); align-items: start;
        transition: background 0.2s; }
.mode:last-child { border-bottom: 0; }
.mode:hover { background: rgba(127,127,160,0.02); }
.mode .num  { font-family: var(--serif); font-style: italic; font-size: 32px; line-height: 1; color: var(--accent); }
.mode h4    { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.mode p     { font-size: 13px; color: var(--ink-3); line-height: 1.55; margin: 0; }
.mode .out  { font-family: var(--mono); font-size: 10.5px; color: var(--accent-2);
              margin-top: 8px; letter-spacing: 0.04em; }

/* ─── Knowledge platform mock ─── */
.km { width: 100%; border-radius: 18px;
      border: 1px solid var(--line-2);
      background: linear-gradient(180deg, var(--panel), var(--bg-1));
      overflow: hidden; }
.km-head { padding: 16px 20px; border-bottom: 1px solid var(--line);
           display: flex; gap: 12px; align-items: center; }
.km-head .lang { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.km-head .lang span { font-family: var(--mono); font-size: 10px; padding: 3px 8px; border-radius: 999px;
                      background: rgba(127,127,160,0.05); border: 1px solid var(--line); color: var(--ink-3); }
.km-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; }
.km-video { background: #000;
            background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 10px, transparent 10px 20px);
            aspect-ratio: 16/10; position: relative;
            display: flex; align-items: center; justify-content: center;
            border-right: 1px solid var(--line); }
.km-video .play { width: 56px; height: 56px; border-radius: 999px;
                  background: rgba(255,255,255,0.92); color: #0a0814;
                  display: flex; align-items: center; justify-content: center;
                  font-size: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.6); }
.km-video .timecode { position: absolute; bottom: 12px; left: 12px;
                      font-family: var(--mono); font-size: 10px;
                      background: rgba(0,0,0,0.6); padding: 4px 8px; border-radius: 4px;
                      color: #fff; letter-spacing: 0.04em; }
.km-quiz { padding: 20px; }
.km-quiz .q   { font-size: 13px; color: var(--ink-2); margin-bottom: 14px; line-height: 1.45; }
.km-quiz .opt { padding: 10px 12px; border: 1px solid var(--line);
                border-radius: 10px; font-size: 12.5px; margin-bottom: 8px;
                display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.km-quiz .opt.correct { border-color: rgba(74, 222, 128, 0.35); background: rgba(74,222,128,0.07); color: var(--good); }
.km-quiz .opt .marker { width: 18px; height: 18px; border-radius: 999px;
                        border: 1px solid var(--line-2);
                        font-family: var(--mono); font-size: 10px;
                        display: flex; align-items: center; justify-content: center;
                        color: var(--ink-3); }
.km-quiz .opt.correct .marker { background: #4ade80; border-color: #4ade80; color: #0a0814; }
@media (max-width: 720px) { .km-body { grid-template-columns: 1fr; } .km-video { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ─── AI report ─── */
.report { border-radius: 18px; border: 1px solid var(--line-2);
          background: linear-gradient(180deg, var(--panel), var(--bg-1));
          overflow: hidden; }
.report-head { padding: 16px 20px; border-bottom: 1px solid var(--line);
               display: flex; align-items: center; gap: 12px; }
.report-head .stamp { font-family: var(--mono); font-size: 10px;
                      letter-spacing: 0.08em; color: var(--ink-4); text-transform: uppercase;
                      margin-left: auto; }
.report-section { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.report-section:last-child { border-bottom: 0; }
.report-section .label { font-family: var(--mono); font-size: 10px;
                         letter-spacing: 0.1em; color: var(--ink-4); text-transform: uppercase;
                         margin-bottom: 10px; }
.report .bar-row { display: grid; grid-template-columns: 90px 1fr 60px; gap: 12px;
                   align-items: center; margin-bottom: 8px; font-size: 12px; color: var(--ink-2); }
.report .bar-row .name { color: var(--ink-2); }
.report .bar-row .num  { font-family: var(--mono); color: var(--ink-3); text-align: right; }
.report .bar  { height: 6px; border-radius: 999px; background: rgba(127,127,160,0.08); overflow: hidden; }
.report .bar > i { display: block; height: 100%; border-radius: 999px;
                   background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.report .recs { display: flex; flex-direction: column; gap: 10px; }
.report .rec  { display: grid; grid-template-columns: 24px 1fr; gap: 12px;
                font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.report .rec .n { font-family: var(--mono); font-size: 11px; color: var(--accent); margin-top: 2px; }

/* ─── Maintenance ─── */
.maint-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 880px) { .maint-grid { grid-template-columns: 1fr; } }
.maint { padding: 28px; border: 1px solid var(--line); border-radius: 18px;
         background: rgba(127,127,160,0.02);
         display: flex; flex-direction: column; gap: 12px; }
.maint h4 { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.maint p  { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; margin: 0; }
.maint .pill { align-self: flex-start;
               font-family: var(--mono); font-size: 10px; padding: 4px 10px; border-radius: 999px;
               background: rgba(167,139,250,0.12); color: var(--accent);
               letter-spacing: 0.06em; text-transform: uppercase; }
[data-theme="light"] .maint .pill { background: rgba(124, 58, 237, 0.10); }
.maint .takeaway { font-size: 12.5px; line-height: 1.5; color: var(--accent-2);
                   border-left: 2px solid rgba(103, 232, 249, 0.3);
                   padding-left: 12px; font-style: italic; }
[data-theme="light"] .maint .takeaway { border-left-color: rgba(8, 145, 178, 0.4); }

/* ─── Case study ─── */
.case { border-radius: 24px; padding: 48px;
        background:
          radial-gradient(60% 80% at 100% 0%, rgba(244, 114, 182, 0.25) 0%, transparent 60%),
          radial-gradient(60% 80% at 0% 100%, rgba(103, 232, 249, 0.18) 0%, transparent 60%),
          linear-gradient(180deg, #1a1538 0%, #0e0a23 100%);
        border: 1px solid rgba(167, 139, 250, 0.25); color: #fff; }
[data-theme="light"] .case {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(219, 39, 119, 0.10) 0%, transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(8, 145, 178, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #f6f1ff 0%, #fdfbff 100%);
  color: var(--ink); border-color: rgba(124, 58, 237, 0.20);
}

/* ─── Roberta ─── */
.roberta-card { border-radius: 22px; border: 1px solid var(--line-2);
                background: linear-gradient(180deg, var(--panel), var(--bg-1));
                padding: 32px; position: relative; overflow: hidden; }
.roberta-art  { aspect-ratio: 4/5; border-radius: 18px;
                background: radial-gradient(60% 60% at 50% 30%, rgba(167,139,250,0.22) 0%, transparent 70%), var(--bg-1);
                border: 1px dashed var(--line-2);
                display: flex; align-items: center; justify-content: center;
                position: relative; overflow: hidden; }
[data-theme="light"] .roberta-art { background: radial-gradient(60% 60% at 50% 30%, rgba(124, 58, 237, 0.10) 0%, transparent 70%), var(--bg-2); }
.roberta-cap  { position: absolute; bottom: 12px; left: 12px;
                font-family: var(--mono); font-size: 10px; color: var(--ink-4);
                letter-spacing: 0.08em; text-transform: uppercase; }

/* ─── Footer ─── */
.footer { border-top: 1px solid var(--line); padding: 80px 0 40px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 { font-family: var(--mono); font-size: 11px;
             letter-spacing: 0.1em; color: var(--ink-4); text-transform: uppercase;
             margin: 0 0 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer li a { font-size: 14px; color: var(--ink-2); transition: color 0.15s; }
.footer li a:hover { color: var(--ink); }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
               display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
               font-family: var(--mono); font-size: 11px; color: var(--ink-4);
               letter-spacing: 0.06em; text-transform: uppercase; }

/* ─── Final CTA ─── */
.final-cta { border-radius: 28px; padding: 80px 56px; text-align: center;
             background:
               radial-gradient(60% 90% at 50% 0%, rgba(167, 139, 250, 0.4) 0%, transparent 70%),
               radial-gradient(80% 60% at 50% 100%, rgba(244, 114, 182, 0.25) 0%, transparent 70%),
               linear-gradient(180deg, #1c1638 0%, #0a0716 100%);
             border: 1px solid rgba(167, 139, 250, 0.3); position: relative; overflow: hidden; color: #fff; }
[data-theme="light"] .final-cta {
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(124, 58, 237, 0.18) 0%, transparent 70%),
    radial-gradient(80% 60% at 50% 100%, rgba(219, 39, 119, 0.10) 0%, transparent 70%),
    linear-gradient(180deg, #f1ecff 0%, #fdfbff 100%);
  border-color: rgba(124, 58, 237, 0.25); color: var(--ink);
}

/* ─── Tag chip ─── */
.tag { display: inline-flex; align-items: center; gap: 6px;
       padding: 6px 12px; border-radius: 999px;
       background: rgba(167, 139, 250, 0.12);
       border: 1px solid rgba(167, 139, 250, 0.25);
       color: #d4c4ff;
       font-family: var(--mono); font-size: 10.5px;
       letter-spacing: 0.06em; text-transform: uppercase; }
[data-theme="light"] .tag { background: rgba(124, 58, 237, 0.10); border-color: rgba(124, 58, 237, 0.25); color: #6d28d9; }

/* ─── Live dot ─── */
.live-dot { width: 6px; height: 6px; border-radius: 999px;
            background: var(--good); box-shadow: 0 0 8px var(--good);
            animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.8); }
}

/* ─── Hero stack pieces ─── */
.hero-stack { position: relative; height: 540px; }
.hero-stack > * { position: absolute; }
.hero-card { border-radius: 18px; border: 1px solid var(--line-2);
             background: linear-gradient(180deg, var(--panel), var(--panel-2));
             box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05);
             overflow: hidden; }

/* ─── Form ─── */
input, textarea, select {
  background: rgba(127,127,160,0.06) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit; font-size: 14px;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent) !important; }
input::placeholder, textarea::placeholder { color: var(--ink-4) !important; }

/* ─── Section divider ─── */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); margin: 0; }

/* ─── Small util ─── */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 12px; }
.gap-sm { gap: 6px; } .gap-md { gap: 16px; } .gap-lg { gap: 24px; }

/* ─── OEM Partner Marquee ─── */
.oem-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 12px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.oem-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: oem-scroll 50s linear infinite;
}
.oem-marquee:hover .oem-track { animation-play-state: paused; }
@keyframes oem-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% / 3)); }
}
.oem-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 56px;
  height: 80px;
}
.oem-logo img {
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.85);
  transition: filter 0.2s;
}
.oem-logo:hover img { filter: brightness(0) invert(1) opacity(1); }
[data-theme="light"] .oem-logo img { filter: brightness(0) opacity(0.45); }
[data-theme="light"] .oem-logo:hover img { filter: brightness(0) opacity(0.7); }
.oem-role { display: none; }
@media (max-width: 760px) {
  .oem-logo { padding: 0 32px; height: 64px; }
  .oem-logo img { height: 42px; max-width: 160px; }
}
