@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --deep-blue: #04213f;
    --mid-blue: #0b3d63;
    --bright-blue: #1a7bb8;
    --sun-yellow: #ffd23f;
    --sun-yellow-dim: #ffb703;
    --text-muted: rgba(255, 255, 255, 0.82);
    --text-faint: rgba(255, 255, 255, 0.65);
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.18);
}

* { box-sizing: border-box; }

body, html {
    margin: 0; padding: 0;
    font-family: 'Inter', sans-serif;
    color: #f4f8fc;
    background: var(--deep-blue);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Sora', sans-serif;
}

/* ---- Background layers ---- */
/* Fixed layers stay behind all content (z-index 0-1); page sections are
   lifted to z-index 2+ below so nothing is ever hidden behind them. */

.bg-gradient {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(255, 210, 63, 0.10) 0%, rgba(255, 210, 63, 0) 45%),
        linear-gradient(165deg, #03203f 0%, #0b3d63 40%, #10578c 72%, #1a7bb8 100%);
}

#waveCanvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    display: block;
    pointer-events: none;
}

/* ---- Nav ---- */

nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 8%;
    background: rgba(4, 33, 63, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky; top: 0; z-index: 100;
}

.logo {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Sora', sans-serif;
    font-weight: 700; font-size: 1.3rem;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.logo-mark { flex-shrink: 0; }

.logo-suffix {
    color: var(--sun-yellow);
    font-weight: 600;
}

.nav-link {
    display: inline-flex; align-items: center;
    color: #04213f; background: var(--sun-yellow);
    text-decoration: none; font-weight: 600;
    font-size: 0.95rem; padding: 10px 22px;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 14px rgba(255, 210, 63, 0.25);
    white-space: nowrap;
}

.nav-link:hover {
    background: #ffe27a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 210, 63, 0.35);
}

.nav-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

@media (max-width: 650px) {
    nav { padding: 14px 5%; }
    .logo { font-size: 1.05rem; }
    .nav-link { padding: 8px 16px; font-size: 0.85rem; }
}

/* ---- Hero ---- */

.hero {
    max-width: 1200px; margin: 0 auto; padding: 14vh 20px 6vh;
    text-align: center;
    display: flex; flex-direction: column; align-items: center;
    position: relative; z-index: 2;
}

.hero-tag {
    display: inline-block;
    margin-bottom: 22px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--sun-yellow);
    background: rgba(255, 210, 63, 0.14);
    border: 1px solid rgba(255, 210, 63, 0.3);
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 4px 24px rgba(3, 15, 30, 0.45);
    max-width: 18ch;
    margin: 0;
}

.hero p {
    margin: 26px auto 0;
    max-width: 680px;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.6;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .hero { padding: 12vh 18px 5vh; }
    .hero p { font-size: 0.95rem; }
}

/* ---- Cards ---- */

.cards-section {
    padding: 4vh 20px 8vh;
    position: relative; z-index: 2;
}

.grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 38px 35px;
    text-align: left;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(2, 12, 24, 0.35);
}

.card-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 210, 63, 0.16);
    margin-bottom: 22px;
}

.card h3 {
    font-size: 1.2rem; font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
}

.card p {
    font-size: 0.98rem; line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 600px) {
    .card { padding: 30px 24px; }
}

/* ---- Signal Line ---- */

.signal-line {
    padding: 8vh 20px 16vh;
    text-align: center;
    position: relative; z-index: 2;
}

.signal-inner {
    max-width: 600px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center;
}

.signal-status {
    font-size: 0.85rem; font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sun-yellow);
    margin: 0 0 22px;
}

.signal-cta {
    display: inline-block;
    color: #04213f;
    background: linear-gradient(135deg, var(--sun-yellow), var(--sun-yellow-dim));
    text-decoration: none;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.3rem);
    padding: 18px 46px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(255, 178, 3, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.signal-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 40px rgba(255, 178, 3, 0.45);
}

.signal-cta:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

.signal-sub {
    margin: 20px 0 0;
    font-size: 0.9rem;
    color: var(--text-faint);
}

@media (max-width: 600px) {
    .signal-line { padding: 6vh 18px 12vh; }
    .signal-cta { padding: 16px 34px; width: 100%; }
}

/* ---- Footer ---- */
/* Footer markup itself is injected via SSI and shouldn't be edited per-domain -
   spacing and contrast against the dark theme live here instead. */

footer {
    position: relative; z-index: 2;
    padding: 24px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-faint);
    background: rgba(4, 33, 63, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
    color: var(--sun-yellow);
}

footer div {
    margin: 4px 0;
}
