:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --ink: #16140f;
  --muted: #5f5a50;
  --line: #e3ddd2;
  --accent: #ff5a36;
  --accent-ink: #ffffff;
  --accent-soft: #ffe6de;
  --wave: rgba(255, 90, 54, 0.35);
  --maxw: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12110e;
    --surface: #1b1a16;
    --ink: #f3efe7;
    --muted: #a39d91;
    --line: #2c2a24;
    --accent: #ff6b4a;
    --accent-ink: #12110e;
    --accent-soft: #3a1f17;
    --wave: rgba(255, 107, 74, 0.4);
  }
}
:root[data-theme="dark"] {
  --bg: #12110e;
  --surface: #1b1a16;
  --ink: #f3efe7;
  --muted: #a39d91;
  --line: #2c2a24;
  --accent: #ff6b4a;
  --accent-ink: #12110e;
  --accent-soft: #3a1f17;
  --wave: rgba(255, 107, 74, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Nav */
header.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand svg { width: 28px; height: 28px; }
.nav ul { display: flex; gap: 28px; list-style: none; font-size: 15px; }
.nav ul a { text-decoration: none; color: var(--muted); }
.nav ul a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav ul { display: none; } }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.nav .btn { padding: 8px 16px; font-size: 14px; }

/* Hero */
.hero { padding: 72px 0 96px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 48px 0 64px; } }
.eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.6s infinite; }
h1 { font-size: clamp(44px, 7vw, 84px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 800; }
h1 em { font-style: normal; color: var(--accent); }
.lede { margin-top: 24px; font-size: 20px; color: var(--muted); max-width: 34ch; }
.cta { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

.signal { position: relative; aspect-ratio: 1; width: 100%; max-width: 440px; justify-self: center; }
.signal svg { width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke: var(--wave); stroke-width: 2; transform-origin: 220px 250px; animation: pulse 3.6s ease-out infinite; opacity: 0; }
.ring:nth-child(2) { animation-delay: 1.2s; }
.ring:nth-child(3) { animation-delay: 2.4s; }
@keyframes pulse { 0% { transform: scale(.25); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
  .ring, .eyebrow::before { animation: none; opacity: .6; }
  .ring:nth-child(2) { transform: scale(.7); } .ring:nth-child(3) { transform: scale(1.1); }
  html { scroll-behavior: auto; }
}

/* Sections */
section { padding: 96px 0; border-top: 1px solid var(--line); }
@media (max-width: 720px) { section { padding: 64px 0; } }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
h2 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; max-width: 18ch; }
.section-head p { color: var(--muted); max-width: 38ch; }
.label { font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 24px; }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }

/* Apps */
.apps { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
@media (max-width: 860px) { .apps { grid-template-columns: 1fr; } }
.app { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.app.featured:hover { transform: translateY(-3px); border-color: var(--accent); }
.app.soon { border-style: dashed; background: transparent; }
.app-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.app-logo { width: 56px; height: 56px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 26px; }
.app-logo.ghost { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.tag { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.app h3 { font-size: 32px; letter-spacing: -0.03em; margin-bottom: 10px; }
.app p { color: var(--muted); font-size: 17px; max-width: 46ch; }
.visit { margin-top: auto; padding-top: 28px; color: var(--accent); font-size: 15px; font-weight: 500; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 28px 24px 28px 0; border-top: 2px solid var(--ink); margin-right: 20px; }
.step .num { font-size: 13px; color: var(--accent); margin-bottom: 18px; display: block; }
.step h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }

/* Principles */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
@media (max-width: 720px) { .principles { grid-template-columns: 1fr; } }
.principle { padding: 32px; border-bottom: 1px solid var(--line); }
.principle:nth-child(odd) { border-right: 1px solid var(--line); }
.principle:nth-last-child(-n+2) { border-bottom: none; }
@media (max-width: 720px) {
  .principle:nth-child(odd) { border-right: none; }
  .principle:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}
.principle strong { display: block; font-size: 20px; margin-bottom: 6px; letter-spacing: -0.01em; }
.principle span { color: var(--muted); font-size: 16px; }

/* Contact */
.contact { background: var(--ink); color: var(--bg); border-top: none; }
.contact .wrap { text-align: center; }
.contact .label { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.contact h2 { margin: 0 auto; max-width: 16ch; }
.contact p { color: color-mix(in srgb, var(--bg) 70%, transparent); margin: 20px auto 36px; max-width: 44ch; }
.email {
  display: inline-block; font-size: clamp(20px, 4vw, 36px); font-weight: 600; letter-spacing: -0.02em;
  color: var(--accent); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 4px;
  word-break: break-all;
}
.email:hover { opacity: .85; }
.copy { margin-top: 24px; background: transparent; border: 1px solid color-mix(in srgb, var(--bg) 30%, transparent); color: var(--bg); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; cursor: pointer; }

footer { padding: 32px 0; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* App detail pages */
.crumb { font-size: 14px; color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 28px; }
.crumb:hover { color: var(--ink); }
.app-hero { padding: 64px 0 88px; }
.app-hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .app-hero .wrap { grid-template-columns: 1fr; } .app-hero { padding: 40px 0 64px; } }
.app-hero .app-logo { width: 72px; height: 72px; font-size: 34px; border-radius: 18px; margin-bottom: 24px; }
.app-hero h1 { font-size: clamp(44px, 7vw, 76px); }
.app-hero .lede { max-width: 40ch; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.preview { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.preview .bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.preview .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.preview .bar span { margin-left: 10px; }
.preview .body { padding: 28px; display: grid; gap: 14px; }
.preview .field { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--muted); font-size: 15px; }
.preview .result { background: var(--accent-soft); border-radius: 12px; padding: 16px; font-size: 15px; }
.preview .result b { color: var(--accent); }
.note { margin-top: 32px; font-size: 14px; color: var(--muted); max-width: 70ch; }
