:root {
  --deep: #0B3D3D;
  --teal: #1A6B6B;
  --sage: #7BA38A;
  --sand: #F4EFE6;
  --copper: #C4773A;
  --cream: #FAF8F4;
  --ink: #0F2929;
  --muted: #5C7373;
  --line: rgba(26, 107, 107, 0.16);
  --shadow: 0 20px 50px rgba(11, 61, 61, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}
a { color: var(--teal); text-decoration: none; font-weight: 600; }
a:hover { color: var(--copper); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1140px, 92vw); margin: 0 auto; }

.ribbon {
  background: var(--deep);
  color: rgba(255,255,255,0.75);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.55rem 1rem;
}
.ribbon strong { color: var(--sage); }

.site-header {
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--deep);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.logo-link img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; gap: 1.4rem; align-items: center; }
.site-nav a { color: var(--ink); font-size: 0.92rem; }
.nav-cta {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  background: var(--teal);
  color: #fff !important;
}
.nav-cta:hover { background: var(--deep); color: #fff !important; }
.header-x-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink) !important;
}
.header-x-link:hover { border-color: var(--teal); color: var(--teal) !important; }
.contact-x-btn { margin-left: 0.5rem; }
.footer-x-pill {
  display: inline-flex;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.85rem;
}
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.about-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
}
.about-card h3 { font-family: var(--font-display); margin: 0 0 0.5rem; color: var(--deep); }
.about-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 3rem;
}
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 0.85rem;
}
.hero-split h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--deep);
}
.hero-split h1 em {
  font-style: italic;
  color: var(--teal);
}
.hero-lede { color: var(--muted); margin: 0 0 1.5rem; max-width: 32rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  padding: 0.7rem 1.25rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.94rem;
}
.btn-teal { background: var(--teal); color: #fff !important; box-shadow: var(--shadow); }
.btn-outline { border: 1.5px solid var(--line); color: var(--ink) !important; background: #fff; }

.spend-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.panel-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.stat {
  background: var(--sand);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}
.stat .val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--teal);
  font-weight: 700;
}
.stat .lbl { font-size: 0.78rem; color: var(--muted); }
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 56px;
}
.bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--teal), var(--sage));
}
.bar:nth-child(1) { height: 40%; }
.bar:nth-child(2) { height: 65%; }
.bar:nth-child(3) { height: 52%; }
.bar:nth-child(4) { height: 78%; }
.bar:nth-child(5) { height: 60%; }
.bar:nth-child(6) { height: 88%; }

.section { padding: 3.5rem 0; }
.section-sand { background: var(--sand); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  color: var(--deep);
}
.section-intro { color: var(--muted); max-width: 36rem; margin: 0 0 2rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  color: var(--deep);
}
.feature-card p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.feature-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: 0.5rem;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.pipe-step {
  text-align: center;
  padding: 1rem 0.5rem;
}
.pipe-num {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}
.pipe-step h3 { font-size: 0.95rem; margin: 0 0 0.35rem; color: var(--deep); }
.pipe-step p { font-size: 0.82rem; color: var(--muted); margin: 0; }

.contact-band {
  background: linear-gradient(135deg, var(--deep), var(--teal));
  color: #fff;
  text-align: center;
  padding: 3rem 0;
}
.contact-band h2 { font-family: var(--font-display); margin: 0 0 0.5rem; }
.contact-band p { opacity: 0.8; margin: 0 0 1.25rem; }
.contact-band .btn-teal { background: #fff; color: var(--deep) !important; }

.site-footer {
  background: var(--deep);
  color: rgba(255,255,255,0.6);
  padding: 2rem 0 1rem;
  font-size: 0.88rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1rem;
}
.footer-nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,0.7); }
.footer-nav a:hover { color: var(--sage); }
.footer-copy { font-size: 0.8rem; opacity: 0.5; }

.legal-page { padding: 3rem 0 4rem; max-width: 42rem; }
.legal-page h1 { font-family: var(--font-display); color: var(--deep); }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 1rem 4vw;
  }
  .site-nav.open { display: flex; }
  .site-header { position: relative; }
}
