/* ===================================================================
   Curve — shared stylesheet
   =================================================================== */

:root {
  --paper: #FAFAF9;
  --paper-alt: #F3F2EF;
  --ink: #1B1D21;
  --slate: #5B6169;
  --slate-light: #9297A0;
  --hair: #E4E3DE;
  --accent: #2C4A6E;
  --accent-tint: #EEF2F6;
  --max-w: 1040px;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; display: block; }

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

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

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

.text-slate { color: var(--slate); }

.link-accent {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.link-accent:hover { border-bottom-color: var(--accent); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hair);
}

.site-header .container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.9rem;
}

.nav a {
  color: var(--slate);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.nav a.is-active { border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hair);
    padding: 16px 24px 20px;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 112px;
}

.hero-flex-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-copy { flex: 1 1 520px; max-width: 560px; }

.hero-visual {
  flex: 1 1 380px;
  max-width: 440px;
  display: flex;
  justify-content: center;
}

.hero-globe {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 100%);
  mask-image: radial-gradient(circle, #000 55%, transparent 100%);
}

@media (max-width: 860px) {
  .hero-flex-inner { flex-direction: column; align-items: flex-start; }
  .hero-visual { display: none; }
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-globe-inline {
  display: none;
  flex-shrink: 0;
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 100%);
  mask-image: radial-gradient(circle, #000 55%, transparent 100%);
}

@media (max-width: 860px) {
  .hero-globe-inline {
    display: block;
    width: clamp(110px, 34vw, 200px);
    aspect-ratio: 1 / 1;
  }
}

.hero-kicker { margin-bottom: 18px; }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin-bottom: 18px;
}

.hero .subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.82;
  margin-bottom: 22px;
  max-width: 640px;
}

.hero .lede {
  color: var(--slate);
  max-width: 560px;
}

.hero.small { padding: 64px 0 72px; }
.hero.small h1 { font-size: clamp(2rem, 4vw, 2.6rem); }

/* ---------- Sections ---------- */

section.block {
  border-top: 1px solid var(--hair);
  padding: 88px 0;
}

section.block.alt { background: #fff; }

.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: 12px; }
.section-head p { color: var(--slate); max-width: 560px; }

/* ---------- Cards ---------- */

.card {
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 32px;
  background: #fff;
}

.card + .card { margin-top: 20px; }

.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.card h3 {
  font-size: 1.15rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.badge.live {
  color: #0F6B4C;
  background: #EAF6F0;
  border: 1px solid #CFE9DD;
}

.badge.soon {
  color: var(--slate);
  background: var(--paper-alt);
  border: 1px solid var(--hair);
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.card p.desc {
  color: var(--slate);
  max-width: 520px;
  margin-bottom: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 700px) {
  .card-grid { grid-template-columns: 1fr; }
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  color: var(--slate);
}
.feature-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--slate-light);
}

/* ---------- Principles / list blocks ---------- */

.principle {
  padding: 24px 0;
  border-top: 1px solid var(--hair);
}
.principle:first-of-type { border-top: none; padding-top: 0; }
.principle h3 { font-size: 1rem; margin-bottom: 8px; }
.principle p { color: var(--slate); max-width: 560px; }

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

.legal h2 {
  font-size: 1.1rem;
  margin: 36px 0 12px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--slate); }
.legal ul { padding-left: 20px; }
.legal .updated {
  color: var(--slate-light);
  font-size: 0.85rem;
  margin-bottom: 36px;
}

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

.site-footer {
  border-top: 1px solid var(--hair);
}

.site-footer .container {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--slate);
}

.footer-brand p:first-child {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-links .row { display: flex; gap: 20px; }

@media (max-width: 560px) {
  .footer-links { align-items: flex-start; }
}
