/* Centrol — Ink & Lime, same tokens as src/lib/theme.ts */
:root {
  --bg: #f3f2ed;
  --surface: #ffffff;
  --sunk: #ebeae3;
  --ink: #121310;
  --ink2: rgba(18, 19, 16, 0.6);
  --ink3: rgba(18, 19, 16, 0.36);
  --line: rgba(18, 19, 16, 0.08);
  --lime: #d4f25a;
  --lime-deep: #b9d93f;
  --lime-ink: #121310;
  --green: #2f9e5b;
  --band: #121310;
  --band-ink: #f3f2ec;
  --band-ink2: rgba(243, 242, 236, 0.6);
  --band-line: rgba(243, 242, 236, 0.1);
  --shadow: 0 30px 80px -30px rgba(18, 19, 16, 0.35), 0 8px 24px -12px rgba(18, 19, 16, 0.18);
  --r: 28px;
  --max: 1120px;
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --text: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0a;
    --surface: #171715;
    --sunk: #1f1f1c;
    --ink: #f3f2ec;
    --ink2: rgba(243, 242, 236, 0.6);
    --ink3: rgba(243, 242, 236, 0.32);
    --line: rgba(243, 242, 236, 0.09);
    --green: #6fd394;
    --band: #171715;
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }
.ic { width: 20px; height: 20px; flex: none; }

/* mark: lime wallet in light, black wallet in dark */
.mark { display: inline-flex; width: 34px; height: 34px; flex: none; }
.mark svg, .nf-mark svg { width: 100%; height: 100%; }
.m-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .m-light { display: none; }
  .m-dark { display: block; }
}

/* ───────── header ───────── */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
}
.top-in {
  max-width: var(--max); margin: 0 auto; height: 68px;
  padding: 0 max(16px, env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: -0.035em; }
.brand.small { font-size: 18px; }
.brand.small .mark { width: 28px; height: 28px; }
.links { display: flex; align-items: center; gap: 4px; }
.links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink2); padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.links a:hover { color: var(--ink); background: var(--line); }
.links .lang { font-weight: 600; letter-spacing: .04em; font-size: 13px; }
.links .login { color: var(--lime-ink); background: var(--lime); margin-left: 6px; padding: 9px 18px; font-weight: 600; }
.links .login:hover { color: var(--lime-ink); background: var(--lime-deep); }

/* ───────── buttons & badges ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 22px; border-radius: 999px;
  font: 600 16px/1 var(--text); text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background .15s;
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 18px; height: 18px; }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--sunk); }
.btn.solid { background: var(--ink); color: var(--bg); }
.links .btn { height: auto; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px 0 16px; border-radius: 16px;
  background: #000; color: #fff; cursor: default; user-select: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.badge svg { width: 26px; height: 26px; flex: none; }
.badge > span { display: flex; flex-direction: column; font: 600 19px/1.1 var(--text); letter-spacing: -0.01em; }
.badge small { font-size: 11px; font-weight: 500; opacity: .75; letter-spacing: .01em; }

/* ───────── hero ───────── */
.hero { padding: 56px 16px 72px; overflow: hidden; }
.hero-in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 500; color: var(--ink2);
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-deep); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 40%, transparent); }
.hero h1 { font-size: clamp(46px, 7.4vw, 92px); line-height: .95; font-weight: 800; letter-spacing: -0.045em; margin: 24px 0 22px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink2); max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-row + .cta-row { margin-top: 12px; }

/* phone mockup */
.phone {
  justify-self: center; position: relative;
  width: 320px; aspect-ratio: 9 / 19; padding: 12px;
  border-radius: 54px; background: #0b0b0a;
  box-shadow: var(--shadow), inset 0 0 0 2px #2a2a27;
  transform: rotate(3deg);
}
.phone::before { content: ''; position: absolute; inset: -60px -80px; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--lime) 55%, transparent), transparent); opacity: .55; }
.screen { height: 100%; border-radius: 42px; background: #f3f2ed; color: #121310; padding: 54px 18px 18px; overflow: hidden; position: relative; }
.notch { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 96px; height: 28px; border-radius: 20px; background: #0b0b0a; }
.ph-title { font: 800 30px/1 var(--display); letter-spacing: -0.04em; margin-bottom: 16px; }
.ph-card { background: #d4f25a; border-radius: 26px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.ph-card small { font-size: 12.5px; font-weight: 500; color: rgba(18, 19, 16, .62); }
.ph-card strong { font: 800 42px/1.05 var(--display); letter-spacing: -0.045em; }
.bar { height: 8px; border-radius: 4px; background: rgba(18, 19, 16, .12); margin: 10px 0 6px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: #121310; }
.ph-label { font-size: 12.5px; font-weight: 600; color: rgba(18, 19, 16, .45); margin: 20px 4px 8px; text-transform: uppercase; letter-spacing: .06em; }
.ph-list { list-style: none; margin: 0; padding: 4px 12px; background: #fff; border-radius: 22px; }
.ph-list li { display: flex; align-items: center; gap: 11px; padding: 10px 0; }
.ph-list li + li { border-top: 1px solid rgba(18, 19, 16, .06); }
.ri { width: 36px; height: 36px; border-radius: 12px; background: #efeee8; display: grid; place-items: center; flex: none; }
.ri .ic { width: 17px; height: 17px; }
.ri.in { background: #e3f6c4; }
.rt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.rt b { font-size: 14.5px; font-weight: 600; }
.rt small { font-size: 12px; color: rgba(18, 19, 16, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra { font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ra.in { color: #2f9e5b; }
.dock { position: absolute; left: 18px; right: 18px; bottom: 18px; height: 60px; border-radius: 30px; background: #121310; display: flex; align-items: center; justify-content: space-around; padding: 0 8px; }
.dock span { width: 40px; height: 40px; display: grid; place-items: center; color: rgba(243, 242, 236, .45); border-radius: 20px; }
.dock .ic { width: 19px; height: 19px; }
.dock .on { color: #f3f2ec; }
.dock .add { width: 46px; height: 46px; border-radius: 23px; background: #d4f25a; color: #121310; }
.dock .add .ic { width: 22px; height: 22px; stroke-width: 2.4; }

/* ───────── features ───────── */
.features { max-width: var(--max); margin: 0 auto; padding: 56px 16px 88px; }
.features h2, .privacy h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.feat { background: var(--surface); border-radius: var(--r); padding: 28px; box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s ease; }
.feat:hover { transform: translateY(-3px); }
.fi { width: 48px; height: 48px; border-radius: 16px; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; margin-bottom: 22px; }
.fi .ic { width: 22px; height: 22px; }
.feat h3 { font-size: 22px; line-height: 1.15; font-weight: 700; margin-bottom: 8px; }
.feat p { color: var(--ink2); font-size: 16px; }
.chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 9px 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; color: var(--ink2); }

/* ───────── privacy band ───────── */
.privacy { background: var(--band); color: var(--band-ink); padding: 96px 16px; }
.privacy-in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.privacy-head p { color: var(--band-ink2); font-size: 19px; margin-top: 18px; max-width: 24em; }
.pv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pv { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: var(--r); background: rgba(243, 242, 236, .05); box-shadow: inset 0 0 0 1px var(--band-line); }
.pi { width: 44px; height: 44px; border-radius: 14px; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; }
.pv h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.pv p { color: var(--band-ink2); font-size: 15.5px; }

/* ───────── final ───────── */
.final { max-width: var(--max); margin: 0 auto; padding: 96px 16px; }
.final-card { background: var(--lime); color: var(--lime-ink); border-radius: 40px; padding: clamp(40px, 7vw, 80px) 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.final-mark { width: 84px; height: 84px; margin-bottom: 26px; filter: drop-shadow(0 14px 24px rgba(18, 19, 16, .22)); }
.final-mark svg { width: 100%; height: 100%; }
.final h2 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1; font-weight: 800; letter-spacing: -0.045em; }
.final p { font-size: 19px; color: rgba(18, 19, 16, .7); max-width: 28em; margin: 16px 0 30px; }
.final .btn.solid { background: #121310; color: #f3f2ed; }

/* ───────── footer ───────── */
.foot { border-top: 1px solid var(--line); }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 36px 16px 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; color: var(--ink2); font-size: 14.5px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; flex: 1; }
.foot a { text-decoration: none; }
.foot nav a:hover, .foot p a:hover { color: var(--ink); }
.foot nav a[aria-current] { color: var(--ink); font-weight: 600; }
.foot .brand { color: var(--ink); }

/* ───────── documents ───────── */
.wrap { max-width: 720px; margin: 0 auto; padding: 48px 16px 80px; }
.wrap h1 { font-size: clamp(36px, 6vw, 52px); line-height: 1.05; font-weight: 800; }
.meta { color: var(--ink2); margin: 10px 0 30px; }
.intro { font-size: 19px; display: grid; gap: 14px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.wrap section { padding: 28px 0 4px; }
.wrap h2 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.wrap p + p { margin-top: 12px; }
.wrap ul { padding-left: 22px; margin: 12px 0; }
.wrap li { margin: 6px 0; }
.wrap a { color: inherit; text-decoration-color: var(--lime-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ───────── 404 ───────── */
.nf-main { min-height: calc(100vh - 220px); max-width: 560px; margin: 0 auto; padding: 72px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.nf-mark { width: 96px; height: 96px; margin-bottom: 18px; }
.nf-code { font: 800 15px/1 var(--text); letter-spacing: .2em; color: var(--ink3); margin-bottom: 14px; }
.nf-main h1 { font-size: clamp(38px, 7vw, 56px); line-height: 1; font-weight: 800; }
.nf-main p:not(.nf-code) { color: var(--ink2); font-size: 18px; margin: 14px 0 28px; }

/* ───────── responsive ───────── */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 64px; }
  .phone { transform: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .privacy-in { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top-in { height: 60px; }
  .links a:not(.lang):not(.login) { display: none; }
  .hero { padding: 32px 16px 56px; }
  .hero h1 { margin: 20px 0 18px; }
  .cta-row .badge { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 12px; }
  .badge > span { font-size: 16px; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .phone { width: min(300px, 82vw); }
  .grid { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .feat { padding: 20px; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; }
  .feat .fi { width: 44px; height: 44px; border-radius: 14px; margin: 0; grid-row: span 2; }
  .feat h3 { font-size: 19px; margin: 2px 0 4px; }
  .feat p { font-size: 15px; }
  .pv-grid { grid-template-columns: 1fr; }
  .privacy, .final { padding-top: 64px; padding-bottom: 64px; }
  .final-card { border-radius: 32px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
