:root {
  color-scheme: dark;
  --bg: #101314;
  --panel: #171c1d;
  --panel-2: #202829;
  --text: #edf4f2;
  --muted: #9fb0ac;
  --line: #30403d;
  --accent: #38d08f;
  --accent-2: #f7c95f;
  --danger: #ff6b6b;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif; background: var(--bg); color: var(--text); letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(16,19,20,.9); position: sticky; top: 0; z-index: 5; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.image-logo img { width: 190px; max-width: 44vw; height: auto; display: block; }
.logo span, .brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--accent); color: #06100c; font-weight: 900; }
nav { display: flex; align-items: center; gap: 18px; color: var(--muted); }
nav form { margin: 0; }
.link-button { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; }
.button { border: 1px solid var(--line); color: var(--text); background: var(--panel-2); border-radius: 8px; padding: 10px 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #06100c; font-weight: 800; }
.button.ghost { background: transparent; }
.button.danger { border-color: rgba(255,107,107,.5); color: #ffd8d8; }
.button.small { min-height: 32px; padding: 6px 10px; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.hero { min-height: calc(100vh - 96px); display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 42px; align-items: center; padding: 44px 0 72px; }
.eyebrow { color: var(--accent); text-transform: uppercase; font-size: 12px; font-weight: 800; }
h1 { font-size: 56px; line-height: 1; margin: 8px 0 16px; }
.hero-logo { width: min(520px, 100%); height: auto; display: block; margin: 8px 0 18px; }
h2 { margin-top: 28px; }
.lede { font-size: 20px; color: var(--muted); line-height: 1.55; max-width: 620px; }
.actions, .oauth-row, .toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.product-shot { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.window-bar { height: 38px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: center; padding: 0 14px; }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); }
.mock-app { display: grid; grid-template-columns: 180px 1fr; min-height: 360px; }
.mock-app aside { background: #121718; border-right: 1px solid var(--line); padding: 18px; }
.mock-app aside p { color: var(--muted); padding: 10px; border-radius: 6px; background: rgba(255,255,255,.03); }
.mock-app section { padding: 22px; }
.terminal-line { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; background: #09100d; border: 1px solid #1f3a30; padding: 14px; border-radius: 6px; margin-bottom: 12px; }
.terminal-line.ok { color: var(--accent); }
.file-grid { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.file-grid span, .tile, .metric, .auth-card, .install-panel { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 20px; }
.band, .grid-3, .grid-4, .grid-2 { display: grid; gap: 16px; margin: 28px 0; }
.band, .grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.metric strong, .tile strong { display: block; font-size: 24px; margin-bottom: 6px; }
.metric span, .tile span, .muted { color: var(--muted); }
.small { font-size: 13px; }
.auth-card, .install-panel { width: min(520px, 100%); margin: 60px auto; }
.auth-card.wide { width: min(760px, 100%); }
.install-logo { width: min(320px, 100%); height: auto; display: block; margin-bottom: 18px; }
.install-body { display: grid; min-height: 100vh; place-items: center; }
.form-grid, .settings-form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: var(--muted); font-weight: 650; }
input, textarea, select { width: 100%; background: #0c1112; border: 1px solid var(--line); border-radius: 7px; color: var(--text); min-height: 42px; padding: 10px 12px; font: inherit; }
textarea { min-height: 110px; resize: vertical; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.notice { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; margin: 14px 0; background: var(--panel-2); }
.notice.success { border-color: rgba(56,208,143,.45); }
.notice.danger { border-color: rgba(255,107,107,.55); color: #ffd8d8; }
.page-head { padding: 44px 0 18px; }
.page-head h1 { font-size: 40px; }
.admin-nav { justify-content: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 18px; }
.data-table { width: 100%; border-collapse: collapse; margin: 18px 0 42px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.data-table th, .data-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.data-table th { color: var(--text); background: #111718; }
.data-table tr:hover td { background: rgba(255,255,255,.025); }
.check { display: flex; align-items: center; flex-direction: row; }
.check input { width: auto; }
.toolbar.filters input { flex: 1 1 260px; }
.toolbar.filters select { width: auto; min-width: 150px; }
@media (max-width: 840px) {
  .hero, .band, .grid-3, .grid-4, .grid-2, .mock-app, .split { grid-template-columns: 1fr; }
  h1 { font-size: 42px; }
  .topbar { align-items: flex-start; height: auto; gap: 12px; flex-direction: column; padding: 16px; }
  nav { flex-wrap: wrap; }
}
