/* ===== Fonts (self-hosted, SIL Open Font License) ===== */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

/* ===== Tokens ===== */
:root {
  --ink: #0d0f0e;
  --ink-2: #171a19;
  --paper: #fbfaf7;
  --paper-2: #f2f0ea;
  --white: #ffffff;
  --text: #121413;
  --muted: #545a57;
  --muted-light: #a4aba7;
  --line: #e3e0d7;
  --line-dark: #2a2e2c;
  --accent: #0f9d6b;
  --accent-dark: #0b7a53;
  --accent-soft: #e3f4ec;
  --accent-light: #5fe0a8;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1160px;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-weight: 500; }
h1, h2 { font-family: var(--serif); letter-spacing: -.015em; }

/* ===== Icons ===== */
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-dark);
}

/* ===== Header ===== */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 15, 14, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
header.site .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .1em; text-transform: uppercase;
}
.logo::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--accent-light); }
.logo:hover { text-decoration: none; }
nav.main a { color: var(--muted-light); margin-left: 28px; font-size: 14px; font-weight: 500; transition: color .2s; }
nav.main a:hover { color: #fff; text-decoration: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 8px;
  background: var(--accent); border: 1px solid var(--accent);
  color: #fff; font-weight: 600; font-size: 15px;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); text-decoration: none; }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.25); color: #fff; }
.btn.ghost:hover { border-color: #fff; }
.btn .ic { width: 18px; height: 18px; }

/* ===== Eyebrow ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.dark .eyebrow, .hero .eyebrow { color: var(--accent-light); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: 140px 0 136px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 420px at 92% 0%, rgba(15,157,107,.20), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 25%);
}
.hero .container { position: relative; }
.hero h1 {
  font-size: clamp(42px, 6.4vw, 80px); line-height: 1.02; font-weight: 400;
  max-width: 920px;
}
.hero h1 em { font-style: italic; color: var(--accent-light); }
.hero .lead { font-size: 19px; color: #c5cbc8; max-width: 640px; margin-top: 30px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }

.facts {
  margin-top: 96px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}
.fact { padding: 28px 24px 34px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.fact .k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 8px; }
.fact .v { font-size: 16px; color: #fff; font-weight: 500; }

/* ===== Sections ===== */
section { padding: 112px 0; }
section.alt { background: var(--paper-2); }
section.dark { background: var(--ink); color: #fff; }
section h2 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.08; margin-bottom: 20px; font-weight: 400; }
.intro { font-size: 18px; color: var(--muted); max-width: 660px; }
.dark .intro { color: var(--muted-light); }
.section-head { margin-bottom: 56px; }
.section-head.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.section-head.split h2 { margin-bottom: 0; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; }
.about .lede { font-family: var(--serif); font-size: 26px; line-height: 1.4; color: var(--text); margin-bottom: 24px; }
.about p { color: var(--muted); font-size: 17px; }
.about p + p { margin-top: 16px; }
.about-points { list-style: none; margin-top: 36px; border-top: 1px solid var(--line); }
.about-points li { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.about-points li b { min-width: 150px; font-weight: 600; }
.about-points li span { color: var(--muted); }

/* ===== Business model diagram ===== */
.model {
  display: grid; grid-template-columns: 1fr 56px 1fr 56px 1fr; align-items: stretch;
}
.model-col {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.model-col h3 { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.model-col ul { list-style: none; }
.model-col li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.model-col li:first-child { border-top: 0; padding-top: 0; }
.model-col li .ic { color: var(--accent-dark); margin-top: 1px; }
.model-col li small { display: block; color: var(--muted); font-size: 13px; }
.model-col.core { background: var(--ink); border-color: var(--ink); color: #fff; position: relative; overflow: hidden; }
.model-col.core::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(95,224,168,.22), transparent 65%);
}
.model-col.core h3 { color: var(--accent-light); }
.model-col.core li { border-color: var(--line-dark); }
.model-col.core li .ic { color: var(--accent-light); }
.model-col.core li small { color: var(--muted-light); }
.model-arrow { display: flex; align-items: center; justify-content: center; color: var(--accent); }
.model-arrow .ic { width: 26px; height: 26px; }

.flows { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.flow-box { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); background: var(--white); }
.flow-box h4 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.flow-box h4 .tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 5px; }
.flow-box.in h4 .tag { background: var(--accent-soft); color: var(--accent-dark); }
.flow-box.out h4 .tag { background: #efece4; color: #6a6352; }
.flow-box ul { list-style: none; }
.flow-box li { position: relative; padding: 6px 0 6px 20px; color: var(--muted); font-size: 15px; }
.flow-box li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 2px; background: var(--accent); }
.flow-box.out li::before { background: #b5ab92; }

/* ===== Traffic sources ===== */
.sources { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; }
.source {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.source:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(13,15,14,.07); }
.source .icon-box { margin-bottom: 24px; }
.source h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.2; margin-bottom: 12px; }
.source p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.chip {
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--line); color: #2b2f2d;
}
.source.feature { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.source.feature .icon-box { background: rgba(255,255,255,.14); color: #fff; }
.source.feature p { color: rgba(255,255,255,.8); }
.source.feature .chip { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; }

/* ===== Partnerships (dark) ===== */
section.partners { position: relative; overflow: hidden; }
section.partners::before {
  content: ""; position: absolute; left: -240px; bottom: -260px; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(15,157,107,.22), transparent 65%); pointer-events: none;
}
section.partners .container { position: relative; }
.partners-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.partners-grid .intro { margin-bottom: 32px; }
.partner-cards { display: grid; gap: 20px; }
.partner-card { border: 1px solid var(--line-dark); background: var(--ink-2); border-radius: var(--radius); padding: 30px; }
.partner-card h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 8px; }
.partner-card > p { color: var(--muted-light); font-size: 15px; margin-bottom: 18px; }
.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.checks li { display: flex; gap: 10px; font-size: 15px; color: #e3e7e5; }
.checks .ic { width: 18px; height: 18px; color: var(--accent-light); margin-top: 3px; }

/* ===== Standards ===== */
.standards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.standard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.standard-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.standard-head h3 { font-family: var(--serif); font-size: 26px; }
.standard ol { list-style: none; counter-reset: s; }
.standard li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.standard li::before { content: counter(s, decimal-leading-zero); font-size: 12px; font-weight: 700; color: var(--accent-dark); letter-spacing: .06em; padding-top: 3px; }
.standard li b { color: var(--text); font-weight: 600; }

/* ===== Company info & contact ===== */
.company { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; align-items: stretch; }
.registry { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 32px; }
.registry dl { display: grid; grid-template-columns: 200px 1fr; }
.registry dt, .registry dd { padding: 18px 0; border-top: 1px solid var(--line); }
.registry dt:first-of-type, .registry dd:first-of-type { border-top: 0; }
.registry dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 21px; }
.registry dd { font-size: 16px; font-weight: 500; }
.contact-card {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 36px;
  display: flex; flex-direction: column; gap: 22px;
}
.contact-card h3 { font-family: var(--serif); font-size: 30px; font-weight: 400; }
.contact-card p { color: var(--muted-light); font-size: 15px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.contact-line .ic { color: var(--accent-light); margin-top: 2px; }
.contact-line small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 2px; }
.contact-line a { color: #fff; font-weight: 500; }

/* ===== Footer ===== */
footer.site { background: var(--ink); color: var(--muted-light); padding: 56px 0 44px; font-size: 14px; border-top: 1px solid var(--line-dark); }
footer.site .top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line-dark); }
footer.site nav a { color: var(--muted-light); margin-right: 22px; }
footer.site nav a:hover { color: #fff; text-decoration: none; }
footer.site .legal { line-height: 1.9; }
footer.site .legal a { color: var(--muted-light); }

/* ===== Legal pages ===== */
.legal-page { padding: 88px 0 112px; }
.legal-page .container { max-width: 780px; }
.legal-page h1 { font-size: clamp(38px, 5vw, 52px); font-weight: 400; line-height: 1.1; margin-bottom: 10px; }
.legal-page .updated { color: var(--muted); margin-bottom: 44px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-page h2 { font-family: var(--sans); font-size: 19px; font-weight: 600; letter-spacing: 0; margin: 36px 0 12px; }
.legal-page p, .legal-page li { color: #2f3331; margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .about, .partners-grid, .section-head.split, .company { grid-template-columns: 1fr; gap: 32px; }
  .model { grid-template-columns: 1fr; }
  .model-arrow { height: 48px; }
  .model-arrow .ic { transform: rotate(90deg); }
  .sources { grid-template-columns: 1fr; }
  .standards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  nav.main { display: none; }
  section { padding: 76px 0; }
  .hero { padding: 88px 0 88px; }
  .facts { grid-template-columns: 1fr; margin-top: 64px; }
  .fact, .fact + .fact { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .flows, .checks { grid-template-columns: 1fr; }
  .registry { padding: 8px 20px; }
  .registry dl { grid-template-columns: 1fr; }
  .registry dt { padding-bottom: 0; }
  .registry dd { border-top: 0; padding-top: 4px; }
  .registry dt:first-of-type { border-top: 0; }
  .standard, .contact-card, .partner-card { padding: 26px 22px; }
  .about-points li { flex-direction: column; gap: 2px; }
}
