/* ==========================================================================
   FUGO LAUNCHER — PRODUCT DESIGN SYSTEM
   Material language extracted directly from the launcher application.
   Palette: Near-black charcoal surfaces, hairline borders, single warm-amber accent.
   Expansive layout optimized for 100% zoom on modern displays.
   ========================================================================== */

:root {
    /* Charcoal Surface Hierarchy */
    --bg-app: #07090e;
    --bg-surface-base: #0d1118;
    --bg-surface-raised: #131822;
    --bg-surface-elevated: #1a202e;
    --bg-surface-hover: #222a3d;
    
    /* Strict Single Accent: Warm Amber to Orange */
    --accent-amber: #f59e0b;
    --accent-orange: #ea580c;
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    --accent-gradient-hover: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    --accent-glow: rgba(245, 158, 11, 0.25);
    --accent-subtle: rgba(245, 158, 11, 0.12);
    --accent-border: rgba(245, 158, 11, 0.38);
    
    /* Monochrome Text Hierarchy */
    --text-high: #ffffff;
    --text-med: #94a3b8;
    --text-low: #64748b;
    --text-faint: #334155;
    
    /* Hairline Low-Contrast Borders */
    --border-hairline: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.14);
    --border-focused: rgba(255, 255, 255, 0.24);
    
    /* Geometry Tokens */
    --radius-pill: 9999px;
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', var(--font-sans);
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Elevation */
    --shadow-subtle: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-play: 0 10px 32px rgba(234, 88, 12, 0.35);
    
    /* Dimensions */
    --container-max: 1380px;
    --nav-height: 74px;
}

/* ==========================================================================
   BASE RESET & ATMOSPHERIC BACKDROP
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-app);
    color: var(--text-high);
    line-height: 1.55;
    letter-spacing: -0.01em;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Soft mountain artwork bleeding into background */
.bg-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-artwork {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 85vh;
    background-image: url('assets/mountains_sunset.png');
    background-size: cover;
    background-position: center top;
    opacity: 0.14;
    filter: blur(1px);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.app-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   NAVIGATION BAR — Single accent discipline
   ========================================================================== */

.app-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(7, 9, 14, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-hairline);
    z-index: 100;
}

.header-container {
    max-width: var(--container-max);
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-high);
}

.brand-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.brand-name-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.brand-version-pill {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface-raised);
    border: 1px solid var(--border-hairline);
    color: var(--accent-amber);
    transition: opacity 0.2s ease;
}

.nav-links-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link-item {
    text-decoration: none;
    color: var(--text-med);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-link-item:hover {
    color: var(--text-high);
    background: var(--bg-surface-raised);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-gh-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-med);
    text-decoration: none;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-raised);
    border: 1px solid var(--border-hairline);
    transition: all 0.15s ease;
}

.nav-gh-button:hover {
    color: var(--text-high);
    border-color: var(--border-subtle);
}

/* Nav Ghost Button — Subtle outline to never compete with hero CTA */
.nav-ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-high);
    background: var(--bg-surface-raised);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.15s ease;
}

.nav-ghost-btn:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--border-focused);
    color: var(--text-high);
}

/* ==========================================================================
   HERO SECTION — Single Focal Point of Intent
   ========================================================================== */

.hero-wrap {
    padding: 72px 32px 88px;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 960px;
    margin: 0 auto;
}

/* Shared Pill System Anatomy */
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface-raised);
    border: 1px solid var(--border-subtle);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-high);
    margin-bottom: 20px;
}

.pill-badge i {
    color: var(--accent-amber);
    font-size: 1.1rem;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5.8vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.06;
    color: var(--text-high);
    margin-bottom: 20px;
}

.hero-subhead {
    font-size: 1.2rem;
    color: var(--text-med);
    max-width: 700px;
    margin-bottom: 44px;
    line-height: 1.6;
}

/* The Dominant PLAY Button — Normal case, confident weight */
.play-cta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 500px;
}

.btn-play-dominant {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding: 20px 38px;
    background: var(--accent-gradient);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    border-radius: var(--radius-lg);
    text-decoration: none;
    box-shadow: var(--shadow-play);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.btn-play-dominant:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 42px rgba(234, 88, 12, 0.5);
    background: var(--accent-gradient-hover);
}

.btn-play-dominant i {
    font-size: 1.45rem;
    transition: transform 0.15s ease;
}

.btn-play-dominant:hover i {
    transform: translateY(2px);
}

.play-meta-quiet {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-low);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==========================================================================
   APP PREVIEW WINDOW — Clean, Uncropped Screenshot Frame
   ========================================================================== */

.app-window-frame {
    max-width: 1200px;
    width: 100%;
    margin: 56px auto 0;
    background: var(--bg-surface-base);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.window-titlebar {
    height: 42px;
    background: #090c12;
    border-bottom: 1px solid var(--border-hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.window-traffic-lights {
    display: flex;
    gap: 8px;
}

.traffic-light {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #232a38;
}

.window-title-text {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-low);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Uncropped, natural screenshot display */
.window-screenshot {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: var(--bg-surface-base);
}

/* ==========================================================================
   FEATURE SHOWCASE — 6-Card Uniform Native Grid
   ========================================================================== */

.section-shell {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 96px 32px;
    width: 100%;
}

.section-lead {
    margin-bottom: 48px;
}

.lead-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-amber);
    display: block;
    margin-bottom: 10px;
}

.lead-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-high);
}

.feature-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.native-app-card {
    background: var(--bg-surface-base);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.native-app-card:hover {
    border-color: var(--border-subtle);
    background: var(--bg-surface-raised);
    transform: translateY(-3px);
}

.card-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-amber);
    margin-bottom: 14px;
    display: block;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-high);
    margin-bottom: 10px;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-med);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-meta-line {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-low);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-hairline);
}

/* ==========================================================================
   DOWNLOAD SECTION — Matching Mental Model
   ========================================================================== */

.download-shell {
    background: var(--bg-surface-base);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-xl);
    padding: 72px 48px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-lead-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-high);
    margin-bottom: 12px;
}

.download-lead-sub {
    font-size: 1.1rem;
    color: var(--text-med);
    margin-bottom: 40px;
    max-width: 600px;
}

.download-action-core {
    width: 100%;
    max-width: 500px;
    margin-bottom: 28px;
}

.btn-download-twin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding: 20px 38px;
    background: var(--accent-gradient);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    border-radius: var(--radius-lg);
    text-decoration: none;
    box-shadow: var(--shadow-play);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.btn-download-twin:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 42px rgba(234, 88, 12, 0.5);
    background: var(--accent-gradient-hover);
}

.cli-command-box {
    margin-top: 16px;
    background: #090c12;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    color: var(--text-med);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
}

.btn-copy-mini {
    background: none;
    border: none;
    color: var(--text-med);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    transition: color 0.15s ease;
}

.btn-copy-mini:hover {
    color: var(--accent-amber);
}

.other-platforms-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border-hairline);
    width: 100%;
    max-width: 740px;
}

.other-platforms-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-low);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.platform-pills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.pill-link-quiet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-med);
    background: var(--bg-surface-raised);
    border: 1px solid var(--border-hairline);
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 0.15s ease;
}

.pill-link-quiet:hover {
    color: var(--text-high);
    border-color: var(--border-subtle);
    background: var(--bg-surface-elevated);
}

.svg-icon-mini {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.app-footer {
    border-top: 1px solid var(--border-hairline);
    padding: 48px 32px;
    background: #06080c;
    margin-top: auto;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-low);
}

.footer-left a {
    color: var(--text-med);
    text-decoration: none;
}

.footer-left a:hover {
    color: var(--accent-amber);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: var(--text-low);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.15s ease;
}

.footer-link:hover {
    color: var(--text-high);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

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

@media (max-width: 768px) {
    .header-container, .hero-wrap, .section-shell, .app-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .feature-bento-grid {
        grid-template-columns: 1fr;
    }
    
    .download-shell {
        padding: 40px 20px;
    }
    
    .pill-badge {
        font-size: 0.84rem;
        padding: 6px 14px;
    }
    
    .btn-play-dominant, .btn-download-twin {
        font-size: 1.15rem;
        padding: 18px 24px;
    }
}
