/* ───────────────────────────────────────────────────────────────────────────
   Triangle — the Geist design system for this venture.
   Black / white / triangle minimalism. Hairline borders, generous whitespace,
   monospace eyebrow labels, one confident geometric mark.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  /* neutrals — a designed grayscale, not default gray */
  --bg:        #ffffff;
  --bg-subtle: #fafafa;
  --bg-2:      #f5f5f5;
  --ink:       #000000;
  --gray-1000: #0a0a0a;
  --gray-900:  #171717;
  --gray-700:  #404040;
  --gray-600:  #525252;
  --gray-500:  #737373;
  --gray-400:  #a3a3a3;
  --gray-300:  #d4d4d4;
  --gray-200:  #e5e5e5;
  --hairline:  #eaeaea;

  /* the one accent + functional colors */
  --accent:    #0070f3;   /* Vercel blue — links, focus */
  --accent-ink:#005cc5;
  --success:   #0cce6b;
  --success-d: #0a8f4d;
  --warn:      #f5a623;
  --error:     #ee0000;

  /* dark stage (hero, footer, ship page) */
  --stage:     #000000;
  --stage-2:   #0a0a0a;
  --stage-ink: #ffffff;
  --stage-mut: #888888;
  --stage-line:#333333;

  --radius:    6px;
  --radius-lg: 12px;
  --radius-sm: 4px;

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

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);

  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

/* ── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); letter-spacing: -0.02em; }
h4 { font-size: 1.1rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .55em;
}
.mono { font-family: var(--font-mono); }
.muted { color: var(--gray-500); }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--gray-600); line-height: 1.55; max-width: 62ch; letter-spacing: -0.01em; }

/* ── The triangle mark ───────────────────────────────────────────────────── */
.tri {
  width: 0; height: 0;
  border-left: .55em solid transparent;
  border-right: .55em solid transparent;
  border-bottom: .95em solid currentColor;
  display: inline-block;
  vertical-align: middle;
}

/* ── Layout primitives ───────────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.section-pad { padding: clamp(64px, 10vw, 140px) 0; }
.section-pad-sm { padding: clamp(48px, 7vw, 88px) 0; }
.stage { background: var(--stage); color: var(--stage-ink); }
.stage .muted, .stage .lead { color: var(--stage-mut); }
.stage .eyebrow { color: var(--stage-mut); }
.subtle { background: var(--bg-subtle); }
.hairline-top { border-top: 1px solid var(--hairline); }
.hairline-bottom { border-bottom: 1px solid var(--hairline); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 44px; padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: var(--ink); color: #fff;
  font-size: .95rem; font-weight: 500;
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease), box-shadow .15s var(--ease);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn:hover { background: var(--gray-700); border-color: var(--gray-700); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--gray-300); color: var(--ink); }
.btn-sm { height: 34px; padding: 0 14px; font-size: .85rem; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 1rem; }
.btn-invert { background: #fff; color: #000; border-color: #fff; }
.btn-invert:hover { background: var(--gray-200); border-color: var(--gray-200); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-block { width: 100%; }

/* ── Header / nav ────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.03em; }
.brand .tri { font-size: .85rem; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 7px 12px; border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--gray-600); font-weight: 450;
  transition: color .12s, background .12s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-links a.active { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--hairline); border-radius: var(--radius-sm); width: 40px; height: 36px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .nav-links, .nav-right .desktop-only { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile {
    display: none; flex-direction: column; gap: 2px;
    padding: 12px 24px 20px; border-bottom: 1px solid var(--hairline);
    background: #fff;
  }
  .nav-mobile.open { display: flex; }
  .nav-mobile a { padding: 12px 8px; font-size: 1rem; border-bottom: 1px solid var(--hairline); color: var(--gray-700); }
  .nav-mobile a:last-of-type { border-bottom: none; }
  .nav-mobile .btn { margin-top: 12px; }
}
@media (min-width: 901px) { .nav-mobile { display: none !important; } }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--hairline); background: var(--bg); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer-col h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); margin: 0 0 16px; font-weight: 500; font-family: var(--font-mono); }
.footer-col a { display: block; padding: 5px 0; font-size: .9rem; color: var(--gray-600); }
.footer-col a:hover { color: var(--ink); }
.footer-brand p { font-size: .88rem; color: var(--gray-500); max-width: 30ch; margin-top: 14px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hairline); font-size: .82rem; color: var(--gray-500); flex-wrap: wrap; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(12,206,107,.18); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .footer-brand { grid-column: 1 / -1; } }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card { border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: #fff; overflow: hidden; transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease); }
.card-hover:hover { border-color: var(--gray-300); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-pad { padding: 24px; }

/* ── Badges / pills ──────────────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 100px; font-size: .74rem; font-weight: 500; border: 1px solid var(--hairline); background: #fff; letter-spacing: 0; font-family: var(--font-mono); }
.pill-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gray-400); }
.pill.ready { color: var(--success-d); border-color: rgba(12,206,107,.35); background: rgba(12,206,107,.08); }
.pill.ready::before, .pill.building::before, .pill.error::before, .pill.queued::before { content:""; width:6px; height:6px; border-radius:50%; }
.pill.ready::before { background: var(--success); }
.pill.building { color: #9a6a00; border-color: rgba(245,166,35,.4); background: rgba(245,166,35,.09); }
.pill.building::before { background: var(--warn); animation: pulse 1.1s var(--ease-in-out) infinite; }
.pill.error { color: var(--error); border-color: rgba(238,0,0,.3); background: rgba(238,0,0,.06); }
.pill.error::before { background: var(--error); }
.pill.queued { color: var(--gray-600); }
.pill.queued::before { background: var(--gray-400); }
.pill.current { color: var(--accent); border-color: rgba(0,112,243,.35); background: rgba(0,112,243,.07); }
.pill.rolled { color: #9a6a00; border-color: rgba(245,166,35,.45); background: rgba(245,166,35,.1); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ── Inputs ──────────────────────────────────────────────────────────────── */
.input, .field {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  background: #fff; font-size: .95rem; transition: border-color .12s, box-shadow .12s;
}
.input:focus, .field:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.field-label { font-size: .82rem; font-weight: 500; color: var(--gray-700); margin-bottom: 7px; display: block; }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; font-family: var(--font-mono); }

/* ── Utility ─────────────────────────────────────────────────────────────── */
.flex { display: flex; } .items-center { align-items: center; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.grid { display: grid; }
.text-center { text-align: center; }
.mt-0{margin-top:0}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mt-6{margin-top:24px}.mt-8{margin-top:32px}.mt-12{margin-top:48px}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:8px}.mb-4{margin-bottom:16px}.mb-6{margin-bottom:24px}.mb-8{margin-bottom:32px}
.hide { display: none !important; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Grid backdrop (Geist signature) ────────────────────────────────────── */
.grid-bg {
  background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
