:root {
    --bg: #080b0d;
    --panel: rgba(14, 19, 22, 0.78);
    --panel-strong: rgba(18, 25, 29, 0.94);
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.2);
    --text: #f6fbfb;
    --muted: #a8b7b7;
    --green: #9dff68;
    --mint: #43f0c0;
    --cyan: #56d8ff;
    --coral: #ff7a66;
    --amber: #ffc857;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(145deg, #080b0d 0%, #0a1212 42%, #12100d 100%);
    background-size: 72px 72px, 72px 72px, auto;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(67, 240, 192, 0.08), transparent 32%),
        linear-gradient(260deg, rgba(255, 122, 102, 0.1), transparent 30%);
    mix-blend-mode: screen;
    opacity: 0.85;
    z-index: -2;
}

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

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

.site-header {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 20;
    width: min(1140px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 12px 10px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 11, 13, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(8, 11, 13, 0.9);
    border-color: var(--line-strong);
}

.brand {
    display: inline-flex;
    align-items: center;
    width: 142px;
}

.brand img {
    width: 142px;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.nav-links a {
    padding: 10px 12px;
    border-radius: 6px;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
}

.nav-links .nav-cta {
    color: #06110e;
    background: linear-gradient(135deg, var(--green), var(--mint));
    box-shadow: 0 10px 30px rgba(67, 240, 192, 0.24);
}

.nav-links .nav-cta:hover {
    color: #06110e;
    background: linear-gradient(135deg, #b6ff87, #61ffd2);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
}

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(330px, 0.74fr);
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 140px 0 86px;
}

#networkCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.92;
    z-index: -1;
}

.hero-grid {
    position: absolute;
    inset: 15% -8% 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(67, 240, 192, 0.16) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, transparent, black 20%, transparent 88%);
    opacity: 0.28;
    transform: perspective(700px) rotateX(58deg);
    transform-origin: bottom;
    animation: gridDrift 9s linear infinite;
    z-index: -1;
}

.hero-content {
    max-width: 740px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--mint);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 22px;
    max-width: 760px;
    font-size: clamp(52px, 8vw, 112px);
    line-height: 0.9;
    letter-spacing: 0;
}

h2 {
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1;
    letter-spacing: 0;
}

h3 {
    font-size: 22px;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 660px;
    color: #d4dfdf;
    font-size: clamp(18px, 2.1vw, 24px);
    line-height: 1.55;
}

.hero-actions,
.auth-card-head,
.console-logo,
.console-metrics,
.signal-row,
.logo-strip,
.site-footer,
.site-footer div {
    display: flex;
    align-items: center;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
    color: #06110e;
    background: linear-gradient(135deg, var(--green), var(--mint));
    box-shadow: 0 18px 46px rgba(67, 240, 192, 0.22);
}

.button.secondary {
    color: var(--text);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.06);
}

.button.secondary:hover {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.1);
}

.button.full {
    width: 100%;
    border: 0;
    margin-top: 8px;
}

.signal-row {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.signal-row span,
.logo-strip span,
.auth-points span {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: #dce7e7;
    font-size: 13px;
    font-weight: 700;
}

.signal-row span {
    padding: 9px 12px;
}

.hero-console {
    position: relative;
    min-height: 522px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 34%),
        rgba(10, 15, 17, 0.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
    overflow: hidden;
}

.hero-console::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(67, 240, 192, 0.18), transparent),
        linear-gradient(180deg, transparent, rgba(255, 122, 102, 0.12));
    transform: translateX(-100%);
    animation: scan 5s ease-in-out infinite;
    pointer-events: none;
}

.console-top {
    display: flex;
    gap: 7px;
    margin-bottom: 22px;
}

.console-top span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--coral);
}

.console-top span:nth-child(2) {
    background: var(--amber);
}

.console-top span:nth-child(3) {
    background: var(--mint);
}

.console-logo {
    gap: 14px;
    position: relative;
    z-index: 1;
}

.console-logo img {
    width: 52px;
    height: 52px;
}

.console-logo strong {
    display: block;
    font-size: 20px;
}

.console-logo small,
.console-metrics small,
.terminal-line,
.terminal-row span {
    color: var(--muted);
}

.route-map {
    position: relative;
    height: 300px;
    margin: 26px 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 34px 34px;
    overflow: hidden;
}

.node {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 3px solid var(--bg);
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 1px rgba(67, 240, 192, 0.5), 0 0 30px rgba(67, 240, 192, 0.5);
    animation: pulse 2.6s ease-in-out infinite;
}

.n1 {
    top: 26%;
    left: 20%;
}

.n2 {
    top: 60%;
    left: 38%;
    background: var(--cyan);
    animation-delay: 400ms;
}

.n3 {
    top: 34%;
    right: 18%;
    background: var(--green);
    animation-delay: 800ms;
}

.n4 {
    bottom: 18%;
    right: 30%;
    background: var(--coral);
    animation-delay: 1200ms;
}

.trace {
    position: absolute;
    height: 2px;
    transform-origin: left center;
    background: linear-gradient(90deg, transparent, rgba(67, 240, 192, 0.95), transparent);
    animation: traceFlow 2.8s linear infinite;
}

.t1 {
    top: 32%;
    left: 23%;
    width: 54%;
    transform: rotate(7deg);
}

.t2 {
    top: 62%;
    left: 40%;
    width: 36%;
    transform: rotate(-30deg);
    animation-delay: 650ms;
}

.t3 {
    top: 47%;
    left: 23%;
    width: 37%;
    transform: rotate(32deg);
    animation-delay: 1200ms;
}

.console-metrics {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.console-metrics div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.console-metrics strong {
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

.logo-strip {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    width: min(1050px, calc(100% - 36px));
    margin: -28px auto 60px;
    padding: 16px;
}

.logo-strip span {
    padding: 10px 16px;
}

.section {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 92px 0;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 40px;
    align-items: start;
}

.section-copy {
    position: sticky;
    top: 122px;
}

.section-copy p,
.section-heading p,
.command-copy p,
.feature-card p,
.price-card p,
.final-cta p,
.auth-brand p {
    color: var(--muted);
    line-height: 1.7;
}

.feature-grid {
    display: grid;
    gap: 16px;
}

.feature-card,
.price-card,
.terminal,
.auth-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(18px);
}

.feature-card {
    min-height: 190px;
    padding: 26px;
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(67, 240, 192, 0.45);
    background: rgba(20, 28, 30, 0.86);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 26px;
    border: 1px solid rgba(67, 240, 192, 0.4);
    border-radius: 6px;
    color: var(--green);
    background: rgba(67, 240, 192, 0.08);
    font-weight: 800;
}

.command-band {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
    gap: 34px;
    align-items: center;
}

.terminal {
    padding: 22px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    background: rgba(5, 8, 9, 0.82);
}

.terminal-line {
    margin-bottom: 18px;
}

.terminal-line span {
    color: var(--mint);
}

.terminal-line.muted {
    margin-top: 18px;
    margin-bottom: 0;
}

.terminal-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-row strong {
    color: var(--green);
}

.terminal-row.active {
    color: var(--text);
}

.pricing-section {
    padding-top: 108px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 570px;
    padding: 26px;
}

.price-card.featured {
    border-color: rgba(67, 240, 192, 0.62);
    background:
        linear-gradient(180deg, rgba(67, 240, 192, 0.12), transparent 42%),
        var(--panel-strong);
    transform: translateY(-16px);
}

.badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #07110e;
    background: var(--green);
    font-size: 12px;
    font-weight: 800;
}

.price-card h3 {
    margin-bottom: 12px;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 26px 0 24px;
}

.price strong {
    font-size: clamp(42px, 5vw, 58px);
    line-height: 1;
}

.price span {
    color: var(--muted);
    font-weight: 700;
}

.price-card ul {
    display: grid;
    gap: 13px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    color: #dbe6e6;
}

.price-card li {
    position: relative;
    padding-left: 24px;
    line-height: 1.45;
}

.price-card li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 10px;
    height: 2px;
    background: var(--mint);
}

.price-card .button {
    margin-top: auto;
}

.final-cta {
    width: min(940px, calc(100% - 36px));
    margin: 28px auto 92px;
    padding: 56px 28px;
    text-align: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.final-cta img {
    width: min(280px, 82vw);
    margin: 0 auto 26px;
}

.final-cta h2 {
    max-width: 720px;
    margin: 0 auto 28px;
    font-size: clamp(34px, 5vw, 58px);
}

.site-footer {
    justify-content: space-between;
    gap: 18px;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 26px 0 38px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.site-footer div {
    gap: 8px;
    color: var(--text);
    font-weight: 800;
}

.site-footer img {
    width: 24px;
    height: 24px;
}

.site-footer p {
    max-width: 640px;
    margin: 0;
    text-align: right;
}

.auth-body .site-footer {
    display: none;
}

.auth-page {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 132px 18px 48px;
}

.auth-shell {
    width: min(1050px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
    gap: 34px;
    align-items: center;
}

.auth-brand img {
    width: min(300px, 82vw);
    margin-bottom: 34px;
}

.auth-brand h1 {
    font-size: clamp(44px, 6vw, 82px);
}

.auth-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.auth-points span {
    padding: 9px 12px;
}

.auth-card {
    padding: 26px;
    background: rgba(11, 16, 18, 0.9);
}

.auth-card-head {
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.auth-card-head h2 {
    margin: 0;
    font-size: 28px;
}

.auth-card-head a {
    color: var(--mint);
    font-weight: 800;
    white-space: nowrap;
}

.form-error {
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid rgba(255, 122, 102, 0.5);
    border-radius: 6px;
    color: #ffd9d3;
    background: rgba(255, 122, 102, 0.12);
    line-height: 1.45;
}

form {
    display: grid;
    gap: 10px;
}

label {
    color: #dbe6e6;
    font-size: 13px;
    font-weight: 800;
}

input,
select {
    width: 100%;
    height: 50px;
    margin-bottom: 10px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    font: inherit;
    outline: 0;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

select {
    color-scheme: dark;
}

input:focus,
select:focus {
    border-color: rgba(67, 240, 192, 0.7);
    box-shadow: 0 0 0 4px rgba(67, 240, 192, 0.12);
}

::placeholder {
    color: rgba(216, 228, 228, 0.52);
}

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

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

.delay-1 {
    transition-delay: 120ms;
}

.delay-2 {
    transition-delay: 220ms;
}

@keyframes gridDrift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 54px 54px;
    }
}

@keyframes scan {
    0%,
    38% {
        transform: translateX(-110%);
    }

    72%,
    100% {
        transform: translateX(110%);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.18);
        filter: brightness(1.25);
    }
}

@keyframes traceFlow {
    from {
        opacity: 0;
        background-position: -160px 0;
    }

    30%,
    70% {
        opacity: 1;
    }

    to {
        opacity: 0;
        background-position: 160px 0;
    }
}

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

@media (max-width: 980px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: grid;
        gap: 4px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(8, 11, 13, 0.96);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .nav-links.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links a {
        width: 100%;
    }

    .hero,
    .split,
    .command-band,
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 132px;
    }

    .hero-console {
        min-height: 460px;
    }

    .section-copy {
        position: static;
    }

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

    .price-card {
        min-height: auto;
    }

    .price-card.featured {
        transform: none;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer p {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .site-header {
        top: 10px;
        width: calc(100% - 20px);
    }

    .brand,
    .brand img {
        width: 124px;
    }

    .hero,
    .section {
        width: min(100% - 28px, 1180px);
    }

    .hero {
        padding-bottom: 54px;
    }

    h1 {
        font-size: clamp(44px, 16vw, 68px);
    }

    h2 {
        font-size: 34px;
    }

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

    .hero-console {
        min-height: auto;
        padding: 14px;
    }

    .route-map {
        height: 230px;
    }

    .console-metrics {
        grid-template-columns: 1fr;
    }

    .logo-strip {
        margin-top: -6px;
    }

    .section {
        padding: 64px 0;
    }

    .command-band {
        gap: 22px;
    }

    .terminal {
        padding: 16px;
        font-size: 13px;
    }

    .terminal-row {
        flex-direction: column;
        gap: 4px;
    }

    .auth-page {
        padding-top: 112px;
    }

    .auth-shell {
        gap: 24px;
    }

    .auth-card {
        padding: 20px;
    }

    .auth-card-head {
        display: block;
    }

    .auth-card-head a {
        display: inline-flex;
        margin-top: 10px;
    }
}
