:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --card: #ffffff;
  --ink: #0e1726;
  --ink-2: #3a475c;
  --muted: #667389;
  --line: #e4e9f1;
  --brand: #1d6ef2;
  --brand-ink: #1450bd;
  --accent: #0fb37d;
  --lime: #b6f23d;
  --night: #0f1424;
  --shadow: 0 1px 2px rgba(16, 38, 73, .04), 0 10px 30px rgba(16, 38, 73, .07);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-soft: #10172b;
    --card: #131b31;
    --ink: #eef2fa;
    --ink-2: #c3cbdb;
    --muted: #8b96ad;
    --line: #232d47;
    --brand: #5b95ff;
    --brand-ink: #8db4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Sora', 'Inter', sans-serif; line-height: 1.15; letter-spacing: -.015em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700;
  color: var(--brand); margin-bottom: 12px;
}
.muted { color: var(--muted); }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Sora'; font-weight: 800; font-size: 18px; text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-size: 15px;
}
.navlinks { display: flex; gap: 26px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.navlinks a { text-decoration: none; }
.navlinks a:hover { color: var(--brand); }
@media (max-width: 760px) { .navlinks { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px;
  font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }

/* Hero */
.hero { padding: 80px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 520px; z-index: -1;
  background:
    radial-gradient(600px 300px at 80% 30%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(520px 260px at 10% 40%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}
.hero h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; max-width: 760px; margin-bottom: 18px; }
.hero h1 span {
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-2); max-width: 620px; margin-bottom: 28px; }
.btnrow { display: flex; gap: 12px; flex-wrap: wrap; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 48px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.stat b { display: block; font-family: 'Sora'; font-size: 26px; }
.stat span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
section.block { padding: 72px 0; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 10px; }
.section-head p { color: var(--ink-2); }

/* Product cards */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column;
}
.card .icon { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 16px; display: grid; place-items: center; font-family: 'Sora'; font-weight: 800; font-size: 22px; color: #fff; }
.card .icon img { width: 56px; height: 56px; border-radius: 14px; }
.card h3 { font-size: 20px; margin-bottom: 4px; }
.card .kind { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.card p { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; }
.card .foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill.live { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.pill.new { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.link { font-weight: 600; font-size: 14px; color: var(--brand); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr; } }
.principle h3 { font-size: 17px; margin-bottom: 6px; }
.principle p { color: var(--ink-2); font-size: 15px; }
.principle .n { font-family: 'Sora'; font-weight: 800; color: var(--brand); font-size: 14px; margin-bottom: 8px; }

/* Founder */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.avatar { width: 88px; height: 88px; border-radius: 22px; display: grid; place-items: center; font-family: 'Sora'; font-weight: 800; font-size: 30px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.founder h3 { font-size: 22px; }
.founder p { color: var(--ink-2); margin-top: 10px; max-width: 680px; }
@media (max-width: 600px) { .founder { grid-template-columns: 1fr; } }

/* Contact */
.contact { text-align: center; }
.contact h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 10px; }
.contact p { color: var(--ink-2); max-width: 560px; margin: 0 auto 24px; }
.contact .btnrow { justify-content: center; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer.site .row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--brand); }

/* FreeGB page */
.app-hero { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin-bottom: 8px; }
.app-hero img { width: 96px; height: 96px; border-radius: 24px; box-shadow: var(--shadow); }
@media (max-width: 600px) { .app-hero { grid-template-columns: 1fr; } }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p, .feature li { color: var(--ink-2); font-size: 15px; }
.feature ul { padding-left: 18px; margin-top: 6px; }
.callout { border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 14px 14px 0; padding: 18px 20px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.callout p + p { margin-top: 10px; }

/* Long-form (privacy policy) */
.doc { max-width: 760px; padding: 48px 0 72px; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 6px; }
.doc h2 { font-size: 21px; margin: 34px 0 10px; }
.doc h3 { font-size: 17px; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 22px; margin: 8px 0; }
.doc li + li { margin-top: 6px; }
.doc code { font-size: 14px; background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
.doc a { color: var(--brand); }
.summary { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 22px 0; }
