@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/jakarta-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #fbfbf8;
  --bg-alt: #f3f3ee;
  --card: #ffffff;
  --ink: #101012;
  --muted: #62626b;
  --line: #e4e4dd;
  --accent: #2f5bff;
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(16, 16, 18, .04), 0 12px 32px -12px rgba(16, 16, 18, .12);
  --radius: 18px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0d;
    --bg-alt: #111114;
    --card: #15151a;
    --ink: #f3f3f1;
    --muted: #9a9aa5;
    --line: #25252c;
    --accent: #6f8cff;
    --accent-ink: #0b0b0d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0b0b0d;
  --bg-alt: #111114;
  --card: #15151a;
  --ink: #f3f3f1;
  --muted: #9a9aa5;
  --line: #25252c;
  --accent: #6f8cff;
  --accent-ink: #0b0b0d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.mark { width: 30px; height: 30px; }
.links { margin-left: auto; display: flex; gap: 26px; }
.links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s; }
.links a:hover { color: var(--ink); }

.theme {
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink);
}
.theme:hover { background: var(--bg-alt); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(64px, 11vw, 140px) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 85% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    linear-gradient(color-mix(in srgb, var(--line) 40%, transparent) 1px, transparent 1px) 0 0 / 100% 64px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent 85%);
  mask-image: linear-gradient(#000 40%, transparent 85%);
}
.hero .wrap { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px color-mix(in srgb, #22c55e 22%, transparent); }

h1 {
  margin: 22px 0 0;
  max-width: 14ch;
  font-size: clamp(42px, 8.4vw, 92px);
  font-weight: 800; line-height: 1.02; letter-spacing: -.04em;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--accent); }

.lead { margin-top: 26px; max-width: 54ch; font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); line-height: 1.55; }
.lead.small { font-size: 17px; margin-top: 16px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: inherit; font-size: 15.5px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 88%, var(--accent)); }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn.wide { width: 100%; }

.facts { display: flex; flex-wrap: wrap; gap: 14px 48px; margin: 64px 0 0; padding-top: 28px; border-top: 1px solid var(--line); max-width: 560px; }
.facts div { display: flex; flex-direction: column; }
.facts dt { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.facts dd { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.head { margin-bottom: 44px; }
h2 { margin-top: 12px; font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }

/* ---------- product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--tint); opacity: .9;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tint) 55%, var(--line)); }
.card p { color: var(--muted); font-size: 16px; flex: 1; }
.links-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.icon { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.icon-rp { background: #fff; }
.icon-mem { background: #000; border-color: #000; }

.tags { display: flex; gap: 8px; }
.tags span { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }

/* ---------- approach ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.point { padding: 28px 4px 0; border-top: 1px solid var(--ink); }
.num { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent); margin-bottom: 18px; }
.point p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* ---------- stack ---------- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 15px; font-weight: 500; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.prose { display: grid; gap: 18px; color: var(--muted); font-size: 18px; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.reach { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.reach li { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--line); }
.reach span { color: var(--muted); font-size: 15px; }
.reach a { font-weight: 600; text-decoration: none; word-break: break-all; }
.reach a:hover { color: var(--accent); }

.form { display: grid; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.form label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; font-size: 16px;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form [aria-invalid="true"] { border-color: #e5484d; }
.err { color: #e5484d; font-size: 14px; font-weight: 500; }
.note { color: var(--muted); font-size: 13.5px; text-align: center; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14.5px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.foot .brand { color: var(--ink); }
.foot .mark { width: 24px; height: 24px; }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- legal page ---------- */
.doc { padding: clamp(48px, 8vw, 96px) 0; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(34px, 6vw, 52px); max-width: none; margin-top: 12px; }
.doc h2 { font-size: 22px; margin-top: 40px; letter-spacing: -.02em; }
.doc p, .doc li { color: var(--muted); margin-top: 12px; }
.doc ul { padding-left: 20px; }
.doc a { color: var(--accent); }

/* ---------- 404 ---------- */
.lost { min-height: calc(100vh - 64px - 90px); display: grid; align-content: center; padding: 60px 0; }
.lost h1 { font-size: clamp(64px, 16vw, 160px); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .cards, .grid3 { grid-template-columns: 1fr; }
  .about, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-in { gap: 14px; }
  .links { gap: 18px; }
  .brand span { display: none; }
  .card, .form { padding: 22px; }
  .facts { gap: 14px 32px; margin-top: 48px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

/* ---------- multi-page additions ---------- */
.links a[aria-current="page"] { color: var(--ink); }
.head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.more { font-weight: 600; font-size: 15px; text-decoration: none; color: var(--accent); white-space: nowrap; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

.page-head { padding: clamp(56px, 9vw, 112px) 0 clamp(8px, 2vw, 24px); }
.page-head h1 { max-width: 18ch; font-size: clamp(38px, 6.4vw, 68px); }
.section.tight { padding-top: clamp(32px, 5vw, 56px); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15.5px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 11px; height: 6px;
  border-left: 2px solid var(--tint); border-bottom: 2px solid var(--tint); transform: rotate(-45deg);
}

.band {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); border-radius: 24px; background: var(--bg-alt);
}
.band h2 { margin: 0; font-size: clamp(26px, 3.6vw, 38px); }
.band p { margin-top: 10px; color: var(--muted); }

.facts.side { flex-direction: column; margin: 0; padding: 0; border: 0; max-width: none; gap: 0; }
.facts.side div { flex-direction: row; align-items: baseline; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts.side div:first-child { border-top: 1px solid var(--line); }
.facts.side dt { min-width: 48px; }
.facts.side dd { margin: 0; font-size: 16px; }
