/* ============================================================
   TrunkNet — static rebuild
   Dark oklch palette + Archivo/JetBrains Mono, preserved from
   the original design. Mobile-first, motion-rich, no frameworks.
   ============================================================ */

/* ---------- Tokens ---------- */

:root {
    --background:        oklch(16% .024 170);
    --surface:           oklch(20% .026 170);
    --surface-bright:    oklch(23% .028 170);
    --secondary:         oklch(26% .03 172);
    --border:            oklch(30% .026 172);
    --border-strong:     oklch(36% .03 172);
    --input:             oklch(30% .026 172);
    --foreground:        oklch(97% .006 165);
    --muted-foreground:  oklch(72% .018 165);

    --primary:           oklch(60% .155 160);
    --primary-glow:      oklch(76% .15 170);
    --primary-foreground: oklch(98% .005 165);
    --gradient-brand:    linear-gradient(100deg, var(--primary), var(--primary-glow));

    --radius:    12px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

    --nav-h: 58px;
    --container: min(1180px, 92vw);

    --font-sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ---------- Reset / base ---------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; }

::selection { background: var(--primary); color: var(--primary-foreground); }

:focus-visible {
    outline: 2px solid var(--primary-glow);
    outline-offset: 3px;
    border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 5px; border: 2px solid var(--background); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ---------- Typography ---------- */

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }

.h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 800; line-height: 0.98; }
.h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 700; }

.text-gradient {
    background: linear-gradient(100deg, var(--primary), var(--primary-glow), var(--primary));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-pan 7s var(--ease-out) infinite;
}

.muted { color: var(--muted-foreground); }
.mono  { font-family: var(--font-mono); }

.tag-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ---------- Layout ---------- */

.container { width: var(--container); margin-inline: auto; }

section { position: relative; }

.section { padding-block: clamp(72px, 10vw, 120px); }
.section-bordered-y { border-block: 1px solid var(--border); background: color-mix(in oklch, var(--surface) 40%, transparent); }

.section-head .tag-label { color: var(--primary-glow); }
.section-head h2 { margin-top: 12px; }
.section-head p.lede {
    margin: 16px auto 0; max-width: 560px;
    color: var(--muted-foreground);
    font-size: clamp(.95rem, 1.6vw, 1.05rem);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
    white-space: nowrap;
    transition: transform .18s var(--ease-out), box-shadow .25s var(--ease-out),
                opacity .2s, background-color .2s, border-color .2s, color .2s;
    will-change: transform;
}

.btn:active { transform: scale(.97); }

.btn-brand {
    background-image: var(--gradient-brand);
    color: var(--primary-foreground);
    box-shadow: 0 0 0 0 rgba(0,0,0,0), 0 8px 24px -10px color-mix(in oklch, var(--primary) 65%, transparent);
}
.btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px -10px color-mix(in oklch, var(--primary) 70%, transparent);
}

.btn-ghost {
    border: 1px solid var(--border);
    background: var(--surface);
}
.btn-ghost:hover {
    background: var(--secondary);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.btn-lg { padding: 15px 26px; font-size: 15px; border-radius: 14px; }

.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Navbar ---------- */

.progress-bar {
    position: fixed; top: 0; left: 0; z-index: 120;
    height: 2px; width: 0%;
    background-image: var(--gradient-brand);
    transition: width .08s linear;
}

.nav-wrap {
    position: sticky; top: 12px; z-index: 100;
    width: var(--container);
    margin-inline: auto;
}

.nav {
    display: flex; align-items: center; gap: 16px;
    border: 1px solid var(--border);
    background: color-mix(in oklch, var(--surface) 88%, transparent);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-radius: 18px;
    padding: 9px 16px;
    box-shadow: 0 10px 40px -18px rgba(0, 0, 0, .6);
    transition: box-shadow .3s, border-color .3s;
}

.nav.scrolled {
    border-color: var(--border-strong);
    box-shadow: 0 14px 44px -16px rgba(0, 0, 0, .75);
}

.brand { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.brand-dot {
    width: 24px; height: 24px; border-radius: 999px;
    background-image: var(--gradient-brand);
    box-shadow: 0 0 14px -2px color-mix(in oklch, var(--primary) 80%, transparent);
    animation: brand-breathe 5s ease-in-out infinite;
}
.brand-name { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.brand-name span { color: var(--muted-foreground); font-weight: 800; }

.nav-links {
    display: none; align-items: center; gap: 22px;
    margin-left: 10px;
}
.nav-links a {
    position: relative;
    font-size: 13px; font-weight: 500;
    color: var(--muted-foreground);
    padding: 4px 0;
    transition: color .2s;
}
.nav-links a::after {
    content: "";
    position: absolute; left: 0; right: 100%; bottom: 0;
    height: 2px; border-radius: 2px;
    background-image: var(--gradient-brand);
    transition: right .3s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--foreground); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }

.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-cta .btn-signin { display: none; padding: 9px 16px; }

.nav-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex: none;
    border: 1px solid var(--border); border-radius: 10px;
    color: var(--foreground);
    transition: background-color .2s, border-color .2s;
}
.nav-burger:hover { background: var(--secondary); }
.nav-burger svg { width: 18px; height: 18px; }
.nav-burger .icon-close { display: none; }

body.drawer-open .nav-burger .icon-menu { display: none; }
body.drawer-open .nav-burger .icon-close { display: block; }

/* Drawer */

.drawer-backdrop {
    position: fixed; inset: 0; z-index: 98;
    background: rgba(5, 4, 12, 0.6);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none;
    transition: opacity .3s;
}
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }

.drawer {
    position: fixed; top: 12px; right: max(12px, calc(50% - var(--container) / 2));
    z-index: 99;
    width: min(340px, calc(100vw - 24px));
    border: 1px solid var(--border-strong);
    background: var(--surface);
    border-radius: 18px;
    padding: 18px;
    display: flex; flex-direction: column; gap: 4px;
    transform: translateY(-12px) scale(.98);
    opacity: 0; pointer-events: none;
    transition: transform .35s var(--ease-out), opacity .25s;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
}
body.drawer-open .drawer { transform: none; opacity: 1; pointer-events: auto; }

.drawer a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px; font-weight: 500;
    color: var(--muted-foreground);
    transition: background-color .2s, color .2s, padding-left .25s var(--ease-out);
}
.drawer a:hover, .drawer a.active { background: var(--secondary); color: var(--foreground); padding-left: 20px; }
.drawer a .num { font-family: var(--font-mono); font-size: 11px; color: var(--primary-glow); }
.drawer .divider { height: 1px; background: var(--border); margin: 10px 4px; }
.drawer .btn { width: 100%; margin-top: 6px; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; }

.hero-glow {
    position: absolute; top: -260px; left: 50%;
    width: 820px; height: 520px; max-width: 120vw;
    translate: -50% 0;
    border-radius: 999px;
    background: radial-gradient(closest-side, color-mix(in oklch, var(--primary) 32%, transparent), transparent 70%);
    filter: blur(90px);
    pointer-events: none;
    animation: glow-drift 14s ease-in-out infinite alternate;
}

.hero-inner {
    position: relative;
    display: grid; gap: 56px;
    padding-block: clamp(56px, 9vw, 110px);
    align-items: center;
}
@media (min-width: 1024px) {
    .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    padding: 5px 12px 5px 8px;
}

.live-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background-image: var(--gradient-brand);
    color: var(--primary-foreground);
    font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
    padding: 3px 10px; border-radius: 999px;
}
.live-pill::before {
    content: "";
    width: 6px; height: 6px; border-radius: 999px;
    background: #fff;
    animation: pulse-dot 1.8s ease-out infinite;
}

.hero-badge .mono { font-size: 11px; color: var(--muted-foreground); }

.hero h1 { margin-top: 26px; }
.hero-sub {
    margin: 22px 0 0;
    max-width: 540px;
    color: var(--muted-foreground);
    font-size: clamp(.98rem, 1.7vw, 1.08rem);
    line-height: 1.7;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 520px;
    margin-top: 46px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.hero-stats .tag-label { color: var(--muted-foreground); }
.hero-stats strong {
    display: block; margin-top: 6px;
    font-size: clamp(1.35rem, 2.6vw, 1.65rem);
    font-weight: 800; letter-spacing: -0.02em;
}
.hero-stats strong em { font-style: normal; color: var(--primary-glow); font-size: .72em; font-weight: 700; }

.hero-visual { position: relative; }
.hero-visual::before {
    content: "";
    position: absolute; inset: 8%;
    border-radius: 999px;
    background: radial-gradient(closest-side, color-mix(in oklch, var(--primary) 34%, transparent), transparent 72%);
    filter: blur(70px);
    animation: glow-breathe 9s ease-in-out infinite;
    pointer-events: none;
}
.hero-visual .net-panel {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin-inline: auto;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(60% 60% at 50% 42%, color-mix(in oklch, var(--primary) 9%, transparent), transparent 75%),
        linear-gradient(160deg, var(--surface), var(--background));
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7);
    overflow: hidden;
    animation: hero-float 10s ease-in-out infinite;
}
.hero-visual .net-panel svg { width: 100%; height: 100%; display: block; }

.net-panel .wire {
    stroke: color-mix(in oklch, var(--primary) 26%, transparent);
    transition: stroke .3s;
}
.net-panel .wire-spin { transform-origin: 240px 240px; animation: wire-rotate 48s linear infinite; }

.net-panel .arc {
    fill: none;
    stroke: color-mix(in oklch, var(--primary-glow) 62%, transparent);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 5 11;
    animation: arc-flow 1.5s linear infinite;
}
.net-panel .arc:nth-of-type(2) { animation-delay: -.5s; }
.net-panel .arc:nth-of-type(3) { animation-delay: -1s; }

.net-panel .flow-dot {
    fill: var(--primary-glow);
    filter: drop-shadow(0 0 5px color-mix(in oklch, var(--primary-glow) 80%, transparent));
}

.net-panel .node-core {
    fill: var(--primary-glow);
    filter: drop-shadow(0 0 6px color-mix(in oklch, var(--primary-glow) 70%, transparent));
}
.net-panel .node-ring {
    fill: none;
    stroke: var(--primary-glow);
    stroke-width: 1.5;
    transform-box: fill-box;
    transform-origin: center;
    animation: node-pulse 2.6s ease-out infinite;
}
.net-panel .node-lbl {
    fill: var(--muted-foreground);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
}

/* ---------- Trust bar ---------- */

.trust {
    border-block: 1px solid var(--border);
    background: color-mix(in oklch, var(--surface) 40%, transparent);
}
.trust-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    padding-block: 26px;
}
@media (min-width: 900px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

.trust-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trust-item .ico {
    flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--background);
    color: var(--primary-glow);
    transition: transform .25s var(--ease-spring), border-color .25s;
}
.trust-item:hover .ico { transform: translateY(-3px) rotate(-4deg); border-color: var(--border-strong); }
.trust-item .ico svg { width: 17px; height: 17px; }
.trust-item p { margin: 0; font-size: 14px; font-weight: 600; }
.trust-item small { display: block; color: var(--muted-foreground); font-size: 12px; }

/* ---------- Steps (how it works) ---------- */

.steps-grid {
    display: grid; gap: 16px;
    margin-top: 48px;
}
@media (min-width: 740px)  { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

.step {
    position: relative;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 24px;
    overflow: hidden;
    transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s;
}
.step:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7);
}
.step::after {
    content: "";
    position: absolute; inset: auto -30% -60% auto;
    width: 180px; height: 180px;
    background: radial-gradient(closest-side, color-mix(in oklch, var(--primary) 22%, transparent), transparent);
    opacity: 0;
    transition: opacity .35s;
    pointer-events: none;
}
.step:hover::after { opacity: 1; }
.step .num { font-family: var(--font-mono); font-size: 12px; color: var(--primary-glow); }
.step h3 { margin-top: 16px; font-size: 17px; }
.step p { margin: 8px 0 0; color: var(--muted-foreground); font-size: 14px; }

/* ---------- Feature cards ---------- */

.features-grid {
    display: grid; gap: 16px;
    margin-top: 48px;
}
@media (min-width: 1024px) { .features-grid { grid-template-columns: 1.1fr .9fr; align-items: stretch; } }

.features-sub { display: grid; gap: 16px; }

.card {
    position: relative;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 28px;
    overflow: hidden;
    transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
    box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .75);
}

.card .chip {
    display: inline-block;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    border: 1px solid var(--border); border-radius: 8px;
    padding: 5px 10px;
    color: var(--muted-foreground);
}

.card .ico {
    display: inline-flex; align-items: center; justify-content: center;
    margin-top: 22px;
    width: 46px; height: 46px;
    border: 1px solid var(--border); border-radius: 14px;
    background: var(--background);
    color: var(--primary-glow);
    transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.card:hover .ico { transform: translateY(-3px) scale(1.06); box-shadow: 0 10px 24px -10px color-mix(in oklch, var(--primary) 60%, transparent); }
.card .ico svg { width: 21px; height: 21px; }

.card h3 { margin-top: 16px; letter-spacing: -0.015em; }
.card > p { margin: 10px 0 0; color: var(--muted-foreground); font-size: 14px; }

/* P1 bot hero card */

.card-p1 h3 { font-size: clamp(1.35rem, 2.6vw, 1.6rem); max-width: 420px; }

.p1-stat {
    display: grid; gap: 18px;
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--background);
    padding: 20px;
}
@media (min-width: 560px) { .p1-stat { grid-template-columns: auto 1fr; align-items: center; } }

.p1-stat .big {
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1;
}
.p1-stat ul {
    margin: 0; padding: 0; list-style: none;
    display: grid; gap: 8px;
    font-family: var(--font-mono); font-size: 11px;
    color: var(--muted-foreground);
}

.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips-row .chip { color: var(--muted-foreground); }

/* Small feature cards */

.mini-grid {
    display: grid; gap: 16px;
    margin-top: 16px;
}
@media (min-width: 680px)  { .mini-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mini-grid { grid-template-columns: repeat(3, 1fr); } }

.mini { padding: 24px; }
.mini h3 { font-size: 17px; margin-top: 18px; }
.mini .ico { margin-top: 18px; width: 40px; height: 40px; border-radius: 12px; }
.mini .ico svg { width: 18px; height: 18px; }

/* ---------- Pricing ---------- */

.pricing-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pricing-chips .chip { padding: 8px 12px; color: var(--muted-foreground); transition: color .2s, border-color .2s; }
.pricing-chips .chip:hover { color: var(--foreground); border-color: var(--border-strong); }

.route-tabs {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
    margin: 40px auto 0;
}
.route-tab {
    padding: 9px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--muted-foreground);
    font-size: 13.5px; font-weight: 500;
    transition: color .2s, background-color .25s, border-color .25s, transform .2s var(--ease-out), box-shadow .25s;
}
.route-tab:hover { color: var(--foreground); transform: translateY(-1px); }
.route-tab.active {
    background-image: var(--gradient-brand);
    color: var(--primary-foreground);
    border-color: transparent;
    box-shadow: 0 10px 26px -12px color-mix(in oklch, var(--primary) 70%, transparent);
}

.rate-search {
    display: flex; align-items: center; gap: 10px;
    width: min(420px, 100%);
    margin: 18px auto 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    padding: 11px 14px;
    transition: border-color .25s, box-shadow .25s;
}
.rate-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 22%, transparent);
}
.rate-search svg { width: 16px; height: 16px; color: var(--muted-foreground); flex: none; }
.rate-search input {
    width: 100%;
    background: transparent; border: none; outline: none;
    color: var(--foreground); font-size: 14px;
}
.rate-search input::placeholder { color: var(--muted-foreground); }

.rate-table {
    margin-top: 32px;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.rate-head, .rate-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr .8fr .5fr;
    gap: 12px;
    align-items: center;
    padding: 14px 20px;
}
.rate-head {
    background: var(--background);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted-foreground);
}
.rate-head span:last-child, .rate-row .cell-billing { text-align: right; }

.rate-row {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    transition: background-color .2s;
    animation: row-in .45s var(--ease-out) both;
}
.rate-row:last-child { border-bottom: none; }
.rate-row:hover { background: var(--surface-bright); }
.rate-row.hidden { display: none; }

.rate-row .route  { font-family: var(--font-mono); font-size: 12px; color: var(--muted-foreground); }
.rate-row .rate   { font-family: var(--font-mono); color: var(--primary-glow); font-weight: 500; }
.rate-row .billing{ font-family: var(--font-mono); font-size: 12px; color: var(--muted-foreground); text-align: right; }

.rate-empty {
    padding: 28px 20px;
    text-align: center;
    color: var(--muted-foreground);
    font-size: 14px;
    display: none;
}
.rate-empty.show { display: block; }

.rate-foot {
    margin: 16px 4px 0;
    font-family: var(--font-mono); font-size: 11px;
    color: var(--muted-foreground);
}

/* ---------- Points list (reseller / DIDs) ---------- */

.split { display: grid; gap: 40px; }
@media (min-width: 1024px) { .split { grid-template-columns: 1.1fr .9fr; gap: 56px; } }

.point {
    border-left: 2px solid color-mix(in oklch, var(--primary) 60%, transparent);
    padding-left: 18px;
    transition: border-color .3s, padding-left .3s var(--ease-out);
}
.point:hover { border-color: var(--primary-glow); padding-left: 24px; }
.point h3 { font-size: 16px; }
.point p { margin: 6px 0 0; color: var(--muted-foreground); font-size: 14px; }
.points { display: grid; gap: 26px; margin-top: 0; }

.side-card {
    position: relative;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 34px;
    height: fit-content;
    overflow: hidden;
}
.side-card::before {
    content: "";
    position: absolute; top: -80px; right: -80px;
    width: 240px; height: 240px;
    background: radial-gradient(closest-side, color-mix(in oklch, var(--primary) 20%, transparent), transparent);
    pointer-events: none;
}
.side-card h3 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.side-card p { margin: 12px 0 0; color: var(--muted-foreground); font-size: 14px; }
.side-card .btn { margin-top: 24px; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 760px; margin-top: 40px; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    width: 100%;
    padding: 20px 4px;
    text-align: left;
    font-size: 15px; font-weight: 600;
    transition: color .2s;
}
.faq-q:hover { color: var(--primary-glow); }
.faq-q .sign {
    flex: none;
    font-size: 20px; font-weight: 400;
    color: var(--muted-foreground);
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform .35s var(--ease-out), color .25s;
}
.faq-item.open .faq-q .sign { transform: rotate(45deg); color: var(--primary-glow); }

.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .4s var(--ease-out);
}
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p {
    margin: 0;
    padding: 0 40px 22px 4px;
    color: var(--muted-foreground);
    font-size: 14px; line-height: 1.7;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .35s .1s, transform .35s .1s var(--ease-out);
}
.faq-item.open .faq-a p { opacity: 1; transform: none; }

/* ---------- CTA ---------- */

.cta { overflow: hidden; border-top: 1px solid var(--border); text-align: center; }
.cta-glow {
    position: absolute; bottom: -260px; left: 50%;
    width: 720px; height: 420px; max-width: 120vw;
    translate: -50% 0;
    border-radius: 999px;
    background: radial-gradient(closest-side, color-mix(in oklch, var(--primary) 30%, transparent), transparent 70%);
    filter: blur(90px);
    pointer-events: none;
    animation: glow-drift 12s ease-in-out infinite alternate-reverse;
}
.cta h2 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
.cta p { margin: 18px auto 0; max-width: 520px; color: var(--muted-foreground); }
.cta .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */

footer { border-top: 1px solid var(--border); background: color-mix(in oklch, var(--surface) 40%, transparent); }

.footer-grid {
    display: grid; gap: 40px;
    padding-block: 56px;
}
@media (min-width: 620px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer-brand p { margin: 14px 0 0; max-width: 300px; color: var(--muted-foreground); font-size: 14px; }
.footer-grid .tag-label { color: var(--muted-foreground); }
.footer-grid nav { display: grid; gap: 10px; margin-top: 14px; }
.footer-grid nav a {
    font-size: 14px; color: var(--muted-foreground);
    width: fit-content;
    transition: color .2s, transform .2s var(--ease-out);
}
.footer-grid nav a:hover { color: var(--foreground); transform: translateX(4px); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-block: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--muted-foreground);
}

/* ---------- Back to top ---------- */

.to-top {
    position: fixed; right: 18px; bottom: 18px; z-index: 90;
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: color-mix(in oklch, var(--surface) 92%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--foreground);
    opacity: 0; translate: 0 12px; pointer-events: none;
    transition: opacity .3s, translate .3s var(--ease-out), background-color .2s;
}
.to-top.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover { background: var(--secondary); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Reveal-on-scroll system ---------- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    transition-delay: var(--d, 0s);
    will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

.reveal-left  { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-left.in, .reveal-right.in { transform: none; }

.reveal-scale { transform: scale(.94); }
.reveal-scale.in { transform: scale(1); }

/* Hero entrance (plays on load) */

@starting-style { .reveal.in { opacity: 0; } }

.hero .anim {
    animation: hero-in .9s var(--ease-out) both;
    animation-delay: var(--d, 0s);
}

/* ---------- Auth / dashboard pages ---------- */

.page-center {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 16px;
    position: relative;
    overflow: hidden;
}

.page-glow {
    position: absolute; top: -240px; left: 50%;
    width: 640px; height: 480px; max-width: 130vw;
    translate: -50% 0;
    border-radius: 999px;
    background: radial-gradient(closest-side, color-mix(in oklch, var(--primary) 26%, transparent), transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: glow-drift 13s ease-in-out infinite alternate;
}

.auth-card {
    position: relative;
    width: 100%; max-width: 410px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
    padding: 30px;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .75);
    animation: hero-in .8s var(--ease-out) both;
    animation-delay: .15s;
}

.auth-brand { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-card h1 { font-size: 24px; }
.auth-card .lede { margin: 6px 0 0; color: var(--muted-foreground); font-size: 14px; }

.field {
    display: grid; gap: 6px; margin-top: 14px;
}
.field label { font-size: 13px; font-weight: 500; color: var(--muted-foreground); }
.field input {
    width: 100%;
    border: 1px solid var(--input);
    border-radius: 12px;
    background: var(--background);
    color: var(--foreground);
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color .25s, box-shadow .25s;
}
.field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 22%, transparent);
}

.auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0;
    font-size: 11px; color: var(--muted-foreground);
}
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }

.notice {
    display: none;
    margin-top: 16px;
    border: 1px solid color-mix(in oklch, var(--primary) 40%, var(--border));
    background: color-mix(in oklch, var(--primary) 12%, var(--surface));
    border-radius: 12px;
    padding: 13px 15px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--foreground);
}
.notice.show { display: block; animation: hero-in .45s var(--ease-out) both; }
.notice a { color: var(--primary-glow); font-weight: 600; }

.auth-foot { margin-top: 20px; text-align: center; font-size: 14px; color: var(--muted-foreground); }
.auth-foot button { color: var(--foreground); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* Dashboard access page */

.dash-card { text-align: center; max-width: 460px; }
.dash-card .lock-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 58px; height: 58px;
    border: 1px solid var(--border); border-radius: 18px;
    background: var(--background);
    color: var(--primary-glow);
    margin-bottom: 20px;
    animation: glow-breathe 6s ease-in-out infinite;
}
.dash-card .lock-ico svg { width: 24px; height: 24px; }
.dash-card h1 { font-size: 26px; }
.dash-card p { margin: 14px 0 0; color: var(--muted-foreground); font-size: 14.5px; }
.dash-card .btn { margin-top: 24px; }
.dash-card .auth-foot { font-size: 13.5px; }

/* ---------- Keyframes ---------- */

@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
    70%  { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

@keyframes glow-drift {
    0%   { transform: translate(-50%, 0) scale(1); }
    50%  { transform: translate(-46%, 30px) scale(1.08); }
    100% { transform: translate(-54%, -10px) scale(.96); }
}

@keyframes glow-breathe {
    0%, 100% { opacity: .75; }
    50%      { opacity: 1; }
}

@keyframes brand-breathe {
    0%, 100% { box-shadow: 0 0 14px -2px color-mix(in oklch, var(--primary) 80%, transparent); }
    50%      { box-shadow: 0 0 24px  2px color-mix(in oklch, var(--primary-glow) 70%, transparent); }
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

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

@keyframes arc-flow {
    to { stroke-dashoffset: -16; }
}

@keyframes node-pulse {
    0%   { transform: scale(1);    opacity: .8; }
    100% { transform: scale(3.4);  opacity: 0; }
}

@keyframes gradient-pan {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

@keyframes hero-in {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: none; }
}

@keyframes row-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- Responsive: tablets ---------- */

@media (min-width: 640px) {
    .rate-search { margin-top: 24px; }
}

@media (min-width: 1024px) {
    .nav-links { display: flex; }
    .nav-cta .btn-signin { display: inline-flex; }
    .nav-burger { display: none; }
    .drawer-backdrop, .drawer { display: none; }
}

/* ---------- Responsive: phones ---------- */

@media (max-width: 639px) {
    /* horizontal slide variants would poke past the viewport edge on phones */
    .reveal-left, .reveal-right { transform: translateY(26px); }
    .hero-stats { gap: 12px; }
    .hero-ctas .btn { flex: 1 1 100%; }
    .rate-table { border-radius: 14px; }
    .rate-head { display: none; }
    .rate-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px 16px;
        padding: 16px;
    }
    .rate-row > span {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        font-size: 13.5px;
    }
    .rate-row > span::before {
        content: attr(data-label);
        font-family: var(--font-mono);
        font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
        color: var(--muted-foreground);
    }
    .rate-row .route, .rate-row .billing { font-size: 12.5px; }
    .rate-row .cell-billing { text-align: right; }
    .p1-stat { text-align: left; }
    .side-card { padding: 26px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero .anim { animation: none; }
    .net-panel .flow-dot { display: none; }
}
