/* Tokens lifted from BadeKit/Sources/DesignSystem — BadePalette, BadeTypography, BadeMetrics.
   Edit there first, then mirror here, so the site and the app stay one product. */
:root {
  --surface: #efeee9;
  --surface-raised: #f7f6f3;
  --surface-sunken: #e7e5de;
  --ink: #171814;
  --ink-muted: #5e6157;
  --ink-faint: #6b6d65;
  --accent: #1f6f5c;
  --accent-pressed: #14513f;
  --border: #e7e5de;
  --net: #0e0f0c;
  --warning: #975919;

  --xxs: 4px;  --xs: 8px;  --sm: 12px;  --md: 16px;
  --lg: 20px;  --xl: 24px; --xxl: 32px; --xxxl: 48px;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px;

  --f-wordmark: 64px; --f-display: 40px; --f-title: 22px;
  --f-headline: 17px; --f-body: 16px; --f-caption: 13px; --f-label: 11px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --measure: 68ch;
  --page: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0e0f0c;
    --surface-raised: #171814;
    --surface-sunken: #191a16;
    --ink: #f2f1ec;
    --ink-muted: #8d9086;
    --ink-faint: #787c72;
    --accent: #4fa98f;
    --accent-pressed: #6fc4ab;
    --border: #2a2c25;
    --net: #ffffff;
    --warning: #e09a4e;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--f-body);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The net: pitch 17 from NetMetrics, faded from the centre the way the app's falloff does. */
.net {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--net) 1px, transparent 1px),
    linear-gradient(to bottom, var(--net) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.06;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 10%, transparent 75%);
}
@media (prefers-color-scheme: dark) { .net { opacity: 0.09; } }

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--xl);
}

/* ---- top bar ---- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--xl) 0;
}

.mark {
  font-size: var(--f-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.mark .dot { color: var(--accent); }

.langs { display: flex; gap: var(--xxs); }
.lang {
  font: inherit;
  font-size: var(--f-caption);
  font-weight: 600;
  padding: var(--xxs) var(--sm);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  min-height: 32px;
}
.lang[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

/* ---- hero ---- */
.hero { padding: var(--xxl) 0 var(--xxxl); }

.hero-mark {
  font-size: clamp(48px, 13vw, var(--f-wordmark));
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 var(--lg);
}
.hero-mark .dot { color: var(--accent); }

.tagline {
  font-size: clamp(24px, 6vw, var(--f-display));
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--md);
  max-width: 18ch;
}

.sub {
  font-size: var(--f-headline);
  color: var(--ink-muted);
  margin: 0 0 var(--xl);
  max-width: 46ch;
}

/* ---- buttons ---- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: var(--xs);
  min-height: 44px;
  padding: var(--md) var(--xl);
  border-radius: var(--r-xl);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cta:hover { background: var(--accent-pressed); }
.cta:active { transform: scale(0.98); }
@media (prefers-color-scheme: dark) { .cta { color: #0e0f0c; } }

.note {
  font-size: var(--f-caption);
  color: var(--ink-faint);
  margin-top: var(--sm);
}

/* ---- sections ---- */
section { padding: var(--xxl) 0; border-top: 1px solid var(--border); }

h2 {
  font-size: var(--f-title);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 var(--lg);
}

h3 {
  font-size: var(--f-headline);
  font-weight: 600;
  margin: var(--xl) 0 var(--xs);
}

p { margin: 0 0 var(--md); max-width: var(--measure); color: var(--ink-muted); }
p.lead { color: var(--ink); }

.eyebrow {
  font-size: var(--f-label);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 var(--xs);
}

/* ---- feature list ---- */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--md); }
@media (min-width: 620px) { .features { grid-template-columns: 1fr 1fr; gap: var(--md); } }

.features li {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--lg);
}
.features strong { display: block; margin-bottom: var(--xxs); font-weight: 600; color: var(--ink); }
/* Direct children only — the spans inside <strong> are the title, not the description. */
.features li > span { color: var(--ink-muted); font-size: var(--f-caption); }

/* ---- privacy pull-quote ---- */
.claim {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--xl);
  margin: 0;
}
.claim p:last-child { margin-bottom: 0; }

/* ---- long-form legal copy ---- */
.doc h2 { margin-top: var(--xxl); }
.doc ul { color: var(--ink-muted); max-width: var(--measure); padding-left: var(--lg); }
.doc li { margin-bottom: var(--xs); }
.doc a { color: var(--accent); }
.updated { font-size: var(--f-caption); color: var(--ink-faint); }

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: var(--xl) 0 var(--xxxl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--md);
  align-items: center;
  justify-content: space-between;
  font-size: var(--f-caption);
  color: var(--ink-faint);
}
footer a { color: var(--ink-muted); text-decoration: none; margin-right: var(--md); }
footer a:hover { color: var(--accent); }

/* ---- language switching ---- */
[data-lang] { display: none; }
html[lang="en"] [data-lang="en"], html[lang="ka"] [data-lang="ka"] { display: revert; }
html[lang="en"] li[data-lang="en"], html[lang="ka"] li[data-lang="ka"] { display: list-item; }

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

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
