/* ============================================================
   Dilly · Investor site
   Style: clean, premium, SV-startup. Inspired by Stripe / Linear /
   Vercel / Anthropic, light surfaces, restrained color, dense
   tabular data, strong hierarchy, no fluff.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Geist+Mono:wght@400;500;600&display=swap");

:root {
  --ink: #0a0e1c;
  --ink-2: #1a2138;
  --muted: #5b6585;
  --soft: #8a93af;
  --line: rgba(10, 14, 28, 0.08);
  --line-2: rgba(10, 14, 28, 0.14);
  --bg: #ffffff;
  --bg-2: #f6f7fb;
  --bg-3: #f0f2f8;
  --accent: #2B3A8E;
  --accent-soft: rgba(43, 58, 142, 0.08);
  --gold: #b8860b;
  --good: #15803d;
  --warn: #b45309;
  --shadow-sm: 0 1px 2px rgba(10, 14, 28, 0.04), 0 1px 3px rgba(10, 14, 28, 0.06);
  --shadow-md: 0 4px 16px rgba(10, 14, 28, 0.06), 0 1px 3px rgba(10, 14, 28, 0.04);
  --shadow-lg: 0 12px 40px rgba(10, 14, 28, 0.08), 0 2px 6px rgba(10, 14, 28, 0.04);
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: "ss01", "cv11";
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

.mono { font-family: "Geist Mono", ui-monospace, SFMono-Regular, monospace; font-feature-settings: "tnum"; letter-spacing: -0.02em; }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}
.nav-brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.nav-logo {
  height: clamp(48px, 11vw, 76px);
  width: auto;
  max-width: min(260px, 78vw);
  object-fit: contain;
}
.nav-links { display: flex; gap: 0.25rem; justify-content: center; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ink);
  background: var(--accent-soft);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  padding: 0.55rem 1rem;
  border-radius: 100px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.nav-cta:hover { background: #000; transform: translateY(-1px); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; }

@media (max-width: 880px) {
  .nav-inner { grid-template-columns: auto 1fr auto; gap: 0.5rem; }
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px;
    width: 32px; height: 32px;
    justify-content: center; align-items: center;
  }
  .nav-burger span {
    display: block; width: 18px; height: 1.5px;
    background: var(--ink); transition: transform 0.2s ease;
  }
  .nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav-drawer {
    position: fixed; inset: 60px 0 0 0;
    background: #fff; padding: 2rem;
    transform: translateY(-100%);
    transition: transform 0.25s ease;
    border-bottom: 1px solid var(--line);
    z-index: 95;
  }
  .nav-drawer.open { transform: translateY(0); }
  .nav-drawer a {
    display: block; padding: 1rem 0;
    font-size: 1.1rem; font-weight: 600;
    border-bottom: 1px solid var(--line);
  }
  .drawer-cta {
    margin-top: 1.5rem; display: inline-block !important;
    background: var(--ink); color: #fff;
    padding: 0.85rem 1.5rem; border-radius: 100px;
    font-size: 0.95rem;
  }
}
@media (min-width: 881px) { .nav-drawer { display: none; } }

/* ── LAYOUT ──────────────────────────────────────────────── */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--alt { background: var(--bg-2); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .muted { color: rgba(255, 255, 255, 0.6); }
.section--ink .h1, .section--ink .h2, .section--ink .h3 { color: #fff; }

/* ── TYPE ────────────────────────────────────────────────── */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.kicker > span:not(:last-child)::after {
  content: ""; display: inline-block;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--line-2);
  margin-left: 0.6rem; vertical-align: middle;
}
.h-display {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 700; letter-spacing: -0.04em;
  line-height: 1.02; color: var(--ink);
}
.h-display em { font-style: normal; color: var(--accent); }
.h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700; letter-spacing: -0.035em;
  line-height: 1.05;
}
.h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 1rem;
}
.h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
}
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6; color: var(--muted);
  max-width: 60ch;
}
.muted { color: var(--muted); }
.cite { font-size: 0.78rem; color: var(--soft); font-weight: 500; letter-spacing: 0.01em; }
.cite a { color: var(--accent); border-bottom: 1px solid var(--line-2); }
.cite a:hover { border-bottom-color: var(--accent); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.92rem; font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
}
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); }
.btn-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.92rem; font-weight: 600; color: var(--accent);
}
.btn-link::after { content: "→"; transition: transform 0.15s ease; }
.btn-link:hover::after { transform: translateX(3px); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(43, 58, 142, 0.06), transparent 60%),
    radial-gradient(ellipse 50% 30% at 10% 100%, rgba(184, 134, 11, 0.04), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }

/* Round terms card */
.deal-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
.deal-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.deal-card-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.deal-card-status {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--good);
  background: rgba(21, 128, 61, 0.08);
  padding: 0.25rem 0.6rem; border-radius: 100px;
}
.deal-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 0; font-size: 0.9rem;
}
.deal-row + .deal-row { border-top: 1px solid var(--line); }
.deal-row-label { color: var(--muted); font-weight: 500; }
.deal-row-value { font-weight: 600; color: var(--ink); }

/* ── METRICS STRIP ───────────────────────────────────────── */
.metrics { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.metric { padding: 2.5rem 1.5rem; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric-num {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.03em;
  color: var(--ink); line-height: 1;
}
.metric-label {
  margin-top: 0.55rem;
  font-size: 0.82rem; color: var(--muted);
  font-weight: 500; line-height: 1.45;
}
.metric-cite { margin-top: 0.5rem; font-size: 0.7rem; color: var(--soft); }
@media (max-width: 880px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric { border-bottom: 1px solid var(--line); }
  .metric:nth-child(even) { border-right: 0; }
}

/* ── SECTION HEAD ────────────────────────────────────────── */
.section-head { max-width: 60ch; margin-bottom: 3rem; }

/* ── CARD GRIDS ──────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; align-items: start; }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; gap: 2rem; } }

.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.75rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card-tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 0.25rem 0.55rem; border-radius: 6px;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ── DATA TABLE ──────────────────────────────────────────── */
.data-table { border-top: 1px solid var(--line); }
.data-row {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 2rem; padding: 1.25rem 0;
  border-bottom: 1px solid var(--line); align-items: baseline;
}
.data-key { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.data-val { font-size: 0.95rem; color: var(--muted); line-height: 1.6; }
.data-val .mono { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) { .data-row { grid-template-columns: 1fr; gap: 0.4rem; } }

/* ── CALLOUT ─────────────────────────────────────────────── */
.callout {
  border-left: 2px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 1rem; color: var(--ink); font-weight: 500;
}

/* ── QUOTE ───────────────────────────────────────────────── */
.quote {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 500; line-height: 1.4;
  letter-spacing: -0.02em; color: var(--ink);
  max-width: 32ch;
}
.quote em { font-style: normal; color: var(--accent); }
.quote-attr {
  margin-top: 1.25rem;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}

/* ── ROADMAP ─────────────────────────────────────────────── */
.roadmap-row {
  display: grid; grid-template-columns: 140px auto 1fr;
  gap: 1.5rem; padding: 1.5rem 0;
  border-bottom: 1px solid var(--line); align-items: start;
}
.roadmap-row:last-child { border-bottom: 0; }
.roadmap-when { font-size: 0.82rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; padding-top: 0.1rem; }
.roadmap-status {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: 6px;
  display: inline-block; width: fit-content;
}
.roadmap-status--shipped { color: var(--good); background: rgba(21, 128, 61, 0.1); }
.roadmap-status--building { color: var(--warn); background: rgba(180, 83, 9, 0.1); }
.roadmap-status--planned { color: var(--muted); background: rgba(91, 101, 133, 0.08); }
.roadmap-body h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.3rem; }
.roadmap-body p { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 720px) { .roadmap-row { grid-template-columns: 1fr; gap: 0.6rem; } }

/* ── FOOTER ──────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); background: var(--bg); padding: 2.5rem 0; }
.foot {
  max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.82rem; color: var(--soft);
}
.foot-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot-links a { transition: color 0.15s ease; }
.foot-links a:hover { color: var(--ink); }

/* ── FADE ────────────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }

/* ── SCREENSHOT ──────────────────────────────────────────── */
.shot {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.85rem;
}
.shot img {
  max-width: 280px; width: 100%; height: auto;
  border-radius: 24px; box-shadow: var(--shadow-lg);
}
.shot-caption {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; font-size: 0.75rem; color: var(--soft); font-weight: 500;
}

/* ── HR ──────────────────────────────────────────────────── */
hr.divider { border: 0; border-top: 1px solid var(--line); margin: clamp(3rem, 6vw, 5rem) 0; }

/* ── PILLS ───────────────────────────────────────────────── */
.pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill {
  display: inline-block;
  font-size: 0.78rem; font-weight: 500;
  color: var(--ink-2); background: var(--bg-3);
  padding: 0.4rem 0.75rem; border-radius: 100px;
}

/* ── HEADSHOT ────────────────────────────────────────────── */
.headshot { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }

/* ── CTA SECTION ─────────────────────────────────────────── */
.cta-final {
  text-align: center;
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--ink); color: #fff;
}
.cta-final h2 { color: #fff; max-width: 22ch; margin: 0 auto 1.25rem; }
.cta-final p { color: rgba(255, 255, 255, 0.7); max-width: 50ch; margin: 0 auto 2rem; }
.cta-final .btn-ink { background: #fff; color: var(--ink); }
.cta-final .btn-ink:hover { background: #f0f2f8; }
.cta-final .btn-line { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.cta-final .btn-line:hover { border-color: rgba(255, 255, 255, 0.5); }
