:root {
    --bg: #050916;
    --bg-deep: #02050d;
    --surface: rgba(10, 16, 36, 0.72);
    --surface-strong: rgba(14, 23, 48, 0.92);
    --surface-soft: rgba(18, 29, 60, 0.56);
    --line: rgba(91, 194, 231, 0.24);
    --line-strong: rgba(91, 194, 231, 0.52);
    --brand: #5bc2e7;
    --brand-bright: #91e6ff;
    --brand-glow: rgba(91, 194, 231, 0.38);
    --text: #f2f8ff;
    --muted: #9fb4d2;
    --muted-strong: #d4e7fb;
    --success: #85f2c5;
    --error: #ff9cab;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --max-width: 1220px;
    --topbar-height: 92px;
    --topbar-height-condensed: 68px;
    --topbar-scroll-offset: 118px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 20%, rgba(91, 194, 231, 0.18), transparent 34%),
        radial-gradient(circle at 80% 18%, rgba(35, 79, 134, 0.35), transparent 28%),
        radial-gradient(circle at 50% 70%, rgba(91, 194, 231, 0.12), transparent 28%),
        linear-gradient(180deg, #071123 0%, #040915 52%, #02050d 100%);
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

main {
    display: block;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -56px;
    z-index: 80;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(4, 9, 20, 0.96);
    border: 1px solid rgba(145, 230, 255, 0.3);
    color: var(--text);
    transition: top 180ms ease;
}

.skip-link:focus {
    top: 16px;
}

.starfield,
.site-grid,
.site-noise,
.site-spotlight {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.starfield {
    z-index: 0;
}

.site-grid {
    z-index: 1;
    opacity: 0.14;
    background-image:
        linear-gradient(rgba(145, 230, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(145, 230, 255, 0.06) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 82%);
}

.site-noise {
    z-index: 2;
    opacity: 0.03;
    background-image:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.7) 0.4px, transparent 0.8px),
        radial-gradient(circle at 70% 65%, rgba(255, 255, 255, 0.7) 0.4px, transparent 0.8px),
        radial-gradient(circle at 50% 85%, rgba(255, 255, 255, 0.7) 0.4px, transparent 0.8px);
    background-size: 140px 140px;
    mix-blend-mode: screen;
}

.site-spotlight {
    z-index: 3;
    opacity: 0.38;
    background:
        radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 25%), rgba(91, 194, 231, 0.22), transparent 18%),
        radial-gradient(circle at 50% 0%, rgba(145, 230, 255, 0.06), transparent 48%);
    transition: opacity 220ms ease;
}

.page-shell {
    position: relative;
    z-index: 4;
    padding-top: 14px;
}

.topbar,
.section,
.footer {
    width: min(calc(100% - 32px), var(--max-width));
    margin-inline: auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--topbar-height);
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(4, 9, 20, 0.82), rgba(4, 9, 20, 0.74));
    box-shadow: var(--shadow);
    isolation: isolate;
    transition:
        min-height 220ms ease,
        padding 220ms ease,
        border-color 220ms ease,
        background 220ms ease,
        box-shadow 220ms ease;
}

.topbar.is-condensed {
    min-height: var(--topbar-height-condensed);
    padding: 10px 18px;
    border-color: rgba(145, 230, 255, 0.16);
    background: linear-gradient(180deg, rgba(4, 9, 20, 0.96), rgba(4, 9, 20, 0.92));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

.brand-mark {
    flex: 0 0 auto;
}

.brand-mark img {
    width: clamp(168px, 18vw, 214px);
    filter: drop-shadow(0 12px 28px rgba(91, 194, 231, 0.25));
    transition: width 220ms ease, filter 220ms ease;
}

.topbar.is-condensed .brand-mark img {
    width: clamp(126px, 13vw, 156px);
    filter: drop-shadow(0 8px 18px rgba(91, 194, 231, 0.2));
}

.topnav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 0.95rem;
    transition: gap 220ms ease, font-size 220ms ease;
}

.topbar.is-condensed .topnav {
    gap: 14px;
    font-size: 0.88rem;
}

.topnav a {
    position: relative;
    padding: 8px 0;
}

.topnav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 220ms ease;
    background: linear-gradient(90deg, transparent, var(--brand-bright), transparent);
}

.topnav a:hover::after,
.topnav a:focus-visible::after {
    transform: scaleX(1);
}

.section {
    padding: 84px 0;
}

section[id] {
    scroll-margin-top: var(--topbar-scroll-offset);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: clamp(36px, 6vw, 80px);
    min-height: calc(100vh - 150px);
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--brand-bright);
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero h1,
.section-heading h2,
.split-copy h2,
.contact-copy h2,
.holo-card h2 {
    margin: 0;
    font-family: 'Orbitron', 'Space Grotesk', sans-serif;
    line-height: 0.96;
    letter-spacing: -0.03em;
}

.hero h1 {
    font-size: clamp(3.4rem, 8vw, 6.9rem);
    text-wrap: balance;
    text-shadow: 0 0 38px rgba(91, 194, 231, 0.2);
}

.hero-lead,
.section-heading p,
.split-copy p,
.contact-copy p,
.feature-card p,
.flow-card p,
.holo-card p,
.stack-row strong,
.form-note {
    color: var(--muted);
    line-height: 1.7;
}

.hero-lead {
    max-width: 650px;
    margin: 24px 0 0;
    font-size: 1.12rem;
}

.hero-actions,
.form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease,
        background 220ms ease;
    transform: translate3d(0, 0, 0);
}

.button-label {
    transition: opacity 180ms ease;
}

.button-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid transparent;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.85);
    transition: opacity 180ms ease, transform 180ms ease;
}

.button.is-loading {
    cursor: progress;
    pointer-events: none;
}

.button.is-loading .button-label {
    opacity: 0;
}

.button.is-loading .button-spinner {
    opacity: 1;
    transform: scale(1);
    animation: button-spin 0.8s linear infinite;
}

.button::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 40%, transparent 60%, rgba(255, 255, 255, 0.15));
    opacity: 0;
    transition: opacity 220ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button:hover::before,
.button:focus-visible::before {
    opacity: 1;
}

.button.primary {
    color: #03111a;
    background: linear-gradient(135deg, var(--brand-bright), var(--brand));
    box-shadow: 0 18px 40px rgba(91, 194, 231, 0.28);
}

.button.primary .button-spinner {
    border-color: rgba(3, 17, 26, 0.22);
    border-top-color: #03111a;
}

.button.secondary,
.button.ghost {
    color: var(--text);
    border-color: rgba(145, 230, 255, 0.22);
    background: rgba(11, 18, 39, 0.5);
    backdrop-filter: blur(12px);
}

.button.secondary .button-spinner,
.button.ghost .button-spinner {
    border-color: rgba(242, 248, 255, 0.18);
    border-top-color: var(--text);
}

.button.secondary:hover,
.button.ghost:hover,
.button.secondary:focus-visible,
.button.ghost:focus-visible {
    border-color: rgba(145, 230, 255, 0.48);
    box-shadow: 0 16px 34px rgba(91, 194, 231, 0.14);
}

.hero-signals,
.stack-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 32px 0 0;
    list-style: none;
    color: var(--muted-strong);
}

.hero-signals li,
.stack-list li {
    position: relative;
    padding-left: 22px;
}

.hero-signals li::before,
.stack-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-bright), var(--brand));
    box-shadow: 0 0 18px rgba(91, 194, 231, 0.6);
}

.hero-visual {
    position: relative;
}

.orbital-stage {
    position: relative;
    min-height: clamp(420px, 56vw, 640px);
    border-radius: 42px;
}

.orbital-ring,
.pulse-core {
    position: absolute;
    inset: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbital-ring {
    border: 1px solid rgba(145, 230, 255, 0.14);
    box-shadow: inset 0 0 18px rgba(91, 194, 231, 0.08), 0 0 24px rgba(91, 194, 231, 0.08);
    animation: spin 22s linear infinite;
}

.ring-one {
    width: 92%;
    height: 92%;
}

.ring-two {
    width: 68%;
    height: 68%;
    animation-direction: reverse;
    animation-duration: 17s;
}

.ring-three {
    width: 42%;
    height: 42%;
    animation-duration: 12s;
}

.pulse-core {
    width: 120px;
    height: 120px;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.92), rgba(145, 230, 255, 0.85) 28%, rgba(91, 194, 231, 0.2) 60%, transparent 72%);
    filter: blur(1px);
    animation: pulse 3.8s ease-in-out infinite;
}

.holo-card {
    position: absolute;
    padding: 24px;
    border: 1px solid rgba(145, 230, 255, 0.18);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        linear-gradient(180deg, rgba(9, 16, 34, 0.88), rgba(6, 10, 24, 0.86));
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card-primary {
    top: 18%;
    left: 10%;
    width: min(82%, 420px);
}

.card-secondary {
    right: 3%;
    top: 8%;
    width: 210px;
}

.card-tertiary {
    left: 0;
    bottom: 6%;
    width: 260px;
}

.card-kicker,
.tiny-label,
.feature-index,
.flow-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 34px;
    border-radius: 999px;
    color: var(--brand-bright);
    background: rgba(91, 194, 231, 0.09);
    border: 1px solid rgba(145, 230, 255, 0.16);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-primary h2 {
    margin-top: 18px;
    font-size: clamp(1.7rem, 3vw, 2.65rem);
}

.card-primary p {
    margin-top: 14px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.card-tags span,
.ticker-track span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-tags span::before,
.ticker-track span::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-bright);
    box-shadow: 0 0 14px rgba(145, 230, 255, 0.6);
}

.card-secondary strong,
.card-tertiary strong {
    display: block;
    margin-top: 16px;
    font-family: 'Orbitron', 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
}

.card-secondary small,
.card-tertiary small {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.6;
}

.ticker-band {
    overflow: hidden;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(4, 9, 20, 0.26);
    backdrop-filter: blur(14px);
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: max-content;
    padding-left: 14px;
    animation: ticker 32s linear infinite;
}

.section-stack .section-heading,
#buildflow .section-heading {
    max-width: 740px;
    margin-bottom: 34px;
}

.section-heading h2,
.split-copy h2,
.contact-copy h2 {
    font-size: clamp(2.2rem, 4vw, 4rem);
}

.contact-copy h2 {
    font-size: clamp(2.2rem, 4.8vw, 3.8rem);
    max-width: 11ch;
}

.section-heading p,
.split-copy p,
.contact-copy p {
    margin: 18px 0 0;
    max-width: 700px;
}

.feature-grid,
.flow-grid {
    display: grid;
    gap: 22px;
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.glass,
.stack-panel,
.contact-panel {
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        linear-gradient(180deg, rgba(10, 16, 36, 0.72), rgba(6, 10, 24, 0.9));
    border: 1px solid rgba(145, 230, 255, 0.12);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.feature-card,
.flow-card {
    padding: 28px;
    border-radius: var(--radius-lg);
}

.feature-card h3,
.flow-card h3 {
    margin: 20px 0 12px;
    font-size: 1.38rem;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: 28px;
    align-items: stretch;
}

.stack-panel {
    display: grid;
    gap: 14px;
    padding: 28px;
    border-radius: var(--radius-xl);
}

.stack-row {
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.stack-row span {
    display: block;
    margin-bottom: 10px;
    color: var(--brand-bright);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.flow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-step {
    min-width: 52px;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: start;
}

.contact-panel {
    padding: 28px;
    border-radius: var(--radius-xl);
}

.form-banner {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid transparent;
    font-weight: 500;
}

.form-banner.is-success {
    color: #dffced;
    border-color: rgba(133, 242, 197, 0.22);
    background: rgba(58, 147, 108, 0.18);
}

.form-banner.is-error {
    color: #ffe7ec;
    border-color: rgba(255, 156, 171, 0.22);
    background: rgba(142, 41, 65, 0.2);
}

.contact-form {
    display: grid;
    gap: 20px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    display: grid;
    gap: 10px;
}

.field-full {
    grid-column: 1 / -1;
}

.field label {
    color: var(--muted-strong);
    font-size: 0.92rem;
    font-weight: 500;
}

.field-control {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid rgba(145, 230, 255, 0.12);
    border-radius: 18px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.field-control::placeholder {
    color: rgba(159, 180, 210, 0.78);
}

textarea.field-control {
    min-height: 180px;
    padding: 16px 18px;
    resize: vertical;
}

.field-control:hover,
.field-control:focus {
    outline: none;
    border-color: rgba(145, 230, 255, 0.34);
    box-shadow: 0 0 0 4px rgba(91, 194, 231, 0.11);
}

.field-control.is-invalid {
    border-color: rgba(255, 156, 171, 0.44);
}

.field-error {
    margin: 0;
    color: var(--error);
    font-size: 0.88rem;
}

.field-hint {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.form-note {
    margin: 0;
    max-width: 360px;
}

.trap-field {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.footer {
    padding: 24px 0 86px;
    color: var(--muted);
    text-align: center;
}

.mobile-cta {
    display: none;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 50;
}

@keyframes button-spin {
    to {
        transform: scale(1) rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .button,
    .button::before,
    .button-label,
    .button-spinner {
        transition: none;
    }

    .button.is-loading .button-spinner {
        animation: none;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 700ms ease,
        transform 700ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.tilt-card {
    transform-style: preserve-3d;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.tilt-card:hover {
    border-color: rgba(145, 230, 255, 0.24);
    box-shadow: 0 34px 72px rgba(0, 0, 0, 0.32), 0 0 32px rgba(91, 194, 231, 0.08);
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.94);
        box-shadow: 0 0 36px rgba(145, 230, 255, 0.28);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.08);
        box-shadow: 0 0 60px rgba(145, 230, 255, 0.44);
    }
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 1080px) {
    .feature-grid,
    .flow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-section,
    .contact-section,
    .hero {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 34px;
    }

    .contact-copy h2 {
        max-width: none;
    }

    .hero-copy {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .card-secondary {
        right: 0;
    }

    .card-tertiary {
        left: 4%;
    }
}

@media (max-width: 760px) {
    .topbar {
        top: 0;
        flex-wrap: wrap;
        justify-content: center;
        padding: 16px;
        min-height: auto;
    }

    .topnav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .topbar.is-condensed {
        padding: 12px 14px;
    }

    .section {
        padding: 68px 0;
    }

    .hero {
        min-height: auto;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 16vw, 4.3rem);
    }

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

    .orbital-stage {
        min-height: 520px;
    }

    .card-primary {
        top: 12%;
        left: 5%;
        width: 90%;
    }

    .card-secondary,
    .card-tertiary {
        position: absolute;
        width: 44%;
        min-width: 160px;
        padding: 18px;
    }

    .card-secondary {
        top: auto;
        bottom: 8%;
        right: 4%;
    }

    .card-tertiary {
        left: 4%;
        bottom: 8%;
    }

    .form-actions {
        align-items: stretch;
    }

    .form-actions .button {
        width: 100%;
    }

    .mobile-cta {
        display: inline-flex;
    }

    .footer {
        padding-bottom: 118px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .site-spotlight {
        opacity: 0.25;
    }
}
