/* Lumen website – same tokens as the app (apps/web/src/styles.css). */
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f7f7f5; --surface: #ffffff; --surface-2: #f2f2ef; --surface-3: #e8e8e4;
  --ink: #0e0e11; --ink-2: #4a4a53; --ink-3: #85858e; --line: #e6e6e2; --line-2: #d6d6d1;
  --accent: #5145f0; --accent-2: #4337d8; --accent-ink: #ffffff; --accent-soft: #eeedfe; --accent-line: #c9c5fb;
  --amber: #f59e0b; --amber-soft: #fef5e4; --ok: #0f9d58; --ok-soft: #e7f6ee; --bad: #e5484d; --bad-soft: #fdecec;
  --shadow-2: 0 1px 2px rgb(14 14 17 / 0.04), 0 8px 28px -8px rgb(14 14 17 / 0.12);
  --shadow-3: 0 2px 6px rgb(14 14 17 / 0.06), 0 28px 64px -16px rgb(14 14 17 / 0.28);
  --glow: radial-gradient(60% 60% at 50% 40%, rgb(255 194 74 / 0.30), transparent 70%);
  --font: 'Inter Variable', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --r: 14px; --r-lg: 20px; --r-xl: 28px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0b0b0d; --surface: #141417; --surface-2: #1b1b1f; --surface-3: #26262b;
    --ink: #f3f3f5; --ink-2: #b6b6be; --ink-3: #7d7d87; --line: #232328; --line-2: #313137;
    --accent: #8279ff; --accent-2: #9a92ff; --accent-ink: #0b0b0d; --accent-soft: #1e1c3d; --accent-line: #3c3780;
    --amber: #fbbf24; --amber-soft: #2a2213; --ok: #34d17f; --ok-soft: #10291c; --bad: #ff6b6f; --bad-soft: #2e1415;
    --shadow-2: 0 0 0 1px rgb(255 255 255 / 0.03), 0 12px 32px -10px rgb(0 0 0 / 0.6);
    --shadow-3: 0 0 0 1px rgb(255 255 255 / 0.04), 0 32px 80px -16px rgb(0 0 0 / 0.8);
    --glow: radial-gradient(60% 60% at 50% 40%, rgb(255 194 74 / 0.16), transparent 70%);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0b0b0d; --surface: #141417; --surface-2: #1b1b1f; --surface-3: #26262b;
  --ink: #f3f3f5; --ink-2: #b6b6be; --ink-3: #7d7d87; --line: #232328; --line-2: #313137;
  --accent: #8279ff; --accent-2: #9a92ff; --accent-ink: #0b0b0d; --accent-soft: #1e1c3d; --accent-line: #3c3780;
  --amber: #fbbf24; --amber-soft: #2a2213; --ok: #34d17f; --ok-soft: #10291c; --bad: #ff6b6f; --bad-soft: #2e1415;
  --shadow-2: 0 0 0 1px rgb(255 255 255 / 0.03), 0 12px 32px -10px rgb(0 0 0 / 0.6);
  --shadow-3: 0 0 0 1px rgb(255 255 255 / 0.04), 0 32px 80px -16px rgb(0 0 0 / 0.8);
  --glow: radial-gradient(60% 60% at 50% 40%, rgb(255 194 74 / 0.16), transparent 70%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.55; font-size: 16px;
  font-feature-settings: 'cv11', 'ss01', 'ss03'; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.028em; font-weight: 680; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

main { overflow-x: clip; } /* decorative glows must not cause horizontal scroll */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: .9375rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { text-decoration: none; color: var(--ink-2); font-size: .875rem; font-weight: 600; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; }
.lang:hover { color: var(--ink); border-color: var(--ink-3); }
@media (max-width: 820px) { .nav-links { display: none; } }
@media (max-width: 420px) { .nav .btn-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font: inherit; font-weight: 620; font-size: 1rem; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s var(--ease), background .15s, box-shadow .2s, border-color .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -10px var(--accent); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .9375rem; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .8125rem; font-weight: 620; border: 1px solid var(--accent-line); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); margin: 20px 0 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #ff9a1f, #f5a524 40%, var(--accent) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.1875rem; color: var(--ink-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { margin-top: 16px; color: var(--ink-3); font-size: .875rem; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.fine span { display: inline-flex; align-items: center; gap: 6px; }
.fine svg { width: 15px; height: 15px; color: var(--ok); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 44px; } }
@media (max-width: 560px) { .cta-row .btn { flex: 1 1 100%; } .lead { font-size: 1.0625rem; } }

/* Demo card – a real mini problem */
.demo { position: relative; }
.demo::before { content: ''; position: absolute; inset: -18% -12%; background: var(--glow); z-index: 0; pointer-events: none; }
.card { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-3); padding: 26px; }
.card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.chip { font-size: .75rem; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 9px; border-radius: 999px; }
.progress { flex: 1; display: flex; gap: 4px; }
.progress i { flex: 1; height: 5px; border-radius: 3px; background: var(--surface-3); }
.progress i.on { background: var(--accent); }
.q { font-size: 1.1875rem; font-weight: 620; letter-spacing: -0.015em; margin-bottom: 18px; }
.q b { color: var(--accent); }
.bar { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.seg { aspect-ratio: 1 / 1.35; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface-2); cursor: pointer; transition: background .18s var(--ease), border-color .18s, transform .18s var(--spring, var(--ease)); padding: 0; }
.seg:hover { border-color: var(--accent-line); }
.seg[aria-pressed='true'] { background: linear-gradient(160deg, #ffd45e, #ff9a1f); border-color: #e8860f; transform: translateY(-2px); }
.count { margin-top: 12px; color: var(--ink-3); font-size: .875rem; font-variant-numeric: tabular-nums; }
.demo-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.demo-actions .btn { height: 44px; }
.feedback { display: none; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r); font-size: .9375rem; }
.feedback.show { display: flex; animation: pop .35s var(--ease); }
.feedback.ok { background: var(--ok-soft); color: var(--ink); }
.feedback.ok strong { color: var(--ok); }
.feedback.bad { background: var(--amber-soft); }
.feedback svg { width: 40px; height: 40px; flex: none; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.xp { margin-left: auto; font-weight: 700; color: var(--amber); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .3s; }
.xp.show { opacity: 1; animation: rise .8s var(--ease); }
@keyframes rise { from { transform: translateY(8px); } to { transform: none; } }

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.stats .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 26px 12px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: 1.875rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-3); font-size: .875rem; }
@media (max-width: 700px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } .stat + .stat { border-left: 0; } .stat { border-bottom: 1px solid var(--line); } .stat:nth-child(even) { border-left: 1px solid var(--line); } .stat:last-child { grid-column: 1 / -1; border-bottom: 0; } }

/* Sections */
section { padding: 96px 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }
.kicker { color: var(--accent); font-weight: 650; font-size: .875rem; letter-spacing: .02em; }
.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); margin: 10px 0 14px; }
.sec-head p { color: var(--ink-2); font-size: 1.0625rem; }

.subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.subject { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.subject:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.subject .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.subject .ic svg { width: 24px; height: 24px; }
.subject h3 { font-size: 1.125rem; letter-spacing: -0.015em; }
.subject p { color: var(--ink-2); font-size: .9375rem; }
.subject small { margin-top: auto; color: var(--ink-3); font-size: .8125rem; font-weight: 550; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 18px; }
.step h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.step p { color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; color: var(--ink-2); }
.checks li svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 1px; }
.checks li b { color: var(--ink); font-weight: 620; }

.chat { position: relative; display: grid; gap: 12px; }
.chat::before { content: ''; position: absolute; inset: -10%; background: var(--glow); pointer-events: none; }
.msg { position: relative; max-width: 86%; padding: 14px 16px; border-radius: 18px; font-size: .9375rem; box-shadow: var(--shadow-2); }
.msg.lux { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; display: flex; gap: 12px; align-items: flex-start; }
.msg.lux svg { width: 36px; height: 36px; flex: none; }
.msg.me { justify-self: end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.msg .who { display: block; font-size: .75rem; font-weight: 650; color: var(--ink-3); margin-bottom: 2px; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pillar { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.pillar svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }
.pillar h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.pillar p { color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

.final { text-align: center; }
.final .box { position: relative; overflow: hidden; padding: 72px 24px; border-radius: var(--r-xl); background: #15132e; color: #f3f3f5; }
.final .box::before { content: ''; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(50% 50% at 50% 50%, rgb(255 194 74 / 0.28), transparent 70%); pointer-events: none; }
.final h2 { position: relative; font-size: clamp(2rem, 4vw, 3rem); margin: 18px 0 14px; }
.final p { position: relative; color: #b6b6be; font-size: 1.0625rem; max-width: 36em; margin: 0 auto; }
.final .cta-row { position: relative; justify-content: center; }
.final .lux-big { position: relative; width: 84px; height: 84px; margin: 0 auto; }
.final .btn-primary { background: #8279ff; color: #0b0b0d; box-shadow: 0 10px 30px -10px #8279ff; }
.final .btn-primary:hover { background: #9a92ff; }
.final .btn-ghost { background: transparent; color: #f3f3f5; border-color: #3a3a44; }

footer { padding: 40px 0 56px; color: var(--ink-3); font-size: .875rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
footer a { text-decoration: none; color: var(--ink-2); }
footer a:hover { color: var(--ink); }
footer .disclaimer { flex-basis: 100%; font-size: .8125rem; max-width: 60em; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 2.25rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 10px; }
.legal ul { padding-left: 1.2em; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
