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

/* ===== DESIGN TOKENS ===== */
:root {
    --color-bg: #09090b;
    --color-bg-elevated: #18181b;
    --color-bg-card: #1c1c21;
    --color-bg-hover: #27272a;
    --color-surface: #fafafa;
    --color-surface-secondary: #f4f4f5;

    --color-text: #fafafa;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #71717a;

    --color-border: #27272a;
    --color-border-light: #3f3f46;

    --color-accent: #818cf8;
    --color-accent-dim: rgba(129, 140, 248, 0.15);
    --color-accent-glow: rgba(129, 140, 248, 0.4);
    --color-green: #34d399;
    --color-green-dim: rgba(52, 211, 153, 0.15);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    --header-bg: rgba(9, 9, 11, 0.8);
    --hero-title-from: #ffffff;
    --hero-title-to: #a1a1aa;
    --map-overlay-bg: rgba(9, 9, 11, 0.85);
    --btn-primary-hover-bg: #e4e4e7;
    --btn-primary-hover-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --color-bg: #ffffff;
    --color-bg-elevated: #f4f4f5;
    --color-bg-card: #e4e4e7;
    --color-bg-hover: #f4f4f5;

    --color-text: #09090b;
    --color-text-secondary: #52525b;
    --color-text-muted: #71717a;

    --color-border: #e4e4e7;
    --color-border-light: #d4d4d8;

    --color-accent: #6366f1;
    --color-accent-dim: rgba(99, 102, 241, 0.1);
    --color-accent-glow: rgba(99, 102, 241, 0.25);
    --color-green: #059669;
    --color-green-dim: rgba(5, 150, 105, 0.1);

    --header-bg: rgba(255, 255, 255, 0.85);
    --hero-title-from: #09090b;
    --hero-title-to: #52525b;
    --map-overlay-bg: rgba(255, 255, 255, 0.9);
    --btn-primary-hover-bg: #18181b;
    --btn-primary-hover-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 8px 40px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: background-color var(--transition-base), color var(--transition-base);
}

img {
    max-width: 100%;
    display: block;
}

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

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--color-border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

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

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-accent-dim);
    border: 1px solid rgba(129, 140, 248, 0.25);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
    color: var(--color-accent);
    letter-spacing: -0.5px;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.logo .subtitle {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 400;
    line-height: 1.2;
}

.nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    color: var(--color-text-secondary);
    font-weight: 450;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
    background: var(--color-bg-hover);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 120px 0 140px;
    overflow: hidden;
    background: var(--color-bg);
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 800px;
    background:
        radial-gradient(ellipse 800px 600px at 30% 50%, rgba(129, 140, 248, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 600px 500px at 70% 60%, rgba(168, 85, 247, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 500px 400px at 50% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    opacity: 0.6;
    pointer-events: none;
    animation: morphGradient 15s ease-in-out infinite;
}

@keyframes morphGradient {

    0%,
    100% {
        transform: translateX(-50%) scale(1) rotate(0deg);
        opacity: 0.6;
    }

    33% {
        transform: translateX(-50%) scale(1.1) rotate(5deg);
        opacity: 0.8;
    }

    66% {
        transform: translateX(-50%) scale(0.95) rotate(-5deg);
        opacity: 0.7;
    }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(129, 140, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(129, 140, 248, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 70%);
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--color-accent-dim);
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 32px;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: 80px;
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 24px;
    background: linear-gradient(180deg, var(--hero-title-from) 0%, var(--hero-title-to) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 48px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

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

.btn svg {
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.btn:hover svg {
    transform: translateX(2px);
}

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

.btn-primary:hover {
    background: var(--btn-primary-hover-bg);
    box-shadow: var(--btn-primary-hover-shadow);
    transform: translateY(-2px) scale(1.02);
}

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

.btn-secondary:hover {
    color: var(--color-text);
    border-color: var(--color-text-muted);
    background: var(--color-bg-hover);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--color-text);
    color: var(--color-bg);
}

.btn-dark:hover {
    background: var(--btn-primary-hover-bg);
}

/* ===== SECTIONS ===== */
.section {
    padding: 96px 0;
}

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

.section-badge {
    display: inline-block;
    padding: 5px 14px;
    background: var(--color-accent-dim);
    color: var(--color-accent);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
    color: var(--color-text);
}

.section-description {
    font-size: 16px;
    color: var(--color-text-muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== FREQUENCIES ===== */
.frequencies {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.freq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 840px;
    margin: 0 auto;
}

.freq-card {
    background: var(--color-bg-elevated);
    padding: 48px 32px;
    text-align: center;
    transition: all var(--transition-base);
    cursor: default;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.freq-card:hover {
    background: var(--color-bg-card);
    box-shadow:
        0 0 40px rgba(129, 140, 248, 0.15),
        0 20px 40px -10px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.freq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--color-accent-dim);
    color: var(--color-accent);
    margin: 0 auto 24px;
    border: 1px solid rgba(129, 140, 248, 0.15);
}

.freq-label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.freq-value {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--color-text);
    font-family: var(--font-mono);
}

.freq-value span {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0;
    margin-left: 2px;
}

/* ===== COVERAGE ===== */
.coverage {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.map-container {
    max-width: 840px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    position: relative;
}

.map-link {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--color-bg-elevated);
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow), filter var(--transition-slow);
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: var(--map-overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
    color: var(--color-text);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.map-link:hover .map-overlay {
    opacity: 1;
}

.map-link:hover .map-image {
    transform: scale(1.03);
    filter: brightness(0.7);
}

/* ===== DASHBOARD ===== */
.dashboard {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.dashboard-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    background: var(--color-bg-elevated);
    padding: 56px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    max-width: 840px;
    margin: 0 auto;
}

.dashboard-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.dashboard-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
    letter-spacing: -0.3px;
}

.dashboard-content p {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 28px;
    line-height: 1.7;
    max-width: 440px;
}

.dashboard-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--color-green-dim);
    position: relative;
}

.status-ring::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg,
            var(--color-green),
            transparent,
            var(--color-accent),
            transparent,
            var(--color-green));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotateGradient 3s linear infinite;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.status-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-green);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pulse {
    width: 10px;
    height: 10px;
    background-color: var(--color-green);
    border-radius: 50%;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(52, 211, 153, 0);
    }
}

/* ===== CONTACT ===== */
.contact {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 640px;
    margin: 0 auto;
}

.contact-card {
    background: var(--color-bg-elevated);
    padding: 48px 40px;
    text-align: center;
    transition: all var(--transition-base);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.contact-card:hover {
    background: var(--color-bg-card);
    box-shadow:
        0 0 40px rgba(129, 140, 248, 0.15),
        0 20px 40px -10px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.contact-role {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-accent-dim);
    color: var(--color-accent);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
}

.contact-callsign {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-accent);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 48px 0;
}

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

.footer-left h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--color-text);
}

.footer-left p {
    color: var(--color-text-muted);
    font-size: 13px;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    color: var(--color-text-muted);
    font-size: 13px;
    margin-bottom: 2px;
}

.footer-note {
    opacity: 0.6;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    animation: fadeInUp 0.6s ease backwards;
}

.hero-title {
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.hero-description {
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.hero-buttons {
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-green));
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-left: 8px;
}

.theme-toggle:hover {
    color: var(--color-text);
    background: var(--color-bg-hover);
    border-color: var(--color-text-muted);
}

[data-theme="light"] .icon-sun {
    display: none;
}

[data-theme="light"] .icon-moon {
    display: block;
}

.icon-moon {
    display: none;
}

.icon-sun {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header-content {
        height: auto;
        flex-direction: column;
        gap: 16px;
        padding: 16px 0;
    }

    .nav {
        gap: 2px;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 13px;
    }

    .hero {
        padding: 80px 0 100px;
    }

    .hero-title {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 16px;
    }

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

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 30px;
    }

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

    .freq-card {
        padding: 32px 24px;
    }

    .dashboard-card {
        grid-template-columns: 1fr;
        padding: 32px;
        gap: 32px;
        text-align: center;
    }

    .dashboard-content p {
        max-width: 100%;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 40px;
    }

    .section-title {
        font-size: 26px;
    }

    .freq-value {
        font-size: 28px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}