:root {
    --bg: #080b14;
    --bg-soft: #0d1220;
    --surface: rgba(18, 24, 40, 0.88);
    --surface-solid: #121828;
    --surface-light: #182033;
    --border: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(148, 163, 184, 0.24);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-light: #cbd5e1;
    --violet: #8b5cf6;
    --violet-dark: #6d3fe2;
    --cyan: #22d3ee;
    --green: #34d399;
    --amber: #fbbf24;
    --red: #fb7185;
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 12% 5%, rgba(139, 92, 246, 0.12), transparent 30rem),
        radial-gradient(circle at 88% 20%, rgba(34, 211, 238, 0.07), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

svg {
    display: block;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    transform: translateY(-150%);
    border-radius: 10px;
    background: var(--text);
    color: var(--bg);
    font-weight: 800;
}

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

.skip-link:focus {
    transform: translateY(0);
}

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

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(8, 11, 20, 0.82);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: none;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(139, 92, 246, 0.38);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.24), rgba(34, 211, 238, 0.08));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 10px 30px rgba(109, 63, 226, 0.18);
}

.brand-mark svg {
    width: 25px;
    fill: none;
    stroke: #c4b5fd;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.1;
}

.brand > span:last-child {
    display: grid;
}

.brand strong {
    font-size: 1.03rem;
    letter-spacing: -0.02em;
}

.brand small {
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--muted-light);
    font-size: 0.88rem;
    font-weight: 650;
}

.main-nav a {
    position: relative;
    padding-block: 8px;
    transition: color 160ms ease;
}

.main-nav a::after {
    position: absolute;
    right: 50%;
    bottom: 1px;
    left: 50%;
    height: 2px;
    border-radius: 3px;
    background: var(--violet);
    content: "";
    transition: inset 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--text);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    right: 0;
    left: 0;
}

.online-pill,
.test-state,
.storage-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: var(--muted-light);
    font-size: 0.76rem;
}

.online-pill {
    padding: 8px 12px;
}

.online-pill span,
.test-state i,
.test-endpoint i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1);
}

.online-pill.is-offline span {
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.1);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 78px;
}

.hero::after {
    position: absolute;
    z-index: -1;
    top: 42px;
    right: -160px;
    width: 460px;
    height: 460px;
    border: 1px solid rgba(139, 92, 246, 0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 80px rgba(139, 92, 246, 0.025), 0 0 0 160px rgba(34, 211, 238, 0.018);
    content: "";
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.78fr);
    align-items: center;
    gap: clamp(54px, 8vw, 110px);
}

.eyebrow,
.section-kicker {
    margin: 0;
    color: #a78bfa;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.07);
}

.eyebrow span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
}

.hero h1 {
    max-width: 700px;
    margin: 24px 0 20px;
    font-size: clamp(3rem, 6.1vw, 5.45rem);
    font-weight: 760;
    letter-spacing: -0.062em;
    line-height: 0.98;
}

.hero h1 em {
    display: block;
    background: linear-gradient(90deg, #a78bfa 0%, #c4b5fd 38%, #67e8f9 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-style: normal;
}

.hero-lead {
    max-width: 620px;
    margin: 0;
    color: var(--muted-light);
    font-size: clamp(1rem, 1.55vw, 1.13rem);
    line-height: 1.75;
}

.hero-points {
    display: grid;
    margin-top: 34px;
    gap: 15px;
}

.hero-points > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.point-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: none;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
    color: #a78bfa;
    font-size: 0.68rem;
    font-weight: 850;
}

.hero-points p {
    display: grid;
    margin: 0;
}

.hero-points strong {
    font-size: 0.9rem;
}

.hero-points small,
.mini-note {
    color: var(--muted);
    font-size: 0.78rem;
}

.mini-note {
    display: flex;
    max-width: max-content;
    align-items: center;
    gap: 9px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.mini-note svg {
    width: 18px;
    fill: none;
    stroke: var(--green);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.test-card {
    position: relative;
    padding: 26px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(155deg, rgba(24, 32, 51, 0.95), rgba(13, 18, 32, 0.97));
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.05);
}

.test-card::before {
    position: absolute;
    top: -130px;
    left: 50%;
    width: 300px;
    height: 230px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.16);
    filter: blur(65px);
    content: "";
    pointer-events: none;
}

.card-topline,
.section-heading,
.connection-heading,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.card-topline h2 {
    margin: 4px 0 0;
    font-size: 1.2rem;
    letter-spacing: -0.025em;
}

.test-state {
    padding: 7px 10px;
}

.test-state.is-running i {
    background: var(--cyan);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
    animation: pulse 1.2s ease-in-out infinite;
}

.test-state.is-error i {
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.1);
}

@keyframes pulse {
    50% { opacity: 0.45; transform: scale(0.8); }
}

.gauge-wrap {
    position: relative;
    display: grid;
    width: min(270px, 78vw);
    margin: 18px auto 8px;
    aspect-ratio: 1;
    place-items: center;
}

.speed-gauge {
    width: 100%;
    transform: rotate(-90deg);
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.28));
}

.speed-gauge circle {
    fill: none;
    stroke-width: 11;
}

.gauge-track {
    stroke: rgba(148, 163, 184, 0.1);
}

.gauge-value {
    stroke: url(#gaugeGradient);
    stroke-dasharray: 578.1;
    stroke-dashoffset: 578.1;
    stroke-linecap: round;
    transition: stroke-dashoffset 320ms ease;
}

.gauge-copy {
    position: absolute;
    display: grid;
    place-items: center;
    text-align: center;
}

.gauge-copy span {
    font-size: clamp(2.7rem, 7vw, 4rem);
    font-variant-numeric: tabular-nums;
    font-weight: 780;
    letter-spacing: -0.065em;
    line-height: 1;
}

.gauge-copy strong {
    margin-top: 5px;
    color: #c4b5fd;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gauge-copy small {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.72rem;
}

.progress-track {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.1);
}

.progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--violet), var(--cyan));
    transition: width 260ms ease;
}

.test-message {
    min-height: 21px;
    margin: 13px 0 16px;
    color: var(--muted);
    font-size: 0.79rem;
    text-align: center;
}

.start-button {
    display: flex;
    width: 100%;
    min-height: 66px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    border: 0;
    border-radius: 17px;
    background: linear-gradient(115deg, var(--violet-dark), var(--violet) 55%, #7467ef);
    box-shadow: 0 15px 35px rgba(109, 63, 226, 0.28), inset 0 1px rgba(255, 255, 255, 0.2);
    color: white;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 19px 42px rgba(109, 63, 226, 0.37), inset 0 1px rgba(255, 255, 255, 0.2);
    filter: saturate(1.08);
}

.start-button:active {
    transform: translateY(0);
}

.start-button:focus-visible,
.main-nav a:focus-visible,
.brand:focus-visible {
    outline: 3px solid rgba(34, 211, 238, 0.45);
    outline-offset: 3px;
}

.start-button.is-running {
    background: linear-gradient(115deg, #334155, #475569);
    box-shadow: none;
}

.button-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.13);
}

.button-icon svg {
    width: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.start-button > span:last-child {
    display: grid;
    text-align: left;
}

.start-button strong {
    font-size: 0.98rem;
}

.start-button small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.68rem;
}

.test-endpoint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 17px;
    color: var(--muted);
    font-size: 0.72rem;
}

.test-endpoint span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.test-endpoint strong {
    overflow: hidden;
    color: var(--muted-light);
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.results-section,
.history-section,
.how-section {
    padding: 84px 0;
}

.results-section {
    border-top: 1px solid rgba(148, 163, 184, 0.07);
    background: rgba(10, 14, 25, 0.7);
}

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

.section-heading h2 {
    margin: 5px 0 0;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    letter-spacing: -0.045em;
}

.section-heading > p {
    max-width: 470px;
    margin: 0;
    color: var(--muted);
    font-size: 0.87rem;
    text-align: right;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.metric-card,
.quality-card,
.connection-card,
.history-card,
.steps-grid article {
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.metric-card {
    position: relative;
    min-width: 0;
    padding: 22px;
    overflow: hidden;
    border-radius: var(--radius);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.metric-card::after {
    position: absolute;
    right: -32px;
    bottom: -42px;
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background: var(--card-glow, rgba(139, 92, 246, 0.07));
    filter: blur(12px);
    content: "";
}

.metric-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    background: rgba(22, 29, 47, 0.95);
}

.download-card { --card-color: #a78bfa; --card-glow: rgba(139, 92, 246, 0.13); }
.upload-card { --card-color: #67e8f9; --card-glow: rgba(34, 211, 238, 0.1); }
.ping-card { --card-color: #6ee7b7; --card-glow: rgba(52, 211, 153, 0.1); }
.jitter-card { --card-color: #fcd34d; --card-glow: rgba(251, 191, 36, 0.09); }

.metric-icon {
    display: grid;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--card-color) 25%, transparent);
    border-radius: 11px;
    background: color-mix(in srgb, var(--card-color) 9%, transparent);
    color: var(--card-color);
}

.metric-icon svg,
.step-icon svg,
.empty-history svg {
    width: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.metric-card > p {
    margin: 0 0 7px;
    color: var(--muted-light);
    font-size: 0.8rem;
    font-weight: 700;
}

.metric-card > div:nth-of-type(2) {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 7px;
}

.metric-card strong {
    overflow: hidden;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.055em;
    text-overflow: ellipsis;
}

.metric-card div span {
    color: var(--card-color);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.metric-card > small {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 0.69rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 18px;
    margin-top: 18px;
}

.quality-card,
.connection-card {
    border-radius: var(--radius);
}

.quality-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.72fr);
    align-items: center;
    gap: 32px;
    padding: 28px;
}

.quality-badge {
    display: inline-flex;
    padding: 6px 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.07);
    color: var(--muted-light);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.quality-badge.is-excellent,
.quality-badge.is-good {
    border-color: rgba(52, 211, 153, 0.23);
    background: rgba(52, 211, 153, 0.08);
    color: #6ee7b7;
}

.quality-badge.is-fair {
    border-color: rgba(251, 191, 36, 0.23);
    background: rgba(251, 191, 36, 0.08);
    color: #fcd34d;
}

.quality-badge.is-slow {
    border-color: rgba(251, 113, 133, 0.23);
    background: rgba(251, 113, 133, 0.08);
    color: #fda4af;
}

.quality-main h3 {
    max-width: 520px;
    margin: 15px 0 9px;
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
    letter-spacing: -0.035em;
    line-height: 1.22;
}

.quality-main p {
    max-width: 570px;
    margin: 0;
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.7;
}

.usage-list {
    display: grid;
    gap: 8px;
}

.usage-list > div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
}

.usage-list > div > span {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 9px;
    background: rgba(139, 92, 246, 0.08);
    color: #c4b5fd;
    font-size: 0.72rem;
}

.usage-list p {
    display: grid;
    margin: 0;
}

.usage-list strong {
    font-size: 0.73rem;
}

.usage-list small {
    color: var(--muted);
    font-size: 0.62rem;
}

.usage-list i {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.08);
    color: var(--muted);
    font-size: 0.67rem;
    font-style: normal;
    font-weight: 900;
}

.usage-list > div.is-ready i {
    background: rgba(52, 211, 153, 0.1);
    color: var(--green);
}

.usage-list > div.is-limited i {
    background: rgba(251, 191, 36, 0.1);
    color: var(--amber);
}

.connection-card {
    padding: 24px;
}

.connection-heading {
    justify-content: flex-start;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.connection-heading h3 {
    margin: 3px 0 0;
    font-size: 1.05rem;
}

.connection-orb {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: 13px;
    background: rgba(34, 211, 238, 0.05);
}

.connection-orb span {
    width: 15px;
    height: 15px;
    border: 4px solid rgba(34, 211, 238, 0.22);
    border-top-color: var(--cyan);
    border-radius: 50%;
}

.connection-card dl {
    display: grid;
    margin: 13px 0 0;
}

.connection-card dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.07);
}

.connection-card dl div:last-child {
    border: 0;
}

.connection-card dt {
    color: var(--muted);
    font-size: 0.72rem;
}

.connection-card dd {
    margin: 0;
    color: var(--muted-light);
    font-size: 0.72rem;
    font-weight: 750;
    text-align: right;
}

.history-section {
    border-top: 1px solid rgba(148, 163, 184, 0.07);
}

.storage-badge {
    padding: 8px 12px;
}

.storage-badge.is-database {
    border-color: rgba(52, 211, 153, 0.18);
    color: #6ee7b7;
}

.storage-badge.is-browser {
    border-color: rgba(251, 191, 36, 0.18);
    color: #fcd34d;
}

.history-card {
    overflow: hidden;
    border-radius: var(--radius);
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

th,
td {
    padding: 17px 22px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    text-align: left;
    white-space: nowrap;
}

th {
    background: rgba(255, 255, 255, 0.018);
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

td {
    color: var(--muted-light);
    font-variant-numeric: tabular-nums;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: rgba(139, 92, 246, 0.025);
}

.history-speed {
    color: var(--text);
    font-weight: 780;
}

.table-quality {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.08);
    color: #c4b5fd;
    font-size: 0.65rem;
    font-weight: 800;
}

.table-quality.is-excellent,
.table-quality.is-good {
    background: rgba(52, 211, 153, 0.09);
    color: #6ee7b7;
}

.table-quality.is-fair {
    background: rgba(251, 191, 36, 0.09);
    color: #fcd34d;
}

.table-quality.is-slow {
    background: rgba(251, 113, 133, 0.09);
    color: #fda4af;
}

.empty-history {
    display: none;
    padding: 52px 20px;
    text-align: center;
}

.empty-history.is-visible {
    display: grid;
    place-items: center;
}

.history-card.is-empty .table-scroll {
    display: none;
}

.empty-history > span {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 13px;
    place-items: center;
    border-radius: 14px;
    background: rgba(139, 92, 246, 0.08);
    color: #a78bfa;
}

.empty-history h3 {
    margin: 0;
    font-size: 1rem;
}

.empty-history p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.how-section {
    border-top: 1px solid rgba(148, 163, 184, 0.07);
    background: linear-gradient(180deg, rgba(13, 18, 32, 0.6), transparent);
}

.section-heading.centered {
    display: grid;
    justify-content: center;
    text-align: center;
}

.section-heading.centered > p {
    max-width: none;
    margin-top: 8px;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    counter-reset: steps;
}

.steps-grid article {
    position: relative;
    padding: 28px;
    overflow: hidden;
    border-radius: var(--radius);
}

.steps-grid article > span:first-child {
    position: absolute;
    top: 18px;
    right: 21px;
    color: rgba(148, 163, 184, 0.11);
    font-size: 3rem;
    font-weight: 850;
    letter-spacing: -0.08em;
    line-height: 1;
}

.step-icon {
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 13px;
    background: rgba(139, 92, 246, 0.07);
    color: #a78bfa;
}

.steps-grid h3 {
    margin: 20px 0 8px;
    font-size: 1.02rem;
}

.steps-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.7;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: #070a12;
}

.footer-inner {
    min-height: 115px;
    color: var(--muted);
    font-size: 0.7rem;
}

.footer-brand .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.footer-brand .brand-mark svg {
    width: 21px;
}

.footer-inner > p {
    max-width: 460px;
    margin: 0;
    text-align: center;
}

.footer-inner > span {
    text-align: right;
}

@media (max-width: 1020px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(350px, 0.72fr);
        gap: 42px;
    }

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

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

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

@media (max-width: 820px) {
    .main-nav {
        display: none;
    }

    .hero {
        padding-top: 60px;
    }

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

    .hero-copy {
        text-align: center;
    }

    .hero h1,
    .hero-lead {
        margin-inline: auto;
    }

    .hero-points {
        width: min(100%, 520px);
        margin-inline: auto;
        text-align: left;
    }

    .mini-note {
        margin-inline: auto;
    }

    .test-card {
        width: min(100%, 500px);
        margin-inline: auto;
    }

    .section-heading {
        align-items: flex-end;
    }

    .quality-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .header-inner {
        min-height: 68px;
    }

    .online-pill {
        padding: 7px 10px;
    }

    .online-pill strong {
        font-size: 0;
    }

    .online-pill strong::after {
        font-size: 0.72rem;
        content: "Online";
    }

    .online-pill.is-offline strong::after {
        content: "Offline";
    }

    .hero {
        padding: 48px 0 58px;
    }

    .hero h1 {
        margin-top: 20px;
        font-size: clamp(2.55rem, 13vw, 3.6rem);
    }

    .hero-lead {
        font-size: 0.95rem;
    }

    .test-card {
        padding: 20px;
        border-radius: 22px;
    }

    .card-topline {
        align-items: flex-start;
    }

    .card-topline h2 {
        font-size: 1.08rem;
    }

    .gauge-wrap {
        width: min(250px, 78vw);
    }

    .results-section,
    .history-section,
    .how-section {
        padding: 62px 0;
    }

    .section-heading,
    .history-heading {
        display: grid;
        align-items: start;
    }

    .section-heading > p {
        text-align: left;
    }

    .metric-grid {
        gap: 11px;
    }

    .metric-card {
        padding: 18px;
    }

    .metric-card strong {
        font-size: clamp(1.65rem, 8vw, 2.15rem);
    }

    .quality-card,
    .connection-card {
        padding: 21px;
    }

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

    table,
    tbody,
    tr,
    td {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tbody {
        padding: 8px 14px;
    }

    tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 20px;
        padding: 11px 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.09);
    }

    tbody tr:last-child {
        border-bottom: 0;
    }

    td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 0;
        border: 0;
        white-space: normal;
    }

    td::before {
        color: var(--muted);
        content: attr(data-label);
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    td:first-child,
    td:last-child {
        grid-column: 1 / -1;
    }

    .footer-inner {
        display: grid;
        padding: 30px 0;
        text-align: center;
    }

    .footer-brand {
        margin-inline: auto;
    }

    .footer-inner > span {
        text-align: center;
    }
}

@media (max-width: 390px) {
    .brand small {
        display: none;
    }

    .eyebrow {
        font-size: 0.63rem;
    }

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

    .metric-card {
        display: grid;
        grid-template-columns: 42px 1fr;
        align-items: center;
        gap: 0 12px;
    }

    .metric-icon {
        grid-row: 1 / 4;
        margin: 0;
    }

    .metric-card > p,
    .metric-card > div:nth-of-type(2),
    .metric-card > small {
        grid-column: 2;
    }

    .metric-card > small {
        margin-top: 3px;
    }

    .usage-list > div {
        grid-template-columns: 30px minmax(0, 1fr) auto;
    }
}

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