/* Vestige opti — landing & docs design system (gold + black) */
:root {
    --accent:        #D4AF37;   /* metallic gold — matches the VO logo */
    --accent-bright: #F4D661;   /* champagne highlight */
    --accent-dim:    #8B7515;   /* burnished gold */
    --accent-deep:   #5C4F12;   /* shadow gold for inset rims */
    --bg-canvas:     #050505;   /* near-pure black for the logo backdrop */
    --bg-elevated:   #0c0c0e;
    --bg-overlay:    #131316;
    --bg-card:       #0e0e11;
    --border:        #1a1a1f;
    --border-strong: #2a2a32;
    --text:          #f4ecd6;   /* warm off-white that reads next to gold */
    --text-sec:      #9b9286;
    --text-tert:     #635d54;
    --success:       #5ec97c;
    --warning:       #f0c14b;
    --danger:        #e07474;
    --radius:        10px;
    --radius-lg:     14px;
    --radius-xl:     20px;

    /* Gold gradient stops used for shimmery edges */
    --gold-shine: linear-gradient(135deg, #8B7515 0%, #D4AF37 35%, #F4D661 50%, #D4AF37 65%, #8B7515 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg-canvas);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ============================ HEADER ============================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px) saturate(140%);
    background: rgba(5, 5, 5, 0.78);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
}
.brand-dot {
    width: 32px;
    height: 32px;
    background: url('/assets/vestige-logo-512.png') center / contain no-repeat;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(212,175,55,0.20);
}
.brand-name { font-size: 17px; }
.brand-name { font-weight: 600; }
.brand-name em { color: var(--accent); font-style: normal; }
.nav-links {
    display: flex;
    gap: 28px;
    margin-left: auto;
    align-items: center;
}
.nav-links a {
    color: var(--text-sec);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.08s, box-shadow 0.15s, background 0.15s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.btn-primary {
    background: var(--gold-shine);
    color: #1a1200;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        inset 0 -1px 0 rgba(0,0,0,0.35),
        0 6px 24px rgba(212,175,55,0.30),
        0 0 0 1px rgba(212,175,55,0.45);
    text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-elevated); border-color: var(--accent-dim); }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ============================ HERO ============================ */
.hero {
    padding: 90px 28px 80px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top, rgba(212,175,55,0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 30% 70%, rgba(212,175,55,0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}
.hero h1 em { background: var(--gold-shine); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--bg-elevated);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 20px;
    font-weight: 700;
}
/* (hero h1 em uses gold gradient text — defined above) */
.hero-sub {
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--text-sec);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.55;
}
.cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.hero-meta {
    display: inline-flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
    color: var(--text-tert);
    font-size: 13px;
}
.hero-meta b { color: var(--text-sec); font-weight: 500; }

/* ============================ SECTIONS ============================ */
section {
    padding: 80px 28px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    font-weight: 700;
}
.section-sub {
    color: var(--text-sec);
    max-width: 640px;
    margin: 0 0 48px;
    font-size: 17px;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    transition: border-color 0.15s, transform 0.15s;
}
.feature:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(212,175,55,0.10);
    border: 1px solid rgba(212,175,55,0.20);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
}
.feature h3 {
    font-size: 18px;
    margin: 0 0 8px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.feature p {
    color: var(--text-sec);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Pricing */
.pricing-wrap {
    display: flex;
    justify-content: center;
}
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    max-width: 420px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.price-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(212,175,55,0.12), transparent 60%);
    pointer-events: none;
}
.price-card > * { position: relative; }
.price-eyebrow {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.price-amount {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 6px 0 4px;
}
.price-amount span { font-size: 22px; color: var(--text-tert); font-weight: 500; }
.price-tagline { color: var(--text-sec); margin-bottom: 28px; }
.price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
}
.price-features li {
    padding: 8px 0;
    color: var(--text-sec);
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.price-features li::before {
    content: "✓“";
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}
.price-cta { width: 100%; }
.price-note { color: var(--text-tert); font-size: 12px; margin-top: 14px; }

/* ============================ FOOTER ============================ */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 50px 28px 30px;
    background: var(--bg-canvas);
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-col h4 {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.footer-col a {
    display: block;
    color: var(--text-sec);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
}
.footer-col a:hover { color: var(--accent); }
.footer-brand p {
    color: var(--text-sec);
    font-size: 14px;
    margin: 14px 0 0;
    line-height: 1.55;
    max-width: 280px;
}
.footer-bottom {
    max-width: 1200px;
    margin: 36px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-tert);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* ============================ LEGAL / DOCS PAGES ============================ */
.doc-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 28px 80px;
}
.doc-wrap h1 {
    font-size: 36px;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}
.doc-wrap .updated {
    color: var(--text-tert);
    font-size: 13px;
    margin-bottom: 36px;
}
.doc-wrap h2 {
    font-size: 22px;
    letter-spacing: -0.01em;
    margin: 36px 0 12px;
    font-weight: 600;
}
.doc-wrap h3 {
    font-size: 17px;
    margin: 24px 0 8px;
    font-weight: 600;
}
.doc-wrap p, .doc-wrap li {
    color: var(--text-sec);
    font-size: 15px;
    line-height: 1.7;
}
.doc-wrap a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.doc-wrap code {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
    font-size: 0.9em;
}
.doc-wrap ul { padding-left: 22px; }
.doc-wrap .callout {
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    padding: 14px 18px;
    margin: 24px 0;
}
.doc-wrap .callout p { color: var(--text); margin: 0; }

/* ============================ MOCK APP PREVIEW ============================ */
.app-preview {
    margin: 60px auto 0;
    max-width: 980px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    background: var(--bg-elevated);
    box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(212,175,55,0.06);
    overflow: hidden;
}
.app-preview-bar {
    padding: 10px 14px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.app-preview-bar .dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--border-strong);
}
.app-preview-bar .title {
    margin-left: 16px;
    font-size: 12px;
    color: var(--text-tert);
}
.app-preview-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 360px;
}
.app-preview-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 18px 14px;
}
.app-preview-sidebar .sb-item {
    padding: 9px 12px;
    color: var(--text-sec);
    font-size: 13px;
    border-radius: 6px;
    margin-bottom: 4px;
}
.app-preview-sidebar .sb-item {
    /* Reset button defaults — sidebar items are now clickable buttons */
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    font: inherit;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.app-preview-sidebar .sb-item:hover {
    background: rgba(212,175,55,0.06);
    color: var(--text);
}
.app-preview-sidebar .sb-item.active {
    background: rgba(212,175,55,0.12);
    color: var(--accent);
    font-weight: 600;
    box-shadow: inset 2px 0 0 var(--accent);
}

/* Hint text in the title bar */
.title-hint {
    margin-left: auto;
    margin-right: 12px;
    font-size: 11px;
    color: var(--text-tert);
    font-style: italic;
}

/* Pane visibility — only one shown at a time */
.demo-pane { display: none; }
.demo-pane.demo-active { display: block; animation: demo-fade 0.18s ease-out; }
@keyframes demo-fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
}

/* Game-tab grid layout */
.demo-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    margin-top: 4px;
}
.demo-game {
    background: var(--bg-canvas);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.demo-game b {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}
.demo-game .pill, .demo-game .pill-dim { align-self: flex-start; }

/* Secondary pill state for "available but not applied" rows */
.pill-dim {
    background: rgba(212,175,55,0.08);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(212,175,55,0.18);
}
.app-preview-main {
    padding: 24px 28px;
}
.app-preview-main h4 {
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--text);
}
.app-preview-main p {
    color: var(--text-tert);
    font-size: 13px;
    margin: 0 0 18px;
}
.app-preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.app-preview-row:last-child { border-bottom: none; }
.app-preview-row span { color: var(--text-sec); font-size: 13px; }
.app-preview-row .pill {
    background: rgba(74,222,128,0.10);
    color: var(--success);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.show { display: flex; }
    .hero { padding: 60px 20px 50px; }
    section { padding: 60px 20px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .app-preview-body { grid-template-columns: 1fr; }
    .app-preview-sidebar { display: none; }
}
@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
    .hero h1 { font-size: 38px; }
}
