:root {
    --ink: #0a0a0a;
    --ink-soft: #141414;
    --signal-blue: #1ea7e1;
    --signal-blue-glow: #4fc3f7;
    --signal-red: #ed1c2b;
    --signal-red-glow: #ff5566;
    --paper: #f3f1ec;
    --grid: rgba(255, 255, 255, 0.04);
}

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

html,
body {
    background: var(--ink);
    color: var(--paper);
    font-family: 'Space Mono', monospace;
    overflow-x: hidden;
    line-height: 1.5;
    min-height: 100vh;
}

body {
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: -1px -1px;
}

/* ---------- NAV ---------- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 22px 48px;
    display: inline;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
    display: flex;
    align-items: center;
    gap: 30px;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 2.0rem;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
}

.nav-links {
    display: flex;
    gap: 36px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.nav-links a {
    color: var(--paper);
    text-decoration: none;
    opacity: 0.65;
    transition: opacity 0.2s, color 0.2s;
    position: relative;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--signal-blue-glow);
}

.nav-cta {
    background: var(--signal-red);
    color: var(--paper);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    border: 2px solid var(--signal-red);
    transition: all 0.25s;
    margin-left: auto;
}

.nav-cta:hover {
    background: transparent;
    color: var(--signal-red-glow);
    box-shadow: 0 0 30px rgba(237, 28, 43, 0.4);
}

/* ---------- HERO ---------- */
.hero {
    min-height: 50vh;
    padding: 130px 28px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    /* align-items: center; */
    align-items: start;
    position: top;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 200px;
    padding: 8px 16px;
    border: 1px solid rgba(30, 167, 225, 0.4);
    background: rgba(30, 167, 225, 0.06);
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--signal-blue-glow);
    margin-bottom: 0px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--signal-blue);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--signal-blue);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.3);
    }
}

h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.92;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
}

h1 .accent-blue {
    color: var(--signal-blue);
}

h1 .accent-red {
    color: var(--signal-red);
    font-style: italic;
}

h1 .slash {
    color: var(--paper);
    opacity: 0.2;
    margin: 0 0.1em;
}

.hero-sub {
    font-size: 1.05rem;
    /*max-width: 480px;*/
    opacity: 0.75;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 16px 32px;
    background: var(--signal-blue);
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '→';
    margin-left: 12px;
    display: inline-block;
    transition: transform 0.25s;
}

.btn-primary:hover {
    background: var(--signal-blue-glow);
    box-shadow: 0 0 40px rgba(30, 167, 225, 0.5);
}

.btn-primary:hover::after {
    transform: translateX(6px);
}

.btn-ghost {
    padding: 16px 0;
    color: var(--paper);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.25s, color 0.25s;
}

.btn-ghost:hover {
    border-color: var(--signal-red);
    color: var(--signal-red-glow);
}

/* ---------- ANIMATED LOGO ---------- */
.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 280px;
}

.logo-stage {
    width: 280px;
    height: 280px;
    position: relative;
}

.logo-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 40px rgba(30, 167, 225, 0.3));
}

.wave-1,
.wave-2,
.wave-3 {
    transform-origin: center 70%;
    animation: emit 2.4s ease-out infinite;
}

.wave-1 {
    animation-delay: 0s;
}

.wave-2 {
    animation-delay: 0.4s;
}

.wave-3 {
    animation-delay: 0.8s;
}

@keyframes emit {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(1.15);
    }
}

.leg-l,
.leg-r,
.ant-l,
.ant-r {
    animation: subtle-glow 3s ease-in-out infinite alternate;
}

@keyframes subtle-glow {
    from {
        filter: drop-shadow(0 0 0px var(--signal-red));
    }

    to {
        filter: drop-shadow(0 0 12px var(--signal-red-glow));
    }
}

.orbit-ring {
    position: absolute;
    top: 25%;
    width: 280px;
    /* explicit size */
    aspect-ratio: 1 / 1;
    /* guarantees square */
    border: 1px dashed rgba(30, 167, 225, 0.2);
    border-radius: 50%;
    animation: rotate 5s linear infinite;
}

.orbit-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -6px;
    width: 12px;
    height: 12px;
    background: var(--signal-red);
    border-radius: 50%;
    box-shadow: 0 0 16px var(--signal-red-glow);
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- STAT TICKER ---------- */
.ticker {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 48px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    background: var(--ink-soft);
}

.stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 8px;
}

.stat-value {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stat-value .unit {
    font-size: 1rem;
    opacity: 0.5;
    margin-left: 4px;
}

.stat:nth-child(2) .stat-value {
    color: var(--signal-blue);
}

.stat:nth-child(6) .stat-value {
    color: var(--signal-blue);
}

.stat:nth-child(4) .stat-value {
    color: var(--signal-red);
}

.stat:nth-child(8) .stat-value {
    color: var(--signal-red);
}

/* ---------- CAPABILITIES ---------- */
.section {
    padding: 120px 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 24px;
}

.section-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--signal-red);
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    max-width: 700px;
}

.section-title em {
    font-style: italic;
    color: var(--signal-blue);
}

.cap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cap {
    background: var(--ink);
    padding: 40px 32px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: background 0.3s;
    cursor: pointer;
}

.cap:hover {
    background: var(--ink-soft);
}

.cap:hover .cap-number {
    color: var(--signal-blue);
}

.cap-number {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    opacity: 0.5;
    transition: color 0.3s;
}

.cap h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 24px 0 16px;
}

.cap p {
    font-size: 0.92rem;
    opacity: 0.65;
}

.cap-icon {
    width: 32px;
    height: 32px;
    margin-bottom: auto;
}

/* ---------- BROADCAST SECTION ---------- */
.broadcast {
    background: var(--ink-soft);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 120px 48px;
    position: relative;
    overflow: hidden;
}

.broadcast::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    border: 1px solid rgba(30, 167, 225, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.broadcast::after {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    border: 1px solid rgba(30, 167, 225, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.broadcast-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    position: relative;
}

.console {
    background: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
}

.console-header {
    display: flex;
    /* justify-content: space-between; */
    margin-bottom: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0.6;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.console-line {
    margin-bottom: 10px;
    opacity: 0.85;
}

.console-line .prompt {
    color: var(--signal-red);
    margin-right: 8px;
}

.console-line .key {
    color: var(--signal-blue);
}

.console-line .value {
    opacity: 0.7;
}

.console-line.success {
    color: var(--signal-blue-glow);
}

.cursor-blink {
    display: inline-block;
    width: 8px;
    /* height: 1.1em; */
    background: var(--signal-blue);
    vertical-align: middle;
    animation: blink 1s steps(2) infinite;
    margin-right: 4px;
}

@keyframes blink {
    to {
        opacity: 0;
    }
}

/* ---------- CTA FOOTER ---------- */
footer {
    padding: 80px 48px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-cta {
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 60px 0;
    text-align: center;
}

.footer-cta h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-bottom: 32px;
}

.footer-cta h2 .line-2 {
    display: block;
    color: var(--signal-red);
    font-style: italic;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
}

.input-wrap {
    max-width: 760px;
    margin: 0;
    position: block;
    width: 100%;
}

textarea {
    width: 100%;
    resize: none;
    /*background: var(--panel);*/
    border: 1px solid var(--line);
    border-radius: 10px;
    /*color: var(--ink);*/
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.5;
    padding: 14px 16px;
    min-height: 52px;
    max-height: 180px;
    outline: none;
    transition: border-color 0.2s;
}

#log {
    padding: 0px 4px 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    grid-template-columns: 1fr;
    justify-content: flex-start;
    height: 35vh;
    overflow-y: auto;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    nav {
        padding: 16px 24px;
    }

    /*.nav-links { display: none; }*/
    .hero {
        grid-template-columns: 1fr;
        padding: 120px 24px 60px;
    }

    .hero-visual {
        min-height: 320px;
    }

    .logo-stage {
        width: 260px;
        height: 260px;
    }

    .ticker {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 24px;
    }

    .section {
        padding: 80px 24px;
    }

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

    .broadcast {
        padding: 80px 24px;
    }

    .broadcast-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

}