/* ============================================================
   Sphere for Politics — Clean Light Theme & Open Graph Analytics
   Design Language: Advanced Executive Political Analytics
   Color Palette: Leaf Green (#10B981), Slate Navy (#0F172A) & Minimalist Light Grays (#F8FAFC)
   ============================================================ */

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

:root {
    /* Brand Accent Colors */
    --accent: #10B981;
    --accent-hover: #059669;
    --accent-glow: rgba(16, 185, 129, 0.18);
    --accent-light: #D1FAE5;
    --accent-dark: #047857;

    /* Backgrounds (Clean Light Focus) */
    --bg-body: #F8FAFC;          /* Main light off-white background */
    --bg-section-alt: #F1F5F9;   /* Secondary light gray background */
    --bg-card: #FFFFFF;          /* Cards and panels background */
    --bg-header: rgba(255, 255, 255, 0.90); /* Glassmorphic light header */

    /* Text Colors (High Contrast & Readability) */
    --text-primary: #0F172A;     /* Slate dark headings */
    --text-secondary: #334155;   /* Dark gray for body copy */
    --text-muted: #64748B;       /* Medium gray for labels and details */
    --text-on-accent: #FFFFFF;

    /* Borders */
    --border-light: #E2E8F0;     /* Separator border */
    --border-accent: rgba(16, 185, 129, 0.35);

    /* Typography */
    --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Globals */
    --section-pad: 6rem;
    --section-pad-sm: 3rem;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-secondary);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
}

p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
    background-color: var(--text-primary);
    color: #FFFFFF;
    text-align: center;
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1001;
}

.announcement-bar a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
    transition: color 0.2s ease;
}

.announcement-bar a:hover {
    color: #FFFFFF;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.header {
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    position: fixed;
    top: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2.4rem);
    max-width: 1200px;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.98);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 38px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.4rem 0.6rem;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.nav-cta {
    background: var(--accent);
    color: #FFFFFF !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.55rem 1.25rem;
    transition: all 0.2s ease;
    border: 1px solid var(--accent);
}

.nav-cta:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* Language selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-left: 1px solid var(--border-light);
    padding-left: 1rem;
    margin-left: 0.5rem;
}

.lang-btn {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.45rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

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

.lang-btn.active {
    color: #FFFFFF;
    background: var(--text-primary);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #FFFFFF;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-primary);
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--bg-section-alt);
    border-color: var(--text-primary);
}

/* ============================================================
   HERO / SPLASH SECTION
   ============================================================ */
.hero {
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
    padding: 10rem 0 6rem;
    border-bottom: 1px solid var(--border-light);
}

.hero-inner {
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hero h1 .accent-text {
    color: var(--accent);
}

.hero .subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ============================================================
   TRUSTED BY STRIP (MARQUEE)
   ============================================================ */
.trusted-strip {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: 1.8rem 0;
    overflow: hidden;
    position: relative;
}

.trusted-strip-label {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 4rem;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    justify-content: space-around;
    min-width: 100%;
    gap: 4rem;
    animation: scroll-marquee 40s linear infinite;
}

.trusted-logo-item {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

@keyframes scroll-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================================
   STATS / METRICS
   ============================================================ */
.stats-section {
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-light);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.stat-item {
    padding: 2.5rem 2rem;
    text-align: center;
    border-right: 1px solid var(--border-light);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.4;
}

/* ============================================================
   OPEN GRAPH ANALYTICS SECTION — CLEAN LIGHT STATISTICAL CONSOLE
   ============================================================ */
.graph-analytics-section {
    padding: var(--section-pad) 0;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-light);
}

.graph-display-header {
    margin-bottom: 2.5rem;
}

.graph-display-header h2 {
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
}

/* === Console Container (Light Elegant Panel) === */
.graph-visualizer-unit {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 3.5rem;
}

/* === Control Bar (Top Toolbar) === */
.graph-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.6rem;
    background: var(--bg-section-alt);
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 0.8rem;
}

.console-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.graph-control-bar .console-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    letter-spacing: 0.06em;
}

/* Live indicator dot with pulse animation */
.live-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
    50%      { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
}

.console-subbadge {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* === Scenario Pills (Light Theme) === */
.scenario-pills {
    display: flex;
    gap: 0.45rem;
}

.scenario-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.scenario-pill:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
    background: #FFFFFF;
}

.scenario-pill.active {
    background: var(--text-primary);
    color: #FFFFFF;
    border-color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

/* === Canvas Area (Graph Viewport) === */
.canvas-main-area {
    position: relative;
    width: 100%;
    height: 500px;
    background:
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.025) 0%, transparent 70%),
        linear-gradient(180deg, #FAFCFE 0%, #F1F5F9 100%);
    border-bottom: 1px solid var(--border-light);
}

.canvas-main-area canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* === HUD Legend (Top-Left overlay inside canvas) === */
.canvas-hud-legend {
    position: absolute;
    top: 1rem;
    left: 1.2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
}

.hud-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.hud-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.hud-dot.core  { background: #10B981; box-shadow: 0 0 4px rgba(16, 185, 129, 0.4); }
.hud-dot.media { background: #3B82F6; box-shadow: 0 0 4px rgba(59, 130, 246, 0.4); }
.hud-dot.field { background: #F59E0B; box-shadow: 0 0 4px rgba(245, 158, 11, 0.4); }
.hud-dot.opp   { background: #EF4444; box-shadow: 0 0 4px rgba(239, 68, 68, 0.4); }

/* === HUD Telemetry (Top-Right overlay inside canvas) === */
.canvas-hud-telemetry {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.85rem;
}

.hud-badge {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--accent-dark);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    padding: 0.2rem 0.55rem;
}

.hud-metric {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hud-metric strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* === Metric Strip (Bottom KPI Bar) === */
.graph-metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--bg-section-alt);
    border-top: 1px solid var(--border-light);
}

.graph-metric-cell {
    padding: 1.2rem 1.4rem;
    border-right: 1px solid var(--border-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.graph-metric-cell:last-child {
    border-right: none;
}

.metric-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.metric-sub {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--accent-dark);
    letter-spacing: 0.02em;
}



/* ============================================================
   MACRO-TOPICS ITEM BY ITEM (Pillars of Analysis)
   ============================================================ */
.macro-topics-header {
    margin-bottom: 2.5rem;
}

.macro-topics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.macro-topic-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.macro-topic-card.highlighted {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
}

.macro-topic-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-light);
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.macro-topic-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.macro-topic-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.macro-topic-card ul {
    list-style: none;
    margin-top: 1rem;
}

.macro-topic-card li {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.macro-topic-card li::before {
    content: '▪';
    color: var(--accent);
}

/* ============================================================
   SOLUTION / SERVICE CARDS
   ============================================================ */
.solution-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.solution-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

.solution-icon-wrap {
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.solution-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.solution-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.solution-features-list {
    list-style: none;
}

.solution-features-list li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.solution-features-list li::before {
    content: '→';
    color: var(--accent);
    font-weight: bold;
}

/* ============================================================
   CASE CARDS
   ============================================================ */
.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}

.case-card-sector {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.case-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.case-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.case-card-metric {
    font-size: 2.2rem;
    color: var(--accent);
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.case-card-metric span {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #F8FAFC;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.contact-info-item {
    margin-bottom: 2rem;
}

.contact-info-item h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-info-item p, .contact-info-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-info-item a:hover {
    color: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--text-primary);
    color: #FFFFFF;
    border-top: 1px solid var(--border-light);
    padding: 5rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand .logo img {
    height: 38px;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.88rem;
    color: #94A3B8;
    line-height: 1.6;
    max-width: 320px;
}

.footer-nav h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FFFFFF;
    margin-bottom: 1.2rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.75rem;
}

.footer-nav a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
    color: #94A3B8;
}

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

.footer-legal a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #FFFFFF;
}

/* Responsive Rules */
@media (max-width: 992px) {
    .macro-topics-grid, .grid-2, .grid-3, .stats-grid, .footer-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    
    .stats-grid .stat-item:last-child {
        border-bottom: none;
    }
    
    .graph-metrics-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .graph-metric-cell:nth-child(2) {
        border-right: none;
    }

    .graph-control-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .scenario-pills {
        flex-wrap: wrap;
    }

    .canvas-main-area {
        height: 360px;
    }

    .canvas-hud-telemetry {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav {
        display: none;
    }
    
    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border: 1px solid var(--border-light);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        padding: 1rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 640px) {
    .graph-metrics-strip {
        grid-template-columns: 1fr;
    }

    .graph-metric-cell {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .graph-metric-cell:last-child {
        border-bottom: none;
    }

    .canvas-hud-legend {
        top: 0.6rem;
        left: 0.6rem;
        padding: 0.45rem 0.6rem;
    }

    .canvas-hud-telemetry {
        top: 0.6rem;
        right: 0.6rem;
        padding: 0.4rem 0.6rem;
    }

    .hud-item {
        font-size: 0.6rem;
    }

    .canvas-main-area {
        height: 280px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }
}

