/* ================================================
   CLAUDACITY — Landing Page
   "Terminal Luxury" aesthetic
   ================================================ */

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

/* ---- Custom Properties ---- */
:root {
    --terracotta: #E07850;
    --terracotta-light: #E89070;
    --terracotta-dim: rgba(224, 120, 80, 0.15);

    --bg-deep: #08080C;
    --bg-base: #0F0F14;
    --bg-elevated: #17171E;
    --bg-surface: #1F1F28;

    --text-primary: #ECE8E2;
    --text-secondary: #807B86;
    --text-tertiary: #4C4952;

    --green: #48D060;
    --yellow: #E0B830;
    --orange: #E07830;
    --red: #E04545;

    --font: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    --font-rounded: ui-rounded, 'SF Pro Rounded', 'Nunito', system-ui, sans-serif;

    --section-gap: 140px;
    --container-max: 1080px;
    --container-pad: 24px;
}

/* ---- Base ---- */
body {
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 15px;
    overflow-x: hidden;
}

/* ---- Grain Overlay ---- */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    filter: url(#grain);
    width: 100%;
    height: 100%;
}
.sr-only {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ---- Utility ---- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}
a { color: var(--terracotta); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--terracotta-light); }

.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--terracotta);
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* ---- Status Dots ---- */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-dot.small { width: 6px; height: 6px; }
.status-dot.green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-dot.yellow { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.status-dot.orange { background: var(--orange); box-shadow: 0 0 6px var(--orange); }
.status-dot.red { background: var(--red); box-shadow: 0 0 6px var(--red); }
.status-dot.pulse { animation: dot-pulse 2.5s ease-in-out infinite; }
@keyframes dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 14px 28px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}
.btn-primary {
    background: var(--terracotta);
    color: var(--bg-deep);
    border-color: var(--terracotta);
}
.btn-primary:hover {
    background: var(--terracotta-light);
    color: var(--bg-deep);
    border-color: var(--terracotta-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(224, 120, 80, 0.3);
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(224, 120, 80, 0.2);
}
.btn-large {
    padding: 18px 36px;
    font-size: 0.95rem;
}
.apple-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.btn-large .apple-icon { width: 20px; height: 20px; }


/* ================================================
   NAVIGATION
   ================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.35s ease;
}
.nav.scrolled {
    padding: 10px 0;
    background: rgba(8, 8, 12, 0.85);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    line-height: 1;
}
.nav-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}
.nav-logo-text {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-primary);
}
.nav-logo:hover .nav-logo-text { color: var(--text-primary); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
    padding: 7px 18px;
    border: 1px solid var(--terracotta);
    border-radius: 6px;
    color: var(--terracotta) !important;
    font-weight: 500 !important;
    line-height: 1;
}
.nav-cta:hover {
    background: var(--terracotta);
    color: var(--bg-deep) !important;
}


/* ================================================
   HERO
   ================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px var(--container-pad) 80px;
    overflow: hidden;
}
.hero-glow {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 700px;
    background: radial-gradient(ellipse, rgba(224, 120, 80, 0.12) 0%, transparent 65%);
    pointer-events: none;
    animation: glow-breathe 7s ease-in-out infinite;
}
.hero-glow-cool {
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(128, 123, 134, 0.06) 0%, transparent 65%);
    pointer-events: none;
}
@keyframes glow-breathe {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Entrance animations */
.anim-entry {
    opacity: 0;
    transform: translateY(24px);
    animation: entry-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0s);
}
@keyframes entry-up {
    to { opacity: 1; transform: translateY(0); }
}

.hero-icon {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin-bottom: 28px;
    box-shadow:
        0 8px 40px rgba(224, 120, 80, 0.2),
        0 0 80px rgba(224, 120, 80, 0.08);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    padding: 6px 16px;
    border: 1px solid var(--bg-surface);
    border-radius: 100px;
    margin-bottom: 28px;
    text-transform: uppercase;
}

.hero-title { margin-bottom: 12px; text-align: center; }
.hero-title-text {
    font-size: clamp(2.8rem, 8vw, 6.5rem);
    font-weight: 800;
    letter-spacing: 0.35em;
    line-height: 1.1;
    display: block;
    text-indent: 0.35em;
    /* Match app: gradient from textSecondary to accent */
    background: linear-gradient(to right, var(--text-secondary), rgba(224, 120, 80, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 60px rgba(224, 120, 80, 0.15));
}

.hero-tagline {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}
.hero-sub {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.8;
    max-width: 520px;
    margin: 0 auto 40px;
}
.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.hero-meta {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    letter-spacing: 0.08em;
    margin-bottom: 50px;
}
.hero-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}


/* ================================================
   SECTION DIVIDERS
   ================================================ */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 var(--container-pad);
    margin: 0 auto;
    max-width: var(--container-max);
}
.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--bg-surface), transparent);
}
.divider-dots { display: flex; gap: 6px; }
.divider-dots .dot { width: 4px; height: 4px; border-radius: 50%; }
.divider-dots .dot.green { background: var(--green); }
.divider-dots .dot.yellow { background: var(--yellow); }
.divider-dots .dot.orange { background: var(--orange); }
.divider-dots .dot.red { background: var(--red); }


/* ================================================
   PAIN POINT
   ================================================ */
.pain { padding: var(--section-gap) 0; }
.pain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.pain-terminal {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--bg-base);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}
.terminal-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.7;
}
.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
    margin-right: 36px;
}
.terminal-body {
    padding: 20px 20px 24px;
    font-size: 0.82rem;
    line-height: 2;
}
.terminal-line { white-space: nowrap; overflow: hidden; }
.terminal-prompt { color: var(--green); margin-right: 8px; }
.terminal-cmd { color: var(--text-primary); }
.terminal-thinking { color: var(--text-tertiary); }
.terminal-warning { color: var(--yellow); font-weight: 500; font-size: 0.78rem; }
.terminal-error { color: var(--red); font-weight: 500; }
.terminal-error-sub span { color: var(--text-tertiary); font-size: 0.78rem; }
.terminal-usage-cmd { color: var(--terracotta); }
.terminal-lost-context { color: var(--text-tertiary); font-style: italic; font-size: 0.75rem; }
.terminal-cursor { color: var(--text-secondary); animation: cursor-blink 1s step-end infinite; }
@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.terminal-dots-anim::after {
    content: '';
    animation: loading-dots 1.8s steps(3) infinite;
}
@keyframes loading-dots {
    0%  { content: ''; }
    33% { content: '.'; }
    66% { content: '..'; }
    100% { content: '...'; }
}
/* Staggered reveal */
.pain-terminal .terminal-line {
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.4s ease;
}
.pain-terminal.visible .terminal-line { opacity: 1; transform: translateY(0); }
.pain-terminal.visible .tl-1 { transition-delay: 0.1s; }
.pain-terminal.visible .tl-2 { transition-delay: 0.5s; }
.pain-terminal.visible .tl-3 { transition-delay: 1.2s; }
.pain-terminal.visible .tl-4 { transition-delay: 1.6s; }
.pain-terminal.visible .tl-5 { transition-delay: 2.0s; }
.pain-terminal.visible .tl-6 { transition-delay: 2.6s; }

.pain-text h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    line-height: 1.25;
}
.pain-text p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.pain-text em { color: var(--red); font-style: normal; font-weight: 500; }
.pain-highlight {
    color: var(--terracotta) !important;
    font-weight: 500;
    font-size: 1.05rem !important;
    margin-top: 28px !important;
}


/* ================================================
   DEMO — Pixel-perfect app recreation
   ================================================ */
.demo { padding: var(--section-gap) 0; }
.demo-header { text-align: center; margin-bottom: 60px; }
.demo-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    margin-bottom: 16px;
}
.demo-sub {
    font-size: 0.88rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

.demo-app-container {
    max-width: 420px;
    margin: 0 auto;
}

/* Menu bar strip */
.demo-menubar-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 14px;
    background: rgba(40, 40, 50, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 8px 8px 0 0;
    font-size: 0.68rem;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
}
.demo-menubar-left, .demo-menubar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.menubar-apple-logo { font-size: 0.9rem; opacity: 0.9; }
.menubar-item { opacity: 0.7; letter-spacing: 0.02em; }
.menubar-item.active { opacity: 1; font-weight: 600; }
.menubar-claudacity {
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 1 !important;
    font-weight: 500;
}
.menubar-status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
}
.menubar-status-dot.green { background: var(--green); box-shadow: 0 0 4px var(--green); }
.menubar-status-dot.orange { background: var(--orange); box-shadow: 0 0 4px var(--orange); }
.menubar-time { opacity: 0.6; }

/* ---- The Popup (faithful to app) ---- */
.demo-popup {
    position: relative;
    width: 280px;
    margin: 0 auto;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 12px 48px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(224, 120, 80, 0.03);
    /* PanelBackground: layered gradients */
    background:
        radial-gradient(ellipse at 50% -15%, rgba(224,120,80,0.12) 0%, rgba(224,120,80,0.04) 35%, transparent 60%),
        radial-gradient(ellipse at 90% 0%, rgba(224,160,96,0.05) 0%, transparent 45%),
        radial-gradient(ellipse at 8% 110%, rgba(104,72,176,0.05) 0%, transparent 50%),
        linear-gradient(to bottom, #1C1628 0%, #12101C 30%, #0A0A10 70%, #06060A 100%);
}
/* Inner border glow: accent top → white mid → purple bottom */
.popup-border-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 10;
    border: 0.5px solid transparent;
    background:
        linear-gradient(to bottom, rgba(224,120,80,0.08), rgba(255,255,255,0.03) 40%, rgba(104,72,176,0.05)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Popup Header */
.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    position: relative;
    z-index: 2;
}
.popup-header-left {
    display: flex;
    align-items: center;
    gap: 7px;
}
/* Diamond accent mark — 5x5 rotated square */
.popup-diamond-mark {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--terracotta);
    border-radius: 1px;
    transform: rotate(45deg);
    box-shadow: 0 0 6px rgba(224, 120, 80, 0.5);
    flex-shrink: 0;
}
/* Title: gradient text matching app */
.popup-title-text {
    font-family: var(--font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(to right, var(--text-secondary), rgba(224, 120, 80, 0.55));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.popup-header-right {
    display: flex;
    align-items: center;
    gap: 2px;
}
.popup-icon-btn {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all 0.15s ease;
    padding: 0;
}
.popup-icon-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}
.popup-icon-btn svg {
    width: 10px;
    height: 10px;
}

/* Gradient Divider (glow halo + crisp line) */
.popup-gradient-divider {
    position: relative;
    height: 11px;
    margin: 0 8px;
    z-index: 2;
}
.popup-gradient-divider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(224,120,80,0.06), transparent);
    filter: blur(5px);
}
.popup-gradient-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 0.5px;
    background: linear-gradient(to right,
        transparent,
        rgba(224,120,80,0.12),
        rgba(255,255,255,0.10),
        rgba(224,120,80,0.12),
        transparent
    );
}

/* Usage Section */
.popup-usage-section {
    padding: 10px 18px;
    position: relative;
    z-index: 2;
}
.popup-usage-label {
    font-family: var(--font);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}
.popup-usage-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}

/* Large percentage with glow — matches SF Pro Rounded */
/* Color driven by data-status on parent section */
.popup-usage-section { --usage-color: var(--green); --usage-r: 72; --usage-g: 208; --usage-b: 96; }
.popup-usage-section[data-status="yellow"] { --usage-color: var(--yellow); --usage-r: 224; --usage-g: 184; --usage-b: 48; }
.popup-usage-section[data-status="orange"] { --usage-color: var(--orange); --usage-r: 224; --usage-g: 120; --usage-b: 48; }
.popup-usage-section[data-status="red"] { --usage-color: var(--red); --usage-r: 224; --usage-g: 69; --usage-b: 69; }

.popup-pct-container {
    position: relative;
    display: flex;
    align-items: baseline;
}
.popup-pct-glow {
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-rounded);
    font-size: 30px;
    font-weight: 700;
    color: color-mix(in srgb, var(--usage-color) 20%, transparent);
    filter: blur(16px);
    pointer-events: none;
    user-select: none;
}
.popup-pct-num {
    position: relative;
    font-family: var(--font-rounded);
    font-size: 30px;
    font-weight: 700;
    color: var(--usage-color);
    line-height: 1;
}
.popup-pct-sign {
    font-family: var(--font-rounded);
    font-size: 14px;
    font-weight: 500;
    color: color-mix(in srgb, var(--usage-color) 50%, transparent);
    margin-left: 1px;
}
/* Reset time info */
.popup-reset-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font);
    font-size: 10px;
    font-weight: 500;
    color: var(--text-tertiary);
}
.popup-clock-icon {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
}

/* Segmented usage bar — 20 segments, 1.5px gap, 4px height */
.popup-usage-bar {
    display: flex;
    gap: 1.5px;
    position: relative;
}
.popup-usage-bar .seg {
    flex: 1;
    height: 4px;
    border-radius: 1.5px;
    background: rgba(255, 255, 255, 0.025);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
/* Shadow glow under the bar when filled */
.popup-usage-bar.has-fill {
    filter: drop-shadow(0 5px 14px rgba(72, 208, 96, 0.30));
}

/* Thin separator between sections */
.popup-thin-sep {
    height: 0.5px;
    margin: 0 24px;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    z-index: 2;
}

/* Status row (shown when not green) */
.popup-status-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    position: relative;
    z-index: 2;
}
.popup-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: dot-pulse 2s ease-in-out infinite;
}
.popup-status-dot.orange {
    background: var(--orange);
    box-shadow: 0 0 8px rgba(224, 120, 48, 0.4);
}
.popup-status-text {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 500;
    color: var(--orange);
}
.popup-status-plan {
    margin-left: auto;
    font-family: var(--font);
    font-size: 10px;
    color: var(--text-tertiary);
}

/* Footer */
.popup-app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    position: relative;
    z-index: 2;
}
.popup-updated {
    font-family: var(--font);
    font-size: 9px;
    color: var(--text-tertiary);
}
.popup-quit {
    font-family: var(--font);
    font-size: 9px;
    font-weight: 500;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color 0.15s;
}
.popup-quit:hover { color: var(--red); }


/* ================================================
   FEATURES
   ================================================ */
.features { padding: var(--section-gap) 0; }
.features-header { text-align: center; margin-bottom: 64px; }
.features-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    --card-accent: var(--text-tertiary);
    padding: 28px 24px;
    background: var(--bg-base);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 2px solid var(--card-accent);
    border-radius: 10px;
    transition: all 0.3s ease;
}
.feature-card:hover {
    background: var(--bg-elevated);
    border-color: rgba(255, 255, 255, 0.06);
    border-left-color: var(--card-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.feature-card[data-accent="green"] { --card-accent: var(--green); }
.feature-card[data-accent="yellow"] { --card-accent: var(--yellow); }
.feature-card[data-accent="orange"] { --card-accent: var(--orange); }
.feature-card[data-accent="red"] { --card-accent: var(--red); }
.feature-card[data-accent="terracotta"] { --card-accent: var(--terracotta); }

.feature-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 16px;
    color: var(--card-accent);
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.feature-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.7;
}


/* ================================================
   PRICING
   ================================================ */
.pricing { padding: var(--section-gap) 0; }
.pricing-content { text-align: center; }
.pricing-content h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    margin-bottom: 48px;
}
.pricing-card {
    position: relative;
    max-width: 400px;
    margin: 0 auto 32px;
    padding: 40px 36px;
    background: var(--bg-base);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}
/* Gradient border */
.pricing-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    padding: 1px;
    background: linear-gradient(160deg, var(--terracotta), transparent 40%, transparent 60%, var(--green));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.4;
    pointer-events: none;
}
.pricing-amount {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    margin-bottom: 8px;
}
.pricing-currency {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 8px;
}
.pricing-value {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1;
}
.pricing-period {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.pricing-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--bg-surface), transparent);
    margin-bottom: 24px;
}
.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}
.pricing-features li {
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.check {
    color: var(--green);
    font-size: 0.9rem;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}
.pricing-note {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    margin-top: 12px;
    letter-spacing: 0.04em;
}
.pricing-future {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.8;
}
.pricing-irony { color: var(--terracotta); font-weight: 500; }


/* ================================================
   FOOTER
   ================================================ */
.footer { padding: 60px 0 40px; }
.footer::before {
    content: '';
    display: block;
    height: 1px;
    max-width: var(--container-max);
    margin: 0 auto 60px;
    background: linear-gradient(to right, transparent, var(--terracotta), transparent);
    opacity: 0.2;
}
.footer-content { text-align: center; }
.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}
.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}
.footer-links a {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
}
.footer-links a:hover { color: var(--terracotta); }
.footer-sep { color: var(--text-tertiary); opacity: 0.4; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.68rem;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
}
.footer-icon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}


/* ================================================
   POPUP CHART (Usage Trends in demo)
   ================================================ */
.popup-chart-section {
    padding: 10px 18px;
    position: relative;
    z-index: 2;
}
.popup-chart-toolbar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 6px;
}
.popup-chart-toolbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.popup-chart-title {
    font-family: var(--font);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--text-tertiary);
}
.popup-chart-expand {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-tertiary);
    padding: 0;
    transition: all 0.15s ease;
}
.popup-chart-expand:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}
.popup-chart-expand svg {
    width: 8px;
    height: 8px;
}
.popup-chart-toolbar-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.popup-chart-pills {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 100px;
}
.popup-pill {
    font-family: var(--font);
    font-size: 9px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 100px;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.popup-pill.active {
    color: var(--terracotta);
    background: var(--terracotta-dim);
}
.popup-chart-legend {
    display: flex;
    align-items: center;
    gap: 10px;
}
.popup-legend-item {
    display: flex;
    align-items: center;
    gap: 3px;
    font-family: var(--font);
    font-size: 8px;
    font-weight: 500;
    color: var(--text-tertiary);
}
.popup-legend-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
}
.popup-legend-dot.terracotta { background: var(--terracotta); }
.popup-legend-dot.secondary { background: var(--text-secondary); }

/* Chart Canvas */
.popup-chart-canvas {
    height: 64px;
    position: relative;
}
.popup-chart-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.threshold-line.threshold-80 {
    stroke: rgba(224, 120, 48, 0.15);
    stroke-width: 0.5;
}
.threshold-line.threshold-95 {
    stroke: rgba(224, 69, 69, 0.15);
    stroke-width: 0.5;
}
.chart-area-5h {
    fill: url(#chart-gradient-5h);
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
}
.demo-popup.chart-animated .chart-area-5h {
    opacity: 1;
}
.chart-line-5h {
    fill: none;
    stroke: var(--terracotta);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 1.5s ease 0.2s;
}
.demo-popup.chart-animated .chart-line-5h {
    stroke-dashoffset: 0;
}
.chart-line-7d {
    fill: none;
    stroke: var(--text-secondary);
    stroke-width: 0.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 1.2s ease 0.5s;
}
.demo-popup.chart-animated .chart-line-7d {
    stroke-dashoffset: 0;
}

/* Chart Time Axis */
.popup-chart-axis {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 3px;
    font-family: var(--font);
    font-size: 8px;
    color: var(--text-tertiary);
}


/* ================================================
   SPOTLIGHT (Scheduled Prompts)
   ================================================ */
.spotlight { padding: var(--section-gap) 0; }
.spotlight-content {
    text-align: center;
    margin-bottom: 56px;
}
.spotlight-content h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    margin-bottom: 16px;
}
.spotlight-sub {
    font-size: 0.88rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Before / After comparison cards */
.spotlight-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
}
.spotlight-card {
    padding: 24px;
    border-radius: 12px;
    background: var(--bg-base);
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}
.spotlight-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 13px;
    padding: 1px;
    pointer-events: none;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.spotlight-without::before {
    background: linear-gradient(180deg, rgba(224, 184, 48, 0.25), transparent 60%);
}
.spotlight-with::before {
    background: linear-gradient(180deg, rgba(72, 208, 96, 0.3), transparent 60%);
}
.spotlight-card-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}
.spotlight-label-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.spotlight-label-dot.red { background: var(--red); box-shadow: 0 0 6px var(--red); }
.spotlight-label-dot.green { background: var(--green); box-shadow: 0 0 6px var(--green); }

/* Timeline entries */
.spotlight-timeline {
    display: flex;
    flex-direction: column;
}
.tl-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}
.tl-time {
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-tertiary);
    width: 68px;
    flex-shrink: 0;
    text-align: right;
}
.tl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.tl-dot.neutral {
    background: var(--text-tertiary);
    box-shadow: 0 0 4px rgba(76, 73, 82, 0.3);
}
.tl-dot.warn {
    background: var(--red);
    box-shadow: 0 0 8px rgba(224, 69, 69, 0.4);
}
.tl-dot.dim {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.tl-dot.accent {
    background: var(--terracotta);
    box-shadow: 0 0 8px rgba(224, 120, 80, 0.4);
}
.tl-dot.good {
    background: var(--green);
    box-shadow: 0 0 8px rgba(72, 208, 96, 0.4);
}
.tl-desc {
    font-family: var(--font);
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.tl-entry.warn .tl-desc { color: var(--red); font-weight: 500; }
.tl-entry.dim .tl-desc { color: var(--text-tertiary); font-style: italic; }
.tl-entry.dim .tl-time { color: var(--bg-surface); }
.tl-entry.accent .tl-desc { color: var(--terracotta); font-weight: 500; }
.tl-entry.good .tl-desc { color: var(--green); }

/* Vertical connector lines */
.tl-connector {
    width: 2px;
    height: 16px;
    margin-left: calc(68px + 10px + 3px); /* time width + gap + center of dot */
    background: rgba(255, 255, 255, 0.06);
    border-radius: 1px;
}
.tl-connector.dim { background: rgba(255, 255, 255, 0.03); }
.tl-connector.accent { background: rgba(224, 120, 80, 0.2); }
.tl-connector.good { background: rgba(72, 208, 96, 0.2); }


/* ================================================
   FAQ
   ================================================ */
.faq { padding: var(--section-gap) 0; }
.faq-header { text-align: center; margin-bottom: 48px; }
.faq-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
}
.faq-list {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    background: var(--bg-base);
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.faq-item[open] {
    border-color: rgba(224, 120, 80, 0.15);
    background: var(--bg-elevated);
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ''; }
.faq-question::after {
    content: '+';
    flex-shrink: 0;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-tertiary);
    margin-left: 16px;
    transition: transform 0.25s ease, color 0.25s ease;
}
.faq-item[open] .faq-question::after {
    content: '\2212';
    color: var(--terracotta);
}
.faq-question:hover { color: var(--terracotta); }
.faq-answer {
    padding: 0 24px 20px;
}
.faq-answer p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.8;
}
.faq-answer code {
    font-family: var(--font);
    font-size: 0.78rem;
    color: var(--terracotta);
    background: rgba(224, 120, 80, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}
.faq-answer strong {
    color: var(--text-primary);
    font-weight: 600;
}


/* ================================================
   SCROLL REVEAL
   ================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.features-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.features-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.features-grid .reveal:nth-child(6) { transition-delay: 0.40s; }


/* ================================================
   SECTION HEADER (centered, reusable)
   ================================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    margin-bottom: 0;
}

/* ================================================
   PLATFORM TOAST
   ================================================ */
#platform-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-elevated, #1c1c1e);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    z-index: 9999;
    transition: opacity 0.3s, transform 0.3s;
    max-width: 90vw;
}
#platform-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}
.toast-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.toast-body strong {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-primary, #f0f0f0);
}
.toast-body span {
    font-size: 0.75rem;
    color: var(--text-secondary, #999);
}
.toast-copy {
    flex-shrink: 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: var(--terracotta);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.toast-copy:hover {
    background: rgba(255,255,255,0.1);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
    :root { --section-gap: 100px; }
    .pain-grid { grid-template-columns: 1fr; gap: 48px; }
    .pain-terminal { order: -1; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .spotlight-compare { grid-template-columns: 1fr; max-width: 400px; }
}

@media (max-width: 640px) {
    :root { --section-gap: 80px; --container-pad: 20px; }
    body { font-size: 14px; }
    .nav-links a:not(.nav-cta) { display: none; }
    .hero { padding: 100px var(--container-pad) 60px; }
    .hero-icon { width: 60px; height: 60px; border-radius: 14px; margin-bottom: 24px; }
    .hero-badge { margin-bottom: 24px; }
    .hero-sub br { display: none; }
    .hero-cta-group { flex-direction: column; gap: 12px; }
    .hero-cta-group .btn { width: 100%; justify-content: center; }
    .terminal-cmd {
        display: inline-block;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: bottom;
    }
    .features-grid { grid-template-columns: 1fr; }
    .demo-header h2 br,
    .features-header h2 br,
    .pricing-content h2 br { display: none; }
    .pricing-card { padding: 32px 24px; }
    /* Scale the popup on mobile */
    .demo-app-container { max-width: 320px; }
    .demo-popup { transform: scale(0.92); transform-origin: top center; }
}


/* ================================================
   SCROLL USAGE TRACKER (nav)
   ================================================ */
.nav-usage {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    margin-left: 14px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.nav-usage.visible {
    opacity: 1;
    transform: translateX(0);
}
.nav-usage-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav-usage-pct {
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--green);
    letter-spacing: 0.04em;
    min-width: 30px;
    transition: color 0.4s ease;
}
.nav-usage-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.015);
    overflow: hidden;
}
.nav-usage-fill {
    height: 100%;
    width: 0%;
    background: var(--green);
    box-shadow: 0 0 10px currentColor;
    transition: width 0.12s ease-out, background 0.4s ease, box-shadow 0.4s ease;
}

/* Extra menubar dot colors for interactive demo */
.menubar-status-dot.yellow { background: var(--yellow); box-shadow: 0 0 4px var(--yellow); }
.menubar-status-dot.red { background: var(--red); box-shadow: 0 0 4px var(--red); }
.menubar-status-dot.green { background: var(--green); box-shadow: 0 0 4px var(--green); }


/* ================================================
   CURSOR GLOW
   ================================================ */
.cursor-glow {
    position: fixed;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 120, 80, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
    will-change: transform;
}
.cursor-glow.visible {
    opacity: 1;
}
@media (hover: none) {
    .cursor-glow { display: none; }
}


/* ================================================
   RATE LIMIT OVERLAY
   ================================================ */
.rate-limit-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 8, 12, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    pointer-events: none;
    opacity: 0;
    transition: all 0.5s ease;
}
.rate-limit-overlay.active {
    background: rgba(8, 8, 12, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    pointer-events: auto;
    opacity: 1;
}
.rate-limit-overlay.dismiss {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: all 0.7s ease;
}
.rate-limit-content {
    text-align: center;
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
.rate-limit-overlay.active .rate-limit-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}
.rate-limit-warning {
    font-size: 56px;
    margin-bottom: 20px;
    color: var(--red);
    filter: drop-shadow(0 0 40px rgba(224, 69, 69, 0.5));
    animation: rl-pulse 0.8s ease-in-out infinite;
}
@keyframes rl-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 40px rgba(224, 69, 69, 0.5)); }
    50% { transform: scale(1.06); filter: drop-shadow(0 0 60px rgba(224, 69, 69, 0.7)); }
}
.rate-limit-text {
    font-family: var(--font);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--red);
    text-shadow: 0 0 60px rgba(224, 69, 69, 0.3);
    margin-bottom: 20px;
    text-transform: uppercase;
}
.rate-limit-subtext {
    font-family: var(--font);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 2;
}
.rate-limit-accent {
    color: var(--terracotta);
    font-weight: 500;
}


/* ================================================
   INTERACTIVE DEMO SLIDER
   ================================================ */
.demo-interact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.demo-interact.visible {
    opacity: 1;
    transform: translateY(0);
}
.demo-interact-hint {
    font-family: var(--font);
    font-size: 0.68rem;
    color: var(--text-tertiary);
    letter-spacing: 0.12em;
    animation: hint-breathe 2.5s ease-in-out infinite;
}
@keyframes hint-breathe {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.9; }
}
.demo-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 280px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    outline: none;
    cursor: pointer;
}
.demo-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--terracotta);
    box-shadow: 0 0 14px rgba(224, 120, 80, 0.4);
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.demo-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 22px rgba(224, 120, 80, 0.6);
}
.demo-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}
.demo-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--terracotta);
    box-shadow: 0 0 14px rgba(224, 120, 80, 0.4);
    border: none;
    cursor: grab;
}
.demo-slider::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
}
/* ---- Slash Command Prompt ---- */
#cmd-prompt {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid rgba(224, 120, 80, 0.3);
    border-radius: 10px;
    padding: 10px 20px;
    font-family: var(--font);
    font-size: 0.85rem;
    color: var(--text-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(224, 120, 80, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}
#cmd-prompt.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
#cmd-prompt.executed {
    border-color: var(--terracotta);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(224, 120, 80, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.cmd-prompt-caret {
    color: var(--terracotta);
    font-weight: 700;
    margin-right: 2px;
}
.cmd-prompt-text {
    color: var(--text-primary);
}
.cmd-prompt-cursor {
    color: var(--terracotta);
    animation: prompt-blink 0.8s step-end infinite;
    margin-left: 1px;
}
@keyframes prompt-blink {
    50% { opacity: 0; }
}

/* ---- /help Panel ---- */
#help-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--bg-base);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    width: 380px;
    max-width: calc(100vw - 32px);
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
    cursor: pointer;
}
#help-panel.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.help-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.help-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.help-title {
    margin-left: 8px;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
}
.help-body {
    padding: 12px 16px;
}
.help-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.help-row:last-child { border-bottom: none; }
.help-cmd {
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--terracotta);
}
.help-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.help-hint {
    padding: 8px 16px 10px;
    font-size: 0.65rem;
    color: var(--text-tertiary);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ---- /clear Scanline Wipe ---- */
#clear-wipe {
    position: fixed;
    inset: 0;
    z-index: 10002;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        var(--bg-deep) 0%,
        var(--bg-deep) 48%,
        var(--terracotta) 49%,
        rgba(224, 120, 80, 0.4) 50%,
        transparent 51%,
        transparent 100%
    );
    background-size: 100% 200%;
    background-position: 0 -100%;
    opacity: 0;
}
#clear-wipe.active {
    opacity: 1;
    animation: scanline-sweep 0.6s ease-in-out forwards;
}
#clear-wipe.fade {
    animation: none;
    background: var(--bg-deep);
    opacity: 1;
    transition: opacity 0.5s;
}
#clear-wipe.fade {
    opacity: 0;
}
@keyframes scanline-sweep {
    0%   { background-position: 0 -100%; }
    100% { background-position: 0 100%; }
}

/* ---- /status Nav Pulse ---- */
.nav-usage.cmd-pulse {
    animation: nav-cmd-pulse 1.4s ease-out;
}
.cmd-pulse-dot {
    animation: dot-cmd-pulse 1.4s ease-out !important;
}
@keyframes nav-cmd-pulse {
    0%   { transform: scale(1); }
    20%  { transform: scale(1.25); }
    40%  { transform: scale(1); }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}
@keyframes dot-cmd-pulse {
    0%, 100% { box-shadow: 0 0 6px currentColor; }
    20%  { box-shadow: 0 0 20px var(--terracotta), 0 0 40px var(--terracotta); }
    50%  { box-shadow: 0 0 14px var(--terracotta); }
}

/* ---- /think Bubble ---- */
#think-bubble {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 22px;
    min-width: 260px;
    max-width: 400px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    cursor: pointer;
}
#think-bubble.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.think-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.think-icon {
    color: var(--terracotta);
    font-size: 0.9rem;
}
.think-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}
.think-dots span {
    display: inline-block;
    color: var(--terracotta);
    font-weight: 700;
    animation: think-dot-bounce 1.4s ease-in-out infinite;
}
.think-dots span:nth-child(2) { animation-delay: 0.2s; }
.think-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes think-dot-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}
.think-message {
    font-size: 0.8rem;
    color: var(--text-primary);
    line-height: 1.5;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s, max-height 0.4s;
}
.think-message.visible {
    opacity: 1;
    max-height: 60px;
    margin-top: 6px;
}

/* ---- /exit Fake Quit ---- */
body.cmd-exit {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s, border-radius 0s;
    transform: scale(0.01);
    opacity: 0;
}
body.cmd-exit-black {
    transform: scale(1);
    opacity: 0;
    transition: opacity 0.4s;
}
body.cmd-exit-black:not(.cmd-exit) {
    opacity: 1;
}

@media (max-width: 640px) {
    .nav-usage { display: none; }
    .demo-slider { width: 240px; }
}
