@font-face { font-family: "Clash Grotesk"; src: url("../fonts/ClashGrotesk-Light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url("../fonts/ClashGrotesk-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url("../fonts/ClashGrotesk-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url("../fonts/ClashGrotesk-Semibold.otf") format("opentype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #f1f1f1;
  --surface: #ffffff;
  --surface-2: #f1f1f1;
  --ink: #000000;
  --ink-2: #151516;
  --line: rgba(0, 0, 0, 0.07);
  --text: #000000;
  --muted: #797979;
  --muted-dark: #8b8b8b;
  --r-sm: 14px;
  --r-md: 24px;
  --r-lg: 40px;
  --max: 1240px;
  --font: "Clash Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Noto Serif", "Droid Serif", Georgia, serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 700; letter-spacing: -0.03em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 16px; z-index: 50; margin-top: 16px; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 760px; margin: 0 auto;
  padding: 10px 10px 10px 24px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 24px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 10px 30px rgba(0,0,0,.04);
}
.logo img { height: 22px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-build { display: none; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.nav-build img { width: 20px; height: 20px; object-fit: contain; }
.nav-build .os { width: 26px; height: 26px; border-radius: 50%; background: #000; display: grid; place-items: center; }
.nav-build .os img { width: 18px; height: 18px; }
@media (min-width: 760px) { .nav-build { display: flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 500; font-size: 15px;
  transition: transform .2s ease, background .2s ease, color .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a2d; }
.btn-light { background: var(--surface); color: var(--ink); }
.btn-light:hover { background: #e9e9e9; }
.btn-lg { padding: 18px 30px; font-size: 18px; border-radius: 18px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { min-height: calc(100vh - 90px); min-height: calc(100svh - 90px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 64px 0 48px; }
.hero .big {
  font-size: clamp(96px, 26vw, 360px);
  line-height: 0.85;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.hero .rotator { display: inline-block; min-width: 1ch; }
.hero .rotator.swap { animation: swap .5s ease; }
@keyframes swap { from { opacity: 0; transform: translateY(0.12em); } to { opacity: 1; transform: none; } }
.hero-sub { margin: 32px auto 0; font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 560px; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Statement ---------- */
.statement { padding: 96px 0 48px; text-align: center; }
.statement h2 {
  font-size: clamp(38px, 6.4vw, 84px);
  line-height: 1.02; font-weight: 500; letter-spacing: -0.025em;
  max-width: 15ch; margin: 0 auto;
}
.team { margin-top: 32px; display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; text-align: left; }
.avatars { display: flex; }
.avatars img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--bg); object-fit: cover; background: #fff; }
.avatars img + img { margin-left: -12px; }

/* ---------- Section ---------- */
section.block { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.02; font-weight: 500; letter-spacing: -0.025em; }
.section-head p { margin-top: 14px; color: var(--muted); }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 820px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento .c-4 { grid-column: span 4; }
  .bento .c-3 { grid-column: span 3; }
  .bento .c-2 { grid-column: span 2; }
}
.card {
  position: relative; overflow: hidden;
  padding: 32px; border-radius: var(--r-lg);
  background: var(--surface);
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.card h3 { font-size: 30px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.05; }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 42ch; }
.card .icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--surface-2);
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--ink); }
.card.dark { background: var(--ink); color: #fff; }
.card.dark p { color: var(--muted-dark); }
.card.dark .icon { background: #1b1b1d; }
.card.dark .icon svg { stroke: #fff; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 7px 14px; border-radius: 999px; font-size: 14px; background: var(--surface-2); }

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.7;
  background: #151516; border-radius: 18px;
  padding: 16px 18px; color: #c9c9d1; overflow: hidden; white-space: pre;
}
.code .k { color: #fff; font-weight: 600; }
.code .m { color: #6b6b73; }

.platforms { display: flex; gap: 10px; flex-wrap: wrap; }
.platform {
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--surface-2);
}
.platform img { width: 24px; height: 24px; object-fit: contain; }
.platform.dark { background: #000; }

/* ---------- Process ---------- */
.steps { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 28px; border-radius: var(--r-md); background: var(--surface); }
.step .num { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 22px; }
.step h3 { margin-top: 36px; font-size: 26px; font-weight: 500; letter-spacing: -0.01em; }
.step p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* ---------- CTA ---------- */
.cta {
  border-radius: var(--r-lg);
  padding: 72px 24px;
  background: radial-gradient(80% 120% at 50% 0%, #1b1b1d 0%, #000 70%);
  color: #fff;
  text-align: center;
}
@media (min-width: 720px) { .cta { padding: 112px 48px; } }
.cta h2 { font-size: clamp(48px, 9vw, 128px); line-height: 0.95; font-weight: 500; letter-spacing: -0.03em; }
.cta p { margin: 22px auto 0; color: var(--muted-dark); max-width: 440px; font-size: 18px; }
.cta .hero-cta { margin-top: 36px; }

/* ---------- Footer ---------- */
footer.site { padding: 48px 0 40px; }
.foot-top {
  display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start;
  padding: 32px; border-radius: var(--r-lg); background: var(--surface);
}
.foot-top .logo img { height: 26px; }
.foot-top p { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 320px; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h4 { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.foot-col a { display: block; padding: 4px 0; font-size: 15px; font-weight: 500; }
.foot-col a:hover { opacity: .55; }
.foot-bottom { padding: 24px 8px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: var(--muted); }
.foot-legal { margin: 16px 8px 0; font-size: 12px; line-height: 1.6; color: #a1a1a1; max-width: 900px; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 0; }
.legal-card {
  max-width: 860px; margin: 0 auto;
  padding: 32px 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
}
@media (min-width: 720px) { .legal-card { padding: 56px 64px; } }
.legal-card h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 28px; }
.legal-card p { color: #373e50; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.legal-card p span, .legal-card p strong { color: #000; font-weight: 600; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.back:hover { color: var(--text); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .rotator.swap { animation: none; }
  html { scroll-behavior: auto; }
}
