@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #f7f1e1;
  --bg-alt: #ece4cf;
  --bg-deep: #e2d8bd;
  --bg-dark: #2c3e2b;
  --bg-dark-2: #1f2e20;
  --text: #2c3624;
  --text-soft: #4d5a45;
  --text-muted: #76836b;
  --text-light: #f3ecd6;
  --primary: #5a8e3c;
  --primary-dark: #3e6628;
  --primary-light: #7bb36a;
  --accent: #d99c30;
  --accent-deep: #b87f1c;
  --accent-light: #f0c87a;
  --stone: #8b7d62;
  --border: #c8b48f;
  --border-soft: #e1d4ab;
  --water: #5b9fb8;
  --water-deep: #2f6e87;
  --grad-cta: linear-gradient(135deg, #5a8e3c 0%, #3e6628 60%, #2d4a1f 100%);
  --grad-accent: linear-gradient(135deg, #f0c87a 0%, #d99c30 60%, #b87f1c 100%);
  --shadow-sm: 0 2px 6px rgba(60, 50, 25, 0.08);
  --shadow-md: 0 8px 24px rgba(60, 50, 25, 0.12);
  --shadow-lg: 0 18px 50px rgba(60, 50, 25, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --header-h: 76px;
}

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

html, body { background: var(--bg); }

html.hide #preloader { display: none; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(123, 179, 106, 0.10), transparent 60%),
    radial-gradient(circle at 85% 30%, rgba(217, 156, 48, 0.08), transparent 55%),
    radial-gradient(circle at 50% 90%, rgba(91, 142, 60, 0.10), transparent 60%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.fixed { overflow: hidden; }

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

a { color: inherit; text-decoration: none; transition: color .2s ease; }

button { cursor: pointer; font-family: inherit; }

h1, h2, h3, h4 {
  font-family: 'Fredoka', sans-serif;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
#preloader img { width: 80px; height: 80px; }

#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(247, 241, 225, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
#header.scrolled {
  background: rgba(247, 241, 225, 0.96);
  border-bottom-color: var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}
.logo img { width: 40px; height: 40px; object-fit: contain; }

.nav-desktop {
  display: flex;
  gap: 36px;
}
.nav-desktop .nav-link {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-soft);
  position: relative;
  padding: 6px 0;
}
.nav-desktop .nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: var(--primary);
  transition: width .25s ease;
}
.nav-desktop .nav-link:hover { color: var(--primary-dark); }
.nav-desktop .nav-link:hover::after { width: 100%; }

.burger-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger-btn.act span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--header-h) 24px 32px;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.mobile-nav .nav-link {
  font-family: 'Fredoka', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: rgba(123, 179, 106, 0.18);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(91, 142, 60, 0.25);
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(240, 200, 122, 0.25);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  border: 1px solid rgba(217, 156, 48, 0.3);
}
.section-tag.light {
  color: var(--accent-light);
  background: rgba(240, 200, 122, 0.18);
  border-color: rgba(240, 200, 122, 0.4);
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  max-width: 820px;
  margin: 0 auto;
}

.lead {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  color: var(--text);
}

.big-line {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  color: var(--primary-dark);
  margin: 18px 0;
}

.emph {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  color: var(--primary-dark);
}
.emph.center { text-align: center; }

.hero {
  padding: calc(var(--header-h) + 40px) 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 70%;
  background:
    radial-gradient(ellipse at top, rgba(123, 179, 106, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(247, 241, 225, 0) 0%, var(--bg-alt) 100%);
  z-index: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { max-width: 600px; }

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  margin: 22px 0 28px;
  text-transform: capitalize;
}

.hero-text p { margin-bottom: 14px; color: var(--text-soft); font-size: 16px; }
.hero-text .quote-card {
  margin: 22px 0;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.6);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.hero-text .quote-card p { margin-bottom: 6px; font-weight: 500; color: var(--text); }
.hero-text .quote-card .quote-emph {
  font-family: 'Fredoka', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 8px;
}

.hero-text .callout {
  margin-top: 24px;
  padding: 26px;
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.hero-text .callout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(123, 179, 106, 0.18), transparent 60%);
}
.hero-text .callout p { position: relative; color: var(--text-light); margin-bottom: 8px; }
.hero-text .callout .callout-foot {
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  color: var(--accent-light);
  margin-top: 14px;
  margin-bottom: 0;
}

.hero-visual { position: relative; }
.hero-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 6px solid var(--bg);
  box-shadow:
    0 0 0 2px var(--border),
    var(--shadow-lg);
  background: var(--bg-deep);
  aspect-ratio: 4 / 5;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-character {
  position: absolute;
  right: -8%;
  bottom: -4%;
  width: 62%;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.ridges {
  padding: 100px 0;
  background: var(--bg-alt);
  position: relative;
}
.ridges::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(123, 179, 106, 0.05) 50%, transparent 100%);
  pointer-events: none;
}
.ridges .container { position: relative; }

.ridges-intro {
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
}
.ridges-intro .lead { margin-bottom: 24px; }
.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.intro-grid p {
  background: var(--bg);
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  font-weight: 500;
  color: var(--text);
}
.ridges-sub { color: var(--text-soft); font-weight: 500; }

.ridge-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ridge-card {
  background: var(--bg);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
}
.ridge-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.ridge-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-deep);
}
.ridge-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.ridge-card:hover .ridge-img-wrap img { transform: scale(1.05); }
.ridge-level {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  background: var(--bg-dark);
  color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.ridge-card-body { padding: 22px 24px 26px; }
.ridge-card-body h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary-dark);
}
.ridge-card-body p { color: var(--text-soft); font-size: 15px; }

.ridges-foot {
  text-align: center;
  margin-top: 56px;
}
.ridges-foot p { margin-bottom: 6px; color: var(--text-soft); }

.crops {
  padding: 100px 0;
  background: var(--bg);
}

.crops-intro {
  text-align: center;
  margin-bottom: 48px;
}
.crops-intro .lead { margin-bottom: 8px; }
.crops-intro p { color: var(--text-soft); }

.crop-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.crop-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.crop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.crop-img {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--bg-deep);
}
.crop-img img { width: 100%; height: 100%; object-fit: cover; }

.crop-card p {
  padding: 22px 24px;
  font-family: 'Fredoka', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
}

.crops-foot {
  text-align: center;
  margin-top: 56px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.crops-foot p { color: var(--text-soft); margin-bottom: 6px; }
.crop-list {
  list-style: none;
  margin: 18px auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 460px;
}
.crop-list li {
  background: var(--bg-alt);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  font-weight: 500;
  color: var(--text);
}

.water {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.water::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(91, 159, 184, 0.15), transparent 70%);
  pointer-events: none;
}

.water-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.water-text .lead { margin-bottom: 8px; }
.water-text .big-line { color: var(--water-deep); margin: 16px 0 22px; }
.water-text > p { color: var(--text-soft); margin-top: 18px; }

.flow-list { list-style: none; margin: 0; padding: 0; }
.flow-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border-soft);
  font-weight: 500;
  color: var(--text);
}
.flow-list li:last-child { border-bottom: 0; }
.flow-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--water);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(91, 159, 184, 0.15);
}

.water-states {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 22px;
}

.state-card {
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-soft);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.state-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 6px;
  height: 100%;
}
.state-flood::before { background: var(--water); }
.state-dry::before { background: var(--accent); }

.state-q {
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.state-a {
  font-family: 'Fredoka', sans-serif;
  font-size: 22px;
  font-weight: 700;
}
.state-flood .state-a { color: var(--water-deep); }
.state-dry .state-a { color: var(--accent-deep); }

.water-foot {
  text-align: center;
  margin-top: 60px;
}
.water-foot p { margin-bottom: 6px; color: var(--text-soft); }

.building {
  padding: 100px 0;
  background: var(--bg-deep);
}

.building-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.building-content > p { color: var(--text-soft); margin-bottom: 14px; }

.build-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
  text-align: left;
}

.build-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  font-weight: 500;
  color: var(--text);
}

.step-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-cta);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 4px 10px rgba(62, 102, 40, 0.3);
}

.final-cta {
  padding: 100px 0;
  background: var(--bg);
}

.cta-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-image:
    linear-gradient(135deg, rgba(31, 46, 32, 0.80) 0%, rgba(44, 62, 43, 0.65) 60%, rgba(62, 102, 40, 0.55) 100%),
    url('../img/cta-bg.webp');
  background-size: cover;
  background-position: center;
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 2px var(--border), var(--shadow-lg);
}

.cta-content {
  padding: 80px 60px;
  text-align: center;
  color: var(--text-light);
  max-width: 760px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--text-light);
  margin: 18px 0 24px;
}

.cta-content p { color: rgba(243, 236, 214, 0.92); margin-bottom: 6px; }

.cta-actions {
  margin: 32px auto;
  padding: 24px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-md);
  border: 1px solid rgba(240, 200, 122, 0.2);
  max-width: 480px;
}
.cta-actions p {
  font-family: 'Fredoka', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 4px;
}

.cta-sign {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(240, 200, 122, 0.25);
}
.cta-name {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.cta-tag {
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--accent-light);
  letter-spacing: 0.02em;
}

#footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 48px 0 36px;
  border-top: 4px solid var(--accent);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.footer-col { font-size: 14px; }
.footer-left .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-light);
}
.footer-left .footer-brand img { width: 36px; height: 36px; object-fit: contain; }
.footer-domain {
  color: var(--accent-light);
  font-weight: 500;
}
.footer-domain:hover { color: var(--accent); }
.footer-center { text-align: center; color: rgba(243, 236, 214, 0.65); }
.footer-right { text-align: right; }
.footer-right a { color: rgba(243, 236, 214, 0.85); transition: color .2s ease; }
.footer-right a:hover { color: var(--accent-light); }
.footer-right .dot { color: rgba(243, 236, 214, 0.4); padding: 0 8px; }

.legal-page {
  padding: calc(var(--header-h) + 60px) 0 80px;
  background: var(--bg);
  min-height: 100vh;
}
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg);
  padding: 0 4px;
}
.legal-content h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 14px;
  text-align: center;
}
.legal-content > p:first-of-type strong p,
.legal-content strong p { display: inline; }
.legal-content h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 30px 0 12px;
}
.legal-content p {
  color: var(--text-soft);
  margin-bottom: 14px;
  line-height: 1.7;
}
.legal-content ul,
.legal-content ol {
  margin: 0 0 18px 22px;
  color: var(--text-soft);
  line-height: 1.7;
}
.legal-content ul li,
.legal-content ol li { margin-bottom: 8px; }
.legal-content a { color: var(--primary-dark); text-decoration: underline; }
.legal-content a:hover { color: var(--primary); }
.legal-content .date,
.legal-content .name,
.legal-content .app-domain,
.legal-content .domain { font-weight: 600; color: var(--text); }

@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
  .hero-character { width: 70%; right: -10%; }
  .build-steps { grid-template-columns: 1fr; }
  .water-grid { gap: 40px; }
  .ridge-cards, .crop-cards { gap: 22px; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .burger-btn { display: flex; }

  .hero { padding: calc(var(--header-h) + 24px) 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-frame { aspect-ratio: 4 / 4; max-width: 480px; margin: 0 auto; }
  .hero-character { width: 56%; right: -4%; }

  .ridges, .crops, .water, .building, .final-cta { padding: 70px 0; }

  .intro-grid { grid-template-columns: 1fr; }
  .ridge-cards, .crop-cards { grid-template-columns: 1fr; }
  .water-grid { grid-template-columns: 1fr; }

  .cta-content { padding: 60px 28px; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 22px;
  }
  .footer-left .footer-brand { justify-content: center; }
  .footer-center, .footer-right { text-align: center; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section-head { margin-bottom: 38px; }
  .hero h1 { font-size: 32px; }
  .hero-text .quote-card,
  .hero-text .callout { padding: 20px; }
  .ridge-card-body { padding: 18px 20px 22px; }
  .crop-card p { padding: 18px 20px; }
  .state-card { padding: 22px; }
  .build-step { padding: 14px 16px; gap: 12px; }
  .step-num { width: 32px; height: 32px; font-size: 15px; }
  .cta-content { padding: 50px 22px; }
  .cta-actions { padding: 18px; }
  #footer { padding: 36px 0 28px; }
}
