:root {
    --bg: #050a12;
    --bg-deep: #03070d;
    --surface: #0b1421;
    --surface-2: #101c2b;
    --surface-3: #152235;
    --line: rgba(163, 187, 218, .14);
    --line-strong: rgba(117, 166, 230, .28);
    --text: #f3f7fc;
    --muted: #98a9be;
    --muted-2: #718399;
    --blue: #4f8dff;
    --blue-bright: #6aa3ff;
    --cyan: #58d6ff;
    --green: #3dd6a4;
    --amber: #f2b84b;
    --red: #ff6e7f;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 24px 70px rgba(0, 0, 0, .28);
    --container: 1200px;
}

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

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

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::selection { color: #fff; background: #286ee8; }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
svg { display: block; }

:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}

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

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: #06101c;
    background: var(--cyan);
    border-radius: 8px;
    font-weight: 800;
    transform: translateY(-160%);
    transition: transform .2s ease;
}

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.brand-dot { color: var(--cyan); }

.brand-mark {
    display: inline-grid;
    width: 30px;
    height: 30px;
    padding: 6px;
    gap: 2px;
    border: 1px solid rgba(106, 163, 255, .48);
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(79, 141, 255, .34), rgba(88, 214, 255, .08));
    box-shadow: inset 0 0 12px rgba(79, 141, 255, .22);
}

.brand-mark span {
    display: block;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--blue-bright), var(--cyan));
}

.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    border-bottom: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
    border-color: var(--line);
    background: rgba(5, 10, 18, .9);
    box-shadow: 0 14px 45px rgba(0, 0, 0, .2);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav > a:not(.button) { color: #afbdd0; font-size: 14px; font-weight: 650; transition: color .2s ease; }
.site-nav > a:not(.button):hover { color: #fff; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 0;
    background: transparent;
}

.nav-toggle span:not(.sr-only), .portal-nav-open span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 99px;
    background: #fff;
}

.button {
    display: inline-flex;
    min-height: 48px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: #fff;
    background: linear-gradient(135deg, #377bf3, #5a99ff);
    box-shadow: 0 12px 28px rgba(49, 118, 244, .24), inset 0 1px 0 rgba(255, 255, 255, .18);
    cursor: pointer;
    font-weight: 750;
    line-height: 1.2;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(49, 118, 244, .32), inset 0 1px 0 rgba(255, 255, 255, .18); }
.button:active { transform: translateY(0); }
.button[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.button--small { min-height: 44px; padding-inline: 17px; font-size: 14px; }
.button--wide { width: 100%; }
.button--ghost { color: #dce8f8; border-color: var(--line-strong); background: rgba(13, 25, 41, .68); box-shadow: none; }
.button--ghost:hover { border-color: rgba(106, 163, 255, .58); background: rgba(21, 39, 62, .88); box-shadow: none; }
.button--light { color: #07101c; background: #f4f8fd; box-shadow: 0 14px 36px rgba(0, 0, 0, .2); }
.button--light:hover { background: #fff; box-shadow: 0 18px 44px rgba(0, 0, 0, .26); }
.button--danger { color: #fff; background: #d84c60; box-shadow: none; }

.eyebrow, .auth-kicker, .portal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #80adff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.eyebrow > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(61, 214, 164, .1), 0 0 16px rgba(61, 214, 164, .55);
}

.hero {
    position: relative;
    min-height: 860px;
    padding: 150px 0 90px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(5, 10, 18, .98) 0%, rgba(5, 10, 18, .9) 52%, rgba(5, 10, 18, .4) 100%),
        radial-gradient(circle at 75% 34%, rgba(32, 94, 189, .12), transparent 38%);
}

.hero::before {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(95, 145, 210, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(95, 145, 210, .035) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 88%);
    content: "";
}

.hero-glow { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-glow--one { top: 150px; left: -220px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(44, 103, 211, .17), transparent 68%); }
.hero-glow--two { right: -160px; bottom: -200px; width: 580px; height: 580px; background: radial-gradient(circle, rgba(35, 171, 212, .12), transparent 70%); }

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(440px, .98fr);
    align-items: center;
    gap: 80px;
}

.hero-copy h1 {
    max-width: 720px;
    margin: 23px 0 25px;
    font-size: clamp(52px, 6.3vw, 86px);
    font-weight: 780;
    letter-spacing: -.065em;
    line-height: .98;
}

.hero-copy h1 em {
    color: transparent;
    background: linear-gradient(110deg, #76a7ff 8%, #54d4ff 80%);
    -webkit-background-clip: text;
    background-clip: text;
    font-style: normal;
}

.hero-copy > p { max-width: 680px; margin: 0; color: #aab8ca; font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 620px;
    margin-top: 55px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
}

.hero-proof div { padding-right: 24px; }
.hero-proof div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-proof strong, .hero-proof span { display: block; }
.hero-proof strong { color: #eef6ff; font-size: 18px; }
.hero-proof span { margin-top: 2px; color: var(--muted-2); font-size: 12px; }

.hero-visual { position: relative; align-self: stretch; min-height: 615px; }
.hero-visual::before { position: absolute; inset: 4% -15% -4% 5%; border: 1px solid rgba(96, 155, 239, .13); border-radius: 46% 54% 35% 65%; background: radial-gradient(circle, rgba(40, 94, 176, .18), transparent 65%); content: ""; transform: rotate(-8deg); }
.hero-visual img { position: absolute; inset: 0 0 0 auto; width: 88%; height: 100%; object-fit: cover; border: 1px solid rgba(150, 183, 226, .2); border-radius: 190px 28px 170px 32px; opacity: .76; filter: saturate(.7) contrast(1.08); box-shadow: 0 36px 100px rgba(0, 0, 0, .45); }
.hero-visual::after { position: absolute; inset: 0 0 0 auto; width: 88%; border-radius: 190px 28px 170px 32px; background: linear-gradient(120deg, rgba(5, 10, 18, .45), transparent 45%, rgba(5, 10, 18, .28)); content: ""; }

.latency-card {
    position: absolute;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    min-width: 260px;
    padding: 15px 17px;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(126, 174, 239, .26);
    border-radius: 13px;
    background: rgba(8, 18, 30, .88);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .4);
    backdrop-filter: blur(16px);
}

.latency-card--hkg { top: 21%; left: -4%; }
.latency-card--sgp { right: -2%; bottom: 16%; }
.location-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(61, 214, 164, .7); }
.latency-card strong, .latency-card small { display: block; }
.latency-card strong { font-size: 14px; }
.latency-card small { color: var(--muted-2); font-size: 11px; }
.latency-card > span:last-child { color: #64809f; font-size: 12px; font-weight: 800; }

.logo-strip { border-block: 1px solid var(--line); background: #070e18; }
.logo-strip-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 24px; color: #75879e; font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }

.section { padding: 118px 0; }
.section--contrast { border-block: 1px solid var(--line); background: #07101a; }
.section-heading { margin-bottom: 58px; }
.section-heading h2, .final-cta h2 { max-width: 760px; margin: 17px 0 0; font-size: clamp(36px, 4.4vw, 58px); letter-spacing: -.05em; line-height: 1.08; }
.section-heading > p, .split-heading > p { color: var(--muted); font-size: 17px; }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); align-items: end; gap: 70px; }
.split-heading > p { max-width: 440px; margin: 0 0 5px; }
.centered-heading { max-width: 800px; margin-inline: auto; text-align: center; }
.centered-heading h2 { margin-inline: auto; }
.centered-heading p { max-width: 660px; margin: 20px auto 0; }

.feature-grid { display: grid; grid-template-columns: 1.18fr .91fr .91fr; gap: 18px; }
.feature-card { position: relative; min-height: 390px; padding: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(18, 31, 48, .88), rgba(9, 17, 28, .94)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025); }
.feature-card::after { position: absolute; right: -85px; bottom: -100px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(55, 123, 243, .12), transparent 70%); content: ""; }
.feature-card--large { background: radial-gradient(circle at 90% 10%, rgba(69, 130, 235, .16), transparent 35%), linear-gradient(145deg, #111f32, #0a1421); }
.feature-number { position: absolute; top: 25px; right: 29px; color: #40546d; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.icon-box { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgba(103, 163, 242, .26); border-radius: 14px; color: #69a2ff; background: rgba(49, 107, 196, .1); }
.icon-box svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { margin: 72px 0 14px; font-size: 22px; letter-spacing: -.025em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.metric-line { position: absolute; right: 34px; bottom: 30px; left: 34px; display: flex; padding-top: 18px; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 12px; }
.metric-line strong { color: var(--green); }

.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.location-card { position: relative; min-height: 530px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.location-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.07); transition: transform .7s ease; }
.location-card:hover img { transform: scale(1.035); }
.location-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(3, 8, 14, .98) 2%, rgba(4, 10, 18, .53) 58%, rgba(4, 10, 18, .1)); }
.location-content { position: absolute; right: 0; bottom: 0; left: 0; padding: 40px; }
.region-code { color: #83b2ff; font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.location-content h3 { margin: 10px 0 6px; font-size: 38px; letter-spacing: -.04em; }
.location-content p { max-width: 480px; margin: 0; color: #bbc7d6; }
.region-status { display: inline-flex; margin-top: 20px; align-items: center; gap: 8px; color: #c8d4e3; font-size: 12px; font-weight: 700; }
.region-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(61, 214, 164, .6); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 18px; }
.price-card { position: relative; display: flex; min-height: 680px; padding: 34px; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(15, 27, 43, .94), rgba(8, 15, 25, .98)); }
.price-card--featured { border-color: rgba(83, 146, 255, .6); background: radial-gradient(circle at 50% 0, rgba(55, 123, 243, .2), transparent 32%), linear-gradient(145deg, #12223a, #09131f); box-shadow: 0 30px 80px rgba(24, 84, 181, .16); transform: translateY(-12px); }
.price-card--custom { background: linear-gradient(155deg, #172639, #0d1725); }
.popular-label { position: absolute; top: 0; right: 28px; padding: 7px 12px; border-radius: 0 0 8px 8px; color: #07101c; background: var(--cyan); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.plan-topline { display: flex; min-height: 48px; align-items: baseline; justify-content: space-between; gap: 15px; }
.plan-topline > span { font-size: 22px; font-weight: 800; }
.plan-topline small { color: var(--muted-2); font-size: 11px; text-align: right; }
.price { display: flex; margin: 30px 0 18px; align-items: flex-start; }
.price sup { margin: 13px 5px 0 0; color: #8fa2b9; font-size: 13px; font-weight: 750; }
.price strong { font-size: 59px; letter-spacing: -.06em; line-height: 1; }
.price span { margin: 30px 0 0 8px; color: var(--muted-2); font-size: 12px; }
.price-card > p { min-height: 88px; margin: 0; color: var(--muted); font-size: 14px; }
.price-card ul { display: grid; margin: 26px 0 34px; padding: 25px 0 0; gap: 14px; border-top: 1px solid var(--line); list-style: none; color: #b8c6d7; font-size: 14px; }
.price-card li { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.price-card li::after { order: -1; width: 6px; height: 6px; flex: 0 0 auto; border: 1px solid #5596ff; border-radius: 50%; content: ""; }
.price-card li span { margin-right: auto; color: #eef5ff; font-weight: 750; }
.price-card .button { margin-top: auto; }
.custom-mark { display: grid; width: 68px; height: 68px; margin: 28px 0 24px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--cyan); background: rgba(79, 141, 255, .08); font-size: 28px; }
.price-card h3 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.035em; }
.pricing-note { margin: 27px 0 0; color: var(--muted-2); font-size: 12px; text-align: center; }

.final-cta { padding-block: 80px; border-top: 1px solid var(--line); background: radial-gradient(circle at 15% 50%, rgba(42, 111, 223, .25), transparent 34%), linear-gradient(110deg, #0d2445, #0c1726 60%, #08111c); }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.final-cta h2 { max-width: 720px; margin-top: 13px; font-size: clamp(35px, 4vw, 54px); }
.final-cta-actions { display: flex; min-width: 220px; flex-direction: column; align-items: stretch; gap: 18px; text-align: center; }
.final-cta-actions > a:not(.button) { color: #9db2cc; font-size: 13px; font-weight: 700; }

.site-footer { padding: 72px 0 24px; border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-grid { display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); gap: 70px; padding-bottom: 55px; }
.footer-intro p { max-width: 330px; margin: 18px 0 0; color: var(--muted-2); font-size: 13px; }
.footer-grid h2 { margin: 3px 0 18px; color: #d8e3f1; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid > div:not(.footer-intro) a { display: block; margin: 9px 0; color: #7f91a8; font-size: 13px; transition: color .2s; }
.footer-grid > div:not(.footer-intro) a:hover { color: #dce8f8; }
.footer-bottom { display: flex; padding-top: 22px; justify-content: space-between; border-top: 1px solid var(--line); color: #5f7187; font-size: 11px; }

.flash-stack { position: fixed; z-index: 150; top: 90px; right: 0; left: 0; pointer-events: none; }
.flash-stack .alert { width: min(100%, 650px); margin-left: auto; pointer-events: auto; }
.alert { padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 11px; color: #dce7f5; background: #122136; font-size: 14px; }
.alert strong { color: #fff; }
.alert--large { padding: 17px 19px; margin-bottom: 20px; }
.alert--success { border-color: rgba(61, 214, 164, .28); background: rgba(26, 100, 79, .23); }
.alert--error { border-color: rgba(255, 110, 127, .33); background: rgba(120, 37, 51, .22); }
.alert--warning { border-color: rgba(242, 184, 75, .34); background: rgba(111, 78, 17, .25); }
.alert--info { border-color: rgba(79, 141, 255, .3); background: rgba(32, 77, 145, .24); }

/* Authentication */
.auth-shell { min-height: 100vh; background: #07101b; }
.auth-grid { display: grid; min-height: 100vh; grid-template-columns: minmax(480px, 1.08fr) minmax(470px, .92fr); }
.auth-story { position: relative; display: flex; min-height: 100vh; padding: 48px clamp(42px, 6vw, 90px); overflow: hidden; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); background: linear-gradient(rgba(4, 12, 22, .38), rgba(4, 12, 22, .9)), url('../images/server-room.jpg') center/cover; }
.auth-story::after { position: absolute; inset: 0; background: radial-gradient(circle at 20% 45%, rgba(49, 116, 225, .25), transparent 38%); content: ""; }
.auth-story > * { position: relative; z-index: 1; }
.auth-story-copy { max-width: 650px; }
.auth-story-copy h1 { margin: 22px 0; font-size: clamp(44px, 5vw, 70px); letter-spacing: -.055em; line-height: 1.02; }
.auth-story-copy p { max-width: 570px; margin: 0; color: #b4c2d3; font-size: 17px; }
.auth-trust-row { display: flex; flex-wrap: wrap; gap: 10px 28px; color: #91a5bd; font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.auth-trust-row span::before { margin-right: 8px; color: var(--green); content: "✓"; }
.auth-main { display: grid; min-height: 100vh; padding: 55px; place-items: center; background: radial-gradient(circle at 100% 0, rgba(41, 95, 179, .12), transparent 32%), #08111d; }
.auth-card { width: min(100%, 450px); }
.auth-back { display: inline-block; margin-bottom: 65px; color: var(--muted-2); font-size: 13px; font-weight: 700; }
.auth-back:hover { color: #fff; }
.auth-heading h1 { margin: 11px 0 7px; font-size: 42px; letter-spacing: -.045em; }
.auth-heading p { margin: 0 0 30px; color: var(--muted); }
.selected-plan-note { margin: 16px 0; padding: 11px 13px; border: 1px solid rgba(79, 141, 255, .25); border-radius: 9px; color: #b9cdf0; background: rgba(41, 87, 158, .16); font-size: 13px; }
.form-stack { display: grid; gap: 20px; }
.field label { display: block; margin-bottom: 8px; color: #d5e0ee; font-size: 13px; font-weight: 700; }
.field input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; color: #fff; background: #0c1827; outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: #619dff; box-shadow: 0 0 0 3px rgba(79, 141, 255, .13); }
.field-label-row { display: flex; align-items: center; justify-content: space-between; }
.field-label-row a { color: #7faeff; font-size: 12px; font-weight: 700; }
.password-field { position: relative; }
.password-field input { padding-right: 76px; }
.password-field button { position: absolute; top: 50%; right: 4px; min-width: 64px; height: 44px; border: 0; color: #82aefa; background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; transform: translateY(-50%); }
.auth-support { margin: 30px 0 0; color: var(--muted-2); font-size: 12px; text-align: center; }
.auth-support a { color: #8eb7ff; font-weight: 700; }
.field-help { margin: -8px 0 0; color: var(--muted-2); font-size: 12px; }

/* Legal and errors */
.legal-hero { padding: 170px 0 70px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 12% 20%, rgba(40, 98, 194, .2), transparent 30%), #07101a; }
.legal-hero h1 { margin: 17px 0 8px; font-size: clamp(44px, 6vw, 70px); letter-spacing: -.055em; }
.legal-hero p { margin: 0; color: var(--muted); }
.legal-document { max-width: 820px; padding-block: 80px 120px; }
.legal-lead { color: #c0cddd; font-size: 19px; line-height: 1.8; }
.legal-document h2 { margin: 46px 0 10px; font-size: 25px; letter-spacing: -.025em; }
.legal-document p { color: var(--muted); }
.legal-document a { color: #83afff; text-decoration: underline; text-underline-offset: 3px; }
.error-page { display: grid; min-height: 76vh; padding: 150px 0 80px; place-items: center; background: radial-gradient(circle at center, rgba(35, 90, 176, .16), transparent 44%); }
.error-card { max-width: 720px; text-align: center; }
.error-code { display: block; color: #5277a6; font-size: 16px; font-weight: 850; letter-spacing: .2em; }
.error-card h1 { margin: 14px 0; font-size: clamp(40px, 6vw, 68px); letter-spacing: -.055em; line-height: 1.08; }
.error-card > p { color: var(--muted); }
.error-card .hero-actions { justify-content: center; }
.reference { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

/* Client portal */
.portal-shell { background: #07101a; }
.portal-frame { display: grid; min-height: 100vh; grid-template-columns: 270px minmax(0, 1fr); }
.portal-sidebar { position: sticky; z-index: 80; top: 0; display: flex; height: 100vh; padding: 30px 22px 22px; flex-direction: column; border-right: 1px solid var(--line); background: #070e18; }
.portal-nav-backdrop { position: fixed; z-index: 110; inset: 0; visibility: hidden; opacity: 0; pointer-events: none; background: rgba(2, 6, 11, .68); transition: opacity .24s ease, visibility 0s linear .24s; }
.portal-brand-row { display: flex; align-items: center; justify-content: space-between; padding-inline: 7px; }
.portal-brand-row .brand { font-size: 18px; }
.portal-nav-close { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9px; color: #fff; background: transparent; cursor: pointer; font-size: 29px; }
.workspace-label { margin: 36px 11px 12px; color: #8296ad; font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.portal-nav { display: grid; gap: 5px; }
.portal-nav a { display: flex; min-height: 46px; padding: 0 12px; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 10px; color: #8fa2b9; font-size: 13px; font-weight: 700; transition: color .2s, background .2s, border-color .2s; }
.portal-nav a:hover { color: #e8f0fa; background: rgba(20, 36, 56, .62); }
.portal-nav a[aria-current="page"] { border-color: rgba(77, 142, 255, .2); color: #eaf3ff; background: linear-gradient(90deg, rgba(48, 110, 214, .21), rgba(27, 62, 113, .08)); }
.portal-nav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.portal-support-card { margin-top: auto; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, rgba(20, 36, 57, .78), rgba(11, 22, 36, .86)); }
.portal-support-card > span { color: #dce7f5; font-size: 12px; font-weight: 800; }
.portal-support-card p { margin: 7px 0 4px; color: #8296ad; font-size: 12px; line-height: 1.55; }
.portal-support-card a { display: inline-flex; min-height: 44px; align-items: center; color: #82b0ff; font-size: 12px; font-weight: 800; }
.portal-account { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; margin-top: 16px; padding: 15px 8px 0; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: #dceaff; background: #19375f; font-size: 12px; font-weight: 850; }
.portal-account strong, .portal-account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-account strong { color: #cdd9e7; font-size: 12px; }
.portal-account small { max-width: 135px; color: #8296ad; font-size: 11px; }
.portal-account button { width: 44px; height: 44px; border: 0; border-radius: 9px; color: #91a4bb; background: transparent; cursor: pointer; font-size: 17px; }

.portal-main-wrap { min-width: 0; }
.portal-topbar { display: flex; min-height: 94px; padding: 20px clamp(25px, 4vw, 54px); align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(7, 16, 26, .85); backdrop-filter: blur(16px); }
.portal-breadcrumb { display: block; margin-bottom: 1px; color: #8296ad; font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.portal-topbar h1 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.topbar-site-link { display: inline-flex; min-height: 44px; align-items: center; color: #91a4bb; font-size: 12px; font-weight: 750; }
.topbar-site-link:hover { color: #fff; }
.portal-nav-open { display: none; width: 44px; height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: #101d2d; cursor: pointer; }
.portal-content { width: min(100%, 1390px); margin-inline: auto; padding: 40px clamp(25px, 4vw, 54px) 70px; }
.portal-flashes { display: grid; margin-bottom: 20px; gap: 10px; }

.portal-welcome { display: flex; margin-bottom: 32px; align-items: flex-end; justify-content: space-between; gap: 25px; }
.portal-welcome h2, .portal-page-heading h2 { margin: 7px 0 4px; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.045em; line-height: 1.2; }
.portal-welcome p, .portal-page-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.account-id { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; color: #8296ad; background: #0c1725; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.portal-kicker { color: #80adff; font-size: 11px; letter-spacing: .14em; }
.portal-page-heading { display: flex; margin-bottom: 30px; align-items: flex-end; justify-content: space-between; gap: 30px; }

.portal-panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(150deg, rgba(16, 29, 45, .96), rgba(10, 20, 32, .98)); box-shadow: 0 18px 48px rgba(0, 0, 0, .13); }
.portal-summary-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 18px; }
.subscription-panel, .billing-summary-panel, .payment-panel, .security-form-panel, .security-status-panel { padding: 28px; }
.panel-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-heading-row h2 { margin: 6px 0 0; font-size: 20px; letter-spacing: -.03em; }
.panel-heading-row > a { display: inline-flex; min-height: 44px; align-items: center; color: #79a9ff; font-size: 12px; font-weight: 800; }
.status { display: inline-flex; min-height: 28px; padding: 0 10px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.status--success { border-color: rgba(61, 214, 164, .25); color: #75e4bf; background: rgba(30, 121, 91, .17); }
.status--info { border-color: rgba(106, 163, 255, .3); color: #9bc1ff; background: rgba(47, 102, 187, .17); }
.status--warning { border-color: rgba(242, 184, 75, .27); color: #f1c56e; background: rgba(125, 86, 20, .17); }
.status--danger { border-color: rgba(255, 110, 127, .27); color: #ff93a0; background: rgba(135, 40, 53, .16); }
.status--neutral { color: #95a8be; background: rgba(78, 99, 123, .14); }
.subscription-price { display: flex; margin: 33px 0 18px; align-items: baseline; gap: 7px; }
.subscription-price strong { font-size: 36px; letter-spacing: -.045em; }
.subscription-price span { color: #8296ad; font-size: 12px; }
.renewal-line { margin: 0 0 23px; color: var(--muted); font-size: 13px; }
.renewal-line strong { color: #dce7f5; }
.subscription-meta { display: grid; grid-template-columns: 1fr 1fr; margin-top: 23px; padding: 19px 0; border-block: 1px solid var(--line); gap: 20px; }
.subscription-meta span, .subscription-meta strong { display: block; }
.subscription-meta span { color: #8296ad; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.subscription-meta strong { margin-top: 4px; color: #cbd7e5; font-size: 13px; }
.panel-actions { display: flex; min-height: 44px; margin-top: 19px; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px 16px; }
.text-button { display: inline-flex; min-height: 44px; padding: 0 4px; align-items: center; border: 0; color: #83afff; background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }
.text-button--danger { color: #e97d8c; }
.inline-notice { margin: 17px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; color: #c1cedd; background: rgba(25, 43, 65, .55); font-size: 13px; }
.inline-notice--warning { border-color: rgba(242, 184, 75, .23); color: #dec08a; background: rgba(93, 67, 19, .19); }
.inline-notice--danger { border-color: rgba(255, 110, 127, .23); color: #efa4af; background: rgba(110, 34, 47, .18); }

.billing-stat { padding: 22px 0; border-bottom: 1px solid var(--line); }
.billing-stat span, .billing-stat strong, .billing-stat small { display: block; }
.billing-stat span { color: #8296ad; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.billing-stat strong { margin-top: 7px; color: #dce7f4; font-size: 14px; }
.billing-stat small { margin-top: 2px; color: #8296ad; font-size: 12px; }
.billing-summary-panel > .button { margin-top: 24px; }
.empty-illustration { display: flex; height: 76px; margin: 35px 0 15px; align-items: flex-end; gap: 7px; }
.empty-illustration span { width: 18px; border: 1px solid #294c77; border-radius: 4px 4px 2px 2px; background: linear-gradient(to top, #17345a, #204c7e); }
.empty-illustration span:nth-child(1) { height: 38px; }
.empty-illustration span:nth-child(2) { height: 58px; }
.empty-illustration span:nth-child(3) { height: 73px; }
.empty-copy { max-width: 500px; color: var(--muted); font-size: 12px; }
.mini-plan-actions { display: flex; margin-top: 18px; flex-wrap: wrap; gap: 10px; }

.selected-checkout-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; margin-bottom: 22px; padding: 22px 25px; align-items: center; gap: 28px; border: 1px solid rgba(75, 139, 248, .38); border-radius: var(--radius); background: linear-gradient(100deg, rgba(31, 79, 153, .26), rgba(13, 29, 48, .94)); }
.selected-checkout-card h2 { margin: 4px 0; font-size: 21px; }
.selected-checkout-card p { max-width: 610px; margin: 0; color: var(--muted); font-size: 12px; }
.selected-checkout-price strong, .selected-checkout-price span { display: block; text-align: right; }
.selected-checkout-price strong { font-size: 20px; }
.selected-checkout-price span { color: #8296ad; font-size: 12px; }

.server-access-panel { margin-top: 18px; padding: 27px 28px; }
.credential-list { display: grid; margin-top: 19px; gap: 12px; }
.credential-card { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: rgba(7, 15, 25, .55); }
.credential-card-heading { display: flex; margin-bottom: 16px; align-items: center; justify-content: space-between; gap: 16px; }
.credential-card-heading h3 { margin: 0; color: #dce7f4; font-size: 14px; }
.credential-card-heading span { color: #75e4bf; font-size: 11px; font-weight: 800; }
.credential-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.credential-item { min-width: 0; }
.credential-label { display: block; margin-bottom: 7px; color: #8296ad; font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.credential-link { display: flex; min-height: 46px; padding: 0 13px; align-items: center; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 9px; color: #88b4ff; background: #0b1725; font-size: 12px; font-weight: 750; }
.credential-unavailable { display: flex; min-height: 46px; padding: 0 13px; align-items: center; color: #e9a1ab; font-size: 12px; }
.credential-value { width: 100%; min-width: 0; min-height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; color: #d5e1ef; background: #0b1725; outline: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.credential-value:focus { border-color: #619dff; box-shadow: 0 0 0 3px rgba(79, 141, 255, .13); }
.credential-secret-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.credential-reveal-button { min-width: 68px; min-height: 46px; padding: 0 12px; border: 1px solid rgba(79, 141, 255, .3); border-radius: 9px; color: #8ab5ff; background: rgba(40, 86, 157, .17); cursor: pointer; font-size: 12px; font-weight: 850; }
.credential-reveal-button:hover { color: #fff; border-color: rgba(97, 157, 255, .52); }
.credential-reveal-button:focus-visible { outline: 3px solid rgba(97, 157, 255, .3); outline-offset: 2px; }
.credential-reveal-button[disabled] { opacity: .6; cursor: wait; }
.credential-status { display: block; min-height: 17px; margin-top: 5px; color: #8296ad; font-size: 10px; }

.recent-invoices-panel { margin-top: 18px; padding: 27px 28px 12px; }
.table-wrap { margin-top: 19px; overflow-x: auto; }
.portal-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.portal-table th { padding: 11px 12px; border-bottom: 1px solid var(--line); color: #8296ad; font-size: 11px; font-weight: 850; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.portal-table td { padding: 17px 12px; border-bottom: 1px solid rgba(163, 187, 218, .09); color: #aebed0; white-space: nowrap; }
.portal-table td strong { color: #d5e1ef; font-size: 12px; }
.portal-table td small { display: block; max-width: 190px; overflow: hidden; color: #8296ad; font-size: 11px; text-overflow: ellipsis; }
.portal-table tbody tr:last-child td { border-bottom: 0; }
.table-action, .invoice-actions a { display: inline-flex; min-height: 44px; align-items: center; color: #7facff; font-weight: 800; }
.muted { color: #8296ad; }
.panel-empty { padding: 52px 20px; text-align: center; }
.panel-empty strong { display: block; color: #cdd9e7; font-size: 14px; }
.panel-empty p { margin: 5px auto 0; color: #8296ad; font-size: 12px; }
.panel-empty--large { padding: 90px 25px; }
.panel-empty--large p { max-width: 440px; margin-bottom: 20px; }

.invoice-list-panel { padding: 10px 18px 20px; }
.portal-table--invoices { min-width: 880px; }
.invoice-actions { display: flex; gap: 13px; }
.pagination { display: flex; padding: 18px 5px 0; justify-content: flex-end; border-top: 1px solid var(--line); }
.empty-doc { display: grid; width: 58px; height: 67px; margin: 0 auto 18px; place-items: center; border: 1px solid #34577f; border-radius: 8px; color: #6792c8; background: #11243a; font-size: 24px; }

.payment-panel { min-height: 390px; }
.method-count { color: #8296ad; font-size: 11px; font-weight: 800; }
.payment-method-list { display: grid; margin-top: 23px; gap: 11px; }
.payment-method-card { display: grid; grid-template-columns: auto minmax(190px, 1fr) auto auto; padding: 18px; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(7, 15, 25, .55); }
.card-brand-mark { position: relative; width: 50px; height: 34px; border: 1px solid rgba(121, 161, 214, .28); border-radius: 7px; background: linear-gradient(145deg, #1d3e69, #12233a); }
.card-brand-mark span { position: absolute; top: 9px; width: 15px; height: 15px; border-radius: 50%; background: rgba(255, 180, 66, .84); }
.card-brand-mark span:first-child { left: 10px; }
.card-brand-mark span:last-child { left: 20px; background: rgba(240, 95, 88, .78); }
.method-primary span, .method-primary strong, .method-primary small { display: block; }
.method-primary span { color: #8296ad; font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.method-primary strong { margin-top: 3px; color: #dfe9f5; font-size: 14px; letter-spacing: .04em; }
.method-primary small { color: #8296ad; font-size: 11px; }
.method-badges, .method-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.method-actions form { display: inline; }
.security-note-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; gap: 18px; }
.security-note-grid article { display: flex; padding: 20px; gap: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(12, 24, 38, .7); }
.note-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #75abff; background: rgba(47, 102, 187, .15); }
.security-note-grid strong { font-size: 13px; }
.security-note-grid p { margin: 3px 0 0; color: #8296ad; font-size: 12px; }
.empty-card-icon { position: relative; width: 70px; height: 46px; margin: 0 auto 21px; border: 1px solid #31567f; border-radius: 8px; background: linear-gradient(145deg, #173356, #102238); }
.empty-card-icon::before { position: absolute; top: 12px; right: 0; left: 0; height: 6px; background: #284d78; content: ""; }
.empty-card-icon span { position: absolute; right: 9px; bottom: 7px; width: 16px; height: 5px; border-radius: 2px; background: #5b8cc6; }

dialog { color: var(--text); }
dialog::backdrop { background: rgba(2, 6, 11, .78); backdrop-filter: blur(8px); }
.payment-dialog, .confirm-dialog { width: min(calc(100% - 28px), 560px); max-height: calc(100dvh - 28px); padding: 0; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 18px; background: #0d1928; box-shadow: 0 40px 100px rgba(0, 0, 0, .56); }
.payment-dialog-inner { position: relative; padding: 31px; }
.payment-dialog h2, .confirm-dialog h2 { margin: 8px 0 4px; font-size: 26px; letter-spacing: -.04em; }
.payment-dialog p { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 9px; color: #a8b9cb; background: #111f31; cursor: pointer; font-size: 22px; }
.dialog-close[disabled] { opacity: .5; cursor: wait; }
.stripe-loading { display: flex; min-height: 110px; align-items: center; justify-content: center; gap: 10px; color: #91a4bb; font-size: 13px; }
.stripe-loading span { width: 16px; height: 16px; border: 2px solid #34547b; border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#payment-element { min-height: 220px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.consent-check { display: grid; min-height: 44px; margin: 16px 0; grid-template-columns: 22px 1fr; align-items: start; gap: 10px; color: #a7b7ca; font-size: 12px; line-height: 1.5; cursor: pointer; }
.consent-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--blue); }
.consent-check a { color: #84b2ff; text-decoration: underline; text-underline-offset: 2px; }
.form-error { min-height: 20px; margin-bottom: 7px; color: #ff98a5; font-size: 12px; }
.confirm-dialog { width: min(calc(100% - 28px), 440px); padding: 28px; text-align: center; }
.confirm-dialog p { color: var(--muted); font-size: 13px; }
.confirm-icon { display: grid; width: 46px; height: 46px; margin: 0 auto 8px; place-items: center; border: 1px solid rgba(255, 110, 127, .3); border-radius: 50%; color: #ff8b99; background: rgba(125, 38, 50, .18); font-weight: 900; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 23px; gap: 10px; }

.security-page-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 18px; }
.security-form-panel .form-stack { max-width: 620px; margin-top: 26px; }
.security-shield { display: grid; width: 74px; height: 74px; margin-bottom: 22px; place-items: center; border: 1px solid rgba(61, 214, 164, .25); border-radius: 24px 24px 30px 30px; color: #73dfbc; background: linear-gradient(145deg, rgba(30, 116, 89, .22), rgba(21, 57, 51, .15)); font-size: 28px; }
.security-status-panel h2 { margin: 0; font-size: 21px; }
.security-checklist { display: grid; margin: 22px 0; padding: 22px 0; gap: 13px; border-block: 1px solid var(--line); list-style: none; }
.security-checklist li { display: grid; grid-template-columns: 19px 1fr; gap: 8px; color: #a7b7c9; font-size: 12px; }
.security-checklist li span { color: var(--green); }
.security-account-detail span, .security-account-detail strong { display: block; }
.security-account-detail span { color: #8296ad; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.security-account-detail strong { margin-top: 5px; font-size: 13px; }

@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; }
    .hero-visual { min-height: 560px; }
    .latency-card--hkg { left: -8%; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .feature-card--large { grid-column: 1 / -1; }
    .pricing-grid { grid-template-columns: 1fr 1fr; }
    .price-card--featured { transform: none; }
    .price-card--custom { grid-column: 1 / -1; min-height: 540px; }
    .footer-grid { gap: 35px; }
    .portal-frame { grid-template-columns: 236px minmax(0, 1fr); }
    .portal-sidebar { padding-inline: 16px; }
    .portal-summary-grid { grid-template-columns: 1fr; }
    .billing-summary-panel { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
    .billing-summary-panel .panel-heading-row, .billing-summary-panel > .button { grid-column: 1 / -1; }
    .credential-grid { grid-template-columns: 1fr 1fr; }
    .credential-item:first-child { grid-column: 1 / -1; }
    .payment-method-card { grid-template-columns: auto 1fr auto; }
    .method-actions { grid-column: 2 / -1; justify-content: flex-end; }
}

@media (max-width: 820px) {
    .site-header { background: rgba(5, 10, 18, .92); border-bottom-color: var(--line); backdrop-filter: blur(15px); }
    .nav-toggle { display: block; }
    .site-nav { position: absolute; top: 75px; right: 20px; left: 20px; display: none; padding: 16px; align-items: stretch; flex-direction: column; gap: 4px; border: 1px solid var(--line-strong); border-radius: 14px; background: #0b1725; box-shadow: var(--shadow); }
    .site-nav.is-open { display: flex; }
    .site-nav a { min-height: 44px; padding: 0 12px; display: flex; align-items: center; }
    .site-nav .button { justify-content: center; margin-top: 5px; }
    .hero { min-height: auto; padding: 130px 0 80px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 500px; order: -1; }
    .hero-visual img { right: 4%; width: 86%; }
    .hero-copy { text-align: center; }
    .hero-copy > p { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-proof { margin-inline: auto; text-align: left; }
    .logo-strip-inner { padding-block: 20px; flex-wrap: wrap; justify-content: center; }
    .split-heading { grid-template-columns: 1fr; gap: 18px; text-align: center; }
    .split-heading h2, .split-heading > p { margin-inline: auto; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card--large { grid-column: auto; }
    .location-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .price-card--custom { grid-column: auto; }
    .price-card { min-height: 620px; }
    .final-cta-inner { align-items: flex-start; flex-direction: column; }
    .final-cta-actions { width: 100%; max-width: 300px; }
    .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
    .footer-intro { grid-column: 1 / -1; }
    .auth-grid { grid-template-columns: 1fr; }
    .auth-story { min-height: 370px; padding: 34px 30px; }
    .auth-story-copy h1 { font-size: 43px; }
    .auth-main { min-height: auto; padding: 60px 30px 80px; }
    .auth-back { margin-bottom: 40px; }
    .portal-frame { display: block; }
    .portal-sidebar { position: fixed; z-index: 120; inset: 0 auto 0 0; width: min(85vw, 290px); height: 100dvh; padding: 25px 20px; overflow-y: auto; overscroll-behavior: contain; visibility: hidden; pointer-events: none; transform: translateX(-105%); transition: transform .24s ease, visibility 0s linear .24s; box-shadow: 30px 0 80px rgba(0, 0, 0, .45); }
    .portal-sidebar.is-open { visibility: visible; pointer-events: auto; transform: translateX(0); transition-delay: 0s; }
    .portal-sidebar > * { flex-shrink: 0; }
    .portal-nav-active { overflow: hidden; }
    .portal-nav-active .portal-nav-backdrop { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
    .portal-nav-close, .portal-nav-open { display: block; }
    .portal-topbar { min-height: 80px; padding: 14px 22px; gap: 16px; }
    .portal-topbar > div { margin-right: auto; }
    .topbar-site-link { display: none; }
    .portal-content { padding: 30px 20px 60px; }
    .selected-checkout-card { grid-template-columns: 1fr auto; }
    .selected-checkout-card form { grid-column: 1 / -1; }
    .selected-checkout-card .button { width: 100%; }
    .security-page-grid { grid-template-columns: 1fr; }
    .invoice-list-panel { padding: 6px 18px 18px; }
    .portal-table--invoices { min-width: 0; }
    .portal-table--invoices thead { display: none; }
    .portal-table--invoices, .portal-table--invoices tbody, .portal-table--invoices tr, .portal-table--invoices td { display: block; width: 100%; }
    .portal-table--invoices tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .portal-table--invoices td { display: flex; min-height: 38px; padding: 7px 0; align-items: flex-start; justify-content: space-between; gap: 20px; border: 0; white-space: normal; text-align: right; }
    .portal-table--invoices td::before { flex: 0 0 auto; color: #8296ad; content: attr(data-label); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
    .portal-table--invoices td small { max-width: none; overflow: visible; white-space: normal; text-overflow: clip; }
    .invoice-identity { min-width: 0; text-align: right; }
    .invoice-actions { min-height: 44px; justify-content: flex-end; flex-wrap: wrap; }
}

@media (max-width: 600px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .nav-wrap { min-height: 68px; }
    .site-nav { top: 67px; right: 14px; left: 14px; }
    .hero { padding-top: 105px; }
    .hero-grid { gap: 35px; }
    .hero-visual { min-height: 380px; }
    .hero-visual img { width: 92%; border-radius: 120px 24px 110px 26px; }
    .latency-card { min-width: 220px; padding: 12px; }
    .latency-card--hkg { top: 15%; left: 0; }
    .latency-card--sgp { right: 0; bottom: 10%; }
    .hero-copy h1 { font-size: clamp(45px, 14vw, 62px); }
    .hero-copy > p { font-size: 16px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .button { width: 100%; }
    .hero-proof { grid-template-columns: 1fr; gap: 12px; text-align: center; }
    .hero-proof div, .hero-proof div + div { padding: 0; border: 0; }
    .section { padding: 84px 0; }
    .section-heading { margin-bottom: 40px; }
    .section-heading h2 { font-size: 36px; }
    .feature-card { min-height: 350px; padding: 27px; }
    .feature-card h3 { margin-top: 54px; }
    .metric-line { right: 27px; left: 27px; }
    .location-card { min-height: 440px; }
    .location-content { padding: 27px; }
    .location-content h3 { font-size: 32px; }
    .price-card { min-height: auto; padding: 28px; }
    .price-card > p { min-height: 0; }
    .price-card .button { margin-top: 15px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-intro { grid-column: 1 / -1; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
    .auth-story { min-height: 300px; }
    .auth-story-copy h1 { font-size: 36px; }
    .auth-story-copy p { font-size: 14px; }
    .auth-trust-row { display: none; }
    .auth-main { padding-inline: 20px; }
    .auth-heading h1 { font-size: 36px; }
    .legal-hero { padding: 130px 0 55px; }
    .legal-document { padding-block: 55px 85px; }
    .portal-welcome, .portal-page-heading { align-items: flex-start; flex-direction: column; }
    .portal-page-heading .button { width: 100%; }
    .account-id { align-self: flex-start; }
    .subscription-panel, .billing-summary-panel, .payment-panel, .security-form-panel, .security-status-panel { padding: 22px; }
    .billing-summary-panel { display: block; }
    .credential-grid { grid-template-columns: 1fr; }
    .credential-item:first-child { grid-column: auto; }
    .subscription-meta { grid-template-columns: 1fr; }
    .selected-checkout-card { grid-template-columns: 1fr; }
    .selected-checkout-price strong, .selected-checkout-price span { text-align: left; }
    .recent-invoices-panel { padding: 22px 18px 10px; }
    .server-access-panel { padding: 22px; }
    .credential-card { padding: 17px; }
    .server-access-panel > .panel-heading-row { align-items: flex-start; flex-direction: column; gap: 8px; }
    .invoice-list-panel { padding: 6px 18px 18px; }
    .portal-table--invoices { min-width: 0; }
    .portal-table thead { display: none; }
    .portal-table, .portal-table tbody, .portal-table tr, .portal-table td { display: block; width: 100%; }
    .portal-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .portal-table td { display: flex; min-height: 38px; padding: 7px 0; align-items: flex-start; justify-content: space-between; gap: 20px; border: 0; white-space: normal; text-align: right; }
    .portal-table td::before { flex: 0 0 auto; color: #8296ad; content: attr(data-label); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
    .portal-table td small { max-width: none; overflow: visible; white-space: normal; text-overflow: clip; }
    .invoice-identity { min-width: 0; text-align: right; }
    .invoice-actions { min-height: 44px; justify-content: flex-end; flex-wrap: wrap; }
    .payment-method-card { grid-template-columns: auto 1fr; }
    .method-badges, .method-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .security-note-grid { grid-template-columns: 1fr; }
    .payment-dialog-inner { padding: 25px 20px; }
    .dialog-actions { grid-template-columns: 1fr; }
}

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