/* ============================================================
   CANGURHU — Design System
   Brand colors extracted from logo:
   Green #1F9620 · Terracotta #C64B20 · Ink #0E0E0E · White
   ============================================================ */

:root {
  --green: #1F9620;
  --green-dark: #147114;
  --green-tint: #EAF6EA;
  --terra: #C64B20;
  --terra-dark: #A23A16;
  --terra-tint: #FBEDE6;
  --ink: #141A12;
  --muted: #55614F;
  --line: #E5E9E2;
  --bg: #FFFDF8;
  --white: #FFFFFF;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 6px 24px rgba(20, 26, 18, 0.08);
  --shadow-lg: 0 18px 48px rgba(20, 26, 18, 0.14);
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

section { padding: 84px 0; }

/* ---------- Eyebrow / kicker ---------- */
.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 14px;
}
.kicker.green { color: var(--green); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--green);
  letter-spacing: -0.02em;
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
}
.main-nav a:hover { color: var(--green); }
.main-nav a[aria-current="page"] {
  color: var(--green);
  font-weight: 600;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 3px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn-primary { background: var(--green); color: var(--white) !important; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--terra); color: var(--white) !important; }
.btn-accent:hover { background: var(--terra-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--green); color: var(--green) !important; background: transparent; }
.btn-outline:hover { background: var(--green-tint); }
.btn-light { background: var(--white); color: var(--ink) !important; }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--green-tint), transparent 60%),
    radial-gradient(900px 420px at -10% 30%, var(--terra-tint), transparent 55%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 .hl-green { color: var(--green); }
.hero h1 .hl-terra { color: var(--terra); }
.hero p.lead {
  font-size: 1.22rem;
  color: var(--muted);
  margin: 22px 0 34px;
  max-width: 34ch;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img {
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/11;
  object-fit: cover;
  width: 100%;
}
.hero-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-badge .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green);
}

/* ---------- Trust bar ---------- */
.trustbar {
  background: var(--ink);
  color: var(--white);
  padding: 22px 0;
}
.trustbar .container {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trustbar span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.98rem;
}
.trustbar svg { flex: none; }

/* ---------- Section headers ---------- */
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.08rem; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: var(--green-tint);
}
.card .icon.terra { background: var(--terra-tint); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card .card-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 0.95rem;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 30px 32px;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--green);
  opacity: .25;
  display: block;
  margin-bottom: 8px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse > .split-media { order: 2; }
.split-media img {
  border-radius: 24px;
  box-shadow: var(--shadow);
  aspect-ratio: 3/2;
  object-fit: cover;
  width: 100%;
}
.split-copy h2 { margin-bottom: 18px; }
.split-copy p { color: var(--muted); margin-bottom: 16px; }
.check-list { list-style: none; margin: 22px 0 30px; }
.check-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
  font-weight: 500;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Banner / full-bleed image ---------- */
.banner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.banner img { width: 100%; aspect-ratio: 21/8; object-fit: cover; }
.banner .banner-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 32px 40px;
  background: linear-gradient(transparent, rgba(10, 14, 9, 0.72));
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
}
.stat .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--green);
}
.stat.terra .num { color: var(--terra); }
.stat p { color: var(--muted); margin-top: 6px; font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--green);
  color: var(--white);
  border-radius: 28px;
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.cta-band.terra { background: var(--terra); }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { opacity: .92; max-width: 52ch; margin: 0 auto 32px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Launch markets ---------- */
.markets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.market {
  border-radius: var(--radius);
  padding: 36px 32px;
  background: var(--white);
  border: 1px solid var(--line);
}
.market .flag {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terra);
}
.market h3 { font-size: 1.5rem; margin: 8px 0 10px; }
.market p { color: var(--muted); font-size: 0.98rem; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--green);
  flex: none;
  transition: transform .2s ease;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a p {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 40px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 0.92rem;
  margin-bottom: 7px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px var(--green-tint);
}
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
.form-success {
  display: none;
  background: var(--green-tint);
  border: 1px solid var(--green);
  color: var(--green-dark);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-weight: 600;
  margin-top: 18px;
}
.role-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.role-pills label {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.95rem;
  margin: 0;
}
.role-pills input { position: absolute; opacity: 0; }
.role-pills label:has(input:checked) {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #C9CFC4;
  padding: 64px 0 34px;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 44px;
}
.site-footer .brand span { color: var(--white); }
.site-footer p { font-size: 0.93rem; margin-top: 14px; max-width: 30ch; }
.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #C9CFC4; font-size: 0.95rem; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.87rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(900px 400px at 90% -20%, var(--green-tint), transparent 60%),
    var(--bg);
  text-align: center;
}
.page-hero p.lead {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 18px auto 0;
}

/* ---------- Testimonials ---------- */
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
}
.quote p { font-size: 1.05rem; font-style: italic; }
.quote .who {
  margin-top: 18px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
}
.quote .who span { display: block; color: var(--muted); font-weight: 400; font-family: var(--font-body); }

/* ---------- Utility ---------- */
.tint { background: var(--green-tint); }
.tint-terra { background: var(--terra-tint); }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ============================================================
   MOBILE LAYOUT (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  section { padding: 60px 0; }

  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 24px; font-size: 1.05rem; }
  .main-nav .btn { margin: 12px 24px 0; }

  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero p.lead { max-width: none; }
  .hero-badge { left: 12px; bottom: -18px; }

  .card-grid, .steps, .stats, .markets { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > .split-media { order: 0; }

  .cta-band { padding: 52px 26px; }
  .banner img { aspect-ratio: 4/3; }
  .banner .banner-caption { padding: 22px; font-size: 1.05rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .trustbar .container { gap: 22px; }
  .form-card { padding: 32px 22px; }
  .hero-cta .btn { width: 100%; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .trustbar .container { flex-direction: column; align-items: center; gap: 12px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
