:root {
  color-scheme: dark;
  --bg: #090a0c;
  --panel: #12141a;
  --inset: #0b0d11;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #71717a;
  --lime: #d6ff3c;
  --ink: #14160c;
  --rose: #fb7185;
  --amber: #f5c16c;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --font: "Schibsted Grotesk", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(214, 255, 60, 0.14), transparent 55%),
    radial-gradient(700px 480px at -10% 110%, rgba(245, 193, 108, 0.08), transparent 50%),
    var(--bg);
}
.bg.shift {
  background-size: 140% 140%;
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift {
  from { background-position: 0% 0%; }
  to { background-position: 20% 10%; }
}
#particles { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.nav, main, footer { position: relative; z-index: 1; }
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 28px;
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(9, 10, 12, 0.8);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: 0.01em; }
.brand svg { width: 28px; height: 28px; color: var(--lime); }
.nav-links { display: flex; gap: 18px; margin-left: 12px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu { display: none; background: transparent; border: 1px solid var(--line); border-radius: 10px; height: 40px; padding: 0 12px; }
.btn, .btn-lime, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn { background: #f4f4f5; color: #111113; }
.btn-lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 0 0 0 rgba(214, 255, 60, 0.5);
  animation: glow 2.4s ease-in-out infinite;
}
@keyframes glow {
  50% { box-shadow: 0 0 28px rgba(214, 255, 60, 0.35); }
}
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn:hover, .btn-lime:hover { filter: brightness(1.05); }
.hero, .section { max-width: 1120px; margin: 0 auto; padding: 72px 28px; }
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; min-height: calc(100vh - 76px); }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); }
h1 { font-size: clamp(44px, 6vw, 76px); line-height: 0.92; letter-spacing: -0.05em; margin: 12px 0; }
.lede { font-size: 18px; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 36px; }
.stat { background: rgba(18, 20, 26, 0.8); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.stat strong { display: block; font-size: 28px; letter-spacing: -0.04em; }
.stat span { color: var(--faint); font-size: 13px; }
.demo {
  background: rgba(16, 18, 24, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
}
.demo-top { display: flex; justify-content: space-between; color: var(--faint); font-family: var(--mono); font-size: 12px; margin-bottom: 12px; }
.demo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: var(--inset);
  border: 1px solid var(--line);
  margin-top: 8px;
}
.demo-row.on { border-color: rgba(214, 255, 60, 0.45); }
.badge { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; border-radius: 99px; padding: 5px 8px; }
.badge.wait { color: var(--muted); background: #27272a; }
.badge.taken { color: #a1a1aa; background: #27272a; }
.badge.free { background: var(--lime); color: var(--ink); }
.badge.bad { color: #fecdd3; background: rgba(251, 113, 133, 0.14); }
.section h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.04em; margin: 0 0 12px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card, .price {
  background: rgba(18, 20, 26, 0.86);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}
.price {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  animation: rise 0.8s ease both;
}
.price:hover { transform: translateY(-8px); border-color: rgba(214, 255, 60, 0.45); box-shadow: 0 20px 50px rgba(214, 255, 60, 0.08); }
.price.pop { outline: 1px solid rgba(214, 255, 60, 0.5); }
.price .cost { font-size: 40px; letter-spacing: -0.05em; margin: 8px 0; }
.price .cost span { font-size: 16px; color: var(--faint); }
.price ul { padding-left: 18px; color: var(--muted); }
.bill-toggle { display: flex; gap: 8px; margin: 16px 0; }
.bill-toggle button.on { background: var(--lime); color: var(--ink); border-color: transparent; }
.reveal { opacity: 0; transform: translateY(22px); animation: rise 0.7s ease forwards; }
.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step-no { font-family: var(--mono); color: var(--lime); }
footer, .site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--faint);
}
footer a, .site-footer a { color: var(--muted); }
.disclaimer { margin: 0; max-width: 860px; font-size: 13px; line-height: 1.55; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.callout { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: rgba(16, 18, 24, 0.72); }
.policy h1 { letter-spacing: -0.04em; }
.policy h2 { margin-top: 28px; font-size: 20px; }
.policy p, .policy li { color: var(--muted); line-height: 1.6; }
.policy .draft { color: var(--amber); }
.auth-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 460px);
}
.auth-aside { padding: 48px 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.auth-aside h1 { margin: 8px 0; font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.045em; line-height: 0.95; }
.auth-card h1 { margin: 0; letter-spacing: -0.04em; font-size: 32px; line-height: 1.05; }
.auth-card .btn, .auth-card .btn-lime, .auth-card .btn-ghost { width: 100%; }
.auth-card a, .auth-links a { color: var(--lime); }
.auth-stack { width: min(440px, 100%); display: grid; gap: 14px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.check input { width: auto; margin-top: 3px; }
.strength { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.strength.good { color: var(--lime); }
.narrow { max-width: 760px; margin: 0 auto; padding: 48px 28px 80px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(440px, 100%); background: rgba(16, 18, 24, 0.94); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: grid; gap: 12px; }
label { font-size: 13px; color: var(--faint); }
input, textarea, select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--inset);
  padding: 12px;
}
textarea { min-height: 110px; resize: vertical; }
.note { color: var(--muted); font-size: 14px; }
.error { color: #fecdd3; background: rgba(251, 113, 133, 0.08); border: 1px solid rgba(251, 113, 133, 0.28); border-radius: 10px; padding: 10px 12px; }
.ok { color: var(--lime); background: rgba(214, 255, 60, 0.08); border: 1px solid rgba(214, 255, 60, 0.28); border-radius: 10px; padding: 10px 12px; }
.ok:empty, #error:empty, .error:empty, .auth-card > div:empty { display: none; }
.ok a { color: var(--lime); word-break: break-all; }
.narrow h1 { font-size: clamp(32px, 5vw, 48px); }
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side, .admin-side {
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  background: #0c0e12;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.side button, .admin-side button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--muted);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
}
.side button.on, .admin-side button.on { background: var(--text); color: #111; }
.work { padding: 22px 28px 60px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.meter { height: 10px; background: #27272a; border-radius: 99px; overflow: hidden; }
.meter.usage-meter { width: 220px; margin-top: 8px; }
.meter span { display: block; height: 100%; background: var(--lime); width: 0%; }
.list { display: grid; gap: 8px; }
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--inset);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-main { padding: 22px; }
pre, code { font-family: var(--mono); }
pre { background: var(--inset); border: 1px solid var(--line); border-radius: 14px; padding: 14px; overflow: auto; }
.status-dot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; background: var(--lime); margin-right: 6px; }
.market-wrap { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 28px 28px 80px; }
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0 20px; }
.listing-card { display: grid; gap: 6px; text-decoration: none; color: inherit; }
.listing-card:hover { border-color: rgba(214, 255, 60, 0.45); }
.listing-card strong { font-size: 22px; letter-spacing: -0.04em; }
.price-tag { color: var(--lime); font-weight: 700; }
.chat { display: grid; gap: 8px; max-height: 360px; overflow: auto; margin: 12px 0; }
.stepper { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.stepper span { padding: 6px 10px; border-radius: 99px; background: #27272a; color: var(--muted); font-size: 13px; }
.stepper span.on { background: var(--lime); color: var(--ink); font-weight: 700; }
.stack { display: grid; gap: 14px; }
.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 800px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-aside { padding: 28px 20px 0; }
}
@media (max-width: 900px) {
  .hero, .grid, .steps, .stats { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #090a0c; padding: 16px 28px 20px; border-bottom: 1px solid var(--line); }
  .menu { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.auth-wrap { position: relative; z-index: 1; }
.status-dot.warn { background: var(--amber); }
.log-box { max-height: 240px; overflow: auto; white-space: pre-wrap; }
.shell { position: relative; z-index: 1; grid-template-columns: 260px minmax(0, 1fr); }
.side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 260px;
}
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side .brand { padding: 6px 12px 10px; }
.side-kicker { margin: 0 12px 8px; }
.nav-label {
  margin: 16px 12px 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.side button, .side a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
}
.side button svg, .side a svg { width: 16px; height: 16px; flex: none; }
.side button.on, .side a.on {
  background: rgba(214, 255, 60, 0.14);
  color: var(--lime);
}
.side button:hover, .side a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.side button.on:hover, .side a.on:hover { color: var(--lime); }
.nav-backdrop { display: none; }
.work { min-width: 0; }
.work h1 { font-size: 32px; line-height: 1.1; letter-spacing: -0.04em; margin: 0 0 8px; }
.work h2 { font-size: 18px; letter-spacing: -0.03em; margin: 22px 0 8px; }
.work h3 { margin: 0; font-size: 18px; }
.work .auth-wrap { min-height: 0; display: block; padding: 0; place-items: stretch; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: -22px -28px 18px;
  padding: 14px 28px;
  background: rgba(9, 10, 12, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.topbar-title { flex: 1; min-width: 0; }
.topbar-title strong { display: block; }
.user-menu { position: relative; }
.user-btn { height: 40px; }
.user-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  display: grid;
  gap: 2px;
  padding: 6px;
  background: #16181f;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.user-pop[hidden] { display: none; }
.user-pop a, .user-pop button {
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
}
.user-pop a:hover, .user-pop button:hover { background: rgba(255, 255, 255, 0.05); }
progress.meter {
  appearance: none;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: #27272a;
  overflow: hidden;
  display: block;
}
.topbar progress.meter { width: min(240px, 46vw); margin-top: 8px; }
progress.meter::-webkit-progress-bar { background: #27272a; border-radius: 99px; }
progress.meter::-webkit-progress-value { background: var(--lime); border-radius: 99px; }
progress.meter::-moz-progress-bar { background: var(--lime); border-radius: 99px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.card strong, .cards strong { display: block; font-size: 26px; letter-spacing: -0.04em; margin-top: 6px; }
.usage-block { display: grid; gap: 6px; margin: 8px 0 14px; }
.usage-top { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
.table-wrap table { min-width: 520px; }
.empty {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 22px;
  color: var(--muted);
  background: rgba(18, 20, 26, 0.45);
}
button:disabled { opacity: 0.55; cursor: default; }
.price ul { margin: 8px 0 14px; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: fixed;
    z-index: 30;
    width: min(280px, 86vw);
    height: 100vh;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }
  .shell.nav-open .side { transform: none; }
  .shell.nav-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.55);
  }
  .side button, .side a { width: 100%; white-space: normal; }
  .work { padding: 16px 16px 48px; }
  .topbar { margin: -16px -16px 16px; padding: 12px 16px; }
}
