/* geist.css — the house design system for the deploy platform.
   Black/white/triangle minimalism. Geist Sans + Geist Mono.
   Light default, real dark mode via [data-theme="dark"]. */

:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-elevated: #ffffff;
  --fg: #000000;
  --fg-2: #171717;
  --muted: #666666;
  --muted-2: #8f8f8f;
  --border: #eaeaea;
  --border-2: #ebebeb;
  --border-strong: #d4d4d4;
  --accent: #0070f3;
  --accent-ink: #0761d1;
  --success: #0e8a4f;
  --success-bg: #e8f6ee;
  --error: #d92d20;
  --error-bg: #fdecea;
  --warn: #b25000;
  --warn-bg: #fdf3e7;
  --purple: #7928ca;
  --pink: #ff0080;

  --term-bg: #0a0a0a;
  --term-fg: #ededed;
  --term-muted: #8f8f8f;
  --term-border: #262626;

  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);

  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", "Menlo", monospace;

  --maxw: 1160px;
  --nav-h: 64px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-subtle: #0a0a0a;
  --bg-elevated: #0f0f0f;
  --fg: #ffffff;
  --fg-2: #ededed;
  --muted: #a1a1a1;
  --muted-2: #7d7d7d;
  --border: #262626;
  --border-2: #1f1f1f;
  --border-strong: #383838;
  --accent: #3291ff;
  --accent-ink: #52a8ff;
  --success: #34c759;
  --success-bg: #0c2a17;
  --error: #ff6166;
  --error-bg: #2a1213;
  --warn: #f5a623;
  --warn-bg: #2a1f0c;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 4px 12px rgba(0,0,0,.5);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  transition: background .3s var(--ease), color .3s var(--ease);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
::selection { background: var(--fg); color: var(--bg); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.02em; line-height: 1.08; color: var(--fg); }
.display { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 600; letter-spacing: -.04em; line-height: .98; }
.h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.035em; }
.h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.03em; }
.h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.5; font-weight: 400; }
.eyebrow {
  font-family: var(--mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .16em; color: var(--muted); font-weight: 500;
}
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Triangle logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -.02em; font-size: 1.02rem; }
.tri { width: 22px; height: 22px; display: inline-block; }
.tri path { fill: var(--fg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500; letter-spacing: -.01em;
  transition: all .15s var(--ease); white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--muted); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: var(--bg); color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-subtle { background: var(--bg-subtle); color: var(--fg); border-color: var(--border); }
.btn-subtle:hover { border-color: var(--border-strong); background: var(--bg-elevated); }
.btn-sm { height: 32px; padding: 0 12px; font-size: .82rem; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 1rem; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 8px; width: 100%; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 20px; }
.nav-links a {
  padding: 7px 11px; border-radius: var(--radius-sm); font-size: .88rem; color: var(--muted);
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav-links a:hover { color: var(--fg); background: var(--bg-subtle); }
.nav-links a.active { color: var(--fg); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--muted);
  transition: all .15s var(--ease);
}
.theme-toggle:hover { border-color: var(--border-strong); color: var(--fg); }
.nav-burger { display: none; }

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99; background: var(--bg);
  transform: translateX(100%); transition: transform .28s var(--ease-out);
  display: flex; flex-direction: column; padding: 20px 24px; gap: 4px;
  border-top: 1px solid var(--border); overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { padding: 14px 8px; font-size: 1.1rem; border-bottom: 1px solid var(--border); color: var(--fg); }
.mobile-nav .btn { margin-top: 16px; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--fg); }
}
@media (min-width: 821px) { .mobile-nav { display: none; } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
@media (max-width: 720px) { .section { padding: 60px 0; } }
.band { background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-ink { background: var(--fg); color: var(--bg); }
.band-ink h1, .band-ink h2, .band-ink h3 { color: var(--bg); }
.band-ink .muted { color: color-mix(in srgb, var(--bg) 60%, transparent); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.card-hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-pad { padding: 24px; }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 999px; font-size: .74rem; font-weight: 500; font-family: var(--mono);
  border: 1px solid var(--border-strong); color: var(--muted); background: var(--bg);
}
.pill-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ready { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, transparent); }
.pill.error { color: var(--error); border-color: color-mix(in srgb, var(--error) 40%, transparent); }
.pill.building { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.pill.queued { color: var(--muted); }
.pill.rolled { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-bg); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 40px; background: var(--bg-subtle); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px 24px; }
.footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-family: var(--mono); font-weight: 500; margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; font-size: .88rem; color: var(--muted); transition: color .15s; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.footer-bottom .muted { font-size: .82rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Dotted grid background ---------- */
.dotgrid {
  background-image: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
  background-size: 22px 22px;
}

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.kbd { font-family: var(--mono); font-size: .78rem; padding: 2px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--bg-subtle); }
.link-arrow { color: var(--fg); font-weight: 500; display: inline-flex; align-items: center; gap: 5px; transition: gap .15s; }
.link-arrow:hover { gap: 9px; }
.link-accent { color: var(--accent); }
.link-accent:hover { text-decoration: underline; }

/* skip link */
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
