:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --text: #101828;
  --muted: #667085;
  --line: #dfe3e8;
  --line-strong: #c9ced6;
  --blue: #1677ff;
  --blue-hover: #0868e5;
  --blue-soft: #eaf3ff;
  --green: #138a5b;
  --green-soft: #e8f7f0;
  --gold: #b66a00;
  --gold-soft: #fff4dc;
  --dark-button: #101828;
  --shadow: 0 12px 32px rgba(16, 24, 40, .07);
}

.device-code-dialog { width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--text); }
.device-code-dialog::backdrop { background: rgba(0, 0, 0, .48); }
.device-code-dialog .card-head { align-items: center; gap: 12px; }
.device-code-dialog .card-head h2 { margin: 0; }
.device-code-surface { padding: 24px 12px; margin: 22px 0 16px; text-align: center; background: var(--blue-soft); border-radius: 16px; }
.device-code-surface > span { color: var(--muted); }
.device-code-dialog .device-link-code { display: block; margin: 14px 0; padding: 0; background: transparent; border: 0; color: var(--text); font-size: clamp(26px, 7vw, 38px); letter-spacing: .06em; font-family: ui-monospace, monospace; user-select: all; }
.device-code-surface [data-device-code-status] { color: var(--blue); font-variant-numeric: tabular-nums; }
.device-code-actions { display: grid; gap: 10px; }
.device-code-steps { padding-left: 24px; margin: 24px 0; }
.device-code-steps li { padding-left: 5px; margin-bottom: 14px; line-height: 1.5; color: var(--muted); }
.device-code-steps b { color: var(--text); }
.device-code-dialog [data-cancel-device-code] { width: 100%; color: var(--muted); }
.device-code-dialog [data-renew-device-code] { margin-top: 18px; width: 100%; }
.device-code-dialog [data-device-code-result] { margin-top: 24px; line-height: 1.5; }
.device-link-panel h3 { margin: 0 0 8px; }
@media (max-width: 390px) { .device-code-dialog { padding: 20px; } }

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1017;
  --surface: #111821;
  --surface-2: #171f2a;
  --text: #eef2f7;
  --muted: #97a3b2;
  --line: #27313e;
  --line-strong: #354252;
  --blue: #5a9dff;
  --blue-hover: #75adff;
  --blue-soft: #132b4d;
  --green: #55c996;
  --green-soft: #102c23;
  --gold: #f1b955;
  --gold-soft: #302511;
  --dark-button: #eef2f7;
  --shadow: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; transition: background 180ms ease, color 180ms ease; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
svg { display: block; }
.hidden { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 10px 14px; background: var(--text); color: var(--bg); border-radius: 8px; }
.skip-link:focus { top: 16px; }
.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.section-rule { border-bottom: 1px solid var(--line); }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(16px); }
.header-row { min-height: 68px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand b { font-size: 15px; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--blue); }
.brand-mark svg { width: 23px; height: 23px; fill: white; }
.brand-mark circle { fill: var(--blue); stroke: white; stroke-width: 3px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.site-nav a, .footer-links a { color: var(--muted); font-size: 14px; font-weight: 550; }
.site-nav a:hover, .footer-links a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle { width: 40px; height: 40px; position: relative; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; position: absolute; inset: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .moon { opacity: 0; }
html[data-theme="dark"] .theme-toggle .sun { opacity: 0; }
html[data-theme="dark"] .theme-toggle .moon { opacity: 1; }

.button { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 650; cursor: pointer; transition: background 140ms ease, border-color 140ms ease, transform 140ms ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--blue); color: white; }
.button-primary:hover { background: var(--blue-hover); }
.button-quiet { border-color: var(--line); background: var(--surface); color: var(--text); }
.button-quiet:hover { border-color: var(--line-strong); }
.button-dark { background: var(--dark-button); color: var(--bg); }

.hero { padding: 86px 0 78px; }
.hero-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr); align-items: center; gap: 64px; }
.kicker, .section-label { margin: 0 0 16px; color: var(--blue); font-size: 12px; font-weight: 750; letter-spacing: .13em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 650px; margin-bottom: 24px; font-size: clamp(44px, 5.2vw, 68px); line-height: 1.03; letter-spacing: -.055em; font-weight: 730; }
.lead { max-width: 610px; margin-bottom: 30px; color: var(--muted); font-size: 18px; line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.build-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.hero-visual { min-width: 0; overflow: hidden; border: 1px solid #0d63dc; border-radius: 18px; background: #1677ff; box-shadow: 0 24px 60px rgba(22, 119, 255, .22); color: white; }
.visual-bar, .visual-caption { min-height: 52px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 11px; font-weight: 750; letter-spacing: .11em; }
.visual-bar { border-bottom: 1px solid rgba(255,255,255,.28); }
.visual-caption { min-height: 64px; border-top: 1px solid rgba(255,255,255,.28); font-size: 13px; letter-spacing: 0; }
.visual-caption span { color: rgba(255,255,255,.76); font-weight: 500; }
.hero-shot { height: 390px; position: relative; overflow: hidden; background: #172434; }
.hero-shot img { width: 840px; max-width: none; position: absolute; left: 48%; top: 50%; display: block; transform: translate(-50%, -50%); }
.platforms { padding: 72px 0; background: var(--bg); scroll-margin-top: 68px; }
.platforms-heading { margin-bottom: 32px; }
.platforms-heading .section-label { margin-bottom: 14px; }
.platforms-heading h2 { margin: 0 0 16px; font-size: clamp(32px, 4vw, 48px); line-height: 1.12; letter-spacing: -.04em; }
.platforms-heading > p:last-child { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.5; }
.platform-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.platform-card { min-width: 0; min-height: 276px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.platform-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 22px; }
.platforms .platform-icon { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 13px; }
.platforms .platform-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.platform-badge { padding: 7px 9px; border-radius: 7px; background: var(--surface-2); color: var(--muted); font-size: 10px; line-height: 1.4; font-weight: 650; white-space: nowrap; }
.platform-badge-ready { color: var(--green); background: var(--green-soft); }
.platform-card h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.25; letter-spacing: -.025em; }
.platform-card > p { margin: 0 0 28px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.platform-action { width: 100%; margin-top: auto; padding-inline: 8px; gap: 6px; border-color: var(--blue); color: var(--blue); background: transparent; font-size: 13px; }
.platform-action:hover { background: var(--blue-soft); }
.platform-action:focus-visible, .platform-account a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.platform-soon { min-height: 44px; margin-top: auto; display: grid; place-items: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.platform-account { min-height: 96px; margin-top: 24px; padding: 20px 24px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.platform-account h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; letter-spacing: -.02em; }
.platform-account p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.platform-account .button { gap: 10px; }
#app-overview { scroll-margin-top: 68px; }
.platform-panel { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.panel-heading { padding: 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.panel-heading .section-label { display: block; margin-bottom: 8px; }
.panel-heading h2 { margin: 0; font-size: 20px; line-height: 1.35; letter-spacing: -.02em; }
.device-limit { padding: 6px 9px; border-radius: 7px; color: var(--muted); background: var(--surface-2); font-size: 11px; white-space: nowrap; }
.platform-list { padding: 6px 18px; }
.platform-row { min-height: 68px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.platform-row:last-child { border-bottom: 0; }
.platform-row > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.platform-row b { font-size: 14px; }
.platform-row small { color: var(--muted); font-size: 12px; }
.platform-link { margin-inline: -18px; padding-inline: 18px; }
.platform-link:hover { background: var(--surface-2); }
.platform-icon { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: 16px; font-weight: 700; }
.android-icon { color: var(--green); }
.windows-icon { color: var(--blue); font-size: 20px; }
.status { color: var(--muted); font-size: 12px; font-weight: 650; }
.status-ready { color: var(--green); }
.status-download { color: var(--blue); }

.product, .features, .plans { padding: 84px 0; }
.section-head { margin-bottom: 38px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .7fr); align-items: end; gap: 80px; }
.section-head .section-label { display: block; margin-bottom: 12px; }
.section-head h2 { max-width: 690px; margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.04em; }
.section-head p { margin: 0 0 4px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.compact-head { grid-template-columns: 1fr; }
.screens-frame { margin: 0; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #172434; }
.screens-frame img { width: 100%; display: block; border-radius: 8px; }

.feature-table { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.feature-table article { min-height: 260px; padding: 24px; border-right: 1px solid var(--line); }
.feature-table article:last-child { border-right: 0; }
.feature-table article > span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.feature-table h3 { margin: 86px 0 12px; font-size: 18px; line-height: 1.3; letter-spacing: -.02em; }
.feature-table p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.vip-card { border-color: color-mix(in srgb, var(--gold) 46%, var(--line)); }
.private-plan-card { border-color: color-mix(in srgb, var(--blue) 42%, var(--line)); }
.plan-note { margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.plan-note a { color: var(--blue); }
.plan-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.plan-title > div > span { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .12em; }
.plan-title h3 { margin: 12px 0 0; font-size: 34px; letter-spacing: -.04em; }
.plan-title h3 small { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.plan-dot { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--blue); }
.vip-tag { padding: 6px 9px; border-radius: 7px; color: var(--gold); background: var(--gold-soft); font-size: 11px; font-weight: 780; }
.plan-card ul { margin: 28px 0; padding: 24px 0 0; display: grid; gap: 12px; border-top: 1px solid var(--line); list-style: none; }
.plan-card li { position: relative; padding-left: 24px; font-size: 14px; }
.plan-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.plan-card .button { width: 100%; margin-top: auto; }
@media (min-width: 681px) and (max-width: 960px) { .plan-grid { grid-template-columns: 1fr; } }

/* Expandable VIP guide */
.vip-details { margin-top: 18px; border: 1px solid color-mix(in srgb, var(--blue) 24%, var(--line)); border-radius: 18px; overflow: hidden; background: var(--surface); scroll-margin-top: 88px; }
.vip-details summary { min-height: 88px; padding: 20px 26px; display: flex; align-items: center; gap: 16px; cursor: pointer; list-style: none; transition: background 160ms ease; }
.vip-details summary::-webkit-details-marker { display: none; }
.vip-details summary:hover { background: var(--blue-soft); }
.vip-details summary:focus-visible, .vip-panel-button:focus-visible { outline: 3px solid var(--blue); outline-offset: -4px; }
.vip-details-mark { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--blue) 25%, var(--line)); border-radius: 13px; color: var(--blue); background: var(--blue-soft); font-size: 23px; }
.vip-summary-copy { display: grid; gap: 6px; }
.vip-summary-copy strong { font-size: 16px; letter-spacing: -.02em; }
.vip-summary-copy > span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.vip-chevron { width: 9px; height: 9px; flex: 0 0 9px; margin: 0 4px 4px auto; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform 200ms ease; }
.vip-details[open] .vip-chevron { transform: translateY(4px) rotate(225deg); }
.vip-panel { position: relative; isolation: isolate; overflow: hidden; background: #07111f; color: #eef5ff; }
.vip-details[open] .vip-panel { animation: vip-reveal 320ms ease-out; }
.vip-panel-copy { position: relative; width: 100%; padding: 42px; }
.vip-eyebrow { color: #86baff; font-size: 10px; line-height: 1.5; font-weight: 750; letter-spacing: .15em; }
.vip-panel h3 { margin: 14px 0 14px; font-size: clamp(28px, 3.1vw, 38px); line-height: 1.12; letter-spacing: -.04em; }
.vip-intro { margin-bottom: 26px; color: #a9bed7; font-size: 14px; line-height: 1.6; }
.vip-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vip-modes article { padding: 17px; display: flex; align-items: flex-start; gap: 13px; border: 1px solid rgba(148,187,236,.17); border-radius: 13px; background: rgba(12,28,48,.84); }
.vip-mode-number { padding-top: 2px; color: #6faeff; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vip-modes h4 { margin: 0 0 7px; font-size: 14px; line-height: 1.4; font-weight: 650; }
.vip-modes p { margin: 0; color: #bdcce0; font-size: 13px; line-height: 1.65; }
.vip-panel-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 20px; margin-top: 24px; }
.vip-panel-bottom > span { color: #a9bed7; font-size: 12px; }
.vip-panel-button { gap: 18px; background: #eaf3ff; color: #0b2343; font-size: 13px; }
.vip-panel-button:hover { background: white; }
@keyframes vip-reveal { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  .vip-panel-copy { padding: 32px; }
  .vip-modes { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .vip-details summary { padding: 18px; gap: 12px; }
  .vip-summary-copy > span { font-size: 12px; }
  .vip-details-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; }
  .vip-panel-copy { padding: 28px 20px; }
  .vip-panel h3 { font-size: 28px; }
  .vip-modes article { padding: 15px 13px; gap: 10px; }
  .vip-panel-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .vip-details[open] .vip-panel { animation: none; } }

.site-footer { padding: 40px 0; }
.footer-row { display: grid; grid-template-columns: 1fr auto auto; align-items: start; gap: 50px; }
.footer-row > div:first-child p { max-width: 340px; margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
.copyright { color: var(--muted); font-size: 12px; }

/* Account */
.account-main { min-height: calc(100vh - 69px); padding: 54px 0 80px; }
.auth-shell { width: min(440px, calc(100% - 32px)); margin: 30px auto 0; }
.auth-intro { margin-bottom: 24px; text-align: center; }
.auth-intro h1 { margin-bottom: 10px; font-size: 34px; letter-spacing: -.035em; }
.auth-intro p { color: var(--muted); line-height: 1.55; }
.auth-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.segmented { padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 10px; background: var(--surface-2); }
.segmented button { min-height: 38px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 650; cursor: pointer; }
.segmented button.active { color: var(--text); background: var(--surface); box-shadow: 0 1px 4px rgba(16,24,40,.1); }
.form-stack { margin-top: 22px; display: grid; gap: 15px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; }
.field input { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--bg); color: var(--text); font-size: 15px; }
.field input:focus { border-color: var(--blue); outline: 3px solid var(--blue-soft); }
.form-stack .button { width: 100%; margin-top: 4px; }
.form-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
.form-error, .form-success { margin: 12px 20px; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.45; }
.form-stack .form-error { margin: 0; }
.form-error { color: #b42318; background: #fef3f2; }
.form-success { color: var(--green); background: var(--green-soft); }
html[data-theme="dark"] .form-error { color: #ff9f96; background: #321716; }

.dashboard-shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: 230px 1fr; gap: 34px; }
.dashboard-sidebar { min-width: 0; position: sticky; top: 92px; height: fit-content; }
.account-identity { padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.account-identity b, .account-identity small { display: block; overflow: hidden; text-overflow: ellipsis; }
.account-identity b { font-size: 14px; }
.account-identity small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.side-nav { margin-top: 16px; display: grid; gap: 4px; }
.side-nav button { min-height: 42px; padding: 0 12px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; text-align: left; font-size: 14px; cursor: pointer; }
.side-nav button.active { color: var(--text); background: var(--surface-2); font-weight: 650; }
.logout-button { margin-top: 20px; color: #b42318 !important; }
.dashboard-content { min-width: 0; }
.dashboard-head { margin-bottom: 26px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.dashboard-head h1 { margin: 0; font-size: 34px; }
.dashboard-head p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.refresh-button { min-height: 38px; }
.summary-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; }
.summary-card, .account-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.summary-card { min-height: 142px; padding: 20px; }
.summary-card > span { color: var(--muted); font-size: 12px; }
.summary-card strong { display: block; margin-top: 30px; font-size: 22px; letter-spacing: -.025em; }
.summary-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.account-card { margin-top: 12px; overflow: hidden; scroll-margin-top: 88px; }
.card-head { min-height: 64px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.card-head h2 { margin: 0; font-size: 17px; }
.card-head span { color: var(--muted); font-size: 12px; }
.device-list, .server-list { padding: 0 20px; }
.data-row { min-height: 68px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.data-row:last-child { border-bottom: 0; }
.data-row b, .data-row small { display: block; }
.data-row b { font-size: 14px; }
.data-row small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.row-status { color: var(--green); font-size: 12px; font-weight: 650; }
.delete-device { border: 0; color: #b42318; background: transparent; font-size: 12px; cursor: pointer; }
.empty-state { padding: 32px 20px; color: var(--muted); font-size: 14px; text-align: center; }
.promo-row { padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.promo-row input { min-width: 0; min-height: 44px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--bg); color: var(--text); }
.api-note { margin-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.loading-state { min-height: 55vh; display: grid; place-items: center; color: var(--muted); }

/* Privacy */
.legal-main { border-bottom: 1px solid var(--line); }
.legal-layout { display: grid; grid-template-columns: 330px minmax(0, 690px); justify-content: space-between; gap: 80px; padding-top: 76px; padding-bottom: 100px; }
.legal-aside { position: sticky; top: 110px; height: fit-content; }
.legal-aside h1 { margin: 12px 0 18px; font-size: 48px; }
.legal-aside > p { color: var(--muted); font-size: 13px; }
.legal-aside nav { margin-top: 34px; display: grid; border-top: 1px solid var(--line); }
.legal-aside nav a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.legal-aside nav a:hover { color: var(--blue); }
.legal-content { min-width: 0; }
.legal-content section { padding: 34px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.legal-content section:first-child { padding-top: 0; }
.legal-content section:last-child { border-bottom: 0; }
.legal-content section > span { color: var(--blue); font-size: 12px; font-weight: 750; }
.legal-content h2 { margin: 10px 0 18px; font-size: 25px; letter-spacing: -.025em; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 15px; line-height: 1.75; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.legal-content a:not(.button) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-lead { color: var(--text) !important; font-size: 20px !important; line-height: 1.65 !important; }
.legal-content .button { margin-top: 8px; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 36%, transparent); outline-offset: 2px; }

@media (max-width: 920px) {
  .site-nav { display: none; }
  .hero-layout { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 700px; }
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-table { grid-template-columns: 1fr 1fr; }
  .feature-table article:nth-child(2) { border-right: 0; }
  .feature-table article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .dashboard-shell { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
  .account-identity { display: none; }
  .side-nav { margin: 0; display: flex; overflow-x: auto; }
  .side-nav button { white-space: nowrap; }
  .logout-button { margin: 0 0 0 auto; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-card:first-child { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: 1fr; gap: 36px; }
  .legal-aside { position: static; }
  .legal-aside nav { display: none; }
}

@media (max-width: 680px) {
  .shell, .dashboard-shell { width: calc(100% - 28px); }
  .desktop-account { display: none; }
  .hero { padding: 58px 0 56px; }
  h1 { font-size: 42px; }
  .lead { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .hero-visual { margin-inline: -14px; border-left: 0; border-right: 0; border-radius: 0; }
  .hero-shot { height: 300px; }
  .hero-shot img { width: 650px; }
  .platforms { padding: 48px 0; }
  .platforms-heading { margin-bottom: 24px; }
  .platforms-heading > p:last-child { font-size: 16px; }
  .platform-grid { grid-template-columns: 1fr; gap: 14px; }
  .platform-card { min-height: 258px; }
  .platform-badge { font-size: 11px; }
  .platform-account { margin-top: 18px; padding: 20px; gap: 14px; }
  .platform-account .button { grid-column: 1 / -1; width: 100%; }
  .panel-heading { padding: 18px; }
  .platform-list { padding-inline: 14px; }
  .platform-link { margin-inline: -14px; padding-inline: 14px; }
  .product, .features, .plans { padding: 60px 0; }
  .section-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; }
  .screens-frame { margin-inline: -14px; padding: 12px; border-left: 0; border-right: 0; border-radius: 0; overflow-x: auto; }
  .screens-frame img { min-width: 860px; }
  .feature-table, .plan-grid { grid-template-columns: 1fr; }
  .feature-table article { min-height: 210px; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-table article:last-child { border-bottom: 0; }
  .feature-table h3 { margin-top: 54px; }
  .footer-row { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { grid-template-columns: 1fr; }
  .account-main { padding-top: 30px; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-card:first-child { grid-column: auto; }
  .dashboard-head { align-items: flex-start; }
  .dashboard-head h1 { font-size: 28px; }
  .side-nav { margin-inline: -14px; padding-inline: 14px; }
  .logout-button { margin-left: 0; }
  .promo-row { grid-template-columns: 1fr; }
  .legal-layout { padding-top: 48px; padding-bottom: 70px; }
  .legal-aside h1 { font-size: 38px; }
  .legal-content section { padding: 28px 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* Globe in the main site header */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 0; padding-bottom: 32px; background: #07111f; color: #eef5ff; --muted: #b0c2d9; --surface: #10243a; --line: #30455e; --line-strong: #547496; --text: #eef5ff; }
.hero .hero-layout { position: relative; z-index: 1; display: block; }
.hero-copy { width: min(56%, 630px); }
.hero .kicker { color: #86baff; }
.hero .build-note { color: #b0c2d9; line-height: 1.6; }
.hero-planet { position: absolute; z-index: -2; pointer-events: none; width: min(560px, 44vw); top: 16px; bottom: 16px; right: max(14px, calc((100% - 1160px) / 2)); }
.hero-planet {
  /* Match the contained square media, retaining the globe and nearby connection arcs. */
  -webkit-mask-image: radial-gradient(circle closest-side at 50% 50%, #000 70%, rgba(0,0,0,.98) 72%, transparent 82%);
  mask-image: radial-gradient(circle closest-side at 50% 50%, #000 70%, rgba(0,0,0,.98) 72%, transparent 82%);
}
html[data-theme="dark"] .hero-planet { mix-blend-mode: screen; }
.hero-planet img, .hero-planet video { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-planet video { position: absolute; inset: 0; }
.hero-planet video[hidden] { display: none; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(90deg, #07111f 0%, rgba(7,17,31,.96) 20%, rgba(7,17,31,.78) 40%, rgba(7,17,31,.12) 68%, transparent 100%); }
@media (max-width: 1000px) and (min-width: 681px) {
  .hero-copy { width: 64%; }
  .hero-planet { width: 38vw; right: 14px; }
}
@media (max-width: 680px) {
  .hero { padding: 236px 0 32px; min-height: 0; }
  .hero-copy { width: 100%; }
  .hero-planet { width: min(320px, calc(100% - 28px)); height: 248px; top: 0; bottom: auto; left: 50%; right: auto; transform: translateX(-50%); }
  .hero::after { background: linear-gradient(180deg, transparent 210px, #07111f 248px); }
}

/* A white-and-blue globe treatment follows the site's light theme.
   Apply it to the container so video and the still fallback always match. */
html[data-theme="light"] .hero {
  background: var(--bg);
  color: #101828;
  --muted: #667085;
  --surface: #ffffff;
  --line: #dfe3e8;
  --line-strong: #c9ced6;
  --text: #101828;
}
html[data-theme="light"] .hero .kicker { color: var(--blue); }
html[data-theme="light"] .hero .build-note { color: var(--muted); }
html[data-theme="light"] .hero-planet {
  filter: invert(1) hue-rotate(180deg) saturate(.75) brightness(1.14);
  mix-blend-mode: multiply;
}
html[data-theme="light"] .hero::after {
  background: linear-gradient(90deg, #f7f8fa 0%, rgba(247,248,250,.96) 20%, rgba(247,248,250,.78) 40%, rgba(247,248,250,.12) 68%, transparent 100%);
}
@media (max-width: 680px) {
  html[data-theme="light"] .hero::after {
    background: linear-gradient(180deg, transparent 210px, #f7f8fa 248px);
  }
}

/* Private Servers account controls share the existing light/dark palette. */
.private-body { padding: 0 22px 24px; }
.private-body > p { color: var(--muted); line-height: 1.6; }
.private-body .private-lead { color: var(--text); font-size: 23px; font-weight: 650; margin-bottom: 8px; }
.private-price { color: var(--text) !important; font-size: 22px !important; font-weight: 650; white-space: nowrap; }
.private-price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.private-benefits { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.private-benefits span { background: var(--blue-soft); color: var(--blue); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.private-fields { display: grid; grid-template-columns: 1.4fr 1fr 90px; gap: 12px; }
.private-body textarea { width: 100%; padding: 12px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--text); background: var(--bg); font: 12px/1.5 monospace; resize: vertical; }
.private-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; }
.private-check input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--blue); }
.private-fingerprint { overflow-wrap: anywhere; padding: 14px; border-radius: 9px; background: var(--blue-soft); font: 12px/1.6 monospace; }
.private-server { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.private-server small { display: block; margin-top: 5px; color: var(--muted); }
.private-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.private-job { font-size: 14px; line-height: 1.6; padding: 14px; border-radius: 9px; background: var(--bg); }
.private-body details summary { cursor: pointer; font-size: 14px; }
.private-body details .field { margin-top: 12px; }
@media (max-width: 650px) { .private-fields { grid-template-columns: 1fr; } .private-server { align-items: flex-start; flex-direction: column; } .private-body { padding: 0 16px 20px; } }

.device-link-panel { padding: 20px; margin-bottom: 0; border-bottom: 1px solid rgba(130,150,180,.2); }
.device-link-panel p { line-height: 1.5; }
.device-link-code { display: block; font: 700 clamp(26px, 5vw, 40px) ui-monospace, monospace; letter-spacing: .12em; margin-top: 20px; user-select: all; }

[hidden] { display: none !important; }
.release-checksum { overflow-wrap: anywhere; padding: 16px; font-size: 12px; }
