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

:root {
    --bg-deep: #05070f;
    --bg-mid: #0a0f22;
    --bg-panel: rgba(12, 18, 38, 0.62);
    --blue-900: #0c1740;
    --blue-700: #1c3a8a;
    --blue-500: #3762e0;
    --blue-400: #5b8bff;
    --silver-100: #f3f5f9;
    --silver-300: #cdd3e0;
    --silver-500: #98a1b8;
    --text-muted: #aab3ca;
    --border-soft: rgba(199, 206, 224, 0.14);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 45%, var(--bg-deep) 100%);
    color: var(--silver-100);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    position: relative;
    min-height: 100vh;
}

h1, h2, h3, .logo {
    font-family: 'Orbitron', sans-serif;
}

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

/* ── Background layers ─────────────────────────────────────────────
   Decorative gradient + canvas sit behind everything (z-index 0/1).
   .page wraps all real content at z-index 10 so it always reads above them. */

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(55, 98, 224, 0.18), transparent 55%),
        radial-gradient(ellipse at 85% 75%, rgba(91, 139, 255, 0.14), transparent 50%);
    pointer-events: none;
}

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

.page {
    position: relative;
    z-index: 10;
}

/* ── Nav ────────────────────────────────────────────────────────── */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 5vw;
    background: rgba(6, 9, 20, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
    box-sizing: border-box;
}

.logo {
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--silver-100);
    user-select: none;
}

.logo .cut {
    color: var(--blue-400);
    position: relative;
}

.logo .slash {
    display: inline-block;
    width: 2px;
    height: 22px;
    background: linear-gradient(180deg, var(--silver-100), var(--blue-400));
    transform: rotate(20deg);
    margin: 0 4px;
    box-shadow: 0 0 8px rgba(91, 139, 255, 0.8);
}

.nav-link {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    color: var(--silver-100);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 11px 24px;
    border-radius: 6px;
    border: 1px solid rgba(199, 206, 224, 0.25);
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(55, 98, 224, 0.45);
    background: linear-gradient(135deg, var(--blue-400), var(--blue-500));
}

.nav-link:focus-visible {
    outline: 2px solid var(--silver-100);
    outline-offset: 3px;
}

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

/* ── Hero ───────────────────────────────────────────────────────── */

.hero {
    position: relative;
    z-index: 2;
    padding: 14vh 6vw 9vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-eyebrow {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--blue-400);
    margin-bottom: 22px;
}

.hero h1 {
    font-weight: 900;
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    max-width: 1100px;
    background: linear-gradient(135deg, var(--silver-100) 0%, var(--silver-300) 45%, var(--blue-400) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 6px 40px rgba(55, 98, 224, 0.25);
}

.hero p.sub {
    margin-top: 28px;
    max-width: 680px;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--text-muted);
    font-weight: 400;
}

.hero-actions {
    margin-top: 44px;
}

.hero-actions .ghost-link {
    display: inline-block;
    padding: 14px 34px;
    border: 1px solid rgba(199, 206, 224, 0.35);
    border-radius: 6px;
    color: var(--silver-100);
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(12, 18, 38, 0.4);
    backdrop-filter: blur(6px);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-actions .ghost-link:hover,
.hero-actions .ghost-link:focus-visible {
    transform: translateY(-2px);
    border-color: var(--blue-400);
    background: rgba(55, 98, 224, 0.16);
}

.hero-actions .ghost-link:focus-visible {
    outline: 2px solid var(--blue-400);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .hero { padding: 12vh 6vw 7vh; }
    .hero p.sub { font-size: 0.95rem; }
}

/* ── Cards ──────────────────────────────────────────────────────── */

.cards-section {
    position: relative;
    z-index: 2;
    padding: 6vh 6vw 10vh;
}

.cards-heading {
    text-align: center;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    margin-bottom: 48px;
    color: var(--silver-100);
    font-weight: 700;
}

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

.card {
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 38px 35px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(91, 139, 255, 0.14), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.card:hover::before {
    left: 130%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(5, 8, 20, 0.55), 0 0 0 1px rgba(91, 139, 255, 0.25);
    border-color: rgba(91, 139, 255, 0.4);
}

.card .icon {
    width: 44px;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-400), var(--silver-300));
    margin-bottom: 22px;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(91, 139, 255, 0.6);
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--silver-100);
    letter-spacing: 0.01em;
}

.card p {
    font-size: 0.96rem;
    color: var(--silver-300);
    line-height: 1.65;
}

@media (max-width: 600px) {
    .cards-section { padding: 4vh 6vw 7vh; }
    .card { padding: 30px 24px; }
}

/* ── CTA / signal line ──────────────────────────────────────────── */

.cta-section {
    position: relative;
    z-index: 2;
    padding: 10vh 6vw 14vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signal-status {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.28em;
    color: var(--blue-400);
    margin-bottom: 26px;
    text-transform: uppercase;
}

.signal-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    color: var(--silver-100);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    padding: 20px 48px;
    border-radius: 8px;
    border: 1px solid rgba(199, 206, 224, 0.3);
    box-shadow: 0 10px 30px rgba(55, 98, 224, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.signal-cta:hover,
.signal-cta:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 40px rgba(55, 98, 224, 0.5);
    background: linear-gradient(135deg, var(--blue-400), var(--blue-500));
}

.signal-cta:focus-visible {
    outline: 2px solid var(--silver-100);
    outline-offset: 4px;
}

.signal-sub {
    margin-top: 22px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

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

/* ── Footer ─────────────────────────────────────────────────────── */
/* Footer markup itself is injected via SSI and shouldn't be edited per-domain -
   styling lives here so it stays legible over the dark canvas/gradient background. */

footer {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 26px 6vw 34px;
    font-size: 0.8rem;
    color: var(--silver-300);
    background: rgba(5, 7, 15, 0.85);
    border-top: 1px solid var(--border-soft);
}

footer div {
    margin: 4px 0;
}

footer a {
    color: var(--blue-400);
}

/* ── Reduced motion ─────────────────────────────────────────────── */

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