:root {
  --bg: #f4f6f2;
  --ink: #17211b;
  --muted: #5d6a61;
  --line: #dde4de;
  --green: #2e7d52;
  --green-d: #1f6a45;
  --blue: #1e73be;
  --shadow: 0 18px 50px rgba(31, 45, 36, 0.12);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

.wrap { width: min(1080px, 100%); margin: 0 auto; padding: 0 20px; }

/* ---- nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 246, 242, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; }
.brand .logo {
  width: 36px; height: 36px; border-radius: 11px; overflow: hidden;
  background: linear-gradient(150deg, #34a673, #1f7a4c 55%, #1e73be);
  display: grid; place-items: center;
}
.brand .logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-art img { width: 86%; height: 86%; object-fit: contain; border-radius: 26px; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.nav-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav-links > a { color: var(--ink); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.nav-links > a.active:not(.btn) { color: var(--green-d); }
.nav-toggle { display: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 18px; border-radius: 11px; font-weight: 700; cursor: pointer;
  border: 1px solid transparent; font-size: 0.95rem;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(46, 125, 82, 0.24); }
.btn-primary:hover { background: var(--green-d); text-decoration: none; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #b6c3ba; text-decoration: none; }
.lang { display: inline-flex; gap: 2px; align-items: center; font-size: 0.85rem; }
.lang a { color: var(--muted); font-weight: 700; padding: 2px 5px; }
.lang a.active { color: var(--ink); text-decoration: underline; }
@media (max-width: 760px) {
  .nav .wrap { position: relative; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: calc(100% + 1px); right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(20,40,30,.12); padding: 10px 16px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 9px 4px; border-radius: 8px; }
  .nav-links .btn { margin-top: 4px; }
  .nav-links .lang { justify-content: flex-start; }
}

/* ---- hero ---- */
.hero {
  background: linear-gradient(155deg, #1f6a45 0%, #2e7d52 45%, #1e73be 125%);
  color: #fff;
  padding: 72px 0 84px;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 800; opacity: 0.85; margin: 0 0 10px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 1.12rem; opacity: 0.95; margin: 0 0 26px; max-width: 30ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-ghost { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.35); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.22); }
.hero-note { margin-top: 16px; font-size: 0.85rem; opacity: 0.8; }
/* Photo hero (homepages only — scoped so the challenge page .hero is untouched) */
.hero-photo { background: linear-gradient(96deg, rgba(11,38,27,0.9) 0%, rgba(13,44,52,0.62) 48%, rgba(13,44,52,0.12) 100%), url("img/hero.jpg"); background-size: cover; background-position: center right; }
.hero-photo .wrap { grid-template-columns: 1fr; }
.hero-photo .hero-art { display: none; }
@media (max-width: 820px) { .hero-photo { background-image: linear-gradient(180deg, rgba(11,38,27,0.78) 0%, rgba(13,44,52,0.55) 100%), url("img/hero-portrait.jpg"); } }
.hero-art {
  aspect-ratio: 1 / 1; max-width: 320px; margin-left: auto;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 28px; display: grid; place-items: center;
}
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}

/* ---- sections ---- */
section.block { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 10px; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.02rem; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 6px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .ico { width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; background: #e9f4ee; color: var(--green); }
.card .ico svg { width: 24px; height: 24px; }

/* route cards */
.route { display: flex; flex-direction: column; }
.route .meta { display: flex; gap: 16px; margin: 12px 0 16px; flex-wrap: wrap; }
.route .meta div { font-size: 0.86rem; color: var(--muted); }
.route .meta strong { display: block; color: var(--ink); font-size: 1.05rem; }
.route .tag { display: inline-block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--green); background: #eaf4ee; padding: 3px 9px; border-radius: 999px; margin-bottom: 12px; align-self: flex-start; }
.route .dl { margin-top: auto; }
.route.soon { opacity: 0.72; }
.route.soon .tag { color: var(--muted); background: #eef1ee; }

/* partners */
.links-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.link-chip {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; font-weight: 700; color: var(--ink); box-shadow: var(--shadow);
}
.link-chip span { display: block; font-size: 0.78rem; font-weight: 500; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(rgba(9,30,21,0.82), rgba(9,30,21,0.86)), url("img/cta.jpg"); background-size: cover; background-position: center; color: #fff; text-align: center; padding: 72px 0; }
/* Showcase image band (product / community photos) */
.showcase img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 20px; box-shadow: var(--shadow); }
.showcase .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center; }
.showcase .sc-img { aspect-ratio: 4 / 3; }
.showcase h2 { margin: 0 0 12px; }
.showcase p { color: var(--muted); margin: 0; font-size: 1.02rem; line-height: 1.6; }
.showcase.flip .sc-img { order: -1; }
@media (max-width: 820px) { .showcase .wrap { grid-template-columns: 1fr; } .showcase.flip .sc-img { order: 0; } }
.cta-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 8px; }
.cta-band p { opacity: 0.85; margin: 0 0 22px; }

/* footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); }
.footer .foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
