:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1c2430;
  --muted: #5b6675;
  --brand: #1f7a5a;
  --brand-dark: #165c43;
  --border: #e2e6eb;
  --accent: #0b6e99;
  --glow: rgba(31, 122, 90, 0.16);
  --glow-2: rgba(11, 110, 153, 0.14);
  --radius: 10px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161c;
    --surface: #1a2028;
    --text: #e6eaef;
    --muted: #9aa5b3;
    --brand: #3fb58a;
    --brand-dark: #2e9670;
    --border: #2a323d;
    --accent: #38a8d8;
    --glow: rgba(63, 181, 138, 0.16);
    --glow-2: rgba(56, 168, 216, 0.14);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

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

/* Header / navigation */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}

.logo span { color: var(--brand); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
}

/* Main content */
main { flex: 1; }

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin: 0 0 16px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 28px;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}

.btn:hover { background: var(--brand-dark); color: #fff; }

.section { padding: 40px 0; }

.section h2 { margin-top: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 { margin-top: 0; }

.card p { color: var(--muted); margin-bottom: 0; }

.card .tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-header {
  padding: 48px 0 16px;
}

.page-header h1 { margin: 0 0 8px; }

.page-header p { color: var(--muted); margin: 0; }

.prose {
  max-width: 760px;
  padding-bottom: 48px;
}

.prose h2 { margin-top: 2em; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

/* Policy pages: sticky table of contents beside long-form text */
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.policy {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 16px;
}

.toc {
  position: sticky;
  top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 0.9rem;
}

.toc-title {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding-left: 1.3em;
  color: var(--muted);
}

.toc li { margin: 4px 0; }

.toc a {
  color: var(--text);
  text-decoration: none;
}

.toc a:hover { color: var(--brand); }

.policy-body { counter-reset: section; }

.policy-body h2 {
  scroll-margin-top: 24px;
  padding-top: 1.5em;
  border-top: 1px solid var(--border);
}

.policy-body h2::before {
  counter-increment: section;
  content: counter(section, decimal-leading-zero);
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.policy-body h3 { margin: 1.6em 0 0.4em; }

.policy-body h4 {
  margin: 1.4em 0 0.3em;
  font-size: 1rem;
  color: var(--muted);
}

.policy-body li { margin-bottom: 0.5em; }

.lead {
  font-size: 1.15rem;
  color: var(--text);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  margin: 28px 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.facts div {
  background: var(--surface);
  padding: 14px 18px;
}

.facts dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.facts dd {
  margin: 2px 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.definitions {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.definitions li {
  margin: 0;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}

.definitions li:first-child { border-top: 0; }

.definitions strong { color: var(--brand); }

.note {
  border-left: 3px solid var(--brand);
  padding: 4px 0 4px 14px;
  color: var(--muted);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.contact-card p { margin-top: 0; }

@media (max-width: 860px) {
  .policy {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toc { position: static; }
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.site-footer a { color: var(--muted); }

/* Shared helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.btn-ghost:hover {
  background: var(--surface);
  color: var(--brand);
}

.btn-light {
  background: #fff;
  color: #0f2a22;
}

.btn-light:hover { background: #e8f4ef; color: #0f2a22; }

.section-head {
  max-width: 640px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 12px;
}

.section-head p { color: var(--muted); margin: 0; }

/* Home: "Our Why" hero */
.why {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  background:
    radial-gradient(600px 400px at 85% 30%, var(--glow-2), transparent 70%),
    radial-gradient(500px 360px at 10% 90%, var(--glow), transparent 70%);
}

.why::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
  opacity: 0.6;
  pointer-events: none;
}

.why-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.why .eyebrow { letter-spacing: 0.2em; }

.why-title {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 8px 0 28px;
}

.why-title span {
  font-weight: 600;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.why-lead {
  font-size: 1.15rem;
  margin: 0 0 16px;
}

.why-body {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 32px;
}

.why-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Orbit carousel */
.orbit-wrap { padding: 28px; }

.orbit {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.orbit-ring-dashed {
  inset: 9%;
  border: 1px dashed var(--border);
  animation: orbit-spin 60s linear infinite;
}

@keyframes orbit-spin { to { transform: rotate(360deg); } }

.orbit-core {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), var(--brand));
  box-shadow: 0 20px 60px var(--glow-2), 0 0 0 10px var(--glow);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
}

.orbit-core-inner { padding: 0 14%; }

.orbit-progress {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  transform: rotate(-90deg);
  overflow: visible;
}

.orbit-progress circle {
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 302;
  stroke-dashoffset: 302;
}

.orbit.is-playing .orbit-core.is-changing .orbit-progress circle {
  animation: orbit-progress 6s linear forwards;
}

@keyframes orbit-progress { to { stroke-dashoffset: 0; } }

.orbit-title {
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}

.orbit-text {
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0;
  opacity: 0.95;
}

.orbit-core.is-changing .orbit-core-inner {
  animation: orbit-fade 0.5s ease;
}

@keyframes orbit-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.orbit-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.orbit-node svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orbit-node:hover { color: var(--brand); }

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

.orbit-node.is-active {
  transform: translate(-50%, -50%) scale(1.15);
  color: #fff;
  border-color: transparent;
  background: linear-gradient(140deg, var(--accent), var(--brand));
  box-shadow: 0 8px 24px var(--glow-2);
}

.orbit-caption { display: none; }

/* Home: stats strip */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats-grid div {
  padding: 28px 20px;
  border-left: 1px solid var(--border);
}

.stats-grid div:first-child { border-left: 0; padding-left: 0; }

.stats-grid strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1.2;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats-grid span { color: var(--muted); font-size: 0.95rem; }

/* Home: features, process, call to action */
.feature {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 12px 32px var(--glow);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--accent), var(--brand));
  color: #fff;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process { padding-top: 24px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.steps li {
  position: relative;
  padding: 24px 0 0;
  border-top: 2px solid var(--border);
}

.steps li::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.step-num {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.steps h3 { margin: 4px 0 8px; }

.steps p { color: var(--muted); margin: 0; }

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 40px;
  border-radius: calc(var(--radius) * 1.6);
  color: #fff;
  background:
    radial-gradient(400px 200px at 90% 0%, rgba(255, 255, 255, 0.18), transparent 70%),
    linear-gradient(130deg, #0b6e99, #1f7a5a);
}

.cta h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.cta p { margin: 0; opacity: 0.9; }

@media (prefers-reduced-motion: reduce) {
  .orbit-ring-dashed,
  .orbit-core.is-changing .orbit-core-inner { animation: none; }
  .feature, .orbit-node { transition: none; }
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats-grid div:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .why { padding-top: 40px; }
  .orbit-wrap { padding: 28px 12px; }
  .orbit-node { width: 44px; height: 44px; }
  .orbit-node svg { width: 18px; height: 18px; }
  .orbit-text { display: none; }
  .orbit-caption {
    display: block;
    text-align: center;
    color: var(--muted);
    margin: 28px 0 0;
    min-height: 4.8em;
  }
  .cta { padding: 28px 24px; }
}
