:root {
    --bg: #050914;
    --bg-soft: #08101f;
    --panel: rgba(11, 19, 36, 0.78);
    --panel-strong: rgba(12, 22, 42, 0.94);
    --panel-border: rgba(132, 164, 255, 0.16);
    --panel-border-strong: rgba(88, 205, 255, 0.28);
    --text: #f5f8ff;
    --muted: #91a0ba;
    --muted-2: #6d7b96;
    --cyan: #31d8ff;
    --blue: #3979ff;
    --purple: #9d5cff;
    --green: #4de2a8;
    --danger: #ff6f91;
    --warning: #ffcc66;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    --shadow-soft: 0 16px 48px rgba(2, 8, 23, 0.38);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 10% 0%, rgba(49, 216, 255, 0.08), transparent 30%),
        radial-gradient(circle at 90% 15%, rgba(157, 92, 255, 0.10), transparent 30%),
        linear-gradient(180deg, #050914 0%, #07101d 48%, #050914 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

body::selection {
    background: rgba(49, 216, 255, 0.24);
    color: #fff;
}

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

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

svg {
    display: block;
}

.site-shell {
    position: relative;
    isolation: isolate;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.ambient-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -3;
}

.ambient-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(120, 147, 207, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 147, 207, 0.055) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.ambient-noise {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.36;
}

.ambient-orb--one {
    width: 420px;
    height: 420px;
    left: -120px;
    top: 120px;
    background: rgba(49, 216, 255, 0.16);
}

.ambient-orb--two {
    width: 520px;
    height: 520px;
    right: -180px;
    top: 220px;
    background: rgba(157, 92, 255, 0.13);
}

.ambient-orb--three {
    width: 380px;
    height: 380px;
    left: 42%;
    top: 960px;
    background: rgba(57, 121, 255, 0.10);
}

.network-beam {
    position: absolute;
    height: 1px;
    width: 48vw;
    background: linear-gradient(90deg, transparent, rgba(49, 216, 255, 0.34), transparent);
    filter: drop-shadow(0 0 10px rgba(49, 216, 255, 0.4));
    animation: beamMove 9s linear infinite;
}

.network-beam--one { top: 24%; left: -25%; }
.network-beam--two { top: 53%; right: -25%; animation-delay: -3s; }
.network-beam--three { top: 76%; left: -25%; animation-delay: -6s; }

#network-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.38;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(129, 151, 203, 0.10);
    background: rgba(5, 9, 20, 0.74);
    backdrop-filter: blur(20px);
}

.header-container {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 43px;
    height: 43px;
    filter: drop-shadow(0 0 18px rgba(49, 216, 255, 0.2));
}

.brand-mark svg {
    width: 100%;
    height: 100%;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-name {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.brand-subtitle {
    color: var(--muted-2);
    font-size: 11px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.desktop-navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    position: relative;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    transition: color .25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -13px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    transform: scaleX(0);
    transition: transform .25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fff;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.network-status,
.section-heading__status,
.diagnostic-console__node,
.download-source-badge,
.footer-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.network-status__copy,
.section-heading__status > span:last-child,
.diagnostic-console__node > span:last-child,
.download-source-badge > span:last-child,
.footer-status > span:last-child {
    display: grid;
    gap: 2px;
}

.network-status__label,
.section-heading__status small,
.diagnostic-console__node small,
.download-source-badge small,
.footer-status small {
    color: var(--muted-2);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.network-status strong,
.section-heading__status strong,
.diagnostic-console__node strong,
.download-source-badge strong,
.footer-status strong {
    font-size: 12px;
}

.status-indicator,
.section-heading__status-icon,
.diagnostic-console__node-status,
.footer-status__indicator {
    position: relative;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
}

.status-indicator__dot,
.section-heading__status-icon::after,
.diagnostic-console__node-status::after,
.footer-status__indicator::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 16px rgba(77, 226, 168, 0.75);
}

.status-indicator__pulse,
.section-heading__status-icon span,
.diagnostic-console__node-status span,
.footer-status__indicator span {
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(77, 226, 168, 0.5);
    border-radius: 50%;
    animation: statusPulse 2s ease-out infinite;
}

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.button svg {
    width: 18px;
    height: 18px;
}

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

.button--primary {
    color: #06101e;
    background: linear-gradient(135deg, #6ee7ff 0%, #31d8ff 35%, #4f7cff 100%);
    box-shadow: 0 14px 34px rgba(49, 216, 255, 0.20);
}

.button--primary:hover {
    box-shadow: 0 18px 42px rgba(49, 216, 255, 0.30);
}

.button--secondary,
.button--ghost,
.button--header {
    color: #edf3ff;
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(151, 177, 235, 0.17);
}

.button--secondary:hover,
.button--ghost:hover,
.button--header:hover {
    border-color: rgba(49, 216, 255, 0.34);
    background: rgba(49, 216, 255, 0.07);
}

.button--large {
    min-height: 54px;
    padding: 0 24px;
    border-radius: 15px;
    font-size: 14px;
}

.button__glow {
    position: absolute;
    inset: -70%;
    background: conic-gradient(from 180deg, transparent, rgba(255,255,255,.7), transparent 22%);
    animation: buttonShine 4s linear infinite;
    opacity: .25;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--panel-border);
    background: rgba(255,255,255,.03);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-button span {
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
}

.mobile-navigation {
    display: none;
    padding: 14px 20px 22px;
    border-top: 1px solid var(--panel-border);
}

.mobile-navigation a {
    display: block;
    padding: 12px 0;
    color: var(--muted);
}

.hero-section {
    position: relative;
    padding: 118px 0 90px;
}

.hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    gap: 74px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-eyebrow,
.section-heading__eyebrow,
.final-cta__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #a8dfff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hero-eyebrow {
    padding: 8px 12px;
    border: 1px solid rgba(49, 216, 255, 0.18);
    border-radius: 999px;
    background: rgba(49, 216, 255, 0.06);
}

.hero-eyebrow__icon {
    width: 18px;
    height: 18px;
}

.hero-eyebrow__live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
}

.hero-eyebrow__live span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(77,226,168,.7);
}

.hero-title {
    margin: 24px 0 0;
    max-width: 760px;
    font-size: clamp(54px, 6.2vw, 92px);
    line-height: .98;
    letter-spacing: -.052em;
}

.hero-title span,
.section-heading h2 span,
.resources-content h2 span,
.final-cta h2 span {
    display: block;
    background: linear-gradient(90deg, var(--cyan), #7da2ff 46%, #c091ff 88%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    margin: 26px 0 0;
    max-width: 670px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-trust {
    margin-top: 38px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hero-trust__item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.hero-trust__item > span:last-child {
    display: grid;
    gap: 3px;
    color: var(--muted-2);
    font-size: 11px;
}

.hero-trust__item strong {
    color: #e9f3ff;
    font-size: 12px;
}

.trust-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--cyan);
    background: rgba(49, 216, 255, 0.06);
    border: 1px solid rgba(49, 216, 255, 0.13);
}

.trust-icon svg {
    width: 18px;
    height: 18px;
}

.hero-visual {
    position: relative;
    min-height: 590px;
}

.network-console,
.tools-panel,
.diagnostic-console,
.topology-panel,
.download-card,
.resource-card,
.final-cta,
.stats-panel {
    border: 1px solid var(--panel-border);
    background: linear-gradient(180deg, rgba(15, 25, 47, 0.82), rgba(8, 15, 29, 0.78));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.network-console {
    position: absolute;
    inset: 30px 0 40px 20px;
    border-radius: 26px;
    overflow: hidden;
    transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
}

.network-console__header,
.terminal-window__toolbar,
.topology-toolbar {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(147, 171, 224, 0.10);
    background: rgba(7, 12, 24, 0.74);
}

.console-window-controls,
.terminal-window__controls {
    display: flex;
    align-items: center;
    gap: 7px;
}

.console-window-controls span,
.terminal-window__controls span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.console-window-controls span:nth-child(1),
.terminal-window__controls span:nth-child(1) { background: #ff6b7e; }
.console-window-controls span:nth-child(2),
.terminal-window__controls span:nth-child(2) { background: #ffc761; }
.console-window-controls span:nth-child(3),
.terminal-window__controls span:nth-child(3) { background: #4ee1a4; }

.network-console__title,
.terminal-window__name {
    font-family: "JetBrains Mono", monospace;
    color: #8897b3;
    font-size: 11px;
}

.network-console__secure {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--green);
    font-size: 11px;
}

.network-console__secure svg {
    width: 15px;
    height: 15px;
}

.network-console__body {
    height: calc(100% - 58px);
    display: grid;
    grid-template-rows: 1fr auto;
}

.console-map,
.topology-canvas {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(49,216,255,.08), transparent 28%),
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: auto, 32px 32px, 32px 32px;
}

.console-map__connections,
.topology-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.network-node {
    position: absolute;
    display: grid;
    place-items: center;
}

.network-node--core {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.network-node__ring,
.network-node__pulse,
.topology-node__halo,
.topology-node__pulse {
    position: absolute;
    border-radius: 50%;
}

.network-node__ring {
    width: 130px;
    height: 130px;
    border: 1px solid rgba(49,216,255,.18);
    animation: spinSlow 16s linear infinite;
}

.network-node__pulse {
    width: 92px;
    height: 92px;
    border: 1px solid rgba(49,216,255,.28);
    animation: statusPulse 2.8s ease-out infinite;
}

.network-node__icon,
.topology-node__icon {
    position: relative;
    z-index: 2;
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: var(--cyan);
    background: linear-gradient(145deg, rgba(49,216,255,.14), rgba(57,121,255,.13));
    border: 1px solid rgba(49,216,255,.25);
    box-shadow: 0 0 32px rgba(49,216,255,.16);
}

.network-node__icon svg,
.topology-node__icon svg {
    width: 30px;
    height: 30px;
}

.network-node__label {
    position: absolute;
    top: 82px;
    min-width: 150px;
    text-align: center;
    display: grid;
    gap: 4px;
}

.network-node__label strong,
.topology-node__copy strong {
    font-size: 14px;
}

.network-node__label small,
.topology-node__copy small,
.topology-node__copy em,
.topology-peer small,
.topology-peer em {
    color: var(--muted-2);
    font-size: 10px;
    font-style: normal;
}

.network-node--provider {
    min-width: 110px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(139,164,218,.12);
    background: rgba(8,14,27,.84);
    justify-items: start;
    box-shadow: 0 10px 28px rgba(0,0,0,.2);
}

.network-node--provider strong {
    font-size: 12px;
}

.network-node--provider small {
    color: var(--muted-2);
    font-size: 10px;
}

.provider-dot {
    position: absolute;
    right: 9px;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px rgba(77,226,168,.7);
}

.network-node--top-left { left: 8%; top: 15%; }
.network-node--top-right { right: 8%; top: 14%; }
.network-node--bottom-left { left: 7%; bottom: 12%; }
.network-node--bottom-right { right: 7%; bottom: 12%; }

.data-packet,
.topology-packet {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 14px rgba(49,216,255,.8);
    animation: packetFloat 4s ease-in-out infinite;
}

.data-packet--one { left: 32%; top: 31%; }
.data-packet--two { right: 30%; top: 29%; animation-delay: -1s; }
.data-packet--three { left: 28%; bottom: 28%; animation-delay: -2s; }
.data-packet--four { right: 27%; bottom: 27%; animation-delay: -3s; }

.console-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(147,171,224,.10);
}

.console-metric {
    padding: 16px 18px;
    display: grid;
    gap: 5px;
    border-right: 1px solid rgba(147,171,224,.08);
}

.console-metric:last-child { border-right: 0; }

.console-metric__label {
    color: var(--muted-2);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.console-metric strong {
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.metric-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--panel-border);
    background: rgba(10,17,32,.9);
    box-shadow: 0 16px 34px rgba(0,0,0,.28);
    backdrop-filter: blur(14px);
    animation: floating 5s ease-in-out infinite;
}

.floating-card--latency { left: -18px; bottom: 104px; }
.floating-card--security { right: -8px; top: 66px; animation-delay: -2.5s; }

.floating-card__icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--cyan);
    background: rgba(49,216,255,.08);
}

.floating-card__icon svg { width: 18px; height: 18px; }

.floating-card > span:last-child { display: grid; gap: 3px; }
.floating-card small { color: var(--muted-2); font-size: 9px; text-transform: uppercase; letter-spacing: .10em; }
.floating-card strong { font-size: 12px; }

.hero-scroll-indicator {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: var(--muted-2);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.scroll-mouse {
    width: 22px;
    height: 34px;
    border: 1px solid rgba(157,176,220,.24);
    border-radius: 999px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-mouse span {
    width: 3px;
    height: 7px;
    border-radius: 999px;
    background: var(--cyan);
    animation: scrollDot 1.8s ease-in-out infinite;
}

.stats-section {
    padding: 0 0 110px;
}

.stats-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-radius: 24px;
    overflow: hidden;
}

.stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 132px;
    padding: 24px;
    border-right: 1px solid rgba(139,164,218,.10);
    overflow: hidden;
}

.stat-card:last-child { border-right: 0; }

.stat-card__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--cyan);
    background: rgba(49,216,255,.07);
    border: 1px solid rgba(49,216,255,.12);
}

.stat-card__icon svg { width: 24px; height: 24px; }

.stat-card__content { display: grid; gap: 5px; min-width: 0; }
.stat-card__label { color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: .10em; }
.stat-card__value { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-card__meta { color: var(--muted); font-size: 11px; }
.stat-card__shine { position: absolute; inset: 0; background: linear-gradient(120deg, transparent 0 43%, rgba(255,255,255,.06) 50%, transparent 57%); transform: translateX(-120%); transition: transform .8s ease; }
.stat-card:hover .stat-card__shine { transform: translateX(120%); }

.looking-glass-section,
.network-map-section,
.downloads-section,
.resources-section,
.final-cta-section {
    padding: 120px 0;
}

.section-heading {
    margin-bottom: 44px;
}

.section-heading__line {
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, var(--cyan), transparent);
}

.section-heading__layout {
    margin-top: 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.section-heading h2,
.resources-content h2,
.final-cta h2 {
    margin: 0;
    font-size: clamp(38px, 4.5vw, 64px);
    line-height: 1.03;
    letter-spacing: -.04em;
}

.section-heading p,
.resources-content p,
.final-cta p {
    margin: 18px 0 0;
    max-width: 680px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.section-heading--center {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading--center .section-heading__eyebrow {
    justify-content: center;
}

.section-heading--center p {
    margin-left: auto;
    margin-right: auto;
}

.diagnostic-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.tools-panel,
.diagnostic-console {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.panel-header,
.diagnostic-console__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid rgba(137,164,219,.10);
}

.panel-header__eyebrow,
.diagnostic-console__eyebrow {
    color: var(--muted-2);
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.panel-header h3,
.diagnostic-console__header h3 {
    margin: 5px 0 0;
    font-size: 18px;
}

.panel-header__badge {
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--green);
    background: rgba(77,226,168,.07);
    border: 1px solid rgba(77,226,168,.14);
    font-size: 10px;
}

.tool-selector {
    padding: 14px;
    display: grid;
    gap: 10px;
}

.tool-card {
    width: 100%;
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid transparent;
    border-radius: 15px;
    text-align: left;
    background: rgba(255,255,255,.018);
    cursor: pointer;
    transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.tool-card:hover,
.tool-card.is-active {
    transform: translateX(3px);
    border-color: rgba(49,216,255,.22);
    background: rgba(49,216,255,.055);
}

.tool-card__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--cyan);
    background: rgba(49,216,255,.07);
}

.tool-card__icon svg { width: 22px; height: 22px; }
.tool-card__copy { display: grid; gap: 4px; min-width: 0; }
.tool-card__copy strong { font-size: 13px; }
.tool-card__copy small { color: var(--muted-2); font-size: 10px; }
.tool-card__availability { display: none; align-items: center; gap: 5px; color: var(--green); font-size: 9px; }
.tool-card__availability span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.tool-card__arrow { color: var(--muted-2); }
.tool-card__arrow svg { width: 17px; height: 17px; }

.tools-panel__footer {
    padding: 16px 18px 20px;
    border-top: 1px solid rgba(137,164,219,.08);
}

.tools-security {
    display: flex;
    align-items: center;
    gap: 11px;
}

.tools-security__icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--green);
    border-radius: 11px;
    background: rgba(77,226,168,.06);
}

.tools-security__icon svg { width: 19px; height: 19px; }
.tools-security > span:last-child { display: grid; gap: 3px; }
.tools-security strong { font-size: 11px; }
.tools-security small { color: var(--muted-2); font-size: 9px; }

.diagnostic-console__title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.diagnostic-console__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--cyan);
    background: rgba(49,216,255,.07);
}

.diagnostic-console__icon svg { width: 22px; height: 22px; }

.diagnostic-console__content {
    padding: 26px;
}

.diagnostic-description {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(137,164,219,.08);
}

.diagnostic-description p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.diagnostic-description__source {
    color: var(--muted-2);
    font-size: 10px;
    white-space: nowrap;
}

.diagnostic-description__source strong { color: #dce7ff; }

.diagnostic-form {
    margin-top: 24px;
}

.target-field label {
    display: block;
    margin-bottom: 9px;
    color: #dce6f8;
    font-size: 12px;
    font-weight: 700;
}

.target-field__control {
    position: relative;
    display: flex;
    align-items: center;
}

.target-field__icon {
    position: absolute;
    left: 15px;
    color: var(--muted-2);
}

.target-field__icon svg { width: 20px; height: 20px; }

.target-field input {
    width: 100%;
    height: 56px;
    padding: 0 52px 0 46px;
    color: #f7fbff;
    border: 1px solid rgba(138,164,220,.15);
    border-radius: 15px;
    outline: none;
    background: rgba(5,10,20,.62);
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.target-field input:focus {
    border-color: rgba(49,216,255,.44);
    box-shadow: 0 0 0 4px rgba(49,216,255,.07);
    background: rgba(5,10,20,.82);
}

.target-field__clear {
    position: absolute;
    right: 12px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: var(--muted);
    background: rgba(255,255,255,.04);
    cursor: pointer;
}

.target-field__clear svg { width: 16px; height: 16px; }
.target-field__hint { display: block; margin-top: 8px; color: var(--muted-2); font-size: 10px; }

.quick-targets {
    margin-top: 18px;
}

.quick-targets__label {
    display: block;
    margin-bottom: 9px;
    color: var(--muted-2);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.quick-targets__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-targets__list button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid rgba(137,164,219,.12);
    border-radius: 10px;
    color: #dce6f7;
    background: rgba(255,255,255,.025);
    cursor: pointer;
}

.quick-targets__list button:hover {
    border-color: rgba(49,216,255,.28);
    background: rgba(49,216,255,.05);
}

.quick-targets__list small {
    color: var(--muted-2);
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
}

.quick-targets__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px rgba(49,216,255,.7);
}

.diagnostic-form__actions {
    margin-top: 22px;
    display: flex;
    gap: 10px;
}

.diagnostic-submit__default,
.diagnostic-submit__loading {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.diagnostic-submit__loading { display: none; }
.is-loading .diagnostic-submit__default { display: none; }
.is-loading .diagnostic-submit__loading { display: inline-flex; }

.button-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(5,15,27,.25);
    border-top-color: #05101d;
    animation: spin 1s linear infinite;
}

.terminal-window {
    margin: 0 18px 18px;
    border: 1px solid rgba(110,148,220,.16);
    border-radius: 18px;
    overflow: hidden;
    background: #030711;
}

.terminal-window__identity,
.terminal-window__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.terminal-window__actions button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(137,164,219,.12);
    border-radius: 9px;
    color: var(--muted);
    background: rgba(255,255,255,.025);
    cursor: pointer;
}

.terminal-window__actions button:hover {
    color: #fff;
    border-color: rgba(49,216,255,.28);
}

.terminal-window__actions svg { width: 16px; height: 16px; }
.terminal-runtime { color: var(--muted-2); font-size: 10px; }

.terminal-window__body {
    position: relative;
    min-height: 390px;
    max-height: 540px;
    overflow: auto;
    padding: 24px;
    font-family: "JetBrains Mono", monospace;
}

.terminal-grid {
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(49,216,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49,216,255,.018) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

.terminal-output {
    position: relative;
    z-index: 2;
    color: #cde6ff;
    font-size: 12px;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
}

.terminal-welcome__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.terminal-welcome__brand span {
    padding: 4px 7px;
    border-radius: 6px;
    color: #06101e;
    background: var(--cyan);
    font-weight: 800;
}

.terminal-welcome__brand strong { font-size: 11px; letter-spacing: .09em; }
.terminal-welcome p { color: #8092ad; }
.terminal-welcome__info { display: flex; flex-wrap: wrap; gap: 18px; color: #5f718f; font-size: 10px; }
.terminal-welcome__info strong { color: #a8c7e8; }

.terminal-command-line {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 1px;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
}

.terminal-command-line__user { color: var(--green); }
.terminal-command-line__separator { color: #61708a; }
.terminal-command-line__host { color: var(--cyan); }
.terminal-command-line__path { color: #d7e1f3; margin-right: 7px; }
.terminal-command-line__text { color: #f2f7ff; }
.terminal-cursor { width: 8px; height: 15px; margin-left: 2px; background: var(--cyan); animation: blink 1s steps(1) infinite; }

.terminal-window__footer {
    min-height: 44px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(137,164,219,.08);
    color: var(--muted-2);
    font-size: 9px;
}

.terminal-window__footer span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.terminal-footer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.network-map-section {
    background: linear-gradient(180deg, rgba(255,255,255,.01), transparent);
}

.topology-panel {
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.topology-panel__glow {
    position: absolute;
    left: 35%;
    top: 18%;
    width: 30%;
    height: 30%;
    background: rgba(49,216,255,.08);
    filter: blur(70px);
}

.topology-toolbar__title,
.topology-footer__metric {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topology-toolbar__icon,
.topology-footer__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--cyan);
    background: rgba(49,216,255,.07);
}

.topology-toolbar__icon svg,
.topology-footer__icon svg { width: 19px; height: 19px; }
.topology-toolbar__title > span:last-child { display: grid; gap: 3px; }
.topology-toolbar__title small { color: var(--muted-2); font-size: 9px; text-transform: uppercase; letter-spacing: .10em; }
.topology-toolbar__title strong { font-size: 12px; }

.topology-toolbar__legend {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--muted);
    font-size: 10px;
}

.topology-toolbar__legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.legend-dot--core { background: var(--cyan); }
.legend-dot--transit { background: var(--blue); }
.legend-dot--ix { background: var(--purple); }

.topology-canvas {
    min-height: 620px;
}

.topology-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 42px 42px;
}

.topology-node,
.topology-peer {
    position: absolute;
}

.topology-node--core {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
}

.topology-node--pop {
    left: 50%;
    top: 14%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
}

.topology-node__halo {
    width: 130px;
    height: 130px;
    border: 1px solid rgba(49,216,255,.15);
}

.topology-node__pulse {
    width: 96px;
    height: 96px;
    border: 1px solid rgba(49,216,255,.28);
    animation: statusPulse 2.8s ease-out infinite;
}

.topology-node__copy {
    position: absolute;
    top: 82px;
    display: grid;
    gap: 4px;
    min-width: 180px;
    text-align: center;
}

.topology-node__status {
    position: absolute;
    top: 137px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-size: 9px;
}

.topology-node__status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.topology-node--pop .topology-node__icon {
    width: 58px;
    height: 58px;
    color: #b991ff;
    background: rgba(157,92,255,.08);
    border-color: rgba(157,92,255,.22);
}

.topology-node--pop .topology-node__copy { top: 72px; }
.topology-node--pop .topology-node__status { top: 123px; }

.topology-peer {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 168px;
    padding: 12px 14px;
    border: 1px solid rgba(137,164,219,.12);
    border-radius: 14px;
    background: rgba(7,13,25,.86);
    box-shadow: 0 12px 28px rgba(0,0,0,.24);
}

.topology-peer > span:last-child { display: grid; gap: 3px; }
.topology-peer strong { font-size: 12px; }
.topology-peer__mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; font-weight: 800; }
.topology-peer__mark--transit { color: var(--cyan); background: rgba(49,216,255,.08); }
.topology-peer__mark--ix { color: #b991ff; background: rgba(157,92,255,.08); }
.topology-peer--digi { left: 7%; top: 15%; }
.topology-peer--prime { right: 7%; top: 15%; }
.topology-peer--ronix { left: 6%; bottom: 11%; }
.topology-peer--interix { right: 6%; bottom: 11%; }

.topology-packet--one { left: 32%; top: 28%; }
.topology-packet--two { right: 31%; top: 27%; animation-delay: -.8s; }
.topology-packet--three { left: 30%; bottom: 29%; animation-delay: -1.6s; }
.topology-packet--four { right: 29%; bottom: 28%; animation-delay: -2.4s; }
.topology-packet--five { left: 50%; top: 31%; animation-delay: -3.2s; }

.topology-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 18px;
    padding: 18px;
    border-top: 1px solid rgba(137,164,219,.08);
}

.topology-footer__metric > span:last-child { display: grid; gap: 3px; }
.topology-footer__metric small { color: var(--muted-2); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.topology-footer__metric strong { font-size: 11px; }
.topology-footer__links { display: flex; align-items: center; gap: 10px; }
.topology-footer__links a { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; border: 1px solid rgba(137,164,219,.12); border-radius: 10px; color: var(--muted); font-size: 10px; }
.topology-footer__links a:hover { color: #fff; border-color: rgba(49,216,255,.28); }
.topology-footer__links svg { width: 15px; height: 15px; }

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.download-card {
    position: relative;
    border-radius: 24px;
    padding: 26px;
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.download-card:hover {
    transform: translateY(-6px);
    border-color: rgba(49,216,255,.26);
    box-shadow: 0 24px 55px rgba(0,0,0,.34);
}

.download-card.is-featured {
    border-color: rgba(49,216,255,.30);
    background: linear-gradient(180deg, rgba(49,216,255,.08), rgba(8,15,29,.84));
}

.download-card__recommended {
    position: absolute;
    right: 18px;
    top: 18px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #06101e;
    background: var(--cyan);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.download-card__top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.download-card__icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(49,216,255,.07);
    color: var(--cyan);
}

.download-card__icon--large { color: #b991ff; background: rgba(157,92,255,.08); }
.download-card__icon--medium { color: #7da2ff; background: rgba(57,121,255,.09); }
.download-card__icon svg { width: 29px; height: 29px; }

.download-card__size { display: grid; gap: 4px; }
.download-card__size small { color: var(--muted-2); font-size: 9px; text-transform: uppercase; letter-spacing: .11em; }
.download-card__size strong { font-size: 22px; }
.download-card__description { margin: 22px 0 0; color: var(--muted); line-height: 1.7; font-size: 13px; }
.download-card__details { margin-top: 18px; display: grid; gap: 9px; }
.download-card__details span { display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 10px; }
.download-card__details svg { width: 16px; height: 16px; color: var(--cyan); }

.download-card__route {
    margin-top: 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    color: var(--muted-2);
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
}

.download-card__route i {
    height: 1px;
    background: linear-gradient(90deg, rgba(49,216,255,.5), rgba(157,92,255,.25));
}

.download-card__actions {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.download-copy-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(137,164,219,.14);
    border-radius: 12px;
    color: var(--muted);
    background: rgba(255,255,255,.025);
    cursor: pointer;
}

.download-copy-button:hover { color: #fff; border-color: rgba(49,216,255,.28); }
.download-copy-button svg { width: 18px; height: 18px; }
.download-card__glow { position: absolute; width: 180px; height: 180px; right: -60px; bottom: -80px; border-radius: 50%; background: rgba(49,216,255,.08); filter: blur(40px); pointer-events: none; }

.download-notice {
    margin-top: 22px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(137,164,219,.12);
    border-radius: 16px;
    background: rgba(255,255,255,.02);
}

.download-notice__icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--cyan);
    background: rgba(49,216,255,.07);
}

.download-notice__icon svg { width: 20px; height: 20px; }
.download-notice strong { font-size: 12px; }
.download-notice p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.resources-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.resources-trust-row {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.resources-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted-2);
    font-size: 10px;
}

.resources-trust-row i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.resource-cards {
    display: grid;
    gap: 14px;
}

.resource-card {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border-radius: 18px;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.resource-card:hover {
    transform: translateX(6px);
    border-color: rgba(49,216,255,.26);
    background: linear-gradient(180deg, rgba(49,216,255,.05), rgba(8,15,29,.78));
}

.resource-card__icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
}

.resource-card__icon--blue { color: #75a3ff; background: rgba(57,121,255,.09); }
.resource-card__icon--purple { color: #b991ff; background: rgba(157,92,255,.09); }
.resource-card__icon--cyan { color: var(--cyan); background: rgba(49,216,255,.08); }
.resource-card__icon svg { width: 28px; height: 28px; }
.resource-card__copy { display: grid; gap: 4px; }
.resource-card__copy small { color: var(--muted-2); font-size: 9px; text-transform: uppercase; letter-spacing: .10em; }
.resource-card__copy strong { font-size: 15px; }
.resource-card__copy em { color: var(--muted); font-size: 11px; font-style: normal; }
.resource-card__arrow { color: var(--muted-2); }
.resource-card__arrow svg { width: 18px; height: 18px; }

.final-cta {
    position: relative;
    min-height: 330px;
    border-radius: 28px;
    padding: 52px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 30px;
    overflow: hidden;
}

.final-cta__background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 50%, rgba(49,216,255,.12), transparent 32%),
        radial-gradient(circle at 86% 50%, rgba(157,92,255,.12), transparent 34%);
}

.final-cta__background span {
    position: absolute;
    border: 1px solid rgba(49,216,255,.10);
    border-radius: 50%;
}

.final-cta__background span:nth-child(1) { width: 260px; height: 260px; right: 7%; top: 50%; transform: translateY(-50%); }
.final-cta__background span:nth-child(2) { width: 180px; height: 180px; right: 10%; top: 50%; transform: translateY(-50%); }
.final-cta__background span:nth-child(3) { width: 100px; height: 100px; right: 13%; top: 50%; transform: translateY(-50%); }

.final-cta__content,
.final-cta__actions,
.final-cta__status { position: relative; z-index: 2; }
.final-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.final-cta__status { position: absolute; left: 52px; bottom: 28px; display: flex; align-items: center; gap: 10px; }
.final-cta__status-dot { position: relative; width: 24px; height: 24px; display: grid; place-items: center; }
.final-cta__status-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.final-cta__status-dot span { position: absolute; inset: 3px; border: 1px solid rgba(77,226,168,.5); border-radius: 50%; animation: statusPulse 2s infinite; }
.final-cta__status > span:last-child { display: grid; gap: 2px; }
.final-cta__status small { color: var(--muted-2); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.final-cta__status strong { font-size: 11px; }

.site-footer {
    padding: 70px 0 28px;
    border-top: 1px solid rgba(137,164,219,.09);
    background: rgba(3,7,15,.58);
}

.footer-main {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 80px;
    align-items: start;
}

.footer-brand p {
    max-width: 430px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.footer-status { margin-top: 22px; }
.footer-navigation { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-column { display: grid; align-content: start; gap: 11px; }
.footer-column strong { margin-bottom: 3px; font-size: 12px; }
.footer-column a,
.footer-column span { color: var(--muted); font-size: 11px; }
.footer-column a:hover { color: #fff; }

.footer-bottom {
    margin-top: 46px;
    padding-top: 22px;
    border-top: 1px solid rgba(137,164,219,.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted-2);
    font-size: 10px;
}

.footer-bottom__meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom__separator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #43516d;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.back-to-top svg { width: 16px; height: 16px; }

.toast-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    display: grid;
    gap: 10px;
}

.toast {
    min-width: 260px;
    padding: 13px 15px;
    border: 1px solid rgba(49,216,255,.20);
    border-radius: 13px;
    background: rgba(8,15,29,.94);
    box-shadow: 0 18px 42px rgba(0,0,0,.35);
    color: #eaf4ff;
    font-size: 11px;
    animation: toastIn .25s ease;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    background: #050914;
    transition: opacity .45s ease, visibility .45s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.page-loader__mark {
    position: relative;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
}

.page-loader__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(49,216,255,.25);
}

.page-loader__ring--one { inset: 0; animation: spin 3s linear infinite; }
.page-loader__ring--two { inset: 10px; border-color: rgba(157,92,255,.28); animation: spin 2s linear reverse infinite; }
.page-loader__core { width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 30px rgba(49,216,255,.7); }
.page-loader > span { color: var(--muted); font-size: 11px; letter-spacing: .18em; }

.reveal-item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
}

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

.terminal-window.is-fullscreen {
    position: fixed;
    inset: 20px;
    z-index: 120;
    margin: 0;
    background: #030711;
}

.terminal-window.is-fullscreen .terminal-window__body {
    max-height: calc(100vh - 130px);
    min-height: calc(100vh - 130px);
}

@keyframes statusPulse {
    0% { transform: scale(.75); opacity: .8; }
    75%, 100% { transform: scale(1.6); opacity: 0; }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes floating { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes packetFloat { 0%,100% { transform: translate(0,0); opacity: .3; } 50% { transform: translate(16px,-10px); opacity: 1; } }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
@keyframes beamMove { from { transform: translateX(0); } to { transform: translateX(160vw); } }
@keyframes buttonShine { to { transform: rotate(360deg); } }
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 1120px) {
    .desktop-navigation { display: none; }
    .hero-container { grid-template-columns: 1fr; }
    .hero-visual { min-height: 560px; }
    .network-console { inset: 20px 40px 30px; transform: none; }
    .hero-trust { max-width: 760px; }
    .stats-panel { grid-template-columns: repeat(2, 1fr); }
    .stat-card:nth-child(2) { border-right: 0; }
    .stat-card:nth-child(-n+2) { border-bottom: 1px solid rgba(139,164,218,.10); }
    .diagnostic-layout { grid-template-columns: 1fr; }
    .tool-selector { grid-template-columns: repeat(2, 1fr); }
    .resources-layout { grid-template-columns: 1fr; }
    .final-cta { grid-template-columns: 1fr; padding-bottom: 90px; }
    .final-cta__actions { justify-content: flex-start; }
    .topology-footer { grid-template-columns: repeat(3, 1fr); }
    .topology-footer__links { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 860px) {
    .network-status,
    .button--header { display: none; }
    .mobile-menu-button { display: flex; }
    .mobile-navigation.is-open { display: block; }
    .hero-section { padding-top: 86px; }
    .hero-title { font-size: clamp(46px, 11vw, 72px); }
    .hero-trust { grid-template-columns: 1fr; }
    .hero-visual { min-height: 500px; }
    .network-console { inset: 10px 0 20px; }
    .floating-card--latency { left: 8px; bottom: 54px; }
    .floating-card--security { right: 6px; top: 34px; }
    .section-heading__layout { align-items: flex-start; flex-direction: column; }
    .download-grid { grid-template-columns: 1fr; }
    .topology-canvas { min-height: 760px; }
    .topology-node--pop { top: 8%; }
    .topology-node--core { top: 49%; }
    .topology-peer--digi { left: 5%; top: 22%; }
    .topology-peer--prime { right: 5%; top: 22%; }
    .topology-peer--ronix { left: 5%; bottom: 9%; }
    .topology-peer--interix { right: 5%; bottom: 9%; }
    .topology-footer { grid-template-columns: 1fr; }
    .topology-footer__links { grid-column: auto; justify-content: flex-start; }
    .footer-main { grid-template-columns: 1fr; gap: 46px; }
    .final-cta { padding: 38px 28px 88px; }
    .final-cta__status { left: 28px; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 24px, var(--container)); }
    .header-container { min-height: 70px; }
    .brand-subtitle { display: none; }
    .hero-section { padding-bottom: 60px; }
    .hero-description { font-size: 15px; }
    .hero-actions { display: grid; }
    .hero-actions .button { width: 100%; }
    .hero-visual { min-height: 430px; }
    .network-console { inset: 0; }
    .floating-card { display: none; }
    .console-metrics { grid-template-columns: 1fr; }
    .console-metric { border-right: 0; border-bottom: 1px solid rgba(147,171,224,.08); }
    .console-metric:last-child { border-bottom: 0; }
    .stats-panel { grid-template-columns: 1fr; }
    .stat-card { border-right: 0; border-bottom: 1px solid rgba(139,164,218,.10); }
    .stat-card:last-child { border-bottom: 0; }
    .looking-glass-section,
    .network-map-section,
    .downloads-section,
    .resources-section,
    .final-cta-section { padding: 84px 0; }
    .tool-selector { grid-template-columns: 1fr; }
    .diagnostic-console__header,
    .diagnostic-description,
    .panel-header { align-items: flex-start; flex-direction: column; }
    .diagnostic-console__node { align-self: flex-start; }
    .diagnostic-form__actions { display: grid; }
    .terminal-window { margin: 0 10px 10px; }
    .terminal-window__toolbar { padding: 10px; align-items: flex-start; }
    .terminal-window__actions { flex-wrap: wrap; justify-content: flex-end; }
    .terminal-window__footer { align-items: flex-start; flex-direction: column; padding: 12px; }
    .topology-canvas { min-height: 840px; }
    .topology-peer { min-width: 145px; padding: 10px; }
    .topology-peer--digi { left: 3%; top: 19%; }
    .topology-peer--prime { right: 3%; top: 19%; }
    .topology-peer--ronix { left: 3%; bottom: 8%; }
    .topology-peer--interix { right: 3%; bottom: 8%; }
    .topology-toolbar { align-items: flex-start; flex-direction: column; padding: 16px; }
    .topology-toolbar__legend { flex-wrap: wrap; }
    .footer-navigation { grid-template-columns: 1fr; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
    .footer-bottom__meta { flex-wrap: wrap; }
    .resource-card { grid-template-columns: 48px 1fr auto; }
    .final-cta__actions { display: grid; }
    .final-cta__actions .button { width: 100%; }
}

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