:root {
  --bg: #09090d;
  --surface: #121219;
  --surface-2: #1a1a23;
  --border: #282834;
  --text: #f4f4f7;
  --muted: #9b9bad;
  --accent: #c6ff3d;
  --accent-ink: #0d1200;
  --violet: #8b5cf6;
  --amber: #ffb547;
  --blue: #6ea8ff;
  --danger: #ff5c7a;
  --radius: 14px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.muted { color: var(--muted); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(9 9 13 / 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 20px var(--font-head); text-decoration: none; }
.logo svg { width: 28px; height: 28px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav a:not(.btn), .nav button.link {
  color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px;
  background: none; border: 0; font: inherit; cursor: pointer;
}
.nav a:not(.btn):hover, .nav button.link:hover { color: var(--text); background: var(--surface-2); }
@media (max-width: 640px) {
  .nav .hide-sm { display: none; }
  .site-header .wrap { gap: 12px; }
  .nav { gap: 2px; }
  .nav a:not(.btn), .nav button.link { padding: 8px; }
}
@media (max-width: 420px) {
  .logo span { display: none; }
}

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.12s, background 0.12s, border-color 0.12s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #d6ff6b; }
.btn-ghost { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: #3a3a4a; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
input, select {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); font: inherit;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field { margin-bottom: 16px; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: rgb(255 92 122 / 0.12); border: 1px solid rgb(255 92 122 / 0.4); color: #ffc2cd; }
.alert-info { background: rgb(139 92 246 / 0.12); border: 1px solid rgb(139 92 246 / 0.4); color: #d9ccff; }
[hidden] { display: none !important; }

/* ---------- Landing ---------- */
.hero { padding: 96px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 640px; z-index: -1;
  background: radial-gradient(closest-side, rgb(139 92 246 / 0.35), transparent),
              radial-gradient(closest-side at 70% 60%, rgb(198 255 61 / 0.14), transparent);
}
.eyebrow {
  display: inline-block; padding: 6px 12px; border-radius: 999px; margin-bottom: 24px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 14px;
}
.hero h1 { font-size: clamp(40px, 7vw, 76px); max-width: 900px; margin-inline: auto; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 620px; margin: 24px auto 36px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.platform-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 56px; }

.section { padding: 88px 0; border-top: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 44px); }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 18px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step-num {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--surface-2); color: var(--accent); font: 700 18px var(--font-head);
}
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 60px -24px rgb(198 255 61 / 0.35); }
.plan .badge { position: absolute; top: -12px; left: 28px; }
.plan .price { font: 700 44px var(--font-head); margin: 16px 0 4px; }
.plan .price span { font: 500 16px var(--font-body); color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; color: #d7d7e0; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.fineprint { text-align: center; color: var(--muted); font-size: 14px; margin-top: 24px; }

.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 12px; }

.cta-band { text-align: center; padding: 72px 24px; border-radius: 20px; background: linear-gradient(135deg, #1d1530, #121a08); border: 1px solid var(--border); }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 24px; }

.site-footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Chips & badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; font-weight: 500; white-space: nowrap;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); }
.platform-strip .chip { padding: 10px 18px; font-size: 16px; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; background: var(--surface-2); color: var(--muted);
}
.badge-accent { background: var(--accent); color: var(--accent-ink); }
.status-pending { background: rgb(255 181 71 / 0.15); color: var(--amber); }
.status-active { background: rgb(198 255 61 / 0.15); color: var(--accent); }
.status-completed { background: rgb(110 168 255 / 0.15); color: var(--blue); }
.status-rejected { background: rgb(255 92 122 / 0.15); color: var(--danger); }

/* ---------- Auth pages ---------- */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 48px 16px; }
.auth .card { width: min(420px, 100%); padding: 36px; }
.auth h1 { font-size: 30px; margin-bottom: 6px; }
.auth .sub { color: var(--muted); margin-bottom: 28px; }
.oauth { display: grid; gap: 10px; margin-bottom: 20px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 4px 0 20px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.switch { text-align: center; color: var(--muted); font-size: 14px; margin-top: 20px; }
.switch a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ---------- App pages ---------- */
.app { padding: 40px 0 80px; }
.app-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.app-head h1 { font-size: 32px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat .label { color: var(--muted); font-size: 14px; }
.stat .value { font: 700 28px var(--font-head); margin-top: 4px; }
.stat { padding: 20px 22px; }
.grid-2 { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.panel-title { font: 600 18px var(--font-head); margin-bottom: 18px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0;
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-weight: 500;
}
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.check:has(input:checked) { border-color: var(--accent); background: rgb(198 255 61 / 0.06); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td .chip { padding: 3px 10px; font-size: 13px; margin: 2px 4px 2px 0; }
td select { width: auto; min-width: 130px; padding: 7px 10px; }
.empty { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 20px; }
.tabs button { background: none; border: 0; color: var(--muted); font: 600 15px var(--font-body); padding: 8px 16px; border-radius: 8px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--text); }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--surface-2); border: 1px solid var(--border); padding: 12px 18px; border-radius: 10px;
  font-size: 14px; box-shadow: 0 12px 40px rgb(0 0 0 / 0.5); z-index: 50;
}

.notfound { min-height: calc(100vh - 64px); display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.notfound h1 { font-size: 96px; color: var(--accent); }
.notfound p { color: var(--muted); margin: 8px 0 28px; }
