/* Tech for Change — Smart Greenhouse — Landing Page Styles */
:root {
  /* Logo-inspired palette: teal → lime */
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --lime: #84cc16;
  --lime-bright: #a3e635;
  --gradient-brand: linear-gradient(135deg, var(--teal) 0%, var(--lime) 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(132, 204, 22, 0.12) 100%);
  /* Legacy greens / blues kept for harmony */
  --green-dark: #0f5c54;
  --green-mid: #0d9488;
  --green-light: #2dd4bf;
  --green-pale: #ecfdf5;
  --heading: #1e293b;
  --blue-mid: #0e7490;
  --blue-light: #06b6d4;
  --blue-pale: #f0f9ff;
  --text: #1e293b;
  --text-muted: #4b5563;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --surface-tint: #f1f5f9;
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-2: 0 18px 45px rgba(15, 118, 110, 0.18);
  --shadow-soft: 0 10px 25px rgba(13, 148, 136, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --ring: 0 0 0 4px rgba(13, 148, 136, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background:
    linear-gradient(180deg, #f8fafc 0%, #ffffff 35%, #ffffff 100%);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Accessible skip link */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--white);
  color: var(--text);
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(13, 148, 136, 0.14);
  z-index: 999;
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
  box-shadow: var(--shadow-soft), var(--ring);
}

/* Top navigation */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(13, 148, 136, 0.12);
  box-shadow: 0 1px 0 rgba(132, 204, 22, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--green-dark);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-logo {
  height: 3rem;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

@media (max-width: 420px) {
  .brand-text { display: none; }
  .brand-logo { height: 2.5rem; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.nav-links a.is-active {
  background: rgba(13, 148, 136, 0.14);
  color: var(--green-dark);
}

.nav-links a:hover {
  background: rgba(45, 122, 90, 0.10);
  color: var(--green-dark);
  transform: translateY(-1px);
}

.nav-category-buttons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-category-btn.is-current > .nav-dropdown-toggle {
  background: rgba(13, 148, 136, 0.14);
  color: var(--green-dark);
  border-color: rgba(13, 148, 136, 0.28);
}

.nav-dropdown-toggle-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-dropdown-item-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.nav-dropdown-item-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

/* Category icon badges (replace emojis) */
.cat-icon {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cat-icon--sm {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 7px;
}

.cat-icon::before {
  content: '';
  display: block;
}

.cat-icon--about {
  background: linear-gradient(145deg, #0d9488, #14b8a6);
}

.cat-icon--about::before {
  width: 0.62rem;
  height: 0.72rem;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 2px;
  box-shadow: inset 0 -0.18rem 0 rgba(255, 255, 255, 0.35);
}

.cat-icon--greenhouse {
  background: linear-gradient(145deg, #059669, #34d399);
}

.cat-icon--greenhouse::before {
  width: 0;
  height: 0;
  border-left: 0.42rem solid transparent;
  border-right: 0.42rem solid transparent;
  border-bottom: 0.38rem solid rgba(255, 255, 255, 0.92);
  transform: translateY(-0.08rem);
  box-shadow: 0 0.34rem 0 -0.08rem rgba(255, 255, 255, 0.55);
}

.cat-icon--plants {
  background: linear-gradient(145deg, #65a30d, #a3e635);
}

.cat-icon--plants::before {
  width: 0.55rem;
  height: 0.7rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0 80% 0 80%;
  transform: rotate(-18deg);
}

.cat-icon--project {
  background: linear-gradient(145deg, #0e7490, #22d3ee);
}

.cat-icon--project::before {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0.38rem 0 0 rgba(255, 255, 255, 0.92),
    0.19rem 0.32rem 0 rgba(255, 255, 255, 0.72);
}

.section-marker {
  flex-shrink: 0;
  width: 0.42rem;
  height: 0.42rem;
  margin-top: 0.38rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--lime));
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.14);
}

.nav-dropdown-section .nav-dropdown-item-row {
  align-items: center;
}

.nav-dropdown-section .section-marker {
  width: 0.34rem;
  height: 0.34rem;
  margin-top: 0;
}

.nav-dropdown-section .nav-dropdown-item-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
}

.nav-dropdown-view-all .nav-dropdown-item-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.nav-dropdown-view-all .nav-dropdown-item-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  line-height: 1.4;
}

.nav-dropdown-view-all {
  border-bottom: 1px solid rgba(13, 148, 136, 0.12);
  margin-bottom: 0.2rem;
  border-radius: 10px 10px 6px 6px;
}

/* Nav categories dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(13, 148, 136, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.015em;
  padding: 0.48rem 0.9rem 0.48rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle {
  background: rgba(13, 148, 136, 0.1);
  color: var(--green-dark);
  border-color: rgba(13, 148, 136, 0.28);
}

.nav-dropdown-toggle:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.nav-dropdown-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown-chevron {
  transform: rotate(-135deg) translateY(1px);
}

.nav-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 272px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(13, 148, 136, 0.16);
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  padding: 0.45rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 0.62rem 0.7rem;
  border-radius: 11px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-dropdown-item:hover {
  background: rgba(204, 251, 241, 0.65);
}

.nav-dropdown-item.is-active {
  background: rgba(13, 148, 136, 0.1);
  box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.16);
}

.nav-dropdown-item-label {
  font-weight: 600;
  color: var(--heading);
  font-size: 0.94rem;
}

.nav-dropdown-item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Nested category groups in nav */
#nav-categories .nav-dropdown-menu {
  min-width: 300px;
  max-height: min(78vh, 520px);
  overflow-y: auto;
}

.nav-dropdown-group {
  border-radius: 10px;
  overflow: hidden;
}

.nav-dropdown-group + .nav-dropdown-group {
  margin-top: 0.35rem;
}

.nav-dropdown-group-head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 0.75rem;
  text-decoration: none;
  color: var(--text);
  background: rgba(204, 251, 241, 0.35);
  border-bottom: 1px solid rgba(13, 148, 136, 0.12);
}

.nav-dropdown-group-head:hover {
  background: rgba(204, 251, 241, 0.65);
}

.nav-dropdown-sub {
  display: flex;
  flex-direction: column;
  padding: 0.25rem;
}

.nav-dropdown-sub-item {
  display: block;
  padding: 0.45rem 0.65rem 0.45rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  transition: background 0.15s ease;
}

.nav-dropdown-sub-item:hover,
.nav-dropdown-sub-item.is-active {
  background: rgba(13, 148, 136, 0.1);
  color: var(--green-dark);
}

.hero-compact {
  min-height: auto;
  padding: 4rem 1rem 3.5rem;
}

.hero-compact .hero-bg {
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.78) 0%, rgba(248, 250, 252, 0.62) 45%, rgba(255, 255, 255, 0.78) 100%),
    url("assets/hero-greenhouse.jpg") center center / cover no-repeat;
}

.hero-compact .hero-bg::after {
  background:
    radial-gradient(ellipse 100% 85% at 50% 30%, rgba(255, 255, 255, 0.2), transparent 50%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.22) 0%, rgba(15, 23, 42, 0.08) 40%, rgba(15, 23, 42, 0.2) 100%);
}

.hero-compact .hero-content {
  width: min(98vw, 1400px);
  max-width: none;
  padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1.5rem, 4vw, 2.75rem);
  margin: 0 auto;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr minmax(476px, 816px);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  text-align: left;
}

.hero-copy .eyebrow {
  margin-left: 0;
}

.hero-copy .hero-title-rule {
  margin-left: 0;
  margin-right: auto;
}

.hero-copy .hero-subtitle {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  align-items: flex-start;
}

.hero-copy .hero-tech-tags {
  justify-content: flex-start;
}

@media (max-width: 1280px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy .hero-title-rule,
  .hero-copy .hero-subtitle,
  .hero-copy .hero-tech-tags,
  .hero-compact .hero-actions,
  .hero-copy .eyebrow {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    text-align: center;
    align-items: center;
  }

  .hero-copy .hero-tag-hint {
    text-align: center;
  }
}

.hero-compact .hero-subtitle {
  margin-bottom: 0.5rem;
}

.hero-compact .hero-actions {
  margin: 1.1rem 0 0;
  justify-content: flex-start;
}

.hero-compact .hero-visual {
  margin-top: 0;
  justify-self: center;
}

.hero-compact .hero-logo {
  max-width: clamp(544px, 71vw, 816px);
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(13, 148, 136, 0.18));
  transition: transform 0.35s ease, filter 0.35s ease;
}

.hero-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 900px;
  cursor: default;
}

.hero-logo-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132, 204, 22, 0.28), rgba(13, 148, 136, 0.12) 45%, transparent 70%);
  filter: blur(12px);
  animation: logoGlowPulse 5s ease-in-out infinite;
  pointer-events: none;
}

.hero-compact .hero-logo-wrap:hover .hero-logo,
.hero-compact .hero-logo-wrap:focus-within .hero-logo {
  filter: drop-shadow(0 14px 32px rgba(13, 148, 136, 0.28));
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s ease var(--reveal-delay, 0s),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s);
}

.hero-is-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow-wave {
  display: inline-block;
  animation: waveHand 2.5s ease-in-out infinite;
  transform-origin: 70% 70%;
}

.hero-tag-hint {
  margin: -0.65rem 0 1rem;
  min-height: 2.6rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: rgba(240, 253, 250, 0.65);
  border: 1px dashed rgba(13, 148, 136, 0.22);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hero-copy .hero-tag-hint {
  text-align: left;
}

.hero-tag-btn {
  font: inherit;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--teal-dark);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 148, 136, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 253, 250, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-tag-btn::before {
  content: '';
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--lime));
  vertical-align: middle;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.12);
}

.hero-tag-btn:hover,
.hero-tag-btn:focus-visible,
.hero-tag-btn.is-active {
  transform: translateY(-2px);
  border-color: rgba(13, 148, 136, 0.42);
  background: linear-gradient(180deg, #ffffff, rgba(204, 251, 241, 0.95));
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.14);
  outline: none;
}

.hero-tag-btn:focus-visible {
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.14), var(--ring);
}

.btn-ghost {
  color: var(--teal-dark);
  background: transparent;
  border-color: rgba(13, 148, 136, 0.22);
  box-shadow: none;
  font-weight: 700;
}

.btn-ghost:hover {
  background: rgba(240, 253, 250, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.1);
}

.section-eyebrow {
  margin: 0 0 0.65rem;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.key-numbers-eyebrow {
  margin-bottom: 1.1rem;
}

@keyframes logoGlowPulse {
  0%, 100% { opacity: 0.75; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes waveHand {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-8deg); }
  45% { transform: rotate(14deg); }
  60% { transform: rotate(0deg); }
}

@keyframes fabWelcomePulse {
  0%, 100% { box-shadow: var(--shadow-2); }
  50% { box-shadow: 0 18px 44px rgba(15, 118, 110, 0.42), 0 0 0 6px rgba(132, 204, 22, 0.18); }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .eyebrow-wave,
  .hero-logo-glow,
  .chatbot-fab--welcome {
    animation: none;
  }

  .explore-card {
    opacity: 1;
    transform: none;
  }
}

/* Category hub (home) */
.category-hub {
  padding: 1.5rem 0 3rem;
  text-align: center;
}

.category-hub-title {
  font-family: 'Outfit', sans-serif;
  color: var(--green-dark);
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
}

.category-hub-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  max-width: 920px;
  margin: 0 auto;
}

.category-hub-btn .nav-dropdown-toggle {
  font-size: 0.95rem;
  padding: 0.72rem 1.15rem 0.72rem 0.85rem;
  min-width: 11.5rem;
  justify-content: space-between;
}

.category-hub-btn .nav-dropdown-menu {
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(-6px);
  min-width: min(92vw, 300px);
}

.category-hub-btn.is-open .nav-dropdown-menu {
  transform: translateX(-50%) translateY(0);
}

.category-hub-hint {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Legacy single dropdown hub (unused) */
.category-hub-dropdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  text-align: left;
  max-width: 920px;
  margin: 0 auto;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.15rem 1.1rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(13, 148, 136, 0.16);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.1);
}

.category-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.category-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
}

.category-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.category-card-dropdown {
  margin-top: 0.15rem;
}

.category-card-dropdown .nav-dropdown-toggle {
  width: 100%;
  justify-content: space-between;
  font-size: 0.9rem;
}

.category-card-dropdown .nav-dropdown-menu {
  left: 0;
  right: 0;
  min-width: 100%;
}

.category-card-all {
  margin-top: 0.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
}

.category-card-all:hover {
  text-decoration: underline;
}

.category-hub-hint {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Legacy single dropdown hub (unused) */
.category-hub-dropdown {
  display: inline-block;
  text-align: left;
}

.category-hub-dropdown .nav-dropdown-toggle {
  font-size: 1rem;
  padding: 0.75rem 1.15rem;
  min-width: min(100%, 320px);
  justify-content: space-between;
}

.category-hub-dropdown .nav-dropdown-menu {
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(-6px);
  min-width: min(92vw, 340px);
}

.category-hub-dropdown.is-open .nav-dropdown-menu {
  transform: translateX(-50%) translateY(0);
}

.category-hub-hint {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Category page header */
.page-header {
  padding: 2.75rem 0 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.65) 100%);
}

.page-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 700;
  color: var(--heading);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.page-header h1::after {
  content: '';
  display: block;
  width: 3.5rem;
  height: 3px;
  margin: 0.85rem auto 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--lime));
}

.page-header .lead {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.08rem, 2.4vw, 1.3rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: #5b6b7c;
  max-width: 34rem;
  margin: 0 auto;
}

.page-header + .section.section-continues {
  padding-top: 2rem;
  border-top: none;
}

.section-intro {
  font-size: 1.05rem;
  line-height: 1.65;
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
  color: var(--text-muted);
}

.section-continues .section-logo-inline {
  margin-top: 0;
}

.nav-links a:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

@media (max-width: 680px) {
  .nav-inner { padding: 0.75rem 1.5rem; }
  .nav-links { gap: 0.35rem; }
  .nav-links a { font-size: 0.9rem; padding: 0.35rem 0.55rem; }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5.5rem 1.5rem 4.2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, #f8fafc 0%, #ffffff 45%, #f1f5f9 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(13, 148, 136, 0.06), transparent 60%);
  pointer-events: none;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(94vw, 1000px);
  max-width: none;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(13, 148, 136, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
}

.hero-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 95% 85% at 50% 35%, #000 20%, transparent 72%);
  pointer-events: none;
}

.hero-content-inner {
  position: relative;
  z-index: 1;
}

.hero-tech-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-tech-corner {
  position: absolute;
  width: 2.75rem;
  height: 2.75rem;
  border-color: rgba(13, 148, 136, 0.35);
  border-style: solid;
  border-width: 0;
}

.hero-tech-corner--tl {
  top: 1rem;
  left: 1rem;
  border-top-width: 2px;
  border-left-width: 2px;
  border-top-left-radius: 10px;
}

.hero-tech-corner--tr {
  top: 1rem;
  right: 1rem;
  border-top-width: 2px;
  border-right-width: 2px;
  border-top-right-radius: 10px;
}

.hero-tech-corner--bl {
  bottom: 1rem;
  left: 1rem;
  border-bottom-width: 2px;
  border-left-width: 2px;
  border-bottom-left-radius: 10px;
}

.hero-tech-corner--br {
  bottom: 1rem;
  right: 1rem;
  border-bottom-width: 2px;
  border-right-width: 2px;
  border-bottom-right-radius: 10px;
}

.hero-tech-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.28), rgba(132, 204, 22, 0.35), transparent);
}

.hero-tech-line--h {
  top: 42%;
  left: 8%;
  right: 8%;
  height: 1px;
  opacity: 0.55;
}

.hero-tech-line--v {
  top: 12%;
  bottom: 12%;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(13, 148, 136, 0.2), transparent);
  opacity: 0.4;
}

.hero-title-rule {
  width: min(220px, 50%);
  height: 3px;
  margin: 0.35rem auto 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--lime), transparent);
  opacity: 0.85;
}

.hero-tech-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.hero-tech-tags li {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--teal-dark);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 148, 136, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 253, 250, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-tech-tags li::before {
  content: '';
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--lime));
  vertical-align: middle;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.12);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 auto 0.9rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(13, 148, 136, 0.2);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.12);
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 0.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}

.hero-subtitle-lead {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--heading);
}

.hero-subtitle-detail {
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 0 auto 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.btn-primary {
  color: var(--white);
  background: var(--gradient-brand);
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(26, 77, 58, 0.12);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.08);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.92);
}

.hero-visual {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(13, 148, 136, 0.2));
}

/* Key Numbers strip */
.key-numbers {
  margin-top: 2.75rem;
  padding: 0 0 3rem;
  position: relative;
  z-index: 3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  min-height: 7.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover,
.stat-card.is-visible:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 148, 136, 0.22);
  box-shadow: 0 18px 36px rgba(13, 148, 136, 0.12);
}

.stat-card.is-visible .stat-value {
  color: var(--teal-dark);
}

.welcome-explore {
  padding: 0 0 3.5rem;
  text-align: center;
}

.welcome-explore h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: var(--heading);
  margin: 0 0 0.65rem;
}

.welcome-lead {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  text-align: left;
}

.explore-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(13, 148, 136, 0.14);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  opacity: 0;
  transform: translateY(12px);
}

.welcome-explore.is-visible .explore-card,
.landing-patterns.is-visible .explore-card {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.45s ease var(--card-delay, 0s),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) var(--card-delay, 0s),
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.explore-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 148, 136, 0.32);
  background: linear-gradient(180deg, #ffffff, rgba(240, 253, 250, 0.92));
  box-shadow: 0 16px 34px rgba(13, 148, 136, 0.14);
}

.explore-card-icon .cat-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
}

.explore-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.explore-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--green-dark);
  font-size: 1.02rem;
}

.explore-card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.explore-card-arrow {
  flex-shrink: 0;
  font-size: 1.15rem;
  color: var(--teal);
  transition: transform 0.2s ease;
}

.explore-card:hover .explore-card-arrow {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .explore-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy .hero-tag-hint {
    text-align: center;
  }
}

.stat-value {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.35rem, 2.9vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.stat-label {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .key-numbers {
    margin-top: 2rem;
    padding-bottom: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-fold {
  padding: 0.65rem 0;
}

.section-fold .container {
  max-width: 920px;
}

.section-alt {
  background: var(--surface-muted);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.15rem);
  color: var(--heading);
  margin: 0 0 1rem;
  text-align: center;
  letter-spacing: -0.01em;
}

.section h2::after {
  content: '';
  display: block;
  width: 88px;
  height: 4px;
  margin: 0.65rem auto 0;
  border-radius: 999px;
  background: var(--gradient-brand);
  opacity: 0.95;
}

.lead {
  font-size: 1.02rem;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
}

.section-tagline {
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
  margin: -0.5rem 0 1.5rem;
}

.section-logo-inline {
  display: flex;
  justify-content: center;
  margin: -0.25rem 0 0.75rem;
}

.section-logo-inline img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(13, 148, 136, 0.15));
}

.section-logo-inline-small img {
  width: 92px;
  height: 92px;
}

/* What is Tech for Change — Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pillar {
  background: rgba(255, 255, 255, 0.78);
  padding: 1.6rem;
  border-radius: 18px;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  box-shadow: var(--shadow-soft);
  text-align: center;
  border: 1px solid rgba(13, 148, 136, 0.1);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: rgba(13, 148, 136, 0.22);
}

.pillar-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.pillar h3 {
  font-size: 1.15rem;
  color: var(--green-dark);
  margin: 0 0 0.5rem;
}

.pillar p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Tech for Nature */
.focus-content {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(13, 148, 136, 0.14);
  box-shadow: 0 16px 40px rgba(13, 148, 136, 0.1);
  border-radius: 22px;
  padding: 1.6rem 1.6rem;
}

.focus-content p {
  margin-bottom: 1rem;
  color: var(--text);
}

.focus-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text);
}

.focus-list li {
  margin-bottom: 0.5rem;
}

/* Photosynthesis diagram (Tech for Nature) */
.process-figure {
  margin: 1.25rem 0 1.25rem;
  padding: 0.75rem;
  border-radius: 16px;
  background: rgba(236, 253, 245, 0.75);
  border: 1px solid rgba(13, 148, 136, 0.14);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.08);
}

.process-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.process-figure figcaption {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Smart Greenhouse — Flow */
.project-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}

.flow-card {
  flex: 1 1 180px;
  min-width: 200px;
  padding: 1.35rem 1.35rem;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(17, 24, 39, 0.06);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
}

.flow-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.flow-card h3 {
  font-size: 1rem;
  margin: 0;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flow-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 22rem;
  line-height: 1.55;
}

.flow-card.problem {
  background: #fef3c7;
  color: #92400e;
}

.flow-card.problem h3 { color: #92400e; }

.flow-card.solution {
  background: linear-gradient(145deg, var(--blue-pale) 0%, rgba(204, 251, 241, 0.8) 100%);
  color: var(--blue-mid);
  border: 1px solid rgba(13, 148, 136, 0.12);
}

.flow-card.solution h3 { color: var(--blue-mid); }

.flow-card.result {
  background: var(--green-pale);
  color: var(--green-dark);
}

.flow-card.result h3 { color: var(--green-dark); }

.flow-arrow {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  color: var(--green-mid);
}

@media (max-width: 600px) {
  .flow-arrow { display: none; }
}

/* Sensors */
.sensors {
  background: rgba(255, 255, 255, 0.84);
  padding: 1.5rem;
  border-radius: 22px;
  box-shadow: var(--shadow-2);
  border: 1px solid rgba(13, 148, 136, 0.12);
}

.sensors h3 {
  font-size: 1.1rem;
  color: var(--green-dark);
  margin: 0 0 1rem;
  text-align: center;
}

.sensor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.sensor-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
}

.sensor-icon {
  font-size: 1.5rem;
}

.automation-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Why It Matters */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.impact-card {
  background: rgba(255, 255, 255, 0.8);
  padding: 1.6rem;
  border-radius: 18px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow-soft);
  text-align: center;
  border: 1px solid rgba(13, 148, 136, 0.1);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.impact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: rgba(13, 148, 136, 0.2);
}

.impact-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.impact-card h3 {
  font-size: 1.1rem;
  color: var(--green-dark);
  margin: 0 0 0.5rem;
}

.impact-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (max-width: 720px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.video-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(13, 148, 136, 0.14);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(13, 148, 136, 0.1);
  padding: 1rem;
}

.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.14);
  box-shadow: var(--shadow-soft);
}

.video-thumb,
.video-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.video-embed iframe {
  border: 0;
}

.video-thumb {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transform: translateZ(0);
  transition: transform 0.15s ease, filter 0.2s ease;
}

.video-thumb:hover {
  transform: scale(1.01);
  filter: saturate(1.05);
}

.video-thumb:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 65%, rgba(0, 0, 0, 0.35), transparent 55%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
}

.video-thumb::before {
  content: '▶';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  font-size: 1.35rem;
  background: rgba(13, 148, 136, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.video-caption {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Explore More */
.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--gradient-brand);
  color: var(--white);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.28);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-btn-icon {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.nav-btn-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}

.nav-btn-icon-youtube {
  background: transparent;
}

.nav-btn-icon-scratch {
  background: #ff8c1a;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(13, 148, 136, 0.35);
  filter: saturate(1.08);
}

.nav-btn:focus-visible {
  outline: none;
  box-shadow: 0 18px 40px rgba(13, 148, 136, 0.35), var(--ring);
}

.explore-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.explore-note code {
  background: rgba(0,0,0,0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* Greenhouse Simulator Lab */
.simulator-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.2rem;
  align-items: start;
}

.sim-view-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0.4rem 0 1.1rem;
}

/* Sensor-only simulator mode: hide all manual controls */
#simulator.sensor-only .sim-view-actions,
#simulator.sensor-only .sim-control-group,
#simulator.sensor-only .sim-manual,
#simulator.sensor-only .sim-action-row,
#simulator.sensor-only .sim-weather-box-live {
  display: none;
}

#simulator.sensor-only .sim-card.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

#simulator.sensor-only .sim-card.sim-controls > h3 {
  margin-bottom: 0.2rem;
}

#simulator.sensor-only .sim-weather-box-sensor {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

/* Sensor demo: tighter layout, smaller promo block, readings stay visible */
#simulator.sensor-only .lead {
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  max-width: 40rem;
}

#simulator.sensor-only h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

#simulator.sensor-only .simulator-grid {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  max-width: 920px;
  margin-inline: auto;
  gap: 0.85rem;
  align-items: start;
}

#simulator.sensor-only .sim-card {
  padding: 0.8rem 0.85rem;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.11);
}

#simulator.sensor-only .sim-primary-btn,
#simulator.sensor-only .sim-secondary-btn {
  padding: 0.42rem 0.8rem;
  font-size: 0.86rem;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.2);
}

#simulator.sensor-only .sim-weather-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

#simulator.sensor-only .sim-subscribe-banner {
  margin: 0.35rem 0 0.65rem;
  padding: 0.45rem 0.55rem;
  gap: 0.55rem;
}

#simulator.sensor-only .sim-subscribe-image {
  width: 64px;
  height: 64px;
}

#simulator.sensor-only .sim-subscribe-text {
  font-size: 0.82rem;
  font-weight: 700;
}

#simulator.sensor-only .sim-sensor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

#simulator.sensor-only .sim-sensor {
  padding: 0.55rem 0.6rem;
}

#simulator.sensor-only .sim-sensor-value {
  font-size: 1.12rem;
}

#simulator.sensor-only .sim-chart-wrap {
  max-height: 112px;
}

#simulator.sensor-only #sim-chart {
  max-height: 108px;
  width: 100%;
  height: auto;
}

#simulator.sensor-only .sim-metrics {
  margin-bottom: 0.65rem;
}

#simulator.sensor-only .sim-rules-box {
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.65rem;
}

#simulator.sensor-only .sim-rules-box ul {
  font-size: 0.8rem;
}

#simulator.sensor-only #sim-sensor-status.sim-weather-status,
#simulator.sensor-only #sim-weather-status-live.sim-weather-status {
  font-size: 0.72rem;
  line-height: 1.35;
  word-break: break-word;
}

#simulator.sensor-only .sim-control-group input[type="text"] {
  font-size: 0.82rem;
  padding: 0.4rem 0.55rem;
}

.live-location-only .simulator-grid {
  grid-template-columns: 1fr;
}

.live-location-only .sim-card.sim-controls {
  display: none;
}

/* Live location view: no OPEN/CLOSE wording (vents + vent rule line) */
.live-location-only .sim-rules-item-vents {
  display: none;
}

.sim-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(13, 148, 136, 0.16);
  border-radius: 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 16px 38px rgba(13, 148, 136, 0.14);
  padding: 1.15rem;
}

.sim-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.1rem;
  color: var(--green-dark);
}

.sim-control-group {
  margin-bottom: 0.85rem;
}

.sim-control-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.sim-control-group select,
.sim-control-group input[type="text"],
.sim-control-group input[type="range"] {
  width: 100%;
}

.sim-control-group select,
.sim-control-group input[type="text"] {
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  padding: 0.5rem 0.65rem;
  font: inherit;
}

.sim-control-group input[type="text"]::placeholder {
  color: #94a3b8;
}

.sim-control-group select:focus-visible,
.sim-toggle-btn:focus-visible,
.sim-primary-btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.sim-manual {
  border-top: 1px solid rgba(13, 148, 136, 0.12);
  margin-top: 0.9rem;
  padding-top: 0.9rem;
}

.sim-weather-box {
  border-top: 1px solid rgba(13, 148, 136, 0.12);
  margin-top: 0.9rem;
  padding-top: 0.9rem;
}

.sim-weather-box h4 {
  margin: 0 0 0.35rem;
  color: var(--green-dark);
  font-size: 0.95rem;
}

.sim-weather-note {
  margin: 0 0 0.6rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.sim-weather-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.sim-secondary-btn {
  background: #ecfeff;
  color: var(--blue-mid);
  border: 1px solid rgba(14, 116, 144, 0.2);
  box-shadow: 0 6px 16px rgba(14, 116, 144, 0.12);
}

.sim-secondary-btn:hover {
  background: #cffafe;
}

.sim-weather-status {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  min-height: 1.2rem;
}

.sim-weather-status[data-kind="loading"] {
  color: var(--blue-mid);
}

.sim-weather-status[data-kind="success"] {
  color: #166534;
}

.sim-weather-status[data-kind="error"] {
  color: #b91c1c;
}

.sim-subscribe-banner {
  margin: 0 0 0.9rem;
  padding: 0.8rem;
  border: 1px solid rgba(13, 148, 136, 0.18);
  border-radius: 14px;
  background: #f8fffb;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.sim-subscribe-image {
  width: 110px;
  height: 110px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  object-fit: cover;
  background: #ffffff;
}

.sim-subscribe-text {
  margin: 0;
  font-weight: 800;
  color: var(--green-dark);
  font-size: 0.98rem;
}

.sim-manual h4 {
  margin: 0 0 0.55rem;
  color: var(--green-dark);
  font-size: 0.95rem;
}

.sim-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.sim-toggle-btn {
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 10px;
  background: #f8fffb;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
}

.sim-toggle-btn:hover {
  background: #ecfdf5;
}

.sim-action-row {
  margin-top: 0.8rem;
}

.sim-primary-btn {
  border: 0;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  padding: 0.65rem 1rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.28);
}

.sim-primary-btn:hover {
  transform: translateY(-1px);
}

.sim-sensor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.sim-sensor {
  background: #f8fffb;
  border: 1px solid rgba(13, 148, 136, 0.14);
  border-radius: 12px;
  padding: 0.75rem;
}

.sim-sensor-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.sim-sensor-value {
  margin: 0.15rem 0 0;
  color: var(--green-dark);
  font-size: 1.25rem;
  font-family: 'Outfit', sans-serif;
}

.sim-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.sim-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: rgba(236, 253, 245, 0.8);
  border: 1px solid rgba(13, 148, 136, 0.12);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}

.sim-status-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
}

.status-pill {
  background: #e2e8f0;
  color: #334155;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill.is-active {
  background: rgba(132, 204, 22, 0.26);
  color: #3f6212;
}

.sim-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.sim-metrics p {
  margin: 0;
  background: #f8fffb;
  border: 1px solid rgba(13, 148, 136, 0.12);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  font-size: 0.83rem;
  color: var(--text);
}

.sim-rules-box {
  border: 1px dashed rgba(13, 148, 136, 0.34);
  border-radius: 12px;
  background: #f8fffb;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.9rem;
}

.sim-rules-box p {
  margin: 0 0 0.3rem;
  color: var(--green-dark);
}

.sim-rules-box ul {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.sim-rules-box li {
  margin-bottom: 0.3rem;
}

.sim-chart-wrap {
  border: 1px solid rgba(13, 148, 136, 0.14);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.04);
}

#sim-chart {
  display: block;
  width: 100%;
  height: auto;
}

/* Shared live location map (plant + fire simulators) */
.sim-location-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: 1rem;
  align-items: start;
}

.sim-location-map {
  height: min(50vh, 380px);
  min-height: 260px;
  border-radius: 14px;
  overflow: hidden;
  z-index: 0;
}

.sim-location-hint,
.sim-place-note {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.sim-location-status {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sim-location-status[data-kind="loading"] {
  color: var(--teal-dark);
}

.sim-location-status[data-kind="success"] {
  color: var(--teal-dark);
}

.sim-location-status[data-kind="error"] {
  color: #b45309;
}

.sim-live-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.sim-live-stat {
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  background: var(--gradient-brand-soft);
  border: 1px solid rgba(13, 148, 136, 0.1);
}

.sim-live-stat-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.sim-live-stat strong {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.92rem;
  color: var(--heading);
}

@media (max-width: 800px) {
  .sim-location-grid {
    grid-template-columns: 1fr;
  }
}

/* Plant survival & fire risk simulators */
.verdict-sim-grid {
  margin-top: 1rem;
}

.sim-spec-blurb {
  margin: 0 0 0.45rem;
  color: var(--text);
  font-size: 0.9rem;
}

.sim-ranges-hint {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.sim-verdict-panel {
  display: flex;
  flex-direction: column;
}

.verdict-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
}

.verdict-image {
  width: min(220px, 70vw);
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(13, 148, 136, 0.14);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.verdict-answer {
  margin: 0.15rem 0 0;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.verdict-answer[data-state="yes"] {
  color: #15803d;
}

.verdict-answer[data-state="no"] {
  color: #b91c1c;
}

.verdict-level {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--blue-mid);
}

.verdict-level[data-level="moderate"] {
  color: #b45309;
}

.verdict-level[data-level="high"],
.verdict-level[data-level="extreme"] {
  color: #b91c1c;
}

.verdict-detail {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 36ch;
}

.verdict-issues {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  text-align: left;
  color: var(--text);
  font-size: 0.86rem;
  max-width: 38ch;
}

.verdict-issues li {
  margin-bottom: 0.35rem;
}

.emergency-insights {
  margin: 0 0 1.35rem;
}

.emergency-insights h3 {
  margin: 0 0 0.65rem;
  color: var(--green-dark);
  font-size: 1.05rem;
}

.emergency-insights p {
  margin: 0 0 0.55rem;
}

.emergency-insights-link {
  margin: 0.75rem 0 0;
}

.emergency-insights-link a {
  font-weight: 700;
  color: var(--blue-mid);
}

.emergency-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.emergency-stat .stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 700;
  color: var(--green-dark);
  margin: 0;
  line-height: 1.15;
}

.emergency-stat .stat-label {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .emergency-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simulator-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .emergency-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .sim-weather-actions,
  .sim-toggle-row,
  .sim-sensor-grid,
  .sim-status-grid,
  .sim-metrics {
    grid-template-columns: 1fr;
  }
}

/* Meet the Team */
.team-intro {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.team-card {
  background: rgba(255, 255, 255, 0.82);
  padding: 1.25rem;
  border-radius: 18px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(13, 148, 136, 0.1);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.team-role {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.team-name {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.team-name-placeholder {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Footer */
.footer {
  background: linear-gradient(160deg, #1e3a3a 0%, #134e4a 100%);
  color: #f8fafc;
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer p {
  margin: 0;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.footer-support {
  margin-top: 0.75rem;
}

.support-email {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.support-email:hover {
  color: #ccfbf1;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer .container {
  max-width: 700px;
}

.footer-image-wrap {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}

.footer-image {
  width: min(220px, 70vw);
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pillar,
  .flow-card,
  .impact-card,
  .team-card,
  .nav-btn,
  .btn,
  .nav-links a {
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 4.2rem 0;
  }

  .hero {
    min-height: auto;
    padding: 4.5rem 1rem 3rem;
  }

  .hero-content {
    padding: 1.2rem 1rem;
    border-radius: 20px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Floating chat (Gemma 3 via local proxy — see chat_server.py) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chatbot-root {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.chatbot-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: var(--gradient-brand);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: var(--shadow-2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(15, 118, 110, 0.28);
}

.chatbot-fab--welcome {
  animation: fabWelcomePulse 2.2s ease-in-out 2;
}

.chatbot-fab:focus-visible {
  outline: none;
  box-shadow: var(--shadow-2), var(--ring);
}

.chatbot-fab-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(100vw - 2.5rem, 520px);
  max-height: min(75vh, 650px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(13, 148, 136, 0.18);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  pointer-events: none;
}

.chatbot-open .chatbot-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.chatbot-header {
  padding: 1.1rem 1.2rem 0.85rem;
  border-bottom: 1px solid rgba(13, 148, 136, 0.12);
}

.chatbot-title {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal-dark);
}

.chatbot-sub {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.chatbot-messages {
  flex: 1;
  min-height: 220px;
  max-height: 420px;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chatbot-msg {
  display: flex;
  max-width: 100%;
}

.chatbot-msg-user {
  justify-content: flex-end;
}

.chatbot-msg-model {
  justify-content: flex-start;
}

.chatbot-bubble {
  max-width: 92%;
  padding: 0.65rem 0.9rem;
  border-radius: 16px;
  font-size: 1rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.chatbot-bubble a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chatbot-bubble code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85em;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.18);
  padding: 0.1rem 0.25rem;
  border-radius: 8px;
}

.chatbot-bubble pre {
  margin: 0.4rem 0 0.2rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  overflow-x: auto;
  background: rgba(2, 6, 23, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.chatbot-bubble pre code {
  background: transparent;
  border: 0;
  padding: 0;
}

.chatbot-msg-user .chatbot-bubble {
  background: var(--gradient-brand-soft);
  border: 1px solid rgba(13, 148, 136, 0.2);
  color: var(--text);
}

.chatbot-msg-model .chatbot-bubble {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text);
}

.chatbot-status {
  padding: 0 1rem 0.35rem;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Typing indicator (animated dots) */
.chatbot-typing-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.chatbot-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.85);
  opacity: 0.25;
  animation: chatbotDotPulse 1s infinite ease-in-out;
}

.chatbot-typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.chatbot-typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chatbotDotPulse {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.25;
  }
  45% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chatbot-typing-dots span {
    animation: none;
    opacity: 0.85;
  }
}

.chatbot-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem 1.1rem;
  border-top: 1px solid rgba(13, 148, 136, 0.12);
}

.chatbot-form input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(13, 148, 136, 0.25);
  font: inherit;
  font-size: 0.95rem;
}

.chatbot-form input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.chatbot-send {
  padding: 0.65rem 1.1rem;
  border: none;
  border-radius: 10px;
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.chatbot-send:hover:not(:disabled) {
  background: var(--teal-dark);
}

.chatbot-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .chatbot-root {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .chatbot-fab-text {
    display: none;
  }

  .chatbot-fab {
    padding: 0.85rem;
    border-radius: 50%;
  }
}

/* Presentation content sections */
.section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  color: var(--heading);
  margin: 1.75rem 0 0.75rem;
  text-align: center;
}

.def-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1.25rem;
}

.def-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(13, 148, 136, 0.14);
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.def-card dt {
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 0.35rem;
}

.def-card dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pull-quote {
  max-width: 720px;
  margin: 1.5rem auto 0;
  padding: 1.1rem 1.35rem;
  border-left: 4px solid var(--teal);
  background: rgba(204, 251, 241, 0.55);
  border-radius: 0 16px 16px 0;
  font-style: italic;
  color: var(--green-dark);
  text-align: left;
}

.content-note {
  max-width: 760px;
  margin: 1.25rem auto 0;
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(13, 148, 136, 0.28);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem auto 0;
  max-width: 760px;
  counter-reset: plant-step;
}

.steps-list li {
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.steps-list li::before {
  counter-increment: plant-step;
  content: counter(plant-step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.85rem;
  height: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem auto 0;
  max-width: 680px;
  border-left: 3px solid rgba(13, 148, 136, 0.25);
  padding-left: 1.35rem;
}

.timeline-list li {
  margin-bottom: 0.85rem;
  color: var(--text);
  position: relative;
}

.timeline-list li::before {
  content: '';
  position: absolute;
  left: -1.62rem;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.wwd-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  margin-top: 1.5rem;
}

.wwd-person {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(13, 148, 136, 0.14);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.wwd-person.wide {
  grid-column: 1 / -1;
}

.wwd-head {
  text-align: center;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
}

.wwd-head.khaled { background: #99f6e4; color: #042f2e; }
.wwd-head.stefan { background: #fde68a; color: #422006; }
.wwd-head.misha { background: #c4b5fd; color: #1e1b4b; }
.wwd-head.vova { background: #fdba74; color: #431407; }
.wwd-head.nikita { background: #fda4af; color: #4c0519; }
.wwd-head.ethan { background: #7dd3fc; color: #0c4a6e; }
.wwd-head.leo { background: #86efac; color: #14532d; }
.wwd-head.liza { background: #f9a8d4; color: #500724; }

.sticky-note {
  padding: 0.8rem 0.95rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
  font-size: 0.93rem;
  line-height: 1.5;
  box-shadow: 3px 3px 0 rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.sticky-note:last-child { margin-bottom: 0; }
.sticky-note.sky { background: #e0f2fe; }
.sticky-note.mint { background: #d1fae5; }
.sticky-note.lilac { background: #ede9fe; }
.sticky-note.apricot { background: #ffedd5; }

.wwd-subhead {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0.5rem 0;
  padding: 0.35rem 0.5rem;
  background: #fef9c3;
  border-radius: 8px;
  text-align: center;
}

.tools-list {
  max-width: 640px;
  margin: 1.25rem auto 0;
  padding-left: 1.25rem;
  color: var(--text);
}

.tools-list li { margin-bottom: 0.45rem; }

.class-team-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 1.5rem;
}

.class-team-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(13, 148, 136, 0.14);
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-soft);
}

.class-team-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  text-align: left;
}

.class-team-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* Quick jump hub */
.quick-hub {
  padding: 0.5rem 0 1.25rem;
}

.quick-hub-label {
  text-align: center;
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.quick-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 0.55rem;
}

.quick-hub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.7rem 0.45rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 148, 136, 0.16);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-hub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 148, 136, 0.28);
  box-shadow: var(--shadow-2);
}

.quick-hub-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.quick-hub-text {
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

/* Collapsible section panels */
.section-fold-details {
  border: 1px solid rgba(13, 148, 136, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.section-fold-details[open] {
  box-shadow: var(--shadow-2);
}

.section-fold-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  user-select: none;
}

.section-fold-summary::-webkit-details-marker {
  display: none;
}

.section-fold-heading {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.section-fold-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.25;
}

.section-fold-teaser {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.section-fold-chevron {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--gradient-brand-soft);
  border: 1px solid rgba(13, 148, 136, 0.18);
  position: relative;
}

.section-fold-chevron::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 46%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--teal-dark);
  border-bottom: 2px solid var(--teal-dark);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform 0.2s ease;
}

.section-fold-details[open] .section-fold-chevron::before {
  transform: translate(-50%, -35%) rotate(-135deg);
}

.section-fold-body {
  padding: 0 1.15rem 1.15rem;
  border-top: 1px solid rgba(13, 148, 136, 0.1);
}

.section-fold-body .lead {
  margin-bottom: 1.25rem;
}

.section-fold-nested {
  margin-top: 1.25rem;
}

.section-fold-nested .section-fold-title {
  font-size: 1rem;
}

#greenhouse > .container > h2::after {
  margin-bottom: 0;
}

/* ——— Mobile layout ——— */
.nav-menu-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--white);
  color: var(--heading);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.nav-menu-toggle-bars {
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

.nav-links-panel {
  display: contents;
}

@media (max-width: 860px) {
  .nav-inner {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-end;
  }

  .nav-menu-toggle {
    display: inline-flex;
  }

  .nav-links-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 0.65rem;
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
  }

  .nav-links.is-mobile-open .nav-links-panel {
    display: flex;
  }

  .nav-links-panel > a {
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    color: var(--heading);
  }

  .nav-category-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.45rem;
  }

  .nav-category-btn {
    width: 100%;
  }

  .nav-category-btn .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
  }

  .nav-category-btn .nav-dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 0.25rem;
    transform: none;
    box-shadow: none;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: var(--surface-muted);
    display: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-category-btn.is-open .nav-dropdown-menu {
    display: block;
  }

  .hero-compact {
    padding: 3.5rem 1rem 2.25rem;
  }

  .hero-compact .hero-content {
    width: 100%;
    padding: 1.5rem 1.15rem;
  }

  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy .hero-title-rule,
  .hero-copy .hero-subtitle,
  .hero-copy .hero-tech-tags,
  .hero-compact .hero-actions {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    text-align: center;
    align-items: center;
  }

  .hero-copy .eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-tech-corner {
    width: 2rem;
    height: 2rem;
  }

  .hero-tech-tags li {
    font-size: 0.72rem;
    padding: 0.3rem 0.55rem;
  }

  .hero-compact .hero-logo {
    max-width: min(88vw, 612px);
  }

  .hero-compact .hero-visual {
    margin-top: 0.5rem;
  }

  .category-hub-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .category-hub-btn {
    width: 100%;
  }

  .category-hub-btn .nav-dropdown-toggle {
    width: 100%;
    min-width: 0;
    border-radius: 12px;
  }

  .category-hub-btn .nav-dropdown-menu {
    position: static;
    transform: none;
    left: auto;
    min-width: 0;
    width: 100%;
    margin-top: 0.25rem;
    display: none;
    opacity: 1;
    visibility: visible;
  }

  .category-hub-btn.is-open .nav-dropdown-menu {
    display: block;
  }

  .stat-card {
    text-align: left;
  }

  .page-header {
    padding: 2rem 0 0.25rem;
  }

  .section {
    padding: 2.75rem 0;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .brand-text {
    display: none;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-subtitle-lead {
    font-size: 1.05rem;
  }

  .category-hub-title {
    font-size: 1.2rem;
  }
}

/* ——— Mobbin-inspired landing (index) ——— */
.page-landing {
  background: #fafafa;
  color: var(--text);
}

.container-wide {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.top-nav--landing {
  background: rgba(250, 250, 250, 0.72);
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

.top-nav--landing.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.btn-nav-cta {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  background: var(--heading);
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-nav-cta:hover {
  transform: translateY(-1px);
  background: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.btn-lg {
  padding: 0.95rem 1.35rem;
  font-size: 0.98rem;
}

.landing-hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 0;
  overflow: hidden;
  text-align: center;
}

.landing-hero-glow {
  position: absolute;
  inset: -20% 0 auto;
  height: 70%;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(13, 148, 136, 0.14), transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(132, 204, 22, 0.1), transparent 60%);
  pointer-events: none;
}

.landing-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.landing-hero-copy {
  max-width: 42rem;
  margin: 0 auto;
}

.landing-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.landing-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.35rem, 5.5vw, 3.65rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--heading);
  margin: 0 0 1.15rem;
}

.landing-hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.page-landing .btn-secondary {
  background: var(--white);
  border-color: rgba(15, 23, 42, 0.1);
  color: var(--heading);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

/* Floating showcase cards */
.landing-showcase {
  position: relative;
  width: min(100%, 520px);
  height: 340px;
  margin: 0 auto;
  perspective: 1200px;
}

.showcase-card {
  position: absolute;
  left: 50%;
  width: min(78%, 280px);
  border-radius: 22px;
  padding: 0.45rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 24px 50px rgba(15, 23, 42, 0.12),
    0 2px 0 rgba(255, 255, 255, 0.8) inset;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  animation: showcaseFloat 6s ease-in-out infinite;
}

.showcase-card--back {
  transform: translate(-62%, 12%) rotate(-8deg) scale(0.92);
  z-index: 1;
  animation-delay: -2s;
}

.showcase-card--mid {
  transform: translate(-38%, 4%) rotate(6deg) scale(0.96);
  z-index: 2;
  animation-delay: -1s;
}

.showcase-card--front {
  transform: translate(-50%, -6%) rotate(-2deg);
  z-index: 3;
}

.showcase-screen {
  border-radius: 18px;
  padding: 1.1rem 1rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  overflow: hidden;
}

.showcase-screen--greenhouse {
  background: linear-gradient(160deg, #ecfdf5, #f0fdfa);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.showcase-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.showcase-screen--greenhouse .showcase-logo-img {
  width: min(72%, 168px);
  height: auto;
  background: transparent;
  object-fit: contain;
}

.showcase-wordmark {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  line-height: 1.2;
}

.showcase-wordmark-tech,
.showcase-wordmark-nature {
  color: #2d3748;
}

.showcase-wordmark-for {
  color: #ca8a04;
  margin: 0 0.2em;
}

.showcase-screen--sim {
  background: linear-gradient(160deg, #f0f9ff, #ecfeff);
}

.showcase-screen--plants {
  background: linear-gradient(160deg, #f7fee7, #ecfccb);
}

.showcase-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--heading);
}

.showcase-metric {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.showcase-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  margin-top: auto;
  width: 100%;
  height: 72px;
}

.showcase-bars span {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 6px 6px 4px 4px;
  background: linear-gradient(180deg, var(--teal), var(--lime));
  opacity: 0.85;
  animation: barPulse 2.8s ease-in-out infinite;
}

.showcase-bars span:nth-child(2) { animation-delay: 0.2s; }
.showcase-bars span:nth-child(3) { animation-delay: 0.45s; }
.showcase-bars span:nth-child(4) { animation-delay: 0.7s; }

@keyframes showcaseFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes barPulse {
  0%, 100% { opacity: 0.7; transform: scaleY(0.92); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Logo marquee */
.logo-marquee-wrap {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.logo-marquee-label {
  text-align: center;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.logo-marquee {
  overflow: hidden;
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: marqueeScroll 32s linear infinite;
}

.logo-marquee-track span {
  flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: rgba(30, 41, 59, 0.45);
  white-space: nowrap;
}

/* Stats */
.landing-stats {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--white);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.landing-section-kicker {
  text-align: center;
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
}

.landing-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  text-align: center;
}

.landing-stat-value {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--heading);
  line-height: 1.1;
}

.landing-stat-label {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Pattern marquee */
.landing-patterns {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 2rem;
  overflow: hidden;
}

.landing-patterns-head {
  text-align: center;
  margin-bottom: 2rem;
}

.landing-patterns h2,
.landing-flows h2,
.landing-features h2,
.landing-quotes h2,
.landing-cta h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--heading);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.landing-section-lead {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.landing-section-lead--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.pattern-marquee {
  margin-bottom: 2.5rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.pattern-marquee-track {
  display: flex;
  width: max-content;
  gap: 0.85rem;
  padding: 0.25rem 0;
  animation: marqueeScroll 40s linear infinite;
}

.pattern-marquee:hover .pattern-marquee-track,
.logo-marquee:hover .logo-marquee-track,
.quotes-marquee:hover .quotes-track {
  animation-play-state: paused;
}

.pattern-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  color: var(--heading);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pattern-chip:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(13, 148, 136, 0.25);
  box-shadow: 0 14px 28px rgba(13, 148, 136, 0.12);
}

.pattern-chip .cat-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.explore-grid--landing {
  margin-top: 0.5rem;
}

/* Flows */
.landing-flows {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: linear-gradient(180deg, #f8fafc 0%, #fafafa 100%);
}

.landing-flows-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.flow-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.flow-pill {
  font: inherit;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.flow-pill:hover {
  border-color: rgba(13, 148, 136, 0.25);
  color: var(--heading);
}

.flow-pill.is-active {
  background: var(--heading);
  color: var(--white);
  border-color: var(--heading);
}

.flow-stage {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.1);
  padding: 1.75rem 1.5rem 2.25rem;
  min-height: 320px;
  overflow: hidden;
}

.flow-screen {
  animation: flowFadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.flow-screen[hidden] {
  display: none;
}

.flow-screen-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(13, 148, 136, 0.1);
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.flow-screen h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: var(--heading);
  text-align: left;
}

.flow-screen p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.55;
  text-align: left;
}

.flow-mock {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.flow-mock span {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--heading);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.flow-mock--actuators span.is-on {
  background: rgba(132, 204, 22, 0.2);
  border-color: rgba(101, 163, 13, 0.35);
  color: #3f6212;
}

.flow-progress {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1rem;
  height: 3px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.flow-progress-bar {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--gradient-brand);
  border-radius: inherit;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes flowFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Features */
.landing-features {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--white);
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
  text-align: left;
}

.feature-card {
  padding: 1.5rem 1.35rem;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fafafa;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 148, 136, 0.2);
  box-shadow: 0 20px 40px rgba(13, 148, 136, 0.1);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--gradient-brand-soft);
  font-size: 1.1rem;
  color: var(--teal-dark);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.12rem;
  margin: 0 0 0.45rem;
  color: var(--heading);
}

.feature-card p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.feature-card a,
.feature-link-btn {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--teal-dark);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.feature-card a:hover,
.feature-link-btn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Quotes */
.landing-quotes {
  padding: clamp(3rem, 7vw, 5rem) 0;
  overflow: hidden;
  background: #f8fafc;
}

.landing-quotes h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.quotes-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.quotes-track {
  display: flex;
  width: max-content;
  gap: 1.25rem;
  padding: 0.25rem 1.5rem;
  animation: marqueeScroll 50s linear infinite;
}

.quote-card {
  flex-shrink: 0;
  width: min(88vw, 380px);
  margin: 0;
  padding: 1.35rem 1.25rem;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.quote-card p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text);
}

.quote-card footer {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* CTA */
.landing-cta {
  padding: clamp(4rem, 10vw, 6.5rem) 0;
}

.landing-cta-inner {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 2rem;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(132, 204, 22, 0.1)),
    var(--white);
  border: 1px solid rgba(13, 148, 136, 0.14);
  box-shadow: 0 24px 50px rgba(13, 148, 136, 0.1);
}

.landing-cta-inner p {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Landing scroll reveals */
.page-landing [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease var(--reveal-delay, 0s),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s);
}

.page-landing.hero-is-ready [data-reveal].is-revealed,
.page-landing .is-inview[data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

.landing-stat.is-visible {
  opacity: 1;
}

@media (min-width: 900px) {
  .landing-hero-inner {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .landing-hero-copy {
    margin: 0;
  }

  .landing-hero-actions {
    justify-content: flex-start;
  }

  .landing-showcase {
    margin: 0 0 0 auto;
  }
}

@media (max-width: 900px) {
  .landing-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-flows-grid {
    grid-template-columns: 1fr;
  }

  .landing-section-lead--left {
    text-align: center;
    margin: 0 auto;
  }

  .flow-pills {
    justify-content: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .nav-links .btn-nav-cta {
    display: none;
  }
}

@media (max-width: 520px) {
  .landing-stats-row {
    grid-template-columns: 1fr;
  }

  .landing-showcase {
    height: 300px;
  }

  .showcase-card {
    width: 82%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track,
  .pattern-marquee-track,
  .quotes-track,
  .showcase-card,
  .showcase-bars span {
    animation: none !important;
  }

  .page-landing [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Live weather map */
.page-weather-map .weather-map-section {
  padding-top: 0;
}

.weather-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1rem;
}

.weather-search-wrap {
  flex: 1 1 14rem;
  min-width: 0;
}

.weather-search-wrap input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid rgba(13, 148, 136, 0.22);
  font: inherit;
  background: var(--white);
}

.weather-search-wrap input:focus {
  outline: none;
  box-shadow: var(--ring);
  border-color: var(--teal);
}

.weather-map-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 380px);
  gap: 1.25rem;
  align-items: start;
}

.weather-map-wrap {
  min-width: 0;
}

.weather-map-canvas {
  height: min(62vh, 520px);
  min-height: 320px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(13, 148, 136, 0.16);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  z-index: 0;
}

.weather-map-hint {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.weather-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(13, 148, 136, 0.14);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.15rem 1.25rem;
  max-height: min(72vh, 640px);
  overflow: auto;
}

.weather-panel.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.weather-panel-status {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.weather-panel-status[data-kind="loading"] {
  color: var(--teal-dark);
}

.weather-panel-status[data-kind="error"] {
  color: #b45309;
}

.weather-panel-status[data-kind="success"] {
  color: var(--teal-dark);
}

.weather-place-name {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  color: var(--green-dark);
}

.weather-coords {
  margin: 0.2rem 0 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.weather-hero {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(13, 148, 136, 0.1);
}

.weather-hero-icon {
  font-size: 2.75rem;
  line-height: 1;
}

.weather-hero-condition {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.weather-hero-temp {
  margin: 0.15rem 0 0;
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.1;
}

.weather-hero-feels {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.weather-subheading {
  margin: 1rem 0 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-dark);
}

.weather-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.weather-stat-card {
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius);
  background: var(--gradient-brand-soft);
  border: 1px solid rgba(13, 148, 136, 0.1);
}

.weather-stat-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.weather-stat-value {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.95rem;
  color: var(--heading);
}

.weather-stat-card.aqi-good .weather-stat-value {
  color: #15803d;
}

.weather-stat-card.aqi-moderate .weather-stat-value {
  color: #a16207;
}

.weather-stat-card.aqi-sensitive .weather-stat-value,
.weather-stat-card.aqi-unhealthy .weather-stat-value,
.weather-stat-card.aqi-bad .weather-stat-value {
  color: #b45309;
}

.weather-hourly-strip {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.weather-hour-cell {
  flex: 0 0 3.4rem;
  text-align: center;
  padding: 0.45rem 0.25rem;
  border-radius: var(--radius);
  background: var(--surface-muted);
  font-size: 0.75rem;
}

.weather-hour-icon {
  display: block;
  font-size: 1.1rem;
  margin: 0.15rem 0;
}

.weather-hour-temp {
  font-weight: 700;
  color: var(--heading);
}

.weather-hour-rain {
  display: block;
  color: var(--blue-mid);
  font-size: 0.68rem;
}

.weather-forecast-days {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.weather-day-row {
  display: grid;
  grid-template-columns: 3.2rem 1.6rem 1fr auto auto;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.82rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(13, 148, 136, 0.08);
}

.weather-day-row:last-child {
  border-bottom: none;
}

.weather-day-name {
  font-weight: 600;
}

.weather-day-max {
  font-weight: 700;
}

.weather-day-min {
  color: var(--text-muted);
}

.weather-day-rain,
.weather-day-wind {
  color: var(--text-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.weather-attribution {
  margin: 1.1rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.weather-attribution a {
  color: var(--teal-dark);
}

@media (max-width: 900px) {
  .weather-map-layout {
    grid-template-columns: 1fr;
  }

  .weather-panel {
    max-height: none;
  }
}
