/* style.css */
:root {
    /* Light Mode - Base (Ground Station Theme) */
    --bg-color: #f4f7fb;
    --bg-alt: #e9eef5;
    --bg-navy: #ffffff;
    --text-main: #0e1b2e;
    --text-muted: #5a6b82;
    --cyan: #0284c7;
    --gold: #b45309;
    --border-color: #cbd5e1;
    --card-bg: #ffffff;
    --card-border: #94a3b8;
    --btn-bg: #0e1b2e;
    --btn-text: #ffffff;
    --btn-hover: #0284c7;
    
    --font-mono: "ui-monospace", "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    /* Orbital Spaceflight Telemetry Theme */
    --bg-color: #04070D;
    --bg-alt: #09101a;
    --bg-navy: #0E1B2E;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --cyan: #38BDF8;
    --gold: #E5A93C;
    --border-color: #1e293b;
    --card-bg: rgba(14, 27, 46, 0.6);
    --card-border: #1e3a5f;
    --btn-bg: #38BDF8;
    --btn-text: #04070D;
    --btn-hover: #E5A93C;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

h1, h2, h3, h4, .btn {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold);
}

.cyan-text { color: var(--cyan); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; border-bottom: 1px solid var(--border-color); }
.bg-navy { background-color: var(--bg-navy); }

/* Typography */
.section-title {
    font-size: 2rem;
    margin-bottom: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}
.title-coord {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--cyan);
    font-weight: 400;
    letter-spacing: 2px;
}

.telemetry-readout {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 10px;
    border-left: 2px solid var(--cyan);
    padding-left: 10px;
}

/* Header */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    background-color: rgba(var(--bg-color), 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
}
.logo a { color: var(--text-main); }
.coord-mark {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--cyan);
    background: rgba(56, 189, 248, 0.1);
    padding: 2px 6px;
    border: 1px solid var(--cyan);
}

.nav { display: flex; gap: 20px; }
.nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
}
.nav a:hover, .nav a.active { color: var(--cyan); }

.header-right { display: flex; align-items: center; gap: 15px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: 1px solid transparent;
}
.btn-mission {
    background-color: var(--btn-bg);
    color: var(--btn-text) !important;
    border: 1px solid var(--cyan);
}
.btn-mission:hover {
    background-color: var(--btn-hover);
    border-color: var(--gold);
    color: var(--bg-color) !important;
}
.btn-mission-primary {
    background-color: var(--cyan);
    color: #04070D !important;
    font-size: 1.1rem;
    padding: 16px 36px;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}
.btn-mission-primary:hover {
    background-color: var(--gold);
    box-shadow: 0 0 30px rgba(229, 169, 60, 0.4);
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.theme-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
[data-theme="light"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: none; }

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(14, 27, 46, 0.8), var(--bg-color));
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--text-main);
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

/* Orbital Canvas CSS Simulation */
.orbital-canvas {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Radar scanning effect */
.radar-scan {
    position: absolute;
    width: 95%;
    height: 95%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 60%, rgba(56, 189, 248, 0.05) 80%, rgba(56, 189, 248, 0.3) 100%);
    animation: radar-sweep 4s linear infinite;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle, transparent 20%, black 100%);
    mask-image: radial-gradient(circle, transparent 20%, black 100%);
}

@keyframes radar-sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.globe-center {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at 30% 30%, var(--card-bg), var(--bg-navy));
    border: 2px solid rgba(56, 189, 248, 0.5);
    border-radius: 50%;
    position: relative;
    box-shadow: 
        0 0 40px rgba(56, 189, 248, 0.2),
        inset 0 0 20px rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    z-index: 10;
}

.globe-wireframe {
    width: 90%;
    height: 90%;
    animation: slow-spin 30s linear infinite;
}

@keyframes slow-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.globe-center::after {
    content: '';
    position: absolute; top: 50%; left: -30px; right: -30px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0.6;
}
.globe-center::before {
    content: '';
    position: absolute; left: 50%; top: -30px; bottom: -30px; width: 1px;
    background: linear-gradient(180deg, transparent, var(--cyan), transparent);
    opacity: 0.6;
}

.orbit-path {
    position: absolute;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 50%;
    animation: orbit-spin linear infinite;
}
.orbit-path::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border: 1px dashed rgba(56, 189, 248, 0.4);
    border-radius: 50%;
    animation: orbit-spin 20s linear reverse infinite;
}

.orbit-1 { width: 240px; height: 240px; animation-duration: 20s; }
.orbit-2 { width: 360px; height: 360px; animation-duration: 35s; animation-direction: reverse; }
.orbit-3 { width: 480px; height: 480px; animation-duration: 50s; }

.satellite {
    position: absolute;
    width: 16px; height: 16px;
    background: var(--bg-color);
    border: 2px solid var(--cyan);
    border-radius: 50%;
    top: -8px; left: 50%; transform: translateX(-50%);
    box-shadow: 0 0 15px var(--cyan);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.satellite::after {
    content: '';
    width: 6px; height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

.satellite:hover {
    border-color: var(--gold);
    box-shadow: 0 0 25px var(--gold);
    transform: translateX(-50%) scale(1.3);
    z-index: 20;
}
.satellite:hover::after { background: var(--gold); }

.sat-label {
    position: absolute;
    top: -30px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--cyan);
    background: rgba(14, 27, 46, 0.9);
    padding: 3px 8px;
    border: 1px solid rgba(56, 189, 248, 0.5);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(10px);
    pointer-events: none;
    letter-spacing: 1px;
    white-space: nowrap;
}
.satellite:hover .sat-label {
    opacity: 1;
    transform: translateY(0);
    color: var(--gold);
    border-color: var(--gold);
}

.data-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(56, 189, 248, 0.15);
    pointer-events: none;
}
.data-ring-inner {
    width: 190px; height: 190px;
    border-style: dotted;
    border-width: 4px;
    animation: orbit-spin 40s linear infinite;
}
.data-ring-outer {
    width: 420px; height: 420px;
    border-color: rgba(229, 169, 60, 0.1);
    animation: orbit-spin 60s linear reverse infinite;
}

@keyframes orbit-spin { 100% { transform: rotate(360deg); } }

/* Grid layout */
.grid { display: grid; gap: 30px; }
.features-grid { grid-template-columns: repeat(3, 1fr); }
.scenarios-grid { grid-template-columns: repeat(2, 1fr); }
.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
.reviews-grid { grid-template-columns: repeat(3, 1fr); }

/* Bento Cards (Telemetry style) */
.bento-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 35px 30px;
    position: relative;
    transition: var(--transition);
}
.bento-card:hover { border-color: var(--cyan); background-color: rgba(56, 189, 248, 0.05); }

.corner-mark {
    position: absolute;
    width: 15px; height: 15px;
    border: 2px solid var(--cyan);
}
.corner-mark.top-left { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.corner-mark.bottom-right { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.bento-card .icon { margin-bottom: 25px; }
.bento-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--text-main); }
.bento-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }

.telemetry-bar {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    display: flex; justify-content: space-between;
}
.telemetry-bar::after { content: '||||||||||'; letter-spacing: 2px; color: var(--border-color); }
.bento-card:hover .telemetry-bar::after { color: var(--cyan); }

/* Scenarios Specific */
.scenario-card { border-top: 4px solid var(--cyan); }
.scenario-crosshair {
    width: 40px; height: 40px;
    border: 1px solid var(--cyan);
    border-radius: 50%;
    margin-bottom: 20px;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.scenario-crosshair::before, .scenario-crosshair::after {
    content: ''; position: absolute; background: var(--cyan);
}
.scenario-crosshair::before { width: 100%; height: 1px; }
.scenario-crosshair::after { height: 100%; width: 1px; }

/* Pricing Manifests */
.manifest-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 0;
    position: relative;
}
.manifest-card.highlight {
    border-color: var(--cyan);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.1);
}
.highlight-tag {
    background: var(--cyan); color: #04070D;
    font-family: var(--font-mono); font-size: 0.75rem; font-weight: bold;
    padding: 4px 12px;
    text-align: center; letter-spacing: 1px;
}
.manifest-header {
    padding: 30px;
    border-bottom: 1px solid var(--card-border);
    display: flex; flex-direction: column; gap: 10px;
}
.tier-name { font-size: 1.1rem; color: var(--text-muted); font-weight: 700; }
.price { font-size: 2.5rem; font-weight: 900; color: var(--text-main); }
.price small { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

.manifest-specs {
    list-style: none;
    padding: 30px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.manifest-specs li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.2);
}
.manifest-specs li:last-child { border-bottom: none; }

.btn-manifest-outline {
    display: block;
    width: calc(100% - 60px);
    margin: 0 30px 30px;
    border: 1px solid var(--card-border);
    color: var(--text-main);
}
.btn-manifest-outline:hover { background: var(--card-border); }

.btn-manifest-primary {
    display: block;
    width: calc(100% - 60px);
    margin: 0 30px 30px;
    background: var(--cyan);
    color: #04070D !important;
}
.btn-manifest-primary:hover { background: var(--gold); }

/* FAQ List */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    margin-bottom: 15px;
}
.faq-item summary {
    padding: 20px; font-weight: 700; cursor: pointer; list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '[+]'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    font-family: var(--font-mono); color: var(--cyan);
}
.faq-item[open] summary::after { content: '[-]'; color: var(--gold); }
.faq-item[open] summary { border-bottom: 1px solid var(--card-border); }
.faq-content { padding: 20px; color: var(--text-muted); font-size: 0.95rem; }

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0; background: var(--bg-color);
}
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
    color: var(--text-muted); font-family: var(--font-mono); font-size: 0.85rem;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); text-decoration: underline; }
.footer-links a:hover { color: var(--cyan); }

/* Mobile Adaptations */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin: 0 auto 40px; }
    .telemetry-readout { border-left: none; border-bottom: 2px solid var(--cyan); display: inline-block; padding: 0 0 5px; margin-bottom: 20px;}
    .orbital-canvas { width: 80%; max-width: 400px; margin: 0 auto; }
    .features-grid, .pricing-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav { display: none; } 
    .hero { padding: 140px 0 60px; }
    .hero-title { font-size: 2.2rem; }
    .features-grid, .scenarios-grid, .pricing-grid, .reviews-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* Base pages specific styles to adapt to the new theme */
.page-content { padding: 140px 0 80px; min-height: 80vh; }
.page-content h1 { margin-bottom: 40px; text-align: center; color: var(--text-main); }
.page-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px;
}
.content-section { margin-bottom: 40px; }
.content-section h2 { margin-bottom: 15px; color: var(--cyan); font-size: 1.5rem; font-family: var(--font-sans); }
.content-section p, .content-section ul { margin-bottom: 15px; color: var(--text-muted); }
.content-section ul { padding-left: 20px; }
.content-section li { margin-bottom: 8px; }
.sitemap-list { list-style: none; padding-left: 0; display: flex; flex-direction: column; align-items: center;}
.sitemap-list li { margin-bottom: 15px; }
.sitemap-list a { font-size: 1.1rem; font-family: var(--font-mono); color: var(--cyan); }
.sitemap-list a:hover { color: var(--gold); }
