:root {
  --bg-canvas: #16181c;
  --bg-surface: #1c1f24;
  --bg-surface-elevated: #24282f;
  --bg-surface-glass: rgba(28, 31, 36, 0.82);
  --border-subtle: rgba(20, 184, 166, 0.18);
  --border-strong: rgba(20, 184, 166, 0.45);
  --text-primary: #e5e7eb;
  --text-muted: #9ca3af;
  --accent-primary: #14b8a6;
  --accent-hover: #2dd4bf;
  --accent-dark: #0f766e;
  --accent-amber: #d97706;
  --shadow-elevation: 0 16px 36px -8px rgba(0, 0, 0, 0.5);
  --glow-accent: 0 0 24px -4px rgba(20, 184, 166, 0.35);
  --glass-backdrop: blur(16px) saturate(160%);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-soft: 20px;
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  hyphens: auto;
  border: 1px solid rgba(20, 184, 166, 0.1);
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f3f4f6;
  line-height: 1.2;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; color: var(--accent-hover); }
p { margin-bottom: 1.2rem; color: var(--text-muted); }
p strong { color: var(--text-primary); }

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.25s var(--ease-kinetic);
}
a:hover { color: var(--accent-hover); }

/* Layout Shells */
.site-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-band {
  width: 100%;
  padding: 5rem 0;
}
.section-band:nth-child(even) {
  background-color: #191c21;
}
.section-band:nth-child(odd) {
  background-color: var(--bg-canvas);
}

/* Header & Navigation */
.header-capsule {
  position: static;
  margin: 1rem 1rem 2rem 1rem;
  background: var(--bg-surface-glass);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-soft);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f9fafb;
  letter-spacing: -0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.desktop-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #d1d5db;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition: all 0.25s var(--ease-kinetic);
}
.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--accent-hover);
  background: rgba(20, 184, 166, 0.08);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-nav-panel {
  display: none;
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-soft);
  margin: 0 1rem 1.5rem;
  padding: 1.25rem;
  flex-direction: column;
  gap: 0.85rem;
}
.mobile-nav-panel.open {
  display: flex;
}
.mobile-nav-panel a {
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  color: var(--text-primary);
}
.mobile-nav-panel a:hover {
  background: rgba(20, 184, 166, 0.12);
  color: var(--accent-hover);
}

/* Hero Section */
.hero-block {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2rem;
}
.hero-visual {
  position: relative;
  border-radius: var(--radius-soft);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.hero-visual img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.hero-fact-card {
  background: var(--bg-surface-glass);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-soft);
  padding: 1.75rem;
  box-shadow: var(--shadow-elevation);
}
.fact-metric {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.fact-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

/* Outlined Kinetic Buttons */
.btn-outline {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: transparent;
  border: 1.5px solid var(--accent-primary);
  color: #f3f4f6;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.3s var(--ease-kinetic);
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--accent-primary);
  color: #0d1117;
  box-shadow: var(--glow-accent);
  transform: translateY(-2px);
}

/* Glass Surface Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}
.glass-card {
  background: rgba(28, 31, 36, 0.75);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-soft);
  padding: 1.75rem;
  transition: transform 0.3s var(--ease-kinetic), border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}
.glass-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Phenology Bloom & Root Systems Meters */
.metric-bar-group {
  margin: 1rem 0 1.5rem;
}
.metric-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}
.progress-track {
  background: rgba(255, 255, 255, 0.08);
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-primary));
  border-radius: 6px;
}

/* Interactive Wildflower Selector Tool */
.tool-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-soft);
  padding: 2rem;
  margin-top: 2rem;
}
.form-group-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.form-control-item label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}
.form-select, .form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #14171b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-soft);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-select:focus, .form-input:focus, .form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.25);
}
.tool-result {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(20, 184, 166, 0.08);
  border: 1px dashed var(--accent-primary);
  border-radius: var(--radius-soft);
  display: none;
}

/* Table styles */
.table-container {
  overflow-x: auto;
  margin: 1.75rem 0;
  border-radius: var(--radius-soft);
  border: 1px solid var(--border-subtle);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--bg-surface);
}
th, td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
th {
  background: #15181c;
  color: var(--accent-hover);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
tr:last-child td {
  border-bottom: none;
}

/* Editorial Content Block */
.prose-block {
  max-width: 72ch;
  margin: 0 auto 2.5rem;
}
.prose-block h2, .prose-block h3 {
  margin-top: 2rem;
}
.prose-block ul, .prose-block ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}
.prose-block li {
  margin-bottom: 0.5rem;
}

/* Accordion FAQ */
.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-soft);
  background: var(--bg-surface);
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: "+";
  color: var(--accent-primary);
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}
.faq-item.active .faq-question::after {
  content: "−";
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-kinetic);
  padding: 0 1.5rem;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

/* Scroll Reveal Kinetic */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-kinetic), transform 0.65s var(--ease-kinetic);
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer (Full-width dark teal band) */
.site-footer {
  width: 100%;
  background: #0f2324;
  border-top: 2px solid var(--accent-dark);
  padding: 4.5rem 0 2.5rem;
  color: #d1d5db;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand h4 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer-links h5 {
  color: var(--accent-hover);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.6rem;
}
.footer-links a {
  color: #9ca3af;
}
.footer-links a:hover {
  color: #fff;
}
.footer-legal-bar {
  border-top: 1px solid rgba(20, 184, 166, 0.2);
  padding-top: 2rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: #6b7280;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .hero-block { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-group-row { grid-template-columns: 1fr; }
  .header-capsule { margin: 0.75rem; padding: 0.75rem 1rem; }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
