:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #14171c;
  --ink-2: #3d434d;
  --muted: #5b6270;
  --rule: #d9dde3;
  --rule-soft: #b7bcc5;
  --accent: #0376bb;
  --accent-hover: #025f97;
  --font-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

img { display: block; max-width: 100%; }

h1, h2, h3, p { margin: 0; }

.display { font-family: var(--font-display); font-variation-settings: 'opsz' 96; }
.mono { font-family: var(--font-mono); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section { border-bottom: 1px solid var(--rule); }
.section .container { padding-top: 88px; padding-bottom: 96px; }

.section-title {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 96;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--bg); }
.site-header .container {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 32px; height: 32px; }
.brand span { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.site-nav a { color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-email { color: var(--ink); font-weight: 500; }
.nav-contact { display: none; }

/* Hero */
.hero .container {
  padding-top: 112px;
  padding-bottom: 104px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}
.hero-copy { grid-column: span 8; display: flex; flex-direction: column; gap: 28px; }
.hero h1 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 96;
  font-size: 72px;
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-lede { max-width: 620px; font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 8px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  background: var(--ink);
  color: #ffffff;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
}
.button:hover { background: #000000; color: #ffffff; text-decoration: none; }
.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-soft);
}
.link-quiet:hover { color: var(--ink); text-decoration: none; border-bottom-color: var(--ink); }
.hero-mark { grid-column: span 4; display: flex; justify-content: flex-end; }
.hero-mark div {
  width: 300px;
  height: 300px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mark img { width: 176px; height: 176px; }

/* Products */
.products .container { display: flex; flex-direction: column; gap: 48px; }
.section-head { display: flex; flex-direction: column; gap: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.product {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
  color: var(--ink);
}
.product:hover { text-decoration: none; color: var(--ink); }
.product svg { width: 44px; height: 44px; }
.product-text { display: flex; flex-direction: column; gap: 8px; }
.product h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.product-tag { font-weight: 500; color: var(--ink); }
.product-detail { font-size: 15px; line-height: 1.6; color: var(--muted); }
.product-domain { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.product:hover .product-domain { text-decoration: underline; text-underline-offset: 4px; }

/* Company + founder: split grid */
.split .container {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}
.split-head { grid-column: span 5; display: flex; flex-direction: column; gap: 12px; }
.split-body { grid-column: 7 / span 6; }

.fact-list { display: flex; flex-direction: column; }
.fact { display: flex; flex-direction: column; gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.fact:first-child { padding-top: 0; }
.fact:last-child { padding-bottom: 0; border-bottom: 0; }
.fact h3 { font-size: 18px; font-weight: 500; }
.fact p { color: var(--muted); }

.ideas-body { display: flex; flex-direction: column; gap: 16px; }
.ideas-body p { color: var(--ink-2); }
.ideas-body div { margin-top: 8px; }

.founder-card { display: flex; gap: 28px; align-items: flex-start; }
.founder-card img { width: 128px; height: 128px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.founder-text { display: flex; flex-direction: column; gap: 12px; }
.founder-text p { color: var(--ink-2); }
.founder-title { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* Contact */
.contact .container { display: flex; flex-direction: column; gap: 20px; }
.contact-email {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 96;
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.contact-note { color: var(--muted); }

/* Footer */
.site-footer .container {
  padding-top: 40px;
  padding-bottom: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  font-size: 14px;
  color: var(--muted);
}
.footer-legal { display: flex; flex-direction: column; gap: 6px; }
.footer-legal .mono { font-size: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }

/* Tablet */
@media (max-width: 1024px) {
  .hero h1 { font-size: 56px; }
  .hero-copy { grid-column: span 7; }
  .hero-mark { grid-column: span 5; }
  .hero-mark div { width: 240px; height: 240px; }
  .hero-mark img { width: 140px; height: 140px; }
  .product-grid { gap: 28px; }
  .split-head { grid-column: span 12; }
  .split-body { grid-column: span 12; }
}

/* Mobile */
@media (max-width: 720px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .section .container { padding-top: 56px; padding-bottom: 56px; }
  .section-title { font-size: 30px; line-height: 1.12; }
  .label { font-size: 11px; }

  .site-header .container { height: 64px; }
  .brand img { width: 28px; height: 28px; }
  .brand span { font-size: 16px; }
  .site-nav { display: none; }
  .nav-contact {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    margin-right: -12px;
    color: var(--ink);
    font-weight: 500;
    font-size: 14px;
  }

  .hero .container { display: flex; flex-direction: column; padding-top: 56px; padding-bottom: 56px; gap: 22px; }
  .hero h1 { font-size: 42px; line-height: 1.04; }
  .hero-lede { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 4px; }
  .link-quiet { justify-content: center; border-bottom: 0; }
  .hero-mark { display: none; }

  .products .container { gap: 32px; }
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .product { gap: 16px; padding-top: 20px; }
  .product svg { width: 40px; height: 40px; }
  .product h3 { font-size: 24px; }

  .split .container { display: flex; flex-direction: column; gap: 28px; }
  .fact { padding: 22px 0; }
  .fact h3 { font-size: 17px; }
  .fact p { font-size: 15px; }

  .founder-card { flex-direction: column; gap: 24px; }
  .founder-card img { width: 112px; height: 112px; }
  .founder-text p { font-size: 15px; }
  .founder-title { font-size: 12px; }

  .contact .container { gap: 16px; }
  .contact-email { font-size: 26px; line-height: 1.2; }
  .contact-note { font-size: 15px; }

  .site-footer .container { flex-direction: column-reverse; padding-top: 32px; padding-bottom: 40px; gap: 20px; }
  .footer-nav { gap: 8px 20px; }
  .footer-nav a { line-height: 32px; }
}

/* Secondary pages: legal, 404 */
.page .container { padding-top: 72px; padding-bottom: 96px; max-width: 880px; }
.page-head { display: flex; flex-direction: column; gap: 12px; padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
.page-head h1 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 96;
  font-size: 48px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.page-meta { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.prose { padding-top: 32px; color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.prose h2 { font-family: var(--font-display); font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 500; color: var(--ink); margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; }
.prose li { margin: 0 0 6px; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.page-404 .container { padding-top: 120px; padding-bottom: 160px; display: flex; flex-direction: column; gap: 20px; }
.page-404 p { color: var(--ink-2); font-size: 18px; max-width: 520px; }
@media (max-width: 720px) {
  .page .container { padding-top: 40px; padding-bottom: 64px; }
  .page-head h1 { font-size: 34px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 22px; margin-top: 32px; }
  .page-404 .container { padding-top: 64px; padding-bottom: 96px; }
}
