
:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --surface-2: #f1f3f0;
  --text: #10151c;
  --muted: #66707c;
  --line: rgba(16, 21, 28, 0.10);
  --brand: #3e8a57;
  --brand-dark: #2f6e45;
  --shadow: 0 20px 60px rgba(12, 18, 27, 0.08);
  --header: rgba(247, 248, 246, 0.82);
  --hero-fallback:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.65), transparent 28%),
    linear-gradient(120deg, #dbe7ee 0%, #b4d0bd 45%, #6e8c71 100%);
}

html[data-theme="dark"] {
  --bg: #07101a;
  --surface: #0b1622;
  --surface-2: #101d2a;
  --text: #f4f6f8;
  --muted: #a2aebb;
  --line: rgba(255,255,255,0.10);
  --brand: #6bc17c;
  --brand-dark: #4fa963;
  --shadow: 0 20px 60px rgba(0,0,0,.28);
  --header: rgba(7, 16, 26, 0.84);
  --hero-fallback:
    radial-gradient(circle at 80% 20%, rgba(97,142,181,.30), transparent 32%),
    linear-gradient(120deg, #12273a 0%, #183629 45%, #07101a 100%);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  transition: background-color .25s ease, color .25s ease;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, backdrop-filter .2s ease;
}

.site-header.scrolled {
  background: var(--header);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1440px, calc(100% - 56px));
  height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.28rem;
  font-weight: 720;
  letter-spacing: -.025em;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  transform: rotate(30deg) skewY(-2deg);
}

.cube-face {
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 2px;
}

.cube-top {
  left: 7px;
  top: 1px;
  background: #77a95e;
  transform: rotate(30deg) skewY(-30deg) scaleY(.86);
}

.cube-left {
  left: 1px;
  top: 11px;
  background: #2f6ea0;
  transform: skewY(30deg);
}

.cube-right {
  right: 1px;
  top: 11px;
  background: #427d49;
  transform: skewY(-30deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: .94rem;
  font-weight: 550;
}

.main-nav a,
.text-link {
  transition: opacity .15s ease, color .15s ease;
}

.main-nav a:hover,
.text-link:hover { color: var(--brand); }

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  height: 40px;
  min-width: 66px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 1rem;
}

html[data-theme="light"] .moon { opacity: .35; }
html[data-theme="dark"] .sun { opacity: .35; }

.button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--line);
  font-weight: 650;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.button:hover { transform: translateY(-1px); }

.button-small {
  min-height: 40px;
  padding: 0 18px;
  background: var(--surface);
  box-shadow: 0 4px 18px rgba(10,20,30,.05);
}

.button-primary {
  color: white;
  background: var(--brand);
  border-color: transparent;
  box-shadow: 0 12px 32px rgba(42, 115, 69, .20);
}

.button-primary:hover { background: var(--brand-dark); }

.button-glass {
  color: white;
  border-color: rgba(255,255,255,.35);
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
}

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: white;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: var(--hero-fallback), url("assets/hero.webp");
  background-size: cover;
  background-position: center;
  transform: scale(1.015);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,13,20,.68) 0%, rgba(5,13,20,.32) 42%, rgba(5,13,20,.06) 72%),
    linear-gradient(0deg, rgba(5,13,20,.34), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1440px, calc(100% - 56px));
  margin: 0 auto;
  padding: 180px 0 11vh;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 780;
  letter-spacing: .12em;
}

.hero-eyebrow { color: rgba(255,255,255,.76); }

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.3rem, 6vw, 7.2rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 760;
  text-wrap: balance;
}

.hero h1 span { color: #70b36c; }

.hero-copy {
  max-width: 600px;
  margin: 28px 0 0;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  color: rgba(255,255,255,.88);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.split-section {
  width: min(1180px, calc(100% - 56px));
  min-height: 72vh;
  margin: 0 auto;
  padding: 110px 0;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: 90px;
}

.split-section.reverse {
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
}

.split-section.reverse .split-copy { order: 2; }
.split-section.reverse .media-card { order: 1; }

.split-copy h2,
.section-heading h2,
.download-section h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4.2vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.split-copy > p:not(.eyebrow) {
  max-width: 530px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2670c8;
  font-weight: 650;
}

.media-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.55), transparent 28%),
    linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--brand) 20%, var(--surface-2)));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.media-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
  gap: 6px;
}

.media-card img:not([src=""]) + .media-fallback { pointer-events: none; }
.media-card img[src]:not([src=""]) { z-index: 2; }
.media-card img[src]:not([src=""]) ~ .media-fallback { z-index: 1; }

.stat-row {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-row div {
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.stat-row strong,
.stat-row span {
  display: block;
}

.stat-row strong {
  font-size: 1.15rem;
  letter-spacing: -.02em;
}

.stat-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .83rem;
}

.gallery-section {
  padding: 120px max(28px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 46px;
}

.section-heading > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
}

.gallery-item {
  min-height: 420px;
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  background: rgba(5,10,15,.46);
  backdrop-filter: blur(10px);
  font-size: .86rem;
  font-weight: 650;
}

.download-section {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  padding: 120px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 54px max(28px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  color: var(--muted);
}

.site-footer .brand { color: var(--text); }
.site-footer p { margin: 0; }
.footer-note { justify-self: end; }

@media (max-width: 980px) {
  .nav-wrap {
    width: min(100% - 32px, 1440px);
    grid-template-columns: 1fr auto;
  }

  .main-nav { display: none; }
  .hero-content { width: min(100% - 32px, 1440px); }

  .split-section,
  .split-section.reverse {
    width: min(100% - 32px, 1180px);
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 80px 0;
  }

  .split-section.reverse .split-copy,
  .split-section.reverse .media-card { order: initial; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: 1 / -1; }

  .download-section {
    width: min(100% - 32px, 1180px);
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .nav-wrap { height: 70px; }
  .brand { font-size: 1.1rem; }
  .button-small { display: none; }

  .hero { min-height: 94svh; }
  .hero-content { padding-bottom: 8vh; }
  .hero h1 { font-size: clamp(2.9rem, 14vw, 4.5rem); }

  .split-section { min-height: auto; }
  .media-card { min-height: 300px; }

  .stat-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: auto; }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-note { justify-self: start; }
}
