/* Overline — Marketing Website */
/* Zenith Design System tokens */

:root {
    /* Dark mode (default) */
    --bg: #1A1816;
    --bg-surface: #22201D;
    --bg-elevated: #2A2724;
    --border: #3D3630;
    --border-subtle: #2E2A26;
    --text: #E8E2DA;
    --text-secondary: #B8AD9E;
    --text-muted: #8A7F72;
    --accent: #C8A064;
    --accent-dim: rgba(200, 160, 100, 0.15);
    --accent-glow: rgba(200, 160, 100, 0.08);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --space-3xl: 96px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

[data-mode="light"] {
    --bg: #F5F2EE;
    --bg-surface: #EBE7E1;
    --bg-elevated: #E0DCD6;
    --border: #C8C0B4;
    --border-subtle: #D8D2C8;
    --text: #2A2420;
    --text-secondary: #5C5248;
    --text-muted: #8A7F72;
    --accent: #8A6820;
    --accent-dim: rgba(138, 104, 32, 0.1);
    --accent-glow: rgba(138, 104, 32, 0.06);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
::-webkit-scrollbar-thumb:active {
    background: var(--accent);
}
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

/* Nav */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) var(--space-xl);
    background: rgba(26, 24, 22, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
}

[data-mode="light"] .nav {
    background: rgba(245, 242, 238, 0.85);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.nav-wordmark {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--accent);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    background: var(--accent);
    color: var(--bg) !important;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    transition: opacity 0.2s !important;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 5px 6px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
    color: var(--text);
    border-color: var(--border);
}

/* Show icon matching current preference (not resolved mode) */
.theme-icon-dark, .theme-icon-light, .theme-icon-system { display: none; }
[data-theme-pref="dark"] .theme-icon-dark { display: block; }
[data-theme-pref="light"] .theme-icon-light { display: block; }
[data-theme-pref="system"] .theme-icon-system { display: block; }

.nav-cta:hover {
    opacity: 0.9;
    color: var(--bg) !important;
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 120px var(--space-xl) var(--space-2xl);
    overflow: hidden;
}

.hero-content {
    max-width: 620px;
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

.hero-req {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Hero Demo — Terminal Mock + Overline Labels */
.hero-demo {
    width: 100%;
    max-width: 720px;
    position: relative;
}

/* Label layer — sits above the faded terminal, no mask */
.demo-labels {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
    z-index: 10;
    position: relative;
}

/* Terminals layer — faded at edges */
.demo-terminals {
    position: relative;
    -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 35%, black 45%, transparent 75%);
    mask-image: radial-gradient(ellipse 95% 85% at 50% 35%, black 45%, transparent 75%);
}

/* Overline Label */
.overline-label {
    width: 280px;
    height: 48px;
    background: rgba(26, 24, 22, 0.94);
    border: 1px solid #3D3630;
    border-radius: 8px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    transition: background 0.5s ease, border-color 0.5s ease;
}

/* Ambient golden glow behind label */
.overline-glow {
    position: absolute;
    inset: -16px -24px;
    border-radius: 24px;
    background: radial-gradient(ellipse at center, rgba(200, 160, 100, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.overline-glow-notif {
    background: radial-gradient(ellipse at center, rgba(200, 160, 100, 0.25) 0%, transparent 70%);
    animation: glow-pulse 2.5s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

[data-mode="light"] .overline-label {
    background: rgba(235, 231, 225, 0.94);
    border-color: #C8C0B4;
}

[data-mode="light"] .overline-glow {
    background: radial-gradient(ellipse at center, rgba(138, 104, 32, 0.1) 0%, transparent 70%);
}

[data-mode="light"] .overline-glow-notif {
    background: radial-gradient(ellipse at center, rgba(138, 104, 32, 0.2) 0%, transparent 70%);
}

[data-mode="light"] .overline-project {
    color: #8A6820;
}

[data-mode="light"] .overline-status {
    color: #5C5248;
}

.overline-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.overline-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding-left: 14px;
    position: relative;
    z-index: 2;
}

.overline-project {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #C8A064;
    font-family: system-ui, -apple-system, sans-serif;
    letter-spacing: -0.01em;
}

.overline-status {
    font-size: 0.6875rem;
    color: #B8AD9E;
    font-family: system-ui, -apple-system, sans-serif;
}

/* Label notification state (applied via JS) */
.overline-label.is-notified {
    background: rgba(200, 160, 100, 0.94);
    border-color: rgba(138, 104, 32, 0.6);
}

.overline-label.is-notified .overline-project {
    color: #2A1E10;
}

.overline-label.is-notified .overline-status {
    color: #4A3820;
}

.overline-label.is-notified .overline-glow {
    background: radial-gradient(ellipse at center, rgba(200, 160, 100, 0.3) 0%, transparent 70%);
    animation: glow-pulse 2s ease-in-out infinite;
}

[data-mode="light"] .overline-label.is-notified {
    background: rgba(138, 104, 32, 0.9);
    border-color: rgba(100, 75, 20, 0.5);
}

[data-mode="light"] .overline-label.is-notified .overline-project {
    color: #FFF8ED;
}

[data-mode="light"] .overline-label.is-notified .overline-status {
    color: #EDE0C8;
}

[data-mode="light"] .overline-label.is-notified .overline-glow {
    background: radial-gradient(ellipse at center, rgba(138, 104, 32, 0.25) 0%, transparent 70%);
}

.overline-project-notif {
    color: #2A1E10;
}

.overline-status-notif {
    color: #4A3820;
}

/* Terminal Window */
.terminal-window {
    background: #1C1B1A;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
}

[data-mode="light"] .terminal-window {
    background: #FAFAF8;
    border-color: #D0C8BC;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-mode="light"] .terminal-titlebar {
    background: #EEEAE4;
    border-bottom-color: #D0C8BC;
}

[data-mode="light"] .terminal-title {
    color: #8A7F72;
}

[data-mode="light"] .terminal-body {
    color: #2A2420;
}

[data-mode="light"] .term-cmd {
    color: #2A2420;
}

[data-mode="light"] .term-claude {
    color: #8A6820;
}

[data-mode="light"] .term-path {
    color: #3D6E94;
}

[data-mode="light"] .term-you {
    color: #8A6820;
}

[data-mode="light"] .term-claude-resp {
    color: #5C5248;
}

[data-mode="light"] .term-tool {
    color: #AAA29A;
}

[data-mode="light"] .term-prompt {
    color: #2E7A48;
}

[data-mode="light"] .term-tool-icon {
    color: #2E7A48;
}

[data-mode="light"] .term-cursor {
    background: #8A6820;
}

/* light mode notification handled via .is-notified below */

/* removed second terminal */

.terminal-titlebar {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #2A2928;
    border-bottom: 1px solid #333;
}

.terminal-dots {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
    width: 56px;
}

.terminal-dots-spacer {
    width: 56px;
    flex-shrink: 0;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-close { background: #FF5F57; }
.dot-minimize { background: #FEBC2E; }
.dot-maximize { background: #28C840; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    color: #888;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.terminal-body {
    padding: 16px 18px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8125rem;
    line-height: 1.65;
    min-height: 260px;
}

.term-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.term-dim {
    opacity: 0.5;
}

.term-prompt {
    color: #28C840;
    font-weight: 600;
}

.term-cmd {
    color: #E8E2DA;
}

.term-claude {
    color: #C8A064;
    font-weight: 600;
}

.term-path {
    color: #7AA2C8;
}

.term-you {
    color: #C8A064;
    font-weight: 600;
}

.term-claude-resp {
    color: #B8AD9E;
    font-weight: 600;
}

.term-tool {
    color: #666;
    font-size: 0.75rem;
}

.term-tool-icon {
    color: #28C840;
    font-size: 0.625rem;
}

.term-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #C8A064;
    opacity: 0.8;
    animation: blink 1.1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0; }
}

@media (max-width: 768px) {
    .terminal-bg {
        display: none;
    }
    .overline-label {
        width: 220px;
        height: 42px;
    }
    .terminal-body {
        font-size: 0.6875rem;
        min-height: 200px;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: var(--radius-md);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    padding: 12px 28px;
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto var(--space-3xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    color: var(--text);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Features — Tabbed Showcase */
.features {
    padding: var(--space-3xl) var(--space-xl);
    max-width: 720px;
    margin: 0 auto;
}

.showcase {
    position: relative;
}

/* Tab bar */
.showcase-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 4px;
    position: relative;
    margin-bottom: var(--space-xl);
}

.showcase-tab {
    flex: 1;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color 0.25s;
}

.showcase-tab:hover {
    color: var(--text-secondary);
}

.showcase-tab.is-active {
    color: var(--text);
}

/* Sliding indicator behind active tab */
.tab-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Panels */
.showcase-panels {
    position: relative;
    overflow: hidden;
}

.showcase-panel {
    display: none;
    animation: panelIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-panel.is-active {
    display: block;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-description h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.panel-description p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Preview label inside panels */
.panel-label-preview {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-xl);
    position: relative;
    padding: 24px 0;
}

.preview-label {
    width: 320px;
    height: 52px;
    background: rgba(26, 24, 22, 0.94);
    border: 1px solid #3D3630;
    border-radius: 8px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: background 0.5s, border-color 0.5s;
}

[data-mode="light"] .preview-label {
    background: rgba(235, 231, 225, 0.94);
    border-color: #C8C0B4;
}

.preview-label-notif {
    background: rgba(200, 160, 100, 0.94) !important;
    border-color: rgba(138, 104, 32, 0.6) !important;
}

[data-mode="light"] .preview-label-notif {
    background: rgba(138, 104, 32, 0.9) !important;
    border-color: rgba(100, 75, 20, 0.5) !important;
}

[data-mode="light"] .preview-label-notif .overline-project {
    color: #FFF8ED !important;
}

[data-mode="light"] .preview-label-notif .overline-status {
    color: #EDE0C8 !important;
}

.preview-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.preview-glow {
    position: absolute;
    inset: -20px -32px;
    border-radius: 28px;
    background: radial-gradient(ellipse at center, rgba(200, 160, 100, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.preview-glow-notif {
    background: radial-gradient(ellipse at center, rgba(200, 160, 100, 0.25) 0%, transparent 70%);
    animation: glow-pulse 2.5s ease-in-out infinite;
}

[data-mode="light"] .preview-glow {
    background: radial-gradient(ellipse at center, rgba(138, 104, 32, 0.08) 0%, transparent 70%);
}

[data-mode="light"] .preview-glow-notif {
    background: radial-gradient(ellipse at center, rgba(138, 104, 32, 0.2) 0%, transparent 70%);
}

@media (max-width: 640px) {
    .showcase-tab {
        font-size: 0.75rem;
        padding: 8px 6px;
    }
    .preview-label {
        width: 260px;
        height: 46px;
    }
}

/* How It Works */
.how-it-works {
    padding: var(--space-3xl) var(--space-xl);
    max-width: 720px;
    margin: 0 auto;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
}

.step-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text);
}

.step-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Download */
.download {
    padding: var(--space-3xl) var(--space-xl);
    max-width: 640px;
    margin: 0 auto;
}

.download-card {
    text-align: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl);
}

.download-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.download-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text);
}

.download-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.download-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
}

.download-instructions {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
    text-align: left;
}

.download-instructions h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.download-instructions ol {
    padding-left: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.download-instructions li {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.download-instructions li::marker {
    color: var(--accent);
    font-weight: 600;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
    border-top: 1px solid var(--border-subtle);
}

.site-footer__title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.site-footer__credit {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 640px) {
    .nav {
        padding: var(--space-sm) var(--space-md);
    }

    .hero {
        padding: 100px var(--space-md) var(--space-2xl);
    }

    .features, .how-it-works, .download {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
