:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --text: #111111;
  --muted: #5c5c5c;
  --line: #e7e7e4;
  --accent: #111111;
  --accent-text: #ffffff;
  --radius: 18px;
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e0e;
    --bg-soft: #181818;
    --text: #f2f2f0;
    --muted: #a3a3a0;
    --line: #2a2a2a;
    --accent: #f2f2f0;
    --accent-text: #0e0e0e;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 620px; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 52px; max-width: 700px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-size: 0.9rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-sub { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; color: var(--text); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 0.97rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: opacity .15s, background .15s; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { opacity: 0.85; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero */
.hero { padding: 120px 0 96px; }
.hero .stack { gap: 28px; max-width: 820px; }
.trust { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }

/* Grid + cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--bg); display: flex; flex-direction: column; gap: 12px; }
.section-soft .card { background: var(--bg); }
.card .num { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; }
.section-soft .icon { background: var(--bg-soft); }
.icon svg { width: 22px; height: 22px; stroke: var(--text); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.app-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: var(--bg); }
.app-thumb { aspect-ratio: 16 / 10; background: var(--bg-soft); display: grid; place-items: center; font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; color: var(--muted); }
.app-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; align-self: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.92rem; }

/* Lists */
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { padding-left: 28px; position: relative; color: var(--muted); }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 7px; border-left: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(-45deg); }

/* Split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--muted); }

/* CTA band */
.cta { border-radius: 28px; background: var(--accent); color: var(--accent-text); padding: 72px 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.cta p { opacity: 0.75; margin-top: 10px; }
.cta .btn { background: var(--accent-text); color: var(--accent); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; min-height: 48px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--text); outline-offset: 1px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hidden { display: none; }

/* Legal */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal p + p { margin-top: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 36px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { margin: 0 0 14px; font-size: 0.9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.88rem; }

/* Responsive */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: grid; place-items: center; }
  .logo { font-size: 1.05rem; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.05rem; }
  .nav-links .btn { display: flex; margin-top: 10px; width: 100%; }
  .section { padding: 72px 0; }
  .hero { padding: 72px 0 64px; }
  .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  .cta { padding: 48px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}
