/* Montage AI - Voxel Dark Mode Design System
   Matching the webapp's Cyber-NLE aesthetic */

/*
 * Font Stack: 3 Fonts Only (2026 Trends)
 * - Space Grotesk: Display/Headlines (fancy, tech-forward)
 * - Inter: Body/UI (gold-standard readability)
 * - JetBrains Mono: Code/Technical (best code legibility)
 */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* Color System (Neon Voxel - Dark Mode) */
    --bg: #050505;
    --fg: #e0e0e0;
    --primary: #0055ff;              /* Electric Blue */
    --primary-glow: rgba(0, 85, 255, 0.3);
    --secondary: #ff5500;            /* Neon Orange */
    --secondary-glow: rgba(255, 85, 0, 0.3);
    --accent: #ff5500;
    --muted: #1a1a1a;
    --muted-fg: #888888;
    --card-bg: #0d0d0d;
    --border: #222222;
    --border-bright: #444444;
    --success: #00ff88;
    --warning: #ffcc00;
    --danger: #ff3333;

    /* Typography - 3 Font Stack (2026) */
    --font-display: 'Space Grotesk', sans-serif;   /* Headlines: fancy, tech-forward */
    --font-body: 'Inter', sans-serif;               /* Body: gold-standard readability */
    --font-mono: 'JetBrains Mono', monospace;       /* Code: best legibility */

    /* Fluid Typography (consistent with web-app) */
    --fs-xs: clamp(0.7rem, 0.6rem + 0.5vw, 0.8rem);
    --fs-sm: clamp(0.8rem, 0.7rem + 0.5vw, 0.9rem);
    --fs-base: clamp(0.9rem, 0.8rem + 0.5vw, 1rem);
    --fs-lg: clamp(1.1rem, 1rem + 1vw, 1.3rem);
    --fs-xl: clamp(1.4rem, 1.2rem + 2vw, 1.8rem);
    --fs-2xl: clamp(1.8rem, 1.5rem + 3vw, 2.5rem);

    --radius: 4px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --border-width: 1px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    background-image:
        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: 32px 32px;
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h1 { font-size: 2rem; line-height: 1; margin: 0; color: var(--fg); }
h2 { font-size: 1.25rem; border-bottom: 2px solid var(--primary); padding-bottom: 0.5rem; margin-bottom: 1.25rem; color: var(--fg); }
h3 { font-size: 1rem; color: var(--primary); margin-bottom: 0.5rem; }
h4 { font-size: 0.9rem; margin-bottom: 0.25rem; color: var(--fg); }

/* Voxel Card */
.voxel-card {
    background: var(--card-bg);
    border: var(--border-width) solid var(--border);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border-radius: var(--radius);
}

/* Voxel Button */
.voxel-btn {
    display: inline-block;
    background: var(--card-bg);
    border: var(--border-width) solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.25rem;
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.12s ease;
    border-radius: var(--radius);
}

.voxel-btn:hover {
    background: var(--primary);
    color: var(--bg);
    box-shadow: 0 0 16px var(--primary-glow);
}

.voxel-btn:active {
    transform: translate(1px, 1px);
}

.voxel-btn-primary {
    background: var(--primary);
    color: var(--bg);
    box-shadow: 0 0 12px var(--primary-glow);
}

.voxel-btn-primary:hover {
    background: var(--secondary);
    color: var(--bg);
    border-color: var(--secondary);
    box-shadow: 0 0 16px var(--secondary-glow);
}

.voxel-btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
    box-shadow: 3px 3px 0 0 var(--fg);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon { font-size: 2rem; }

.logo-ai { color: var(--secondary); }

.subtitle {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.version-badge {
    background: var(--fg);
    color: var(--bg);
    padding: 0.2rem 0.5rem;
    font-weight: bold;
    font-size: 0.7rem;
    border-radius: 999px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, rgba(13,148,136,0.05), rgba(245,158,11,0.05));
}

.hero-content { margin-bottom: 1.5rem; }

.hero-tag {
    font-size: 0.75rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    border: none;
    padding: 0;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.highlight { color: var(--primary); }

.hero-desc {
    max-width: 600px;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-soft);
}

.stat-item { text-align: center; }

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
}

.stat-label {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.feature-card {
    background: var(--bg);
    border: 2px solid var(--border-soft);
    border-radius: 10px;
    padding: 1.25rem;
    position: relative;
    transition: border-color 0.2s;
}

.feature-card:hover {
    border-color: var(--primary);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.feature-card h3 {
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.85rem;
    opacity: 0.8;
}

.badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.15rem 0.5rem;
    font-size: 0.65rem;
    font-weight: bold;
    border-radius: 4px;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.badge.new { background: var(--accent); }

/* Profile Grid */
.section-desc {
    opacity: 0.7;
    margin-bottom: 1.25rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.profile-card {
    background: var(--bg);
    border: 2px solid var(--border-soft);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    position: relative;
    transition: all 0.2s;
}

.profile-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.profile-card.selected {
    border-color: var(--primary);
    background: rgba(13,148,136,0.05);
}

.profile-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.profile-spec {
    font-size: 0.75rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.profile-card ul {
    list-style: none;
    font-size: 0.8rem;
    text-align: left;
}

.profile-card li {
    padding: 0.3rem 0;
    border-bottom: 1px dotted var(--muted);
}

.profile-card li:last-child { border: none; }

/* Terminal */
.terminal-window {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--fg);
}

.terminal-header {
    background: #2d2d2d;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    color: #888;
}

.terminal-body {
    padding: 1rem;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #0f0;
}

.terminal-body p { margin-bottom: 0.25rem; }

.prompt { color: #27c93f; margin-right: 0.5rem; }

.output { color: #888; }

.output.success { color: #27c93f; }

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.feature-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border-soft);
}

.feature-item:hover { border-color: var(--primary); }

.feature-bullet {
    color: var(--primary);
    font-weight: bold;
}

.feature-item strong {
    font-family: var(--font-display);
    display: block;
    margin-bottom: 0.25rem;
}

.feature-item p {
    font-size: 0.8rem;
    opacity: 0.8;
    margin: 0;
}

/* Audience Grid */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.audience-card {
    background: var(--bg);
    border: 2px solid var(--border-soft);
    border-radius: 10px;
    padding: 1.25rem;
    transition: border-color 0.2s;
}

.audience-card:hover { border-color: var(--primary); }

.audience-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.audience-card p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.75rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--border-soft);
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 4px;
}

/* CTA */
.cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(13,148,136,0.1), rgba(245,158,11,0.1));
}

.cta h2 { border: none; }

.cta p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--fg);
    text-decoration: none;
    font-size: 0.85rem;
}

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

.comparison-link-block {
    text-align: center;
    margin-top: 2rem;
}

.comparison-link {
    color: var(--primary);
    text-decoration: underline;
}

.copyright {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.copyright a { color: var(--primary); }

.tagline {
    font-size: 0.7rem;
    color: var(--primary);
}

/* Feature Showcase */
.feature-showcase {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.showcase-item {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    align-items: start;
}

.showcase-item:nth-child(even) {
    grid-template-columns: 1fr 400px;
}

.showcase-item:nth-child(even) .showcase-visual {
    order: 2;
}

.showcase-visual {
    position: relative;
    min-width: 320px;
}

.ascii-demo {
    background: var(--bg);
    border: 2px solid var(--border-soft);
    border-radius: 8px;
    padding: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    line-height: 1.3;
    overflow-x: auto;
    color: var(--fg);
    white-space: pre;
}

.showcase-content {
    position: relative;
    min-width: 0;
    padding-top: 1.5rem;
}

.feature-number {
    position: absolute;
    top: -1.25rem;
    left: -1rem;
    background: var(--primary);
    color: white;
    font-size: 1.25rem;
    font-weight: 900;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    box-shadow: 0 4px 12px rgba(13,148,136,0.3);
    z-index: 1;
}

.showcase-content {
    position: relative;
    min-width: 0;
    padding-top: 1.5rem; /* Space for badge */
}

.showcase-content h3 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.feature-highlight {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--primary-strong);
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    line-height: 1.3;
}

.showcase-content > p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.feature-specs {
    list-style: none;
    padding-left: 0;
    margin-top: 0.75rem;
}

.feature-specs li {
    font-size: 0.8rem;
    padding: 0.3rem 0;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.4;
}

.feature-specs li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.feature-specs strong {
    color: var(--primary-strong);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 960px) {
    .showcase-item,
    .showcase-item:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .showcase-item:nth-child(even) .showcase-visual {
        order: 1;
    }
    
    .ascii-demo {
        font-size: 0.6rem;
        padding: 0.5rem;
    }
    
    .feature-number {
        font-size: 1rem;
        width: 2rem;
        height: 2rem;
    }
}

@media (max-width: 640px) {
    .header-actions { width: 100%; justify-content: space-between; }
    .hero-stats { justify-content: space-around; }
    .profile-grid { grid-template-columns: repeat(2, 1fr); }

    .feature-showcase {
        gap: 2rem;
    }

    .ascii-demo {
        font-size: 0.55rem;
        padding: 0.4rem;
    }

    .showcase-content h3 {
        font-size: 0.9rem;
    }

    .feature-highlight {
        font-size: 0.85rem;
    }

    .showcase-content > p {
        font-size: 0.8rem;
    }

    .feature-specs li {
        font-size: 0.75rem;
    }
}

/* ============================================
   FEATURES GRID
   ============================================ */

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

.feature-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    transition: border-color 0.2s ease;
}

.feature-box:hover {
    border-color: var(--accent);
}

.feature-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.feature-box h4 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    margin: 0 0 0.5rem 0;
}

.feature-box p {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0;
}

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

/* ============================================
   OSS LANDSCAPE SECTION
   ============================================ */

.oss-landscape {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05), rgba(245, 158, 11, 0.05));
}

.oss-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.oss-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.oss-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.oss-card.highlight {
    border: 2px solid var(--secondary);
    background: rgba(255, 85, 0, 0.1);
    box-shadow: 0 0 16px var(--secondary-glow);
}

.oss-card h4 {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--fg);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.oss-card.highlight h4 {
    color: var(--secondary);
}

.oss-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.oss-features li {
    font-size: 0.85rem;
    padding: 0.3rem 0;
    font-family: var(--font-mono);
    color: var(--muted-fg);
}

.oss-features li.has {
    color: var(--success);
}

.oss-features li.missing {
    color: var(--danger);
    opacity: 0.8;
}

.oss-features li.partial {
    color: var(--warning);
}

.oss-badge {
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    background: var(--accent);
    color: var(--bg);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

.oss-link {
    display: block;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--muted);
    font-family: var(--font-mono);
    text-decoration: none;
}

a.oss-link:hover {
    color: var(--accent);
}

.oss-philosophy {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.oss-philosophy blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent);
    margin: 0 0 1rem 0;
    font-family: var(--font-body);
}

.oss-philosophy p {
    color: var(--muted);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* OSS Section Responsive */
@media (max-width: 960px) {
    .oss-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .oss-philosophy blockquote {
        font-size: 1.2rem;
    }
}

@media (max-width: 640px) {
    .oss-card {
        padding: 1.25rem;
    }

    .oss-features li {
        font-size: 0.8rem;
    }

    .oss-philosophy blockquote {
        font-size: 1.1rem;
    }

    .oss-philosophy p {
        font-size: 0.85rem;
    }
}
