/* Countr marketing + legal site. Dark theme mirrors the app's palette. */

:root {
  --bg: #0e0f11;
  --surface: #16181c;
  --surface-elevated: #1f2228;
  --accent: #4fb8b0;
  --accent-dim: rgba(79, 184, 176, 0.12);
  --text-primary: #f2f0ea;
  --text-secondary: #a0a4ab;
  --text-tertiary: #6b6f76;
  --stroke: #2a2d33;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1080px;
  --readw: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 15, 17, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--stroke);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--text-primary);
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #2e7d7a);
  display: grid; place-items: center;
  color: #04201e; font-weight: 800; font-size: 17px;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text-secondary); font-size: 15px; }
.nav a:hover { color: var(--text-primary); text-decoration: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #04201e; }
.btn-primary:hover { text-decoration: none; filter: brightness(1.06); }
.btn-ghost { border-color: var(--stroke); color: var(--text-primary); }
.btn-ghost:hover { text-decoration: none; border-color: var(--accent); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  text-align: center;
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 680px; height: 680px;
  background: radial-gradient(circle, var(--accent-dim), transparent 62%);
  pointer-events: none;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 auto 20px;
  max-width: 16ch;
  font-weight: 800;
}
.hero .lede {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Section ---------- */

.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 48px; }
.section-head h2 {
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  font-weight: 800;
}
.section-head p { color: var(--text-secondary); margin: 0; font-size: 18px; }

/* ---------- Feature grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.card p { margin: 0; color: var(--text-secondary); font-size: 16px; }

/* ---------- Stats ---------- */

.stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  padding: 8px 0 8px;
}
.stat { text-align: center; }
.stat .num { font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; }
.stat .label { color: var(--text-secondary); font-size: 14px; margin-top: 8px; letter-spacing: 0.04em; }

/* ---------- CTA band ---------- */

.cta {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 56px 32px;
}
.cta h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 14px; font-weight: 800; }
.cta p { color: var(--text-secondary); margin: 0 0 28px; font-size: 18px; }

/* ---------- Legal / content pages ---------- */

.doc { padding: 64px 0 88px; }
.doc-inner { max-width: var(--readw); margin: 0 auto; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 8px; letter-spacing: -0.01em; }
.doc .updated { color: var(--text-tertiary); font-size: 15px; margin: 0 0 36px; }
.doc h2 {
  font-size: 23px;
  margin: 44px 0 14px;
  padding-top: 8px;
  font-weight: 700;
}
.doc h3 { font-size: 18px; margin: 28px 0 10px; font-weight: 700; }
.doc p, .doc li { color: var(--text-secondary); }
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text-primary); }

.callout {
  background: var(--accent-dim);
  border: 1px solid rgba(79, 184, 176, 0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 36px;
}
.callout p { margin: 0 0 10px; color: var(--text-primary); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--accent); }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 18px;
}
.contact-card h3 { margin: 0 0 6px; color: var(--text-primary); }
.contact-card p { margin: 0; }
.contact-email {
  display: inline-block;
  margin-top: 8px;
  font-size: 19px;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 40px 0;
  margin-top: 24px;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer .copy { color: var(--text-tertiary); font-size: 14px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-secondary); font-size: 14px; }
.footer-nav a:hover { color: var(--text-primary); text-decoration: none; }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .nav { gap: 16px; }
  .nav .nav-link-extra { display: none; }
  .stats { gap: 36px; }
  .hero { padding: 64px 0 48px; }
}
