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

:root {
    --bg-deep: #030913;
    --bg-mid: #061225;
    --bg-top: #0d2440;
    --text-light: #eaf2ff;
    --text-muted: #9db3cc;
    --text-dim: #8399b3;
    --accent-teal: #00e6a8;
    --accent-teal-bright: #39ffc0;
    --accent-mint: #7fe8c9;
    --accent-blue: #2f7bff;
    --on-accent: #04101f;
}

* { box-sizing: border-box; }

body, html {
    margin: 0; padding: 0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

body {
    background: radial-gradient(ellipse at 50% -10%, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-deep) 100%);
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

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

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

/* ---- Layering ---- */

.bg-base {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 230, 168, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(46, 122, 255, 0.16) 0%, transparent 55%);
    pointer-events: none;
}

#frontier-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    display: block;
    pointer-events: none;
}

/* Major content sections must stay above the fixed background layers. */
.hero,
.cards-section,
.cta,
.signal-line {
    position: relative;
    z-index: 2;
}

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

nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 5vw;
    background: rgba(5, 11, 26, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(120, 200, 255, 0.12);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.logo .db {
    background: linear-gradient(120deg, var(--accent-teal-bright), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-link {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--accent-teal), var(--accent-blue));
    color: var(--on-accent);
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 6px 20px rgba(0, 200, 150, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 10px 26px rgba(0, 220, 170, 0.4);
}

.nav-link:focus-visible {
    outline: 2px solid var(--accent-teal-bright);
    outline-offset: 3px;
}

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

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

.hero {
    padding: 14vh 6vw 8vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 22px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-mint);
    background: rgba(0, 230, 168, 0.08);
    border: 1px solid rgba(0, 230, 168, 0.3);
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 1000px;
    margin: 0;
    background: linear-gradient(120deg, #f2f8ff 30%, #9fe8d0 65%, #6fc4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    margin-top: 26px;
    margin-bottom: 0;
    max-width: 680px;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--text-muted);
}

@media (max-width: 480px) {
    .hero { padding: 12vh 6vw 6vh; }
}

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

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

.card {
    padding: 38px 34px;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(20, 38, 64, 0.75), rgba(8, 18, 36, 0.75));
    border: 1px solid rgba(120, 200, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 230, 168, 0.4);
    box-shadow: 0 20px 40px rgba(0, 200, 150, 0.15);
}

.card .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
    color: var(--on-accent);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.card h3 {
    font-size: 1.25rem;
    margin: 0 0 14px;
    color: var(--text-light);
}

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

@media (max-width: 480px) {
    .cards-section { padding: 4vh 6vw 6vh; gap: 18px; }
    .card { padding: 28px 24px; }
}

/* ---- Signal line / CTA ---- */

.signal-line {
    padding: 10vh 6vw 14vh;
    text-align: center;
}

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

.signal-status {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--accent-mint);
    font-weight: 600;
    margin: 0;
}

.signal-cta {
    display: inline-block;
    padding: 18px 46px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--accent-teal), var(--accent-blue));
    color: var(--on-accent);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 10px 34px rgba(0, 200, 150, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.signal-cta:hover,
.signal-cta:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 16px 40px rgba(0, 220, 170, 0.45);
}

.signal-cta:focus-visible {
    outline: 2px solid var(--accent-teal-bright);
    outline-offset: 4px;
}

.signal-sub {
    color: var(--text-dim);
    font-size: 0.92rem;
    margin: 0;
}

@media (max-width: 480px) {
    .signal-line { padding: 8vh 6vw 10vh; }
    .signal-cta { padding: 16px 32px; font-size: 1rem; width: 100%; }
}

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

footer {
    position: relative;
    z-index: 2;
    padding: 28px 6vw;
    text-align: center;
    font-size: 0.85rem;
    color: #b7c8de;
    background: rgba(3, 9, 19, 0.85);
    border-top: 1px solid rgba(120, 200, 255, 0.12);
}

footer div {
    margin: 4px 0;
}

/* ---- Reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
