/* ==========================================================================
   Spec Architect — Engineering & SDD Dark Theme
   High-precision Developer Aesthetic (Linear / Raycast / Vercel inspirated)
   ========================================================================== */

:root {
    --bg-base: #07090e;
    --bg-surface: #0e121b;
    --bg-surface-elevated: #151b27;
    --bg-card: rgba(14, 18, 27, 0.85);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    --border-accent: rgba(99, 102, 241, 0.4);
    
    --accent-cyan: #00f2fe;
    --accent-indigo: #6366f1;
    --accent-blue: #3b82f6;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
    
    --glow-cyan: 0 0 35px rgba(0, 242, 254, 0.15);
    --glow-indigo: 0 0 45px rgba(99, 102, 241, 0.2);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 55%),
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
}

/* Header & Navbar */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 9, 14, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.navbar {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

/* Menu items never wrap or get squeezed; the layout switches instead (see the media queries) */
.navbar-brand,
.navbar-cta,
.navbar-links a,
.navbar-cta > a,
.lang-switch button {
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.brand-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    letter-spacing: 0.05em;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.navbar-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.btn-support .support-heart {
    color: #f43f5e;
}

/* Container */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero {
    padding: 5rem 0 3.5rem;
    text-align: center;
    position: relative;
}

.pill-announcement {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #c7d2fe;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 20%, #cbd5e1 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 760px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-subtitle strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.6);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Blueprint / App Interface Mockup */
.mockup-wrapper {
    margin: 3.5rem auto 0;
    max-width: 1100px;
    position: relative;
}

.mockup-glow {
    position: absolute;
    top: -20px;
    left: 5%;
    right: 5%;
    height: 350px;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
}

.app-window {
    position: relative;
    z-index: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
    overflow: hidden;
    text-align: left;
}

.window-header {
    background: var(--bg-surface-elevated);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
}

.window-controls {
    display: flex;
    gap: 6px;
}

.control-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.control-dot.red { background-color: #ef4444; }
.control-dot.yellow { background-color: #f59e0b; }
.control-dot.green { background-color: #10b981; }

.window-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.window-actions {
    display: flex;
    gap: 0.5rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.window-body {
    display: grid;
    grid-template-columns: 240px 1fr 300px;
    min-height: 480px;
    background: #090c13;
}

@media (max-width: 900px) {
    .window-body {
        grid-template-columns: 1fr;
    }
    .window-sidebar, .window-terminal {
        display: none;
    }
}

.window-sidebar {
    background: rgba(14, 18, 27, 0.6);
    border-right: 1px solid var(--border-subtle);
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.sidebar-heading {
    text-transform: uppercase;
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.tree-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--text-primary);
    border-left: 2px solid var(--accent-indigo);
}

.window-main {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.kanban-col {
    background: rgba(21, 27, 39, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}

.col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.col-count {
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 6px;
    border-radius: 99px;
}

.spec-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    margin-bottom: 0.6rem;
    transition: var(--transition);
}

.spec-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.spec-card-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-cyan);
    margin-bottom: 0.35rem;
}

.spec-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.spec-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.agent-avatar {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #c7d2fe;
}

.window-terminal {
    background: #05070a;
    border-left: 1px solid var(--border-subtle);
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.terminal-line {
    margin-bottom: 0.4rem;
    line-height: 1.4;
}
.terminal-line.cmd { color: var(--accent-cyan); }
.terminal-line.info { color: var(--text-secondary); }
.terminal-line.success { color: var(--accent-emerald); }
.terminal-line.ai { color: #a5b4fc; }

/* Section Title */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* Comparison Cards (Vibecoding vs SDD) */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

.comp-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
}

.comp-card.bad {
    border-color: rgba(239, 68, 68, 0.2);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.03) 0%, var(--bg-surface) 100%);
}

.comp-card.good {
    border-color: rgba(99, 102, 241, 0.35);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, var(--bg-surface) 100%);
    box-shadow: var(--glow-indigo);
}

.comp-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 99px;
    margin-bottom: 1.25rem;
}

.comp-card.bad .comp-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.comp-card.good .comp-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.comp-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.comp-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.comp-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.comp-icon {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.comp-card.bad .comp-icon { color: #f87171; }
.comp-card.good .comp-icon { color: var(--accent-cyan); }

/* Lifecycle Pipeline */
.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 992px) {
    .pipeline-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .pipeline-grid {
        grid-template-columns: 1fr;
    }
}

.pipeline-step {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    transition: var(--transition);
}

.pipeline-step:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.step-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
    display: block;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: var(--transition);
}

.feat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    background: var(--bg-surface-elevated);
}

.feat-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-indigo);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.feat-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.feat-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Download Section */
.download-section {
    background: linear-gradient(180deg, transparent 0%, rgba(14, 18, 27, 0.8) 100%);
    border-top: 1px solid var(--border-subtle);
    padding: 6rem 0;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 860px;
    margin: 0 auto 3rem;
}

@media (max-width: 700px) {
    .download-cards {
        grid-template-columns: 1fr;
    }
}

.dl-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: left;
    transition: var(--transition);
}

.dl-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.dl-os {
    font-size: 1.35rem;
    font-weight: 700;
}

.dl-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.dl-badge.soon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-amber);
    border-color: rgba(245, 158, 11, 0.2);
}

.dl-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.dl-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.dl-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.dl-btn.primary {
    background: rgba(99, 102, 241, 0.15);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.35);
}

.dl-btn.primary:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
}

.dl-btn.secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.dl-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
}

.dl-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Terminal snippet */
.quick-install {
    max-width: 600px;
    margin: 0 auto;
    background: #05070a;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.code-snippet {
    color: var(--accent-cyan);
    overflow-x: auto;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    transition: var(--transition);
}

.copy-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0 2rem;
    background: #040508;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    font-weight: 600;
    color: var(--text-primary);
}

.footer-copy {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ==========================================================================
   Manifesto & Problem-Solver Styles
   ========================================================================== */

.manifesto-section {
    padding: 3rem 0 5rem;
    position: relative;
}

.manifesto-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(0, 242, 254, 0.04) 100%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    position: relative;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), var(--glow-indigo);
    text-align: center;
    max-width: 980px;
    margin: 0 auto;
}

.manifesto-quote {
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.manifesto-quote em {
    font-style: normal;
    background: linear-gradient(135deg, #00f2fe 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.manifesto-author {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Problem-Solver Cards */
.solver-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 960px) {
    .solver-grid {
        grid-template-columns: 1fr;
    }
}

.solver-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.solver-card:hover {
    border-color: var(--accent-indigo);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(99, 102, 241, 0.15);
}

.solver-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.solver-icon {
    font-size: 1.8rem;
}

.solver-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
    letter-spacing: 0.05em;
}

.solver-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.solver-block {
    margin-bottom: 1rem;
    font-size: 0.88rem;
    line-height: 1.55;
}

.solver-block.problem {
    background: rgba(239, 68, 68, 0.05);
    border-left: 2px solid #ef4444;
    padding: 0.75rem 0.9rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
}

.solver-block.problem strong {
    color: #fca5a5;
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
    margin-bottom: 0.25rem;
}

.solver-block.solution {
    background: rgba(0, 242, 254, 0.04);
    border-left: 2px solid var(--accent-cyan);
    padding: 0.75rem 0.9rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-primary);
    margin-top: auto;
}

.solver-block.solution strong {
    color: var(--accent-cyan);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
    margin-bottom: 0.25rem;
}

/* Download notes (Windows SmartScreen, checksums, current version) */
.dl-note {
    margin-top: 0.9rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted, #8b949e);
}

.dl-version {
    margin-top: 0.4rem;
    font-size: 0.85rem;
}

.dl-checksum {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted, #8b949e);
}

.dl-checksum a {
    color: inherit;
    text-decoration: underline;
}

/* Pré-requisito: CLI de agente */
.dl-requirements {
    max-width: 860px; /* same as .download-cards */
    margin: 0 auto 1.5rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.06);
    border-radius: var(--radius-md);
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.dl-req-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.dl-req-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 999px;
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.45);
}

.dl-req-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.8rem 0;
    padding: 0;
}

.dl-req-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 0.85rem;
}

.dl-req-list code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dl-req-foot {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Author & support */
.support-section {
    padding: 2rem 0 5rem;
}

/* Author strip on top, one support card (star | Pix) below */
.support-wrap {
    max-width: 960px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.support-author {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

.support-author .support-role {
    margin-bottom: 0;
}

.support-author .support-chips {
    margin-top: 0.75rem;
}

.support-card.support-card-accent {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.support-col {
    display: flex;
    flex-direction: column;
}

.support-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

.support-card-accent {
    border-color: var(--border-accent);
}

.support-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
}

.support-name {
    margin: 0.5rem 0 0.25rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.support-role {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 500;
}

.support-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 1rem 0 0;
    padding: 0;
}

.support-chips li {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.support-star {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto 0 0;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid var(--border-accent);
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.support-star:hover {
    background: rgba(99, 102, 241, 0.25);
}

.support-star-count {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.support-more {
    border-left: 1px solid var(--border-subtle);
    padding-left: 2rem;
}

.support-col > p {
    margin-bottom: 1rem;
}

.support-more-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.support-more-title span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--accent-emerald);
    margin-left: 0.4rem;
    white-space: nowrap;
    display: inline-block;
}

.support-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.support-links .support-star {
    margin: 0;
}

/* OpenSpec positioning and footer notes */
.hero-openspec {
    max-width: 720px;
    margin: -0.25rem auto 1.25rem;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-primary);
    line-height: 1.55;
}

/* Workflow under the hero definition: wraps on small screens */
.hero-flow {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.4rem;
    max-width: 820px;
    margin: 0 auto 2rem;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.hero-flow li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-primary);
}

.hero-flow li + li::before {
    content: "→";
    color: var(--accent-cyan);
}

/* "Você já usa OpenSpec?" */
.openspec-entry .section-header {
    margin-bottom: 0;
}

.openspec-cta {
    margin-top: 1.75rem;
}

.openspec-note {
    margin-top: 1.25rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.hero-openspec code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    background: rgba(0, 242, 254, 0.08);
    color: var(--accent-cyan);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding-bottom: 1.5rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-edition {
    color: var(--accent-emerald);
}

.footer-note {
    flex-basis: 100%;
    font-size: 0.72rem;
}

.footer-note a {
    color: inherit;
    text-decoration: underline;
}

/* Language switch */
.lang-switch {
    display: inline-flex;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.lang-switch button {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.35rem 0.55rem;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn {
    white-space: nowrap;
}

.lang-switch button + button {
    border-left: 1px solid var(--border-subtle);
}

.lang-switch button:hover {
    color: var(--text-primary);
}

.lang-switch button.on {
    background: rgba(99, 102, 241, 0.18);
    color: var(--text-primary);
}

/* Real app screens */
.screens {
    max-width: 1120px;
    margin: 3rem auto 0;
}

.screens-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.screens-tabs,
.screens-theme {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.screens-bar button {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.82rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.screens-bar button:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.screens-bar button.on {
    background: rgba(99, 102, 241, 0.18);
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.screens-frame {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), var(--glow-indigo);
    background: var(--bg-surface);
}

.screens-frame img {
    display: block;
    width: 100%;
    height: auto;
}

/* Measured numbers */
.perf-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 860px;
    margin: 0 auto 2.5rem;
}

.perf-stats div {
    text-align: center;
    padding: 1.1rem 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
}

.perf-stats strong {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--accent-cyan);
    letter-spacing: -0.02em;
}

.perf-stats span {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Getting started */
.howto-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.howto-steps li {
    padding: 1.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
}

.howto-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.18);
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.howto-steps h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.howto-steps p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

@media (max-width: 1100px) {
    .howto-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .howto-steps {
        grid-template-columns: 1fr;
    }
}

/* ---- Mobile ---------------------------------------------------------------- */

@media (max-width: 1400px) {
    .brand-badge {
        display: none;
    }
}

@media (max-width: 1200px) {
    /* Links go to a swipeable row under the brand instead of widening the page */
    .navbar {
        flex-wrap: wrap;
        row-gap: 0.6rem;
        padding: 0.75rem 1rem;
    }
    .navbar-links {
        order: 3;
        width: 100%;
        gap: 1.25rem;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
    .navbar-links::-webkit-scrollbar {
        display: none;
    }
    .navbar-links a {
        font-size: 0.85rem;
    }
}

@media (max-width: 860px) {
    .kanban-board {
        grid-template-columns: 1fr;
    }
    .support-author,
    .support-card.support-card-accent {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .support-more {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--border-subtle);
        padding-top: 1.25rem;
    }
    .support-star {
        margin-top: 0.5rem;
    }
}

@media (max-width: 640px) {
    /* Only the sides: .section/.hero keep their own vertical spacing */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .section,
    .download-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .manifesto-section {
        padding-top: 1rem;
        padding-bottom: 3rem;
    }
    .section-header {
        margin-bottom: 2.25rem;
    }
    /* Brand and language on one row; the hero has the download button */
    .brand-badge,
    .navbar-cta .btn-nav,
    .navbar-cta .btn-primary {
        display: none;
    }
    /* Support stays as the heart only */
    .navbar-cta .btn-support {
        display: inline-flex;
        padding: 0.45rem 0.65rem;
    }
    .btn-support-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .hero {
        padding-top: 2.5rem;
        padding-bottom: 2rem;
    }
    .pill-announcement {
        font-size: 0.66rem;
        padding: 0.35rem 0.8rem;
        max-width: 100%;
        text-align: center;
        line-height: 1.4;
    }
    .hero h1 {
        font-size: clamp(1.85rem, 8.6vw, 2.4rem);
        letter-spacing: -0.03em;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-actions > a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .hero-meta {
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }
    .section-title {
        font-size: clamp(1.55rem, 7vw, 2rem);
        overflow-wrap: break-word;
    }
    .window-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .manifesto-card {
        padding: 2rem 1.25rem;
    }
    .dl-card {
        padding: 1.25rem;
    }
    .dl-btn {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    .dl-requirements {
        padding: 1rem;
    }
    .quick-install {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .code-snippet {
        white-space: normal;
        word-break: break-all;
    }
    .footer-links {
        flex-wrap: wrap;
        gap: 0.75rem 1.25rem;
    }
    .support-card {
        padding: 1.25rem;
    }
    .perf-stats {
        grid-template-columns: 1fr;
    }
}
