/* ==========================================================================
   pantherSIS -- homepage (web/index.html)
   Standalone on purpose: site.css is shared by the legal pages, the Sales
   Agent and /demo, so the homepage carries its own lean stylesheet built on
   the same brand tokens. Every CTA on this page leads to /demo/.
   ========================================================================== */

/* ---------- Theme tokens ----------
   Dark is the brand default. <html data-theme="light|dark"> is set before
   first paint by the inline script in index.html (saved choice, else the
   OS preference); the nav's sun/moon icon opens the "Make it yours" panel,
   which sets it. The final CTA panel sits on a
   dark photo, so it re-declares the dark tokens in both themes. */

:root {
    --a1: 111, 69, 255;
    --a2: 157, 92, 255;
    --a3: 45, 168, 255;
    --a-deep: 91, 59, 214;
    --violet: rgb(var(--a1));
    --purple: rgb(var(--a2));
    --blue: rgb(var(--a3));
    --a4: 56, 242, 220;
    --a4d: 10, 138, 124;
    --cyan: rgb(var(--a4));
    --pink: #f45cda;
    --gold: #f7ca1e;
    --r-lg: 24px;
    --r-md: 16px;
    --r-sm: 11px;
    --shell: 1200px;
    --grad: linear-gradient(120deg, var(--violet), var(--blue));
    color-scheme: dark;
}

:root,
:root[data-theme="light"] .final {
    --bg: #05060a;
    --panel: rgba(15, 18, 29, 0.72);
    --panel-2: rgba(20, 24, 38, 0.92);
    --text: #f8fafc;
    --strong: #ffffff;
    --text-2: #cdd6e5;
    --muted: #9ca7b8;
    --muted-2: #6f7b8e;
    --border: rgba(255, 255, 255, 0.1);
    --border-2: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.24);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-2: rgba(255, 255, 255, 0.06);
    --glass-3: rgba(255, 255, 255, 0.12);
    --nav-bg: rgba(5, 6, 10, 0.55);
    --nav-bg-2: rgba(5, 6, 10, 0.86);
    --float-bg: rgba(12, 14, 24, 0.93);
    --inset: rgba(5, 6, 10, 0.6);
    --lb-bg: #0b0d16;
    --accent-text: rgb(var(--a4));
    --violet-text: #cdb8ff;
    --gold-text: #f7ca1e;
    --shadow-c: rgba(0, 0, 0, 0.55);
    --glow-1: rgba(var(--a1), 0.22);
    --glow-2: rgba(var(--a3), 0.16);
    --grad-text: linear-gradient(100deg, #fff 0%, #b8c6ff 30%, #9d5cff 60%, #38f2dc 100%);
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f4f6fb;
    --panel: rgba(255, 255, 255, 0.88);
    --panel-2: #ffffff;
    --text: #0f172a;
    --strong: #0b1020;
    --text-2: #334155;
    --muted: #4b5870;
    --muted-2: #66728a;
    --border: rgba(15, 23, 42, 0.12);
    --border-2: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.26);
    --glass: rgba(15, 23, 42, 0.03);
    --glass-2: rgba(15, 23, 42, 0.06);
    --glass-3: rgba(15, 23, 42, 0.1);
    --nav-bg: rgba(244, 246, 251, 0.72);
    --nav-bg-2: rgba(255, 255, 255, 0.94);
    --float-bg: rgba(255, 255, 255, 0.97);
    --inset: #f8fafc;
    --lb-bg: #ffffff;
    --accent-text: rgb(var(--a4d));
    --violet-text: rgb(var(--a-deep));
    --gold-text: #8a6200;
    --shadow-c: rgba(15, 23, 42, 0.14);
    --glow-1: rgba(var(--a1), 0.12);
    --glow-2: rgba(var(--a3), 0.1);
    --grad-text: linear-gradient(100deg, #1e2a78 0%, #5b3bd6 45%, #2563eb 75%, #0a8a7c 100%);
}

:root[data-theme="light"] .final { color: var(--text); }

/* ---------- Theme toggle ---------- */

.theme-toggle {
    display: grid; place-items: center; width: 42px; height: 42px; padding: 0; flex-shrink: 0;
    color: var(--strong); border: 1px solid var(--border); border-radius: 11px;
    background: var(--glass); cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.theme-toggle:hover { border-color: var(--border-strong); background: var(--glass-2); transform: translateY(-1px); }
.theme-toggle svg {
    width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round; transition: transform 300ms ease;
}
.theme-toggle:hover svg { transform: rotate(20deg); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }

/* Smooth the switch itself (only while toggling, so page load never animates). */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
    transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, box-shadow 300ms ease !important;
}

/* Light-mode touches that tokens alone can't express. */
:root[data-theme="light"] .brand img,
:root[data-theme="light"] .footer-brand img { filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.25)); }
:root[data-theme="light"] .eyebrow { border-color: rgba(var(--a4d), 0.3); background: rgba(var(--a4d), 0.07); }
:root[data-theme="light"] .hero-checks li::before,
:root[data-theme="light"] .role-wins li::before { background-color: rgba(var(--a4d), 0.14); }
:root[data-theme="light"] .msg.you .bubble { background: rgba(var(--a3), 0.1); border-color: rgba(var(--a3), 0.3); }
:root[data-theme="light"] .compare .ps { background: rgba(var(--a4d), 0.05); }
:root[data-theme="light"] .demo-band { background: linear-gradient(135deg, rgba(var(--a1), 0.09), rgba(var(--a3), 0.06)); }
:root[data-theme="light"] .mod-thumb .zoom { color: #fff; }

/* ---------- Visitor-picked accent ----------
   home.js writes --a1..--a4d onto <html> (and data-accent) from the colour
   picked in the "Make it yours" modal; everything above is built on those
   channels, so the whole page follows. Only the headline gradients need a
   custom recipe. The panel's "Reset to standard colours" clears all of it. */
:root[data-accent],
:root[data-accent][data-theme="light"] .final {
    --grad-text: linear-gradient(100deg, #fff 0%, rgb(var(--a2)) 40%, rgb(var(--a1)) 70%, rgb(var(--a4)) 100%);
}
:root[data-accent][data-theme="light"] {
    --grad-text: linear-gradient(100deg, rgb(var(--a-deep)) 0%, rgb(var(--a1)) 55%, rgb(var(--a4d)) 100%);
}

/* ---------- "Make it yours" colour modal ---------- */

.cm {
    position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px;
    background: rgba(3, 4, 8, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    animation: fade-in 220ms ease;
}
.cm-box {
    position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
    padding: 30px; border: 1px solid var(--border); border-radius: var(--r-lg);
    background: var(--panel-2); box-shadow: 0 40px 100px var(--shadow-c);
    animation: cm-pop 320ms cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes cm-pop { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.cm-box::before {
    content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 3px; border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--violet), var(--blue), var(--cyan));
}
.cm-close {
    position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px;
    padding: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--glass); cursor: pointer; font-size: 1.2rem;
}
.cm-close:hover { background: var(--glass-2); }
.cm-box h2 { font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.2; }
.cm-box p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.cm-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 22px 0 16px; }
.cm-swatch {
    display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 6px 10px;
    border: 1px solid var(--border-2); border-radius: 14px; background: var(--glass); cursor: pointer;
    font-size: 0.76rem; font-weight: 700; color: var(--text-2);
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.cm-swatch:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.cm-swatch i {
    width: 34px; height: 34px; border-radius: 50%; background: var(--sw);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25), 0 6px 16px rgba(0, 0, 0, 0.25);
}
.cm-swatch[aria-pressed="true"] { border-color: var(--strong); background: var(--glass-2); color: var(--strong); }
.cm-custom {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    border: 1px dashed var(--border); border-radius: 14px; color: var(--text-2); font-size: 0.88rem; font-weight: 700; cursor: pointer;
}
.cm-custom input {
    width: 40px; height: 32px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: transparent; cursor: pointer;
}
.cm-label {
    margin: 22px 0 10px; color: var(--muted-2); font-size: 0.72rem; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase;
}
.cm-label + .cm-swatches { margin-top: 0; }
.cm-modes {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px;
    border: 1px solid var(--border); border-radius: 14px; background: var(--glass);
}
.cm-mode {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 10px;
    border: 0; border-radius: 10px; background: transparent; color: var(--text-2);
    font-weight: 750; font-size: 0.92rem; cursor: pointer; transition: background 150ms ease, color 150ms ease;
}
.cm-mode:hover { background: var(--glass-2); color: var(--strong); }
.cm-mode svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cm-mode[aria-pressed="true"] { color: #fff; background: var(--grad); box-shadow: 0 6px 18px rgba(var(--a1), 0.3); }
.cm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 20px; }
@media (max-width: 480px) {
    .cm-box { padding: 24px 18px; }
    .cm-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .cm-swatch { font-size: 0.68rem; padding: 10px 2px 8px; }
    .cm-actions .btn { flex: 1 1 auto; }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 0%, var(--glow-1), transparent 34rem),
        radial-gradient(circle at 90% 18%, var(--glow-2), transparent 30rem),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.shell { width: min(var(--shell), calc(100% - 40px)); margin: 0 auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    padding: 10px 14px; border-radius: 10px; background: #fff; color: #000; font-weight: 700;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- Type ---------- */

.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    margin-bottom: 18px; padding: 7px 12px;
    color: var(--text-2); border: 1px solid rgba(var(--a4), 0.22); border-radius: 999px;
    background: rgba(var(--a4), 0.06);
    font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.eyebrow i { color: var(--accent-text); font-style: normal; }
.eyebrow-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
    box-shadow: 0 0 0 0 rgba(var(--a4), 0.6); animation: ping 2s infinite;
}
@keyframes ping {
    0% { box-shadow: 0 0 0 0 rgba(var(--a4), 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(var(--a4), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--a4), 0); }
}

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

.h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.07; letter-spacing: -0.03em; }
.lead { margin-top: 16px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.7; }
.head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.head .lead { margin-inline: auto; max-width: 620px; }
.head-left { text-align: left; margin-inline: 0; }
.head-left .lead { margin-inline: 0; }

/* ---------- Buttons ---------- */

.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 22px; overflow: hidden;
    color: var(--strong); border: 0; border-radius: 12px; cursor: pointer;
    font-weight: 800; font-size: 0.96rem; text-decoration: none; white-space: nowrap;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 12px 34px rgba(var(--a1), 0.32); }
.btn-primary::before {
    content: ""; position: absolute; top: -50%; left: -45%; width: 40%; height: 200%;
    background: rgba(255, 255, 255, 0.28); transform: skewX(-22deg); transition: left 520ms ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(var(--a1), 0.45); }
.btn-primary:hover::before { left: 125%; }
.btn-ghost { border: 1px solid var(--border); background: var(--glass); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--glass-2); transform: translateY(-2px); }
.btn-lg { padding: 17px 28px; font-size: 1.02rem; border-radius: 14px; }
.btn-sm { padding: 10px 16px; font-size: 0.86rem; }
.btn .arrow { transition: transform 160ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { color: var(--muted-2); font-size: 0.84rem; }

/* ---------- Nav ---------- */

.nav {
    position: sticky; top: 0; z-index: 50;
    padding: 16px 0; border-bottom: 1px solid transparent;
    background: var(--nav-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    transition: padding 200ms ease, background 200ms ease, border-color 200ms ease;
}
.nav.is-scrolled { padding: 10px 0; background: var(--nav-bg-2); border-bottom-color: var(--border); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { width: 158px; height: auto; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    position: relative; color: var(--text-2); text-decoration: none; font-size: 0.9rem; font-weight: 650;
    transition: color 150ms ease;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--strong); }
.nav-links a.is-active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--grad);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
    display: none; width: 42px; height: 42px; padding: 0;
    border: 1px solid var(--border); border-radius: 11px; background: var(--glass); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 18px; height: 2px; margin: 0 auto; border-radius: 2px; background: var(--strong);
    position: relative; transition: transform 200ms ease, background 200ms ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
    display: none; flex-direction: column; gap: 4px; padding: 14px 0 6px;
}
.mobile-menu a:not(.btn) { padding: 11px 4px; color: var(--text-2); text-decoration: none; font-weight: 650; border-bottom: 1px solid var(--border-2); }
.mobile-menu .btn { margin-top: 10px; }
.nav-open .mobile-menu { display: flex; }

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(40px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.1rem); line-height: 1; letter-spacing: -0.045em; }
.hero h1 .grad-text { display: block; }
.hero .lead { max-width: 540px; margin-top: 22px; }
.hero .cta-row { margin-top: 30px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; }
.hero-checks li { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 0.88rem; font-weight: 600; }
.hero-checks li::before {
    content: ""; width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%;
    background: rgba(var(--a4), 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2338f2dc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

.hero-visual { position: relative; }
.hero-visual::before {
    content: ""; position: absolute; inset: 8% 6%; z-index: -1; border-radius: 40px;
    background: radial-gradient(closest-side, rgba(var(--a3), 0.45), rgba(var(--a1), 0.2), transparent);
    filter: blur(40px);
}
/* The photo is masked to the tablet's own outline (traced from the image:
   slightly skewed edges, ~42px corners, in the 1400x944 image's own
   coordinates; preserveAspectRatio=none so it fits the 800w file too).
   Everything outside the bezel is transparent. The shadow lives on the
   wrapper so it follows that outline rather than the old rectangle. */
.hero-device { filter: drop-shadow(0 30px 40px var(--shadow-c)); }
.hero-shot {
    width: 100%; height: auto; aspect-ratio: 1400 / 944;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 944' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M100 20 L1305 87 Q1349 89 1347 130 L1379 880 Q1381 926 1335 925 L60 890 Q15 889 14 845 L59 60 Q62 18 100 20 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 944' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M100 20 L1305 87 Q1349 89 1347 130 L1379 880 Q1381 926 1335 925 L60 890 Q15 889 14 845 L59 60 Q62 18 100 20 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
    transition: transform 400ms ease;
}
.hero-visual:hover .hero-shot { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }

.ai-float {
    position: absolute; left: -6%; bottom: -8%; width: min(340px, 72%);
    padding: 14px 16px; border: 1px solid rgba(var(--a2), 0.35); border-radius: 16px;
    background: var(--float-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px var(--shadow-c);
    font-size: 0.84rem; line-height: 1.5;
}
.ai-float-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--violet-text); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.ai-float-head b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--grad); color: #fff; font-size: 0.7rem; }
.ai-float-q { color: var(--muted); }
.ai-float-a { margin-top: 6px; color: var(--strong); min-height: 3em; }
.ai-float-a::after { content: "\258D"; margin-left: 1px; color: var(--accent-text); animation: blink 1s steps(2) infinite; }
.ai-float-a.is-done::after { display: none; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Stat strip ---------- */

.stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
    background: var(--glass);
}
.stat { padding: 24px 22px; border-right: 1px solid var(--border-2); }
.stat:last-child { border-right: 0; }
.stat-num { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 850; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-num em { font-style: normal; color: var(--accent-text); }
.stat-label { margin-top: 4px; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }

/* ---------- Role picker ---------- */

.roles { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; }
.role-tabs { display: flex; flex-direction: column; gap: 6px; }
.role-tab {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px;
    text-align: left; border: 1px solid var(--border-2); border-radius: 14px;
    background: var(--glass); cursor: pointer; font-weight: 700; font-size: 0.95rem;
    color: var(--text-2); transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.role-tab:hover { border-color: var(--border); background: var(--glass-2); color: var(--strong); }
.role-tab[aria-selected="true"] { color: var(--strong); border-color: rgba(var(--a2), 0.5); background: rgba(var(--a1), 0.14); }
.role-ic {
    display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px;
    background: var(--glass-2); font-size: 1rem;
}
.role-tab[aria-selected="true"] .role-ic { color: #fff; background: var(--grad); }
.role-panel {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 26px; align-items: center;
    padding: 30px; border: 1px solid var(--border); border-radius: var(--r-lg);
    background: var(--panel); animation: fade-up 300ms ease;
}
.role-panel h3 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.2; }
.role-panel .pain { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.role-wins { display: grid; gap: 12px; margin: 20px 0 24px; padding: 0; list-style: none; }
.role-wins li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 0.95rem; line-height: 1.55; }
.role-wins li::before {
    content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
    background: rgba(var(--a4), 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2338f2dc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}
.role-wins b { color: var(--strong); }
.role-shot { border-radius: 16px; border: 1px solid var(--border); cursor: zoom-in; transition: transform 200ms ease; }
.role-shot:hover { transform: scale(1.02); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- AI section ---------- */

.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ai-points { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.ai-points li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; }
.ai-points .ic {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
    border: 1px solid rgba(var(--a2), 0.3); background: rgba(var(--a1), 0.12); font-size: 1rem;
}
.ai-points b { display: block; font-size: 0.98rem; }
.ai-points span { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

.console {
    border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
    background: var(--panel-2); box-shadow: 0 30px 80px var(--shadow-c);
}
.console-top { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border-2); font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.console-top .dots { display: flex; gap: 6px; margin-right: 8px; }
.console-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--glass-3); }
.console-top .live { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--accent-text); font-size: 0.74rem; }
.console-tabs { display: flex; gap: 6px; padding: 12px 14px 0; flex-wrap: wrap; }
.console-tab {
    padding: 7px 12px; border: 1px solid var(--border-2); border-radius: 999px; background: transparent;
    color: var(--muted); font-size: 0.78rem; font-weight: 700; cursor: pointer;
}
.console-tab[aria-selected="true"] { color: var(--strong); border-color: rgba(var(--a2), 0.5); background: rgba(var(--a1), 0.16); }
.console-body { display: flex; flex-direction: column; gap: 12px; min-height: 330px; padding: 18px; }
.msg { display: flex; gap: 10px; max-width: 92%; animation: fade-up 260ms ease; }
.msg .av { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; font-size: 0.72rem; font-weight: 800; }
.msg .bubble { padding: 11px 14px; border-radius: 14px; font-size: 0.9rem; line-height: 1.55; }
.msg.you { align-self: flex-end; flex-direction: row-reverse; }
.msg.you .av { background: var(--glass-3); }
.msg.you .bubble { background: rgba(var(--a3), 0.14); border: 1px solid rgba(var(--a3), 0.25); }
.msg.ai .av { color: #fff; background: var(--grad); }
.msg.ai .bubble { background: var(--glass); border: 1px solid var(--border-2); }
.confirm-card {
    margin-top: 10px; padding: 12px; border: 1px solid rgba(247, 202, 30, 0.35); border-radius: 12px;
    background: rgba(247, 202, 30, 0.06); font-size: 0.84rem;
}
.confirm-card b { color: var(--gold-text); display: block; margin-bottom: 4px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.confirm-actions { display: flex; gap: 8px; margin-top: 10px; }
.confirm-actions span { padding: 6px 12px; border-radius: 8px; font-size: 0.78rem; font-weight: 800; }
.confirm-actions .ok { background: rgba(var(--a4), 0.16); color: var(--accent-text); }
.confirm-actions .no { border: 1px solid var(--border); color: var(--muted); }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: bob 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bob { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------- Modules ---------- */

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.filter {
    padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px;
    background: var(--glass); color: var(--text-2); font-weight: 700; font-size: 0.86rem; cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.filter:hover { color: var(--strong); border-color: var(--border-strong); }
.filter[aria-pressed="true"] { color: #fff; border-color: transparent; background: var(--grad); }
.filter small { margin-left: 6px; opacity: 0.7; font-weight: 600; }

.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.mod-card {
    display: flex; flex-direction: column; overflow: hidden; padding: 0; text-align: left;
    border: 1px solid var(--border); border-radius: var(--r-md); background: var(--panel); cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.mod-card:hover { transform: translateY(-4px); border-color: rgba(var(--a2), 0.45); box-shadow: 0 20px 50px var(--shadow-c); }
.mod-thumb, .mod-info, .mod-cat, .mod-name, .mod-line { display: block; }
.mod-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0b0e1a; }
.mod-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.mod-card:hover .mod-thumb img { transform: scale(1.05); }
.mod-thumb .zoom {
    position: absolute; right: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px;
    background: rgba(5, 6, 10, 0.78); font-size: 0.72rem; font-weight: 800; opacity: 0; transition: opacity 180ms ease;
}
.mod-card:hover .zoom, .mod-card:focus-visible .zoom { opacity: 1; }
.mod-info { padding: 16px 18px 18px; }
.mod-cat { color: var(--accent-text); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.mod-name { margin-top: 4px; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; }
.mod-line { margin-top: 6px; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

.more-mods { margin-top: 30px; padding: 22px 24px; border: 1px dashed var(--border); border-radius: var(--r-md); text-align: center; color: var(--muted); font-size: 0.92rem; line-height: 1.7; }
.more-mods b { color: var(--strong); }

/* Lightbox */
.lb {
    position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px;
    background: rgba(3, 4, 8, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    animation: fade-in 200ms ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.lb-box {
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    width: min(1180px, 100%); max-height: calc(100vh - 40px); overflow: hidden;
    border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--lb-bg);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}
.lb-img { background: #05060a; display: grid; place-items: center; min-height: 0; }
.lb-img img { width: 100%; height: 100%; max-height: calc(100vh - 40px); object-fit: contain; }
.lb-side { display: flex; flex-direction: column; gap: 14px; padding: 28px; overflow-y: auto; }
.lb-side h3 { font-size: 1.6rem; letter-spacing: -0.02em; }
.lb-side p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.lb-side ul { display: grid; gap: 10px; margin: 4px 0 8px; padding: 0; list-style: none; }
.lb-side li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 0.92rem; line-height: 1.55; }
.lb-side li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.lb-side .btn { align-self: flex-start; margin-top: auto; }
.lb-nav { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border-2); }
.lb-nav button, .lb-close {
    display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
    border: 1px solid var(--border); border-radius: 11px; background: var(--glass-2); cursor: pointer; font-size: 1.1rem;
}
.lb-nav button:hover, .lb-close:hover { background: var(--glass-3); }
.lb-count { color: var(--muted-2); font-size: 0.82rem; font-weight: 700; }
.lb-close { position: absolute; top: 18px; right: 18px; z-index: 2; }

/* ---------- Onboarding / Tutor ---------- */

.onboard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
.tutor-img { border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: 0 30px 80px var(--shadow-c); }
.steps { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li {
    display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 16px 18px;
    border: 1px solid var(--border-2); border-radius: 14px; background: var(--glass); counter-increment: s;
}
.steps li::before {
    content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    background: rgba(var(--a4), 0.1); border: 1px solid rgba(var(--a4), 0.3); color: var(--accent-text); font-weight: 850;
}
.steps b { display: block; font-size: 0.98rem; }
.steps span { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

/* ---------- Compare ---------- */

.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--panel); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.93rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border-2); vertical-align: top; }
.compare thead th { color: var(--muted); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 700; color: var(--strong); }
.compare .legacy { color: var(--muted-2); }
.compare .ps { color: var(--text-2); background: rgba(var(--a4), 0.04); }
.compare thead .ps { color: var(--accent-text); }
.compare .ps::before { content: "\2713"; margin-right: 8px; color: var(--accent-text); font-weight: 900; }
.compare thead .ps::before { content: none; }

/* ---------- Demo band ---------- */

.demo-band {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px; align-items: center;
    padding: clamp(28px, 4vw, 44px); border: 1px solid rgba(var(--a2), 0.3); border-radius: var(--r-lg);
    background: linear-gradient(135deg, rgba(var(--a1), 0.16), rgba(var(--a3), 0.08));
}
.demo-steps { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.demo-steps li { display: flex; gap: 12px; align-items: baseline; color: var(--text-2); font-size: 0.95rem; }
.demo-steps li b { color: var(--accent-text); font-variant-numeric: tabular-nums; }
.slot-card {
    padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--inset); text-align: center;
}
.slot-label { color: var(--muted); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.slot-when { margin: 10px 0 4px; font-size: 1.35rem; font-weight: 850; letter-spacing: -0.02em; min-height: 1.6em; }
.slot-sub { color: var(--muted-2); font-size: 0.84rem; min-height: 1.3em; }
.slot-times { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 18px; min-height: 38px; }
.slot-times a {
    padding: 8px 12px; border: 1px solid rgba(var(--a2), 0.4); border-radius: 10px;
    background: rgba(var(--a1), 0.08); text-decoration: none; font-weight: 750; font-size: 0.86rem;
    transition: background 150ms ease;
}
.slot-times a:hover { background: rgba(var(--a1), 0.22); }
.slot-card .btn { width: 100%; }

/* ---------- Founder ---------- */

.founder {
    margin: 0;
    display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: center;
    padding: clamp(24px, 4vw, 40px); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--panel);
}
.founder img { border-radius: 20px; }
.founder blockquote { margin: 0; font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.65; color: var(--text-2); }
.founder cite { display: block; margin-top: 14px; color: var(--muted); font-style: normal; font-size: 0.9rem; }
.founder cite b { color: var(--strong); }

/* ---------- FAQ ---------- */

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--glass); }
.faq details[open] { border-color: rgba(var(--a2), 0.4); background: rgba(var(--a1), 0.06); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 750; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; color: var(--accent-text); font-size: 1.4rem; font-weight: 400; transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 0.94rem; line-height: 1.7; }

/* ---------- Final CTA ---------- */

.final {
    position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
    border: 1px solid var(--border); border-radius: 30px; text-align: center; isolation: isolate;
    background: #05060a;
}
.final-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.final::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(5, 6, 10, 0.55), rgba(5, 6, 10, 0.88));
}
.final .h2 { max-width: 760px; margin: 0 auto; }
.final .lead { max-width: 560px; margin: 16px auto 0; color: #c7d0de; }
.final .cta-row { justify-content: center; margin-top: 30px; }

/* ---------- Footer ---------- */

.footer { padding: 56px 0 28px; border-top: 1px solid var(--border-2); margin-top: clamp(40px, 6vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 30px; padding-bottom: 36px; }
.footer-brand img { width: 150px; }
.footer-brand p { margin-top: 12px; max-width: 280px; color: var(--muted-2); font-size: 0.88rem; line-height: 1.6; }
.footer h4 { margin-bottom: 12px; color: var(--muted-2); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer ul a { color: var(--text-2); text-decoration: none; font-size: 0.88rem; }
.footer ul a:hover { color: var(--strong); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; border-top: 1px solid var(--border-2); color: var(--muted-2); font-size: 0.78rem; }

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    display: none; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 16px; border: 1px solid rgba(var(--a2), 0.4); border-radius: 16px;
    background: var(--float-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px var(--shadow-c);
    transform: translateY(140%); transition: transform 260ms ease;
}
.sticky-cta.is-on { transform: none; }
.sticky-cta span { font-size: 0.86rem; font-weight: 700; line-height: 1.3; }
.sticky-cta small { display: block; color: var(--muted); font-weight: 500; font-size: 0.76rem; }

/* ---------- Reveal ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease, transform 600ms ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .nav-links { display: none; }
    .nav-toggle { display: grid; place-items: center; }
    .hero-grid, .ai-grid, .onboard, .demo-band { grid-template-columns: minmax(0, 1fr); }
    .hero-visual { max-width: 720px; margin: 10px auto 40px; }
    .roles { grid-template-columns: minmax(0, 1fr); }
    .role-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
    .role-tabs::-webkit-scrollbar { display: none; }
    .role-tab { width: auto; flex-shrink: 0; }
    .lb-box { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
    .lb-img img { max-height: 60vh; }
}

@media (max-width: 760px) {
    .shell { width: min(100% - 32px, var(--shell)); }
    .nav-actions .btn-ghost { display: none; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border-2); }
    .role-panel { grid-template-columns: minmax(0, 1fr); padding: 22px; }
    .founder { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .founder img { width: 140px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .sticky-cta { display: flex; }
    .ai-float { position: relative; left: auto; bottom: auto; width: auto; margin: -30px 12px 0; }
    .hero-shot { transform: none; }
    .hero .cta-row .btn { flex: 1 1 100%; }
    .lb { padding: 0; }
    .lb-box { max-height: 100vh; height: 100%; border-radius: 0; }
}

@media (max-width: 420px) {
    .nav-actions .btn-primary { padding: 9px 12px; font-size: 0.8rem; }
    .brand img { width: 130px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
}
