/* Highwater — flat, dark, minimal. No gradients anywhere. */

:root {
  --bg: #0b0f14;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8edf2;
  --muted: #8a94a6;
  --accent: #4cc2ff;
  --accent-dim: rgba(76, 194, 255, 0.14);
  --ok: #32d583;
  --warn: #fdb022;
  --danger: #f97066;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 27px;
  height: 27px;
  filter: drop-shadow(0 1px 4px rgba(30, 123, 232, 0.45));
}

.nav-links { display: flex; gap: 26px; margin-left: auto; }

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 22px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--accent); color: #06121c; }
.btn-primary:hover { background: #6ed0ff; }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.2); background: var(--surface-2); }

.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 9px; }

/* ---------- hero ---------- */

.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 88px 24px 72px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.chip {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(76, 194, 255, 0.25);
  border-radius: 999px;
  padding: 5px 13px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 22px 0 18px;
}

.accent { color: var(--accent); }

.lead {
  color: var(--muted);
  font-size: 17.5px;
  max-width: 480px;
  margin-bottom: 30px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.micro { color: var(--muted); font-size: 13px; margin-top: 18px; }

/* ---------- widget mockup ---------- */

.mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 4px 14px;
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.mock-title { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 500; }

.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 16px 13px;
  margin-bottom: 10px;
}

.mock-card:last-child { margin-bottom: 2px; }

.row-head { display: flex; align-items: center; gap: 10px; }

.p-dot { width: 11px; height: 11px; border-radius: 50%; }
.p-claude { background: #d97757; }
.p-codex { background: #e8edf2; }
.p-zai { background: var(--accent); }

.p-name { font-weight: 600; font-size: 14.5px; }

.p-acct {
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 8px;
}

.p-pct { margin-left: auto; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }

.ok-c { color: var(--ok); }
.warn-c { color: var(--warn); }
.danger-c { color: var(--danger); }

.bar {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  margin: 12px 0 9px;
  overflow: hidden;
}

.fill { height: 100%; border-radius: 4px; }
.ok-f { background: var(--ok); }
.warn-f { background: var(--warn); }
.danger-f { background: var(--danger); }

.mark {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: var(--text);
  opacity: 0.75;
  border-radius: 1px;
}

.row-foot {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- sections ---------- */

.section { max-width: 1080px; margin: 0 auto; padding: 64px 24px; }

.section h2 {
  font-size: 32px;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-sub { color: var(--muted); margin-bottom: 36px; max-width: 560px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid.three { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.card:hover { border-color: rgba(255, 255, 255, 0.18); background: var(--surface-2); }

.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }

.card p { color: var(--muted); font-size: 14.5px; }

.card code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--text);
}

/* ---------- providers ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; max-width: 860px; }

.chip-p {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
}

.chip-p.more { color: var(--muted); }

/* ---------- terminal ---------- */

.term {
  background: #0d1219;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.term-title { margin-left: auto; font-size: 12px; color: var(--muted); }

.term pre {
  padding: 22px 24px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13.5px;
  line-height: 2;
  overflow-x: auto;
  color: var(--text);
}

.c-muted { color: var(--muted); }
.c-accent { color: var(--accent); }
.c-ok { color: var(--ok); }

/* ---------- download ---------- */

.card.dl { display: block; text-decoration: none; color: var(--text); }

.dl-cta {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 56px 24px 64px;
  color: var(--muted);
  font-size: 14.5px;
}

.footer-icon {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 8px rgba(30, 123, 232, 0.35));
  margin-bottom: 14px;
}

.footer-fine { font-size: 12.5px; margin-top: 8px; }

.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; gap: 44px; }
  .hero h1 { font-size: 40px; }
  .grid, .grid.three { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
