:root {
    --bg-main: #080b13;
    --panel: rgba(16, 21, 35, 0.68);
    --panel-strong: rgba(14, 19, 32, 0.92);
    --border: rgba(143, 159, 191, 0.2);
    --text-main: #f6f8ff;
    --text-muted: #9da7c0;
    --accent: #27d6ff;
    --accent-soft: rgba(39, 214, 255, 0.2);
    --shadow: 0 24px 55px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 15% 10%, rgba(39, 214, 255, 0.12), transparent 35%),
        radial-gradient(circle at 85% 5%, rgba(93, 82, 255, 0.12), transparent 40%),
        var(--bg-main);
    line-height: 1.55;
    overflow-x: hidden;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.8), transparent 85%);
    z-index: -3;
}

.gradient-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(70px);
    z-index: -2;
    opacity: 0.5;
}

.orb-left {
    width: 420px;
    height: 420px;
    left: -120px;
    top: 120px;
    background: rgba(39, 214, 255, 0.26);
}

.orb-right {
    width: 480px;
    height: 480px;
    right: -180px;
    top: -90px;
    background: rgba(125, 102, 255, 0.3);
}

.page-shell {
    width: min(1200px, 92vw);
    margin: 0 auto;
    padding: 1.5rem 0 2rem;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    background: rgba(6, 10, 18, 0.72);
    backdrop-filter: blur(14px);
    border-radius: 1rem;
}

.brand {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.22em;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--text-main);
}

.status-block {
    text-align: right;
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

#greeting-text {
    color: var(--text-muted);
    font-size: 0.78rem;
}

#clock {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
}

.hero {
    text-align: center;
    margin: 4.2rem auto 3rem;
    max-width: 840px;
    animation: riseIn 0.8s ease both;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.21em;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.hero h2 {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    line-height: 1.05;
    font-weight: 800;
}

.hero h2 span {
    color: var(--accent);
}

.hero-copy {
    margin: 1.35rem auto 0;
    max-width: 720px;
    font-size: clamp(1rem, 2.2vw, 1.17rem);
    color: var(--text-muted);
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.btn {
    border: 1px solid transparent;
    border-radius: 0.9rem;
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
}

.btn-primary {
    color: #06121b;
    background: linear-gradient(90deg, #27d6ff, #57f1ff);
    box-shadow: 0 10px 28px rgba(39, 214, 255, 0.34);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    box-shadow: 0 14px 30px rgba(39, 214, 255, 0.45);
}

.btn-outline {
    color: var(--text-main);
    background: rgba(12, 20, 32, 0.68);
    border-color: var(--border);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background: rgba(19, 28, 42, 0.9);
    border-color: rgba(167, 181, 208, 0.36);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.feature-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.45rem;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(39, 214, 255, 0.55);
}

.feature-icon {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.feature-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.feature-card p {
    margin: 0.62rem 0 0;
    color: var(--text-muted);
    font-size: 0.93rem;
}

.operator-panel {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--border);
    background: var(--panel-strong);
    border-radius: 1rem;
}

.operator-panel h3 {
    margin: 0;
}

.operator-panel p {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.callsign-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.callsign-form input {
    background: rgba(3, 7, 15, 0.9);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 0.75rem;
    padding: 0.74rem 0.8rem;
    width: 220px;
}

.callsign-form input:focus-visible {
    outline: 2px solid rgba(39, 214, 255, 0.45);
    outline-offset: 1px;
}

.footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.83rem;
    padding: 2rem 0 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

@media (max-width: 980px) {
    .navbar {
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .status-block {
        text-align: left;
    }

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

    .operator-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .callsign-form {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .page-shell {
        width: min(1200px, 94vw);
    }

    .brand {
        font-size: 0.95rem;
        letter-spacing: 0.15em;
    }

    .callsign-form input {
        width: 100%;
    }
}
