:root {
  color-scheme: dark;
  --blue: #2f80ff;
  --electric: #4da3ff;
  --cyan: #5ac8fa;
  --green: #32d583;
  --amber: #f5b546;
  --red: #ef5b5b;
  --bg: #0b0f14;
  --surface: #151d2a;
  --surface-2: #1b2432;
  --line: #2a3648;
  --text: #f3f6fb;
  --muted: #b7c1d1;
  --quiet: #7f8da3;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(circle at 75% -10%, rgb(47 128 255 / 22%), transparent 42rem), var(--bg); }
a { color: var(--electric); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, .button {
  min-height: 44px; border: 1px solid transparent; border-radius: 12px; padding: 10px 17px; color: white;
  background: linear-gradient(135deg, var(--blue), #5368f8); font-weight: 720; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform 140ms, filter 140ms;
}
button:hover, .button:hover { filter: brightness(1.12); transform: translateY(-1px); }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
button.secondary, .button.secondary { background: var(--surface-2); border-color: var(--line); }
button.danger { background: rgb(239 91 91 / 12%); color: #ff9c9c; border-color: rgb(239 91 91 / 45%); }
:focus-visible { outline: 3px solid rgb(77 163 255 / 55%); outline-offset: 2px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: white; color: black; padding: 12px; border-radius: 8px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.topbar { position: sticky; z-index: 20; top: 0; min-height: 68px; padding: 10px clamp(16px, 5vw, 72px); display: flex; align-items: center; gap: 28px; border-bottom: 1px solid rgb(42 54 72 / 70%); backdrop-filter: blur(20px); background: rgb(11 15 20 / 82%); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 850; letter-spacing: .12em; text-decoration: none; font-size: 17px; }
.brand-mark { display: grid; place-items: center; width: 34px; aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, var(--cyan), var(--blue) 55%, #6c63ff); box-shadow: 0 0 28px rgb(47 128 255 / 38%); }
nav { display: flex; gap: 4px; margin-right: auto; }
nav a { padding: 9px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; }
nav a[aria-current="page"], nav a:hover { color: var(--text); background: var(--surface); }
select, input, textarea { width: 100%; color: var(--text); border: 1px solid var(--line); background: #101721; border-radius: 12px; min-height: 44px; padding: 10px 12px; }
textarea { min-height: 110px; resize: vertical; }
.locale-label select { width: auto; min-width: 94px; }
main { min-height: calc(100vh - 140px); }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: clamp(44px, 7vw, 88px) 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); gap: clamp(30px, 7vw, 88px); align-items: center; min-height: 68vh; }
.eyebrow { color: var(--cyan); text-transform: uppercase; letter-spacing: .14em; font-weight: 760; font-size: 13px; }
h1 { max-width: 14ch; margin: 12px 0 20px; font-size: clamp(46px, 7vw, 88px); line-height: .98; letter-spacing: -.055em; }
h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.035em; margin: 0 0 14px; }
h3 { margin: 0 0 10px; }
p { color: var(--muted); line-height: 1.65; }
.lead { max-width: 62ch; font-size: clamp(17px, 2vw, 21px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions-spacious { margin-top: 42px; }
.auth-card { max-width: 620px; margin-inline: auto; }
.full-width { width: 100%; }
.section-gap { margin-top: 36px; }
.visual { min-height: 430px; border: 1px solid rgb(77 163 255 / 28%); border-radius: 28px; padding: 24px; background: linear-gradient(145deg, rgb(27 36 50 / 92%), rgb(11 15 20 / 88%)); box-shadow: 0 35px 90px rgb(0 0 0 / 45%), inset 0 1px rgb(255 255 255 / 8%); transform: perspective(1000px) rotateY(-5deg); }
.visual-screen { height: 100%; min-height: 380px; display: grid; grid-template: 1fr 1fr / 1.2fr .8fr; gap: 12px; }
.visual-card { border-radius: 18px; padding: 18px; background: rgb(35 48 68 / 75%); border: 1px solid rgb(255 255 255 / 6%); }
.visual-card:first-child { grid-row: span 2; background: linear-gradient(180deg, rgb(47 128 255 / 20%), rgb(21 29 42 / 84%)); }
.metric { display: block; font-size: clamp(32px, 5vw, 62px); font-weight: 800; letter-spacing: -.04em; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: rgb(21 29 42 / 76%); box-shadow: inset 0 1px rgb(255 255 255 / 4%); }
.card.highlight { border-color: rgb(47 128 255 / 55%); box-shadow: 0 0 45px rgb(47 128 255 / 12%); }
.price { font-size: 30px; font-weight: 820; margin: 16px 0 4px; }
.muted { color: var(--quiet); }
.badge { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; color: var(--muted); font-size: 12px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.badge.warn::before { background: var(--amber); }
.stack { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .wide { grid-column: 1 / -1; }
label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 13px; font-weight: 680; }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.data-list { display: grid; grid-template-columns: minmax(140px, .55fr) 1fr; margin: 0; }
.data-list dt, .data-list dd { padding: 13px 0; border-bottom: 1px solid var(--line); }
.data-list dt { color: var(--quiet); }
.data-list dd { margin: 0; overflow-wrap: anywhere; }
.notice { padding: 16px; border-radius: 14px; border: 1px solid rgb(245 181 70 / 35%); background: rgb(245 181 70 / 8%); color: #ffdb9e; }
.status-summary { gap: 10px; }
.status-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 12px; border: 1px solid var(--line); font-size: 13px; font-weight: 760; }
.status-pill[data-state="operational"] { color: #aef0c8; background: rgb(50 213 131 / 12%); border-color: rgb(50 213 131 / 35%); }
.status-pill[data-state="degraded"] { color: #ffd89b; background: rgb(245 181 70 / 12%); border-color: rgb(245 181 70 / 35%); }
.status-pill[data-state="unavailable"] { color: #ffb2b2; background: rgb(239 91 91 / 12%); border-color: rgb(239 91 91 / 35%); }
.status-card { display: grid; gap: 10px; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-state { font-weight: 760; }
.status-state[data-state="ok"] { color: var(--green); }
.status-state[data-state="warn"] { color: var(--amber); }
.status-state[data-state="down"] { color: var(--red); }
.code { display: block; border: 1px dashed var(--electric); border-radius: 16px; padding: 18px; text-align: center; font: 750 clamp(15px, 2.2vw, 24px) ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; overflow-wrap: anywhere; background: rgb(47 128 255 / 8%); }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
th { color: var(--quiet); background: #101721; position: sticky; top: 0; }
td { color: var(--muted); }
#toast { position: fixed; z-index: 50; right: 18px; bottom: 18px; max-width: min(420px, calc(100% - 36px)); opacity: 0; pointer-events: none; transform: translateY(15px); padding: 14px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 16px 50px rgb(0 0 0 / 40%); transition: 180ms; }
#toast.show { opacity: 1; transform: translateY(0); }
#toast.error { border-color: rgb(239 91 91 / 55%); color: #ffadad; }
footer { min-height: 72px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; border-top: 1px solid var(--line); padding: 20px clamp(16px, 5vw, 72px); color: var(--quiet); font-size: 13px; }
footer nav { margin: 0; }

@media (max-width: 820px) {
  .topbar { gap: 12px; flex-wrap: wrap; }
  nav { order: 3; width: 100%; overflow-x: auto; }
  .locale-label { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .visual { min-height: 340px; transform: none; }
  .visual-screen { min-height: 290px; }
  .grid, .grid.two { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 1180px); padding-block: 36px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .data-list { grid-template-columns: 1fr; }
  .data-list dt { border-bottom: 0; padding-bottom: 3px; }
  .data-list dd { padding-top: 3px; }
}

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