:root {
  --bg: #0b0e14;
  --panel: #131824;
  --panel-2: #1a2130;
  --line: #232b3d;
  --text: #d7dce5;
  --muted: #8b95a7;
  --accent: #4da3ff;
  --accent-dim: #2b6fb8;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 70% -10%, #16233b 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}

a { color: inherit; text-decoration: none; }

/* ---- top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 5vw, 48px);
  background: rgba(11, 14, 20, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 18px; letter-spacing: .2px; }
.logo { color: var(--accent); margin-right: 6px; }
.topnav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); }
.topnav > a { color: var(--muted); }
.topnav > a:hover { color: var(--text); }

.console-btn {
  background: var(--accent);
  color: #04121f !important;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--accent);
}
.console-btn:hover { background: #6bb4ff; }
.console-btn.big { padding: 12px 22px; font-size: 16px; }

.ghost-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  font: inherit; font-weight: 600;
  cursor: pointer;
}
.ghost-btn:hover { border-color: var(--muted); }

/* ---- sections ---- */
main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 48px); }
section { padding: clamp(48px, 9vw, 96px) 0; }
h1 { font-size: clamp(32px, 5.5vw, 56px); line-height: 1.1; margin: 0 0 20px; letter-spacing: -0.5px; }
h1 em { color: var(--accent); font-style: normal; }
h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 8px; letter-spacing: -0.3px; }
h3 { margin: 0 0 8px; font-size: 19px; }
.section-sub { color: var(--muted); margin: 0 0 32px; }

.hero { text-align: center; padding-top: clamp(56px, 8vw, 88px); }
.eyebrow {
  color: var(--accent); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; font-size: 13px; margin: 0 0 16px;
}
.sub { color: var(--muted); font-size: clamp(16px, 2.2vw, 20px); max-width: 680px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

/* ---- screenshot frames ---- */
.screenshot {
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(45deg, #0e131d 0 14px, #101522 14px 28px);
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  color: var(--muted); font-size: 14px; letter-spacing: .04em;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.screenshot img, .screenshot > img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.hero-shot { max-width: 960px; margin: 0 auto; }

/* ---- feature grid ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card {
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent-dim); background: var(--panel-2); }
.card p { color: var(--muted); margin: 0; }

/* ---- org tiles ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}
.tile img { width: 44px; height: 44px; }
.tile:hover { color: var(--text); border-color: var(--accent-dim); }

/* ---- closing ---- */
.closing { text-align: center; }
.closing p { color: var(--muted); margin: 0 0 28px; }

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(16px, 5vw, 48px);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  color: var(--muted); font-size: 14px;
}
.disclaimer { color: #5b6577; }

/* ---- modals ---- */
dialog.modal {
  max-width: 560px; width: calc(100% - 32px);
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 24px;
}
dialog.modal::backdrop { background: rgba(4, 8, 14, .7); backdrop-filter: blur(3px); }
dialog.modal .screenshot { margin: 12px 0 16px; }
dialog.modal p { color: var(--muted); }
dialog.modal form { text-align: right; margin-top: 8px; }
