/* ===== CSS Variables ===== */
:root {
    --magenta: #FF00FF;
    --magenta-dark: #CC00CC;
    --magenta-glow: rgba(255, 0, 255, 0.3);
    --bg-dark: #0a0a14;
    --bg-card: #12121f;
    --bg-card-hover: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #6b7280;
    --border-color: #2d2d42;
    --vfr-green: #22c55e;
    --mvfr-blue: #3b82f6;
    --ifr-red: #ef4444;
    --lifr-magenta: #FF00FF;
    --tfr-presidential: #dc2626;
    --tfr-space: #9333ea;
    --tfr-event: #f97316;
    --tfr-disaster: #eab308;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--magenta);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 20, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo img {
    height: 36px;
}

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

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

.nav-cta {
    background: var(--magenta);
    color: var(--text-primary) !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background: var(--magenta-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse at center, var(--magenta-glow) 0%, transparent 60%);
    opacity: 0.4;
    animation: pulse 8s ease-in-out infinite;
}

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

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 40px 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 0, 255, 0.1);
    border: 1px solid rgba(255, 0, 255, 0.3);
    color: var(--magenta);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-title .magenta {
    color: var(--magenta);
}

.hero-title .white {
    color: var(--text-primary);
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--magenta);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--magenta-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--magenta-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--text-muted);
}

.hero-platforms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.platform-icons {
    display: flex;
    gap: 12px;
}

.platform-icons svg {
    opacity: 0.6;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== Features Overview ===== */
.features-overview {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--magenta);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 0, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--magenta);
}

.feature-icon.weather-icon {
    background: rgba(59, 130, 246, 0.1);
}

.feature-icon.weather-icon svg {
    stroke: var(--mvfr-blue);
}

.feature-icon.traffic-icon {
    background: rgba(34, 197, 94, 0.1);
}

.feature-icon.traffic-icon svg {
    stroke: var(--vfr-green);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ===== Split Content Sections ===== */
.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-content.reverse {
    direction: rtl;
}

.split-content.reverse > * {
    direction: ltr;
}

.split-text h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.split-text .lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* ===== Weather Section ===== */
.weather-section {
    background: var(--bg-card);
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.feature-bullet.vfr { background: var(--vfr-green); }
.feature-bullet.mvfr { background: var(--mvfr-blue); }
.feature-bullet.ifr { background: var(--ifr-red); }
.feature-bullet.lifr { background: var(--lifr-magenta); }

.feature-list strong {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-list span {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.weather-visual {
    display: flex;
    justify-content: center;
}

.weather-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 360px;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.weather-icao {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.weather-cat {
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
}

.weather-cat.vfr-cat {
    background: rgba(34, 197, 94, 0.2);
    color: var(--vfr-green);
}

.weather-metar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.metar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metar-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.metar-value {
    font-weight: 500;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.weather-taf {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.taf-header {
    font-size: 0.75rem;
    color: var(--mvfr-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.taf-decoded {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.taf-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.taf-label {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.taf-value {
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    color: var(--text-secondary);
}

/* ===== Traffic Section ===== */
.traffic-section {
    background: var(--bg-dark);
}

.traffic-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.traffic-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.traffic-icon-sm {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.traffic-icon-sm svg {
    width: 22px;
    height: 22px;
    stroke: var(--vfr-green);
}

.traffic-feature strong {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.traffic-feature p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.supported-devices {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.devices-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-right: 8px;
}

.device-tag {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.traffic-visual {
    display: flex;
    justify-content: center;
}

.traffic-display {
    width: 320px;
    height: 320px;
    position: relative;
    background: var(--bg-card);
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.traffic-ring {
    position: absolute;
    border: 1px solid var(--border-color);
    border-radius: 50%;
}

.traffic-ring.ring-1 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
}

.traffic-ring.ring-2 {
    width: 45%;
    height: 45%;
    top: 27.5%;
    left: 27.5%;
}

.traffic-ring.ring-3 {
    width: 20%;
    height: 20%;
    top: 40%;
    left: 40%;
}

.traffic-aircraft {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.traffic-aircraft svg {
    width: 24px;
    height: 24px;
}

.traffic-aircraft.own {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--magenta);
}

.traffic-aircraft.target {
    color: var(--vfr-green);
}

.traffic-aircraft.t1 {
    top: 20%;
    right: 25%;
    transform: rotate(45deg);
}

.traffic-aircraft.t2 {
    bottom: 30%;
    left: 20%;
    transform: rotate(-30deg);
}

.traffic-label {
    font-size: 0.75rem;
    color: var(--vfr-green);
    white-space: nowrap;
    transform: rotate(0deg);
    margin-top: 4px;
}

.traffic-aircraft.t1 .traffic-label {
    transform: rotate(-45deg);
}

.traffic-aircraft.t2 .traffic-label {
    transform: rotate(30deg);
}

/* ===== Charts Section ===== */
.charts-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.chart-card:hover {
    border-color: var(--magenta);
    transform: translateY(-4px);
}

.chart-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 0, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.chart-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--magenta);
}

.chart-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.chart-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.offline-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 0, 255, 0.1);
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: 12px;
    padding: 20px 32px;
    color: var(--text-secondary);
}

.offline-badge svg {
    width: 24px;
    height: 24px;
    stroke: var(--magenta);
    flex-shrink: 0;
}

/* ===== TFR Section ===== */
.tfr-section {
    background: var(--bg-card);
}

.tfr-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.tfr-type {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-dark);
    border-radius: 8px;
}

.tfr-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.tfr-indicator.presidential { background: var(--tfr-presidential); }
.tfr-indicator.space { background: var(--tfr-space); }
.tfr-indicator.event { background: var(--tfr-event); }
.tfr-indicator.disaster { background: var(--tfr-disaster); }

.tfr-visual {
    display: flex;
    justify-content: center;
}

.tfr-map {
    width: 320px;
    height: 320px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.tfr-zone {
    position: absolute;
    width: 160px;
    height: 160px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(249, 115, 22, 0.2);
    border: 2px solid var(--tfr-event);
    border-radius: 50%;
    animation: tfr-pulse 3s ease-in-out infinite;
}

@keyframes tfr-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

.tfr-info {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
}

.tfr-info-title {
    font-size: 0.75rem;
    color: var(--tfr-event);
    font-weight: 600;
    margin-bottom: 4px;
}

.tfr-info-detail {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* ===== More Features ===== */
.more-features {
    background: var(--bg-dark);
}

.more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.more-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.more-item:hover {
    border-color: var(--magenta);
}

.more-item svg {
    width: 28px;
    height: 28px;
    stroke: var(--magenta);
}

.more-item span {
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: center;
}

/* ===== Download Section ===== */
.download-section {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
    text-align: center;
}

.download-content h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.download-content > p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 14px 28px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.store-button:hover {
    background: var(--bg-card-hover);
    border-color: var(--magenta);
    transform: translateY(-2px);
}

.store-button svg {
    width: 32px;
    height: 32px;
}

.store-button div {
    text-align: left;
}

.store-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.store-name {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
}

.download-note {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand img {
    height: 32px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    max-width: 280px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--magenta);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-disclaimer {
    margin-top: 8px;
    font-size: 0.8125rem !important;
}

/* ===== Mobile Navigation ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    .nav-cta {
        text-align: center;
        margin-top: 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .split-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .split-content.reverse {
        direction: ltr;
    }

    .split-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-tagline {
        font-size: 1rem;
        letter-spacing: 0.15em;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

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

    .tfr-types {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
