:root {
  color-scheme: dark;
  --bg: #090b12;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #edf2ff;
  --muted: #9aa6bd;
  --line: rgba(255, 255, 255, 0.12);
  --brand: #7c5cff;
  --brand-2: #21d4fd;
  --ok: #37d399;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, .32), transparent 34rem),
    radial-gradient(circle at top right, rgba(33, 212, 253, .22), transparent 28rem),
    var(--bg);
}

.shell { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 56px; }
.shell.narrow { width: min(680px, calc(100% - 32px)); }
.nav { display: flex; gap: 10px; margin-bottom: 44px; }
.nav a, .button, button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--panel);
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
}
.nav a.active, .button, button[type="submit"] {
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
}
.hero { margin-bottom: 26px; }
.eyebrow { color: var(--brand-2); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { font-size: clamp(34px, 8vw, 72px); line-height: .95; margin: 8px 0 16px; }
h2 { margin-top: 0; }
.hero p { color: var(--muted); max-width: 680px; font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}
.stat span, .stat small { display: block; color: var(--muted); }
.stat strong { display: block; font-size: 34px; margin: 8px 0; }
.form-card, .result-card { margin-top: 14px; }
.notice { border: 1px solid rgba(55, 211, 153, .3); background: rgba(55, 211, 153, .08); padding: 14px 16px; border-radius: 16px; margin-bottom: 18px; color: #dfffee; }
form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.wide { grid-column: 1 / -1; }
label { display: grid; gap: 8px; color: var(--muted); font-weight: 700; }
input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,.24);
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
}
.price-box {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}
.price-box strong { color: var(--ok); font-size: 22px; }
button { cursor: pointer; font: inherit; }
button:disabled, .disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  min-height: 160px;
  color: #d9e4ff;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.actions { display: flex; gap: 10px; margin-top: 16px; }
.secondary { background: rgba(255,255,255,.08) !important; border: 1px solid var(--line) !important; }
.success { margin-top: 18vh; }
.muted { color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .grid, form { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; }
}
