:root {
  --cream: #fbfaf6;
  --cream-soft: #f4f2ec;
  --ink: #2b2b29;
  --ink-70: rgba(43, 43, 41, 0.7);
  --ink-40: rgba(43, 43, 41, 0.4);
  --ink-10: rgba(43, 43, 41, 0.1);
  --gray-text: #494444;
  --mint: #c8e1dd;
  --mint-soft: rgba(200, 225, 221, 0.5);
  --sage: #a5beba;
  --beige: #e4e2d9;
  --tan: #c8bcae;
  --olive: #918f66;
  --teal: #387478;
  --teal-dark: #296a6c;
  --white: #ffffff;

  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }

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

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.tag-light { background: var(--beige); color: var(--olive); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 116, 120, 0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-10);
}
.btn-ghost:hover {
  background: var(--white);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 246, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-10);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-70);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle.open span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 32px 20px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-70);
  border-bottom: 1px solid var(--ink-10);
}
.nav-mobile .btn {
  margin-top: 12px;
  align-self: flex-start;
  border-bottom: none;
  padding: 12px 24px;
}

/* Hero */
.hero {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 120px 32px 90px;
  text-align: center;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(closest-side, var(--mint-soft), transparent 70%);
  z-index: -1;
  filter: blur(10px);
}
.hero-graphic {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 640px;
  max-width: 90vw;
  opacity: 0.85;
  z-index: -1;
  transform: translateX(-50%) translateY(0);
  transition: transform 0.2s ease-out;
  mask-image: radial-gradient(closest-side, black 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(closest-side, black 45%, transparent 85%);
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-sub {
  margin-top: 26px;
  font-size: 19px;
  color: var(--gray-text);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  justify-content: center;
}

/* Ticker */
.ticker-section {
  padding: 50px 0 70px;
  border-top: 1px solid var(--ink-10);
  border-bottom: 1px solid var(--ink-10);
}
.ticker {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.ticker-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scroll 90s linear infinite;
}
.ticker-track span {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink-40);
  white-space: nowrap;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Ecosystem */
.ecosystem {
  max-width: 1240px;
  margin: 0 auto;
  padding: 110px 32px;
}
.section-head {
  max-width: 620px;
  margin-bottom: 60px;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-head p {
  color: var(--gray-text);
  font-size: 17px;
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.eco-card {
  background: var(--white);
  border: 1px solid var(--ink-10);
  border-radius: 20px;
  padding: 36px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.eco-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(43, 43, 41, 0.08);
}
.eco-card--beta { background: var(--mint-soft); border-color: transparent; }
.eco-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.eco-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal-dark);
  background: var(--mint-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.eco-card--beta .eco-tag { background: var(--white); }
.eco-index {
  display: block;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--teal);
}
.eco-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eco-card p {
  color: var(--gray-text);
  font-size: 15px;
  line-height: 1.6;
}
.pill {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  background: var(--teal);
  color: var(--cream);
  padding: 4px 10px;
  border-radius: 999px;
}

.eco-media {
  margin-top: 22px;
  border-radius: 12px;
  overflow: hidden;
  height: 150px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.eco-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
  filter: saturate(0.95);
}
.eco-card:hover .eco-media img {
  transform: scale(1.14) rotate(0.5deg);
  filter: saturate(1.15);
}
.eco-card:hover .eco-media {
  animation: eco-scramble 0.5s steps(6) 1;
}
@keyframes eco-scramble {
  0% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  16% { clip-path: polygon(0 0, 92% 0, 100% 100%, 6% 100%); }
  32% { clip-path: polygon(4% 0, 100% 4%, 94% 100%, 0 96%); }
  48% { clip-path: polygon(0 4%, 96% 0, 100% 92%, 6% 100%); }
  64% { clip-path: polygon(6% 0, 100% 6%, 92% 100%, 0 94%); }
  82% { clip-path: polygon(0 0, 100% 2%, 98% 100%, 2% 100%); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

/* Building taste */
.taste {
  background: var(--ink);
  color: var(--cream);
  padding: 110px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1240px;
  margin: 0 auto;
  border-radius: 28px;
}
.taste-copy h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  line-height: 1.15;
}
.taste-copy p {
  color: rgba(251, 250, 246, 0.7);
  font-size: 16px;
  max-width: 420px;
}
.taste-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.taste-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(251, 250, 246, 0.15);
  font-family: var(--font-serif);
  font-size: 22px;
}
.taste-list li:last-child { border-bottom: none; }
.taste-list .num {
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--mint);
  font-weight: 600;
}

/* Stats */
.stats-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 110px 32px 90px;
}
.stats-section .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 640px;
}
.network-graphic {
  max-width: 900px;
  margin: 50px auto 70px;
}
.network-graphic svg { display: block; width: 100%; height: auto; }
.network-graphic #networkLines path {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  transition: stroke-dashoffset 1.2s ease;
}
.network-graphic.in-view #networkLines path {
  stroke-dashoffset: 0;
}
.network-graphic #networkNodes circle {
  opacity: 0;
  transform-origin: center;
  transform: scale(0.4);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.network-graphic.in-view #networkNodes circle {
  opacity: 1;
  transform: scale(1);
}
.network-graphic #networkLines path:nth-child(1) { transition-delay: 0.05s; }
.network-graphic #networkLines path:nth-child(2) { transition-delay: 0.15s; }
.network-graphic #networkLines path:nth-child(3) { transition-delay: 0.25s; }
.network-graphic #networkLines path:nth-child(4) { transition-delay: 0.35s; }
.network-graphic #networkLines path:nth-child(5) { transition-delay: 0.45s; }
.network-graphic #networkLines path:nth-child(6) { transition-delay: 0.5s; }
.network-graphic #networkLines path:nth-child(7) { transition-delay: 0.55s; }
.network-graphic #networkLines path:nth-child(8) { transition-delay: 0.6s; }
.network-graphic #networkLines path:nth-child(9) { transition-delay: 0.65s; }
.network-graphic #networkLines path:nth-child(10) { transition-delay: 0.7s; }
.network-graphic #networkNodes circle { transition-delay: 0.6s; }
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}
.stats-cta {
  margin-top: 70px;
  padding-top: 60px;
  border-top: 1px solid var(--ink-10);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stats-cta p {
  font-family: var(--font-serif);
  font-size: 24px;
  letter-spacing: -0.01em;
}
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.4vw, 46px);
  color: var(--teal-dark);
  letter-spacing: -0.02em;
}
.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--gray-text);
}

/* Quote */
.quote {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 32px 140px;
  text-align: center;
}
.quote p:first-child {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.quote em {
  font-style: italic;
  color: var(--teal);
}
.quote-sub {
  margin-top: 20px;
  color: var(--gray-text);
  font-size: 17px;
}

/* CTA */
.cta {
  position: relative;
  max-width: 900px;
  margin: 0 auto 120px;
  padding: 90px 40px;
  background: var(--mint-soft);
  border-radius: 28px;
  text-align: center;
  overflow: hidden;
}
.cta-dither {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}
.cta-content {
  position: relative;
  z-index: 1;
}
.cta h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.02em;
  margin-bottom: 34px;
  line-height: 1.15;
}

/* Footer */
.footer {
  border-top: 1px solid var(--ink-10);
  padding: 50px 32px 40px;
}
.footer-tagline {
  max-width: 700px;
  margin: 0 auto 50px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.footer-top {
  max-width: 1240px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  color: var(--ink-70);
}
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-40);
}
.socials { display: flex; gap: 16px; }
.socials a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--ink-10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.socials a:hover { background: var(--ink); color: var(--cream); }

/* Testimonials */
.testimonials {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 110px;
  text-align: center;
}
.testimonials .tag { margin-bottom: 40px; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
.testimonial-grid blockquote {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--ink-10);
  border-radius: 20px;
  padding: 32px;
}
.testimonial-grid p {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.testimonial-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.testimonial-byline img {
  border-radius: 50%;
  flex-shrink: 0;
}
.testimonial-byline cite {
  font-style: normal;
  font-size: 13px;
  color: var(--ink-40);
}

/* Hero line reveal */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.reveal-line {
  display: block;
  overflow: hidden;
}
.reveal-line span {
  display: block;
  transform: translateY(110%);
  animation: line-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.reveal-line:nth-child(1) span { animation-delay: 0.05s; }
.reveal-line:nth-child(2) span { animation-delay: 0.18s; }
.reveal-line:nth-child(3) span { animation-delay: 0.31s; }
@keyframes line-up {
  to { transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.eco-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.eco-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.eco-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.stats .reveal:nth-child(2) { transition-delay: 0.06s; }
.stats .reveal:nth-child(3) { transition-delay: 0.12s; }
.stats .reveal:nth-child(4) { transition-delay: 0.18s; }
.stats .reveal:nth-child(5) { transition-delay: 0.24s; }
.testimonial-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.testimonial-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-line span {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .eco-grid { grid-template-columns: 1fr; }
  .taste { grid-template-columns: 1fr; padding: 70px 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .testimonial-grid { grid-template-columns: 1fr; }
}
