/* ====================================
   SONIC BOOMER - Retro Space Mission Control
   ==================================== */

:root {
    /* Color Palette: NASA 1960s + Aerospace Blue/Orange */
    --midnight: #0a0e27;
    --deep-space: #111827;
    --mission-blue: #0ea5e9;
    --radar-green: #10b981;
    --warning-orange: #f97316;
    --signal-red: #ef4444;
    --text-primary: #f8fafc;
    --off-white: #f8fafc; /* Legacy support - use --text-primary instead */
    --silver: #94a3b8;
    --gold: #fbbf24;

    /* Typography */
    --font-display: 'Orbitron', monospace;
    --font-mono: 'IBM Plex Mono', monospace;

    /* Effects */
    --glow-blue: 0 0 20px rgba(14, 165, 233, 0.4);
    --glow-green: 0 0 20px rgba(16, 185, 129, 0.4);
    --glow-orange: 0 0 20px rgba(249, 115, 22, 0.4);
}

/* ====================================
   BASE STYLES
   ==================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--midnight);
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ====================================
   SKIP LINK (Accessibility)
   ==================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--mission-blue);
    color: var(--midnight);
    padding: 8px 16px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--warning-orange);
    outline-offset: 2px;
}

/* ====================================
   ACCESSIBILITY: Enhanced Focus Indicators (WCAG 2.1 AA)
   ==================================== */

/* All interactive elements get visible focus indicators */
a:focus,
button:focus,
input:focus,
select:focus,
[tabindex]:focus {
    outline: 3px solid var(--mission-blue);
    outline-offset: 4px;
    box-shadow: 0 0 0 7px rgba(14, 165, 233, 0.25);
}

/* Special focus for primary CTA */
.cta-button:focus {
    outline: 3px solid var(--warning-orange);
    outline-offset: 4px;
    box-shadow: 0 0 0 7px rgba(249, 115, 22, 0.3),
                0 0 30px rgba(249, 115, 22, 0.4);
}

/* Focus for cards and interactive containers */
.briefing-card:focus-within {
    outline: 2px solid var(--mission-blue);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(14, 165, 233, 0.2);
}

/* ====================================
   RADAR BACKGROUND ANIMATION
   ==================================== */

.radar-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.radar-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--mission-blue);
    border-radius: 50%;
    animation: radar-pulse 3s ease-in-out infinite;
}

.radar-circle-1 {
    width: 200px;
    height: 200px;
}

.radar-circle-2 {
    width: 400px;
    height: 400px;
    animation-delay: 1s;
}

.radar-circle-3 {
    width: 600px;
    height: 600px;
    animation-delay: 2s;
}

@keyframes radar-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform-origin: center center;
    animation: radar-sweep 6s linear infinite;
    will-change: transform;
}

.radar-sweep::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 50%;
    background: linear-gradient(to bottom, var(--radar-green), transparent);
    box-shadow: var(--glow-green);
}

@keyframes radar-sweep {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.target-blip {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--radar-green);
    border-radius: 50%;
    box-shadow: var(--glow-green);
    animation: blip-pulse 2s ease-in-out infinite;
}

.blip-1 {
    top: 30%;
    left: 60%;
    animation-delay: 0.5s;
}

.blip-2 {
    top: 70%;
    left: 30%;
    animation-delay: 1.5s;
}

.blip-3 {
    top: 50%;
    left: 80%;
    animation-delay: 2.5s;
}

@keyframes blip-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* ====================================
   MISSION TIMESTAMP & NEXT LAUNCH (Top Corners)
   ==================================== */

.mission-timestamp {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: rgba(10, 14, 39, 0.9);
    border: 2px solid var(--mission-blue);
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: var(--glow-blue);
    backdrop-filter: blur(10px);
    font-family: var(--font-mono);
}

.timestamp-label {
    display: block;
    font-size: 0.7rem;
    color: var(--silver);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.timestamp-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--mission-blue);
    letter-spacing: 2px;
    text-shadow: var(--glow-blue);
}

/* Next Launch Indicator (Top Left) */
.next-launch-indicator {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: rgba(10, 14, 39, 0.9);
    border: 2px solid var(--warning-orange);
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: var(--glow-orange);
    backdrop-filter: blur(10px);
    font-family: var(--font-mono);
    max-width: 300px;
}

.launch-label {
    display: block;
    font-size: 0.7rem;
    color: var(--silver);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.launch-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--warning-orange);
    letter-spacing: 1px;
    text-shadow: var(--glow-orange);
    line-height: 1.3;
}

/* Header widgets wrapper (invisible at desktop, flex row at mobile) */
.header-widgets {
    display: contents;
}

/* ====================================
   CONTAINER
   ==================================== */

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================================
   MISSION HEADER (Clean Logo)
   ==================================== */

.mission-header {
    padding: 40px 0 20px;
    display: flex;
    justify-content: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-badge {
    position: relative;
}

.badge-hexagon {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hexagon-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    color: var(--gold);
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.3));
    animation: hex-pulse 3s ease-in-out infinite;
}

@keyframes hex-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.badge-rocket-large {
    font-size: 3rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.5));
    animation: rocket-float 2s ease-in-out infinite;
}

@keyframes rocket-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.logo-text {
    text-align: left;
}

.logo-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--off-white);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(248, 250, 252, 0.3);
}

.logo-subtitle {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
}

/* ====================================
   HERO SECTION
   ==================================== */

.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    overflow: hidden;
}

/* Orbital Rings */
.orbital-ring {
    position: absolute;
    border: 1px dashed var(--mission-blue);
    border-radius: 50%;
    opacity: 0.2;
    animation: orbit 30s linear infinite;
}

.orbital-ring-1 {
    width: 400px;
    height: 400px;
    animation-duration: 20s;
}

.orbital-ring-2 {
    width: 600px;
    height: 600px;
    animation-duration: 30s;
}

.orbital-ring-3 {
    width: 800px;
    height: 800px;
    animation-duration: 40s;
}

@keyframes orbit {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

/* Status Indicator */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--radar-green);
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 30px;
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
    }
}

.status-light {
    width: 12px;
    height: 12px;
    background: var(--radar-green);
    border-radius: 50%;
    box-shadow: var(--glow-green);
    animation: blink 1.5s ease-in-out infinite;
}

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

.status-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--radar-green);
    letter-spacing: 2px;
}

/* Degraded status styling */
.status-indicator.status-degraded {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid var(--warning-orange);
    animation: status-pulse-warning 2s ease-in-out infinite;
}

.status-indicator.status-degraded .status-light {
    background: var(--warning-orange);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.status-indicator.status-degraded .status-text {
    color: var(--warning-orange);
}

@keyframes status-pulse-warning {
    0%, 100% {
        box-shadow: 0 0 5px rgba(249, 115, 22, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(249, 115, 22, 0.6);
    }
}

/* System issues display */
.system-issues {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--signal-red);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.system-issues p {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: var(--signal-red);
}

.system-issues ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.system-issues li {
    margin: 5px 0;
    color: var(--off-white);
}

/* Hero Title */
.hero-title {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.title-line {
    display: block;
}

.title-line:first-child {
    color: var(--off-white);
    text-shadow: 0 0 20px rgba(248, 250, 252, 0.3);
}

.title-boom {
    background: linear-gradient(90deg, var(--mission-blue), var(--warning-orange), var(--signal-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(249, 115, 22, 0.8));
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--silver);
    margin-bottom: 50px;
    line-height: 1.8;
}

.location-highlight {
    color: var(--mission-blue);
    font-weight: 600;
    text-shadow: var(--glow-blue);
}

/* Mission Stats */
.mission-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    padding: 30px;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid var(--mission-blue);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--warning-orange);
    text-shadow: var(--glow-orange);
    line-height: 1;
}

.stat-unit {
    font-size: 1.5rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--silver);
    letter-spacing: 2px;
    margin-top: 8px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--mission-blue);
    opacity: 0.3;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--warning-orange);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid var(--warning-orange);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.15), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--glow-orange);
    background: rgba(249, 115, 22, 0.2);
    border-color: var(--warning-orange);
}

.cta-icon {
    font-size: 1.2rem;
}

.cta-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
    transform: translateX(5px);
}

/* ====================================
   SECTION HEADERS
   ==================================== */

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--mission-blue);
}

.section-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--mission-blue);
    opacity: 0.3;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--off-white);
}

/* ====================================
   BRIEFING SECTION
   ==================================== */

.briefing-section {
    padding: 80px 0;
}

.briefing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.briefing-card {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.8) 0%, rgba(17, 24, 39, 0.8) 100%);
    border: 2px solid var(--mission-blue);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.briefing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.1), transparent);
    transition: left 0.6s ease;
}

.briefing-card:hover::before {
    left: 100%;
}

.briefing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.3);
    border-color: var(--warning-orange);
}

.card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--mission-blue);
    opacity: 0.05;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.5));
}

.briefing-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mission-blue);
    margin-bottom: 15px;
}

.briefing-card p {
    color: var(--silver);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer {
    border-top: 1px solid rgba(14, 165, 233, 0.2);
    padding-top: 15px;
}

.tech-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--radar-green);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--radar-green);
    padding: 5px 12px;
    border-radius: 4px;
}

/* ====================================
   SIGNUP SECTION (Terminal Style)
   ==================================== */

.signup-section {
    padding: 80px 0;
}

.signup-terminal {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(10, 14, 39, 0.95);
    border: 2px solid var(--radar-green);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
    overflow: hidden;
}

.terminal-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(14, 165, 233, 0.2));
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--radar-green);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.term-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: default;
}

.term-btn-close {
    background: var(--signal-red);
}

.term-btn-min {
    background: var(--gold);
}

.term-btn-max {
    background: var(--radar-green);
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--radar-green);
    letter-spacing: 1px;
}

.terminal-body {
    padding: 30px;
}

.terminal-line {
    font-family: var(--font-mono);
    margin-bottom: 15px;
}

.prompt {
    color: var(--radar-green);
    margin-right: 10px;
}

.command {
    color: var(--mission-blue);
}

.terminal-output {
    margin: 20px 0 30px;
    padding: 15px;
    background: rgba(16, 185, 129, 0.05);
    border-left: 3px solid var(--radar-green);
}

.output-line {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--silver);
    margin: 5px 0;
}

/* Signup Instructions */
.signup-instructions {
    margin-top: 30px;
}

.instruction-header {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--warning-orange);
    margin-bottom: 30px;
}

.procedure-steps {
    margin: 25px 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.step-num {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mission-blue);
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid var(--mission-blue);
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.step-text {
    color: var(--silver);
}

/* SMS Command Box */
.sms-command {
    background: rgba(14, 165, 233, 0.05);
    border: 2px solid var(--mission-blue);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}

.command-label {
    font-size: 0.85rem;
    color: var(--silver);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.command-box {
    background: rgba(0, 0, 0, 0.5);
    border: 2px dashed var(--mission-blue);
    border-radius: 6px;
    padding: 20px;
    margin: 15px 0;
}

.command-box code {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--warning-orange);
    letter-spacing: 2px;
}

.command-example {
    font-size: 0.9rem;
    color: var(--silver);
    margin-top: 15px;
}

.command-example strong {
    color: var(--mission-blue);
}

/* Phone Reveal */
.phone-reveal {
    margin: 30px 0;
    text-align: center;
}

.phone-hidden {
    padding: 30px;
}

.redacted {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--silver);
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(148, 163, 184, 0.5);
}

.reveal-btn {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--midnight);
    background: var(--gold);
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

.reveal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
}

.phone-shown {
    padding: 30px;
    animation: decrypt 0.8s ease-out;
}

@keyframes decrypt {
    0% {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(10px);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.98);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.phone-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--radar-green);
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: var(--glow-green);
}

.phone-status {
    font-size: 0.85rem;
    color: var(--radar-green);
    letter-spacing: 2px;
}

/* Coverage Zone */
.coverage-zone {
    background: rgba(249, 115, 22, 0.05);
    border: 1px solid var(--warning-orange);
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.zone-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.zone-icon {
    font-size: 1.2rem;
}

.zone-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--warning-orange);
    letter-spacing: 2px;
}

.zone-cities {
    color: var(--silver);
    line-height: 1.8;
    word-spacing: 0.15em;
}

.zone-detail {
    display: block;
    font-size: 0.85rem;
    color: var(--silver);
    opacity: 0.7;
    margin-top: 5px;
}

/* Terminal Footer */
.terminal-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-note {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--silver);
    margin: 10px 0;
}

.note-icon {
    font-size: 1rem;
}

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

.mission-footer {
    padding: 60px 0 40px;
    margin-top: 80px;
    border-top: 2px solid var(--mission-blue);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    text-align: center;
}

.footer-label {
    font-size: 0.75rem;
    color: var(--silver);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.footer-value {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--mission-blue);
}

.footer-copyright {
    text-align: center;
    color: var(--silver);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

/* ====================================
   LEGAL PAGES (Privacy, Terms)
   ==================================== */

.legal-page {
    min-height: 100vh;
    padding: 40px 20px;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.8) 0%, rgba(17, 24, 39, 0.8) 100%);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 8px;
    padding: 40px;
    box-shadow: inset 0 0 30px rgba(14, 165, 233, 0.03), 0 4px 20px rgba(0, 0, 0, 0.3);
    color: var(--off-white);
}

.legal-container .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    color: var(--mission-blue);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 6px 12px;
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.legal-container .back-link:hover {
    color: var(--off-white);
    border-color: var(--mission-blue);
    background: rgba(14, 165, 233, 0.1);
}

.legal-container h1 {
    font-family: var(--font-display);
    color: var(--mission-blue);
    margin-bottom: 10px;
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.legal-container .last-updated {
    font-size: 0.85rem;
    color: var(--radar-green);
    margin-bottom: 30px;
    font-family: var(--font-mono);
}

.legal-container h2 {
    font-family: var(--font-display);
    color: var(--mission-blue);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1rem;
    letter-spacing: 1.5px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(14, 165, 233, 0.15);
}

.legal-container p,
.legal-container ul {
    font-family: var(--font-mono);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--silver);
}

.legal-container p strong {
    color: var(--off-white);
}

.legal-container ul {
    padding-left: 30px;
}

.legal-container li {
    margin-bottom: 10px;
}

.legal-container li strong {
    color: var(--off-white);
}

.legal-container a {
    color: var(--mission-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(14, 165, 233, 0.3);
    transition: all 0.2s ease;
}

.legal-container a:hover {
    color: var(--radar-green);
    border-bottom-color: var(--radar-green);
}

.legal-container .legal-agreement {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(14, 165, 233, 0.3);
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .legal-container {
        padding: 25px 20px;
    }

    .legal-container h1 {
        font-size: 1.4rem;
    }
}

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

@media (max-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .mission-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-divider {
        width: 1px;
        height: 30px;
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .mission-timestamp {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
    }

    .timestamp-value {
        font-size: 1rem;
    }

    .timestamp-label {
        font-size: 0.6rem;
    }

    .next-launch-indicator {
        top: 10px;
        left: 10px;
        padding: 8px 12px;
        max-width: 200px;
    }

    .launch-value {
        font-size: 0.85rem;
    }

    .launch-label {
        font-size: 0.6rem;
    }

    .logo-container {
        gap: 15px;
    }

    .badge-hexagon {
        width: 80px;
        height: 80px;
    }

    .badge-rocket-large {
        font-size: 2.5rem;
    }

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

    .logo-subtitle {
        font-size: 0.7rem;
    }

    .hero-title {
        font-size: 3rem;
    }

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

    .mission-stats {
        gap: 15px;
        padding: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .briefing-grid {
        grid-template-columns: 1fr;
    }

    .command-box code {
        font-size: 1.2rem;
    }

    .phone-number {
        font-size: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    /* Dock widgets into a flex row below header */
    .header-widgets {
        display: flex;
        justify-content: space-between;
        align-items: stretch;
        padding: 0 20px;
        margin-bottom: 10px;
        gap: 10px;
        border-bottom: 1px solid rgba(14, 165, 233, 0.15);
        padding-bottom: 10px;
    }

    .mission-timestamp,
    .next-launch-indicator {
        position: static;
        flex: 1;
        padding: 8px 12px;
        font-size: 0.7rem;
        max-width: none;
        border-radius: 4px;
        backdrop-filter: none;
    }

    .launch-label,
    .timestamp-label {
        font-size: 0.55rem;
        margin-bottom: 2px;
    }

    .launch-value,
    .timestamp-value {
        font-size: 0.75rem;
    }

    .logo-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .logo-text {
        text-align: center;
    }

    .logo-title {
        font-size: 1.5rem;
    }

    .logo-subtitle {
        font-size: 0.65rem;
    }

    .badge-hexagon {
        width: 70px;
        height: 70px;
    }

    .badge-rocket-large {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 0.95rem;
    }

    .mission-stats {
        flex-direction: column;
    }

    .terminal-body {
        padding: 20px;
    }

    .command-box code {
        font-size: 1rem;
    }
}

/* Very small mobile devices (320px) - Fix horizontal overflow */
@media (max-width: 360px) {
    .container {
        padding: 0 15px;
    }

    .terminal-body {
        padding: 15px;
    }

    .signup-terminal {
        margin: 0 -5px;
    }

    .mission-stats {
        padding: 15px;
        gap: 10px;
    }

    .briefing-card {
        padding: 20px;
    }

    .command-box {
        padding: 15px;
    }

    .phone-shown,
    .phone-hidden {
        padding: 20px;
    }
}
