:root {
  --primary: #0D9488;
  --primary-soft: rgba(13, 148, 136, 0.12);
  --primary-faint: rgba(13, 148, 136, 0.06);
  --secondary: #F59E0B;
  --tertiary: #8B5CF6;
  --background: #FDFCFB;
  --surface: #FFFFFF;
  --surface-warm: #F5F3F0;
  --text: #1F2937;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --max-width: 1080px;
  --content-width: 760px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-card: 0 8px 24px rgba(31, 41, 55, 0.06);
  --shadow-floating: 0 12px 32px rgba(13, 148, 136, 0.18);
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #4FD1C5;
    --primary-soft: rgba(79, 209, 197, 0.16);
    --primary-faint: rgba(79, 209, 197, 0.08);
    --background: #040B0A;
    --surface: #0C1917;
    --surface-warm: #0E1A17;
    --text: #E7F2EE;
    --text-muted: #9CB4AD;
    --border: #1F3A35;
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover { opacity: 0.75; }

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

/* ---------- Layout ---------- */

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  background: rgba(253, 252, 251, 0.78);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(4, 11, 10, 0.78); }
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.nav a:hover { color: var(--primary); opacity: 1; }

@media (max-width: 640px) {
  .nav { display: none; }
}

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

.hero {
  position: relative;
  padding: 96px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  margin: 0 auto 28px;
  box-shadow: var(--shadow-floating);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--text);
}

.hero h1 .accent { color: var(--primary); }

.hero-tagline {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 auto 36px;
  max-width: 560px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-floating);
}

.btn-primary:hover { transform: translateY(-1px); opacity: 1; }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: var(--primary); opacity: 1; }

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

.section {
  padding: 80px 0;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 12px;
  text-align: center;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  text-align: center;
}

.section-lede {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 56px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Trust band ---------- */

.trust {
  background: var(--surface-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
  text-align: center;
}

.trust-pill {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.trust h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  margin: 0 auto 12px;
  max-width: 620px;
}

.trust p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Disclaimer ---------- */

.disclaimer {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--secondary);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--text);
}

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

.site-footer {
  background: var(--surface-warm);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 80px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.footer-brand p {
  color: var(--text-muted);
  margin: 12px 0 0;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-col a:hover { color: var(--primary); opacity: 1; }

.footer-meta {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Legal / long-form pages ---------- */

.page-header {
  padding: 72px 0 24px;
  text-align: center;
}

.page-header .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 12px;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.page-header .meta {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.legal {
  padding: 24px 0 64px;
}

.legal h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--text);
}

.legal h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 8px;
  color: var(--text);
}

.legal p, .legal li {
  color: var(--text);
  font-size: 16px;
}

.legal ul, .legal ol {
  padding-left: 22px;
  margin: 12px 0 16px;
}

.legal li { margin-bottom: 6px; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.legal table th, .legal table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.legal table th {
  font-family: var(--font-heading);
  font-weight: 600;
  background: var(--primary-faint);
  color: var(--text);
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0 40px;
}

.toc h4 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 24px;
}

@media (max-width: 600px) {
  .toc ol { columns: 1; }
}

.toc a { color: var(--text); }
.toc a:hover { color: var(--primary); opacity: 1; }

.callout {
  background: var(--primary-faint);
  border: 1px solid var(--primary-soft);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 20px 0;
}

.callout strong { color: var(--primary); }
