/* ========================================
   MODERN DESIGN SYSTEM WITH ANIMATIONS
   ======================================== */

:root {
  --primary-color: #309798;
  --primary-dark: #267a7b;
  --primary-light: #4db8b9;
  --accent-color: #ffa500;
  --accent-dark: #cc8400;
  --text-dark: #1a1a1a;
  --text-medium: #4a4a4a;
  --text-light: #f8f9fa;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Typography tokens ────────────────────────────────────
     Primitives: what the font physically is.
     Role tokens: what it is used for — override these per-section,
     e.g.  #app-preview { --font-heading: var(--font-ui); }
  ─────────────────────────────────────────────────────────── */
  --font-serif: "Lora", Georgia, serif;
  --font-display: "Lora", Georgia, serif;
  --font-noto: "Noto Sans", sans-serif;
  --font-ui:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --font-body: var(--font-noto); /* body copy */
  --font-heading: var(--font-noto); /* h1–h6 */
  --font-label: var(--font-serif); /* eyebrows, small labels */
  --font-nav: var(--font-noto); /* nav links */

  /* ── Surface / background color tokens ─────────────────────────
     Use these instead of hardcoded hex so a dark-mode or rebrand
     only needs a single-file change.
  ──────────────────────────────────────────────────────────────── */
  --surface-footer: #071818; /* footer, deepest dark */
  --surface-editorial: #0f3030; /* editorial quote panel */
  --surface-hero-dark: #0f2e2e; /* team / contact / why hero panels */
  --surface-strip: #0a2020; /* contact strip bar */
  --gradient-dark-section: linear-gradient(
    160deg,
    #071a1a 0%,
    #0e2d2d 55%,
    #071a1a 100%
  );
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

img {
  height: auto;
  max-width: 100%;
}

/* ========================================
   ANIMATIONS & KEYFRAMES
   ======================================== */

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.animate-on-scroll {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}

/* ========================================
   HEADER
   ======================================== */

header {
  background: rgba(8, 32, 32, 0.94);
  color: #fff;
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.5s ease;
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease;
  /* needed for mobile dropdown positioning */
  isolation: isolate;
}

header.header-scrolled {
  background: var(--primary-color);
  box-shadow: 0 2px 20px rgba(48, 151, 152, 0.35);
}

header .header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

header .logo-container img {
  height: 40px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.logo-product {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.logo-tagline {
  font-size: 0.6rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.header-scrolled .logo-tagline {
  color: rgba(255, 255, 255, 0.85);
}

.logo-tagline-sub {
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

.header-scrolled .logo-tagline-sub {
  color: rgba(255, 255, 255, 0.7);
}

.logo-brand {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.01em;
}

.nav-active {
  color: var(--accent-color);
}

.nav-active::after {
  width: 80%;
}

.nav-neurohive-link {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}

.nav-neurohive-link:hover {
  color: #fff;
  background: transparent;
}

.nav-app-btn {
  background: var(--accent-color);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 1.1rem;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-app-btn:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  line-height: 1;
}

.header-scrolled .lang-sep {
  color: rgba(255, 255, 255, 0.5);
}

.lang-opt {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0.2rem 0.3rem;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.lang-opt:hover {
  color: #fff;
}

.lang-opt.lang-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.45rem;
}

.header-scrolled .lang-opt {
  color: rgba(255, 255, 255, 0.6);
}

.header-scrolled .lang-opt:hover {
  color: #fff;
}

.header-scrolled .lang-opt.lang-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

/* Hamburger toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 1001;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition:
    var(--transition),
    background-color 0.4s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

nav a {
  font-family: var(--font-nav);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

nav a:not(.nav-app-btn):not(.nav-neurohive-link):hover::after {
  width: 80%;
}

nav a:not(.nav-app-btn):not(.nav-neurohive-link):hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* ========================================
   HERO PILLS
   ======================================== */

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.5rem 0;
  position: relative;
  z-index: 1;
}

.hero-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.hero-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

/* ========================================
   HERO SECTION
   ======================================== */

#hero {
  background: linear-gradient(
    to bottom,
    #1c6869 0%,
    #267a7b 15%,
    #309798 25%,
    #c8e8e8 50%,
    #eef6f6 100%
  );
  padding: 6rem 2rem 7rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 38, 37, 0.45);
  z-index: 0;
}

#hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

#hero h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #ffffff;
  line-height: 1.15;
  animation: fadeInUp 0.8s ease;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

#hero h2 em {
  font-style: italic;
  opacity: 0.88;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-label); /* excepted — keep serif label font */
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.2rem;
  animation: fadeInUp 0.6s ease backwards;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 600px;
  margin: 1.5rem auto 0;
  line-height: 1.75;
  animation: fadeInUp 0.8s ease 0.2s backwards;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.serif-heading {
  font-family: var(--font-serif);
}

/* Serif for blog cards: titles and paragraph copy */
.serif-content h3,
.serif-content p {
  font-family: var(--font-serif);
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.35s backwards;
}

/* On light portion of gradient — use dark teal for the text link */
.hero-link {
  color: var(--primary-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 1.5px solid rgba(38, 122, 123, 0.4);
  padding-bottom: 0.1rem;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.hero-link:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(38, 122, 123, 0.25);
  animation: fadeInUp 0.8s ease 0.5s backwards;
  position: relative;
  z-index: 1;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1;
}

.hero-stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(38, 122, 123, 0.25);
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 1.2rem;
  }
  .hero-stat-num {
    font-size: 1.6rem;
  }
  .hero-stat-divider {
    height: 28px;
  }
}

/* ========================================
   PRIMARY CTA — shared style for all main action buttons
   ======================================== */
.cta-button,
.btn-cta-primary {
  display: inline-block;
  background: var(--primary-color);
  color: #fff !important;
  padding: 1.1rem 2.8rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-family: var(--font-display); /* excepted — keep display font */
  font-size: 1.1rem;
  font-weight: 600;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(48, 151, 152, 0.35);
  border: none;
  cursor: pointer;
}

.cta-button {
  font-size: 1.15rem;
  padding: 1.1rem 2.8rem;
}

.cta-button:hover,
.btn-cta-primary:hover {
  background: var(--primary-dark);
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(48, 151, 152, 0.45);
}

/* SECONDARY CTA — ghost/outlined */
.btn-cta-secondary {
  display: inline-block;
  background: transparent;
  color: #fff !important;
  padding: 1.1rem 2.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-family: var(--font-display); /* excepted — keep display font */
  font-size: 1.1rem;
  font-weight: 500;
  border: 2px solid rgba(255, 255, 255, 0.55);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff !important;
  transform: translateY(-2px);
}

/* DARK CTA — for use on light/white backgrounds */
.btn-cta-dark {
  display: inline-block;
  background: var(--surface-footer, #071818);
  color: #fff !important;
  padding: 1.1rem 2.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 18px rgba(7, 24, 24, 0.35);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-cta-dark:hover {
  background: #0f2e2e;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(7, 24, 24, 0.45);
}

.cta-image {
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  transition: var(--transition);
  animation: fadeInUp 0.8s ease 0.6s backwards;
  position: relative;
  z-index: 1;
}

.cta-image:hover {
  transform: scale(1.02);
}

/* ========================================
   APP SHOWCASE SECTION
   ======================================== */

.app-showcase {
  background: var(--bg-white);
  padding: 5rem 2rem;
  margin: 3rem 0;
}

.app-showcase h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.showcase-item {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.showcase-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.showcase-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition);
}

.showcase-item:hover img {
  transform: scale(1.05);
}

.showcase-item-content {
  padding: 2rem;
}

.showcase-item-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.showcase-item-content p {
  color: var(--text-medium);
  line-height: 1.8;
}

/* ========================================
   SECTIONS
   ======================================== */

/* ========================================
   EDITORIAL STRIP — full-width photo + quote
   ======================================== */

#editorial-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  position: relative;
}

.editorial-photo {
  background-size: cover;
  background-position: center 55%;
  position: relative;
}

.editorial-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

.editorial-content {
  background: var(--surface-editorial);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4rem 4rem 3.5rem;
}

.editorial-quote {
  margin: 0 0 1.5rem;
  border: none;
  padding: 0;
}

.editorial-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.7rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
  position: relative;
}

.editorial-quote p::before {
  content: "\201C";
  font-size: 5rem;
  line-height: 0;
  position: absolute;
  top: 0.55rem;
  left: -1.8rem;
  color: var(--accent-color);
  opacity: 0.6;
  font-family: var(--font-display);
}

.editorial-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin: 0;
  padding-left: 0.2rem;
  border-left: 2px solid var(--accent-color);
  padding-left: 1rem;
}

@media (max-width: 768px) {
  #editorial-strip {
    grid-template-columns: 1fr;
  }

  .editorial-photo {
    min-height: 220px;
  }

  .editorial-content {
    padding: 2.5rem 1.5rem;
  }

  .editorial-quote p {
    font-size: 1.35rem;
  }

  .editorial-quote p::before {
    display: none;
  }
}

/* ========================================
   DIAGONAL SECTION BREAKS
   ======================================== */

/* Utility: slices top of section diagonally (use on light/white alternating sections) */
.section-diagonal {
  position: relative;
  clip-path: polygon(0 2.5rem, 100% 0, 100% 100%, 0 100%);
  margin-top: -2.5rem;
  padding-top: 7rem;
}

#benefits {
  background: var(--bg-light);
  padding: 6rem 2rem 5rem;
  position: relative;
  clip-path: polygon(0 3rem, 100% 0, 100% 100%, 0 100%);
  margin-top: -3rem;
}

/* ========================================
   WHY SECTION — teal, impactful
   ======================================== */

#why-neurohive {
  background: linear-gradient(150deg, #1c6869 0%, #267a7b 50%, #309798 100%);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#why-neurohive::before {
  content: "";
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

#why-neurohive h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

#why-neurohive > .container > p,
#why-neurohive > p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

/* 2×2 grid for why items */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 780px;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.why-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: background 0.2s ease;
}

.why-item:hover {
  background: rgba(255, 255, 255, 0.16);
}

.why-item .why-farm-icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.1rem;
}

.why-item strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
}

.why-item span.why-item-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

/* ========================================
   BENEFITS SECTION
   ======================================== */

#benefits h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.benefit-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-card {
  background: var(--bg-white);
  padding: 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-light)
  );
  transform: scaleX(0);
  transition: var(--transition);
}

.benefit-card:hover::before {
  transform: scaleX(1);
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.benefit-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  padding: 1.5rem 2.5rem 0;
}

.benefit-card p {
  color: var(--text-medium);
  line-height: 1.8;
  padding: 0 2.5rem 2.5rem;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

#features {
  background: var(--gradient-dark-section);
  padding: 6rem 2rem 5rem;
  position: relative;
  clip-path: polygon(0 0, 100% 2.5rem, 100% 100%, 0 100%);
  margin-top: -2.5rem;
}

#features h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

/* Scroll offset for sticky header */
[id^="feature-"] {
  scroll-margin-top: 80px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-medium);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

#focus .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

/* Feature card components */
.feature-card {
  background: linear-gradient(135deg, var(--bg-light) 0%, #e8f4f4 100%);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #e8f4f4 0%, #c8ecec 100%);
}

.feature-card--secondary {
  padding: 1.3rem;
}

.feature-card--highlighted {
  background: linear-gradient(135deg, #f0f8f8 0%, #d8eeee 100%);
  border: 1px solid rgba(48, 151, 152, 0.25);
}

.feature-card--highlighted:hover {
  background: linear-gradient(135deg, #d8eeee 0%, #c0e4e4 100%);
}

.feature-card .feature-icon {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  display: block;
  color: var(--primary-color);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-medium);
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   CTA SECTION
   ======================================== */

#cta {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  padding: 5rem 2rem;
  text-align: center;
  color: #fff;
}

#cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

#cta p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* btn-cta-primary and btn-cta-secondary defined above with cta-button */

/* ========================================
   TEAM PAGE
   ======================================== */

/* Shared editorial hero photo class */
.editorial-hero-photo {
  background-size: cover;
  background-position: center;
}

/* All editorial split headers */
#team-hero,
#contact-hero,
#why-hero,
#blog-hero,
#testimonials-hero,
#resources-hero,
#free-resources-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}

/* Editorial header: photo left, content right */
#team-hero {
  min-height: 420px;
}

.team-hero-photo {
  background-size: cover;
  background-position: center 30%;
}

.team-hero-content {
  background: var(--surface-hero-dark);
  padding: 4.5rem 4rem 4.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

.team-hero-content h2 {
  font-size: 2.8rem;
  line-height: 1.15;
  color: white;
  margin-bottom: 1rem;
}

.team-hero-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

.section-eyebrow {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
}

.section-eyebrow::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--primary-color);
  margin-top: 0.45rem;
  border-radius: 1px;
}

.section-eyebrow.text-center::after {
  margin-left: auto;
  margin-right: auto;
}

/* Founders: portrait cards with overlay name */
#founders {
  padding: 5rem 2rem;
  background: var(--bg-white);
}

.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.founder-card {
  background: var(--bg-white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.founder-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.founder-card-photo {
  position: relative;
  height: 320px;
}

.founder-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.founder-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 45%,
    rgba(8, 32, 32, 0.88) 100%
  );
}

.founder-card-overlay {
  position: absolute;
  bottom: 1.2rem;
  left: 1.4rem;
  right: 1.4rem;
  z-index: 1;
}

.founder-card-overlay h3 {
  font-size: 1.25rem;
  color: white;
  margin-bottom: 0.15rem;
}

.founder-role {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

.founder-card-body {
  padding: 1.4rem;
}

/* Team members: compact grid */
#team-members {
  padding: 6.5rem 2rem 4rem;
  background: var(--bg-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.team-card-photo {
  position: relative;
  height: 260px;
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.team-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 45%,
    rgba(8, 32, 32, 0.88) 100%
  );
}

.team-card-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1.2rem;
  right: 1.2rem;
  z-index: 1;
}

.team-card-overlay h3 {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0.1rem;
}

.team-card-role {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0;
}

.team-card-body {
  padding: 1.4rem;
}

.team-card-social {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.5rem;
}

.team-card-social a {
  color: var(--primary-color);
  font-size: 1.2rem;
  text-decoration: none;
  transition: var(--transition);
}

.team-card-social a:hover {
  color: var(--primary-dark);
}

/* Scientific advisor: portrait card with teal overlay */
#scientific-advisor {
  padding: 4rem 2rem 5rem;
  background: var(--bg-light);
}

.advisor-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.advisor-card-photo {
  position: relative;
  min-height: 300px;
}

.advisor-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.advisor-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(15, 46, 46, 0.9) 100%
  );
}

.advisor-card-overlay {
  position: absolute;
  bottom: 1.2rem;
  left: 1.4rem;
  right: 1.4rem;
  z-index: 1;
}

.advisor-card-overlay h3 {
  font-size: 1.15rem;
  color: white;
  margin-bottom: 0.2rem;
}

.advisor-card-overlay .advisor-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  margin: 0;
}

.advisor-badge {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}

.advisor-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.advisor-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  color: var(--text-dark);
}

.advisor-title {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.team-social {
  margin-top: 1rem;
}

.team-social a {
  color: var(--primary-color);
  font-size: 1.3rem;
  text-decoration: none;
  transition: color 0.2s;
}

.team-social a:hover {
  color: var(--accent-color);
}

/* ========================================
   CONTACT PAGE
   ======================================== */

#contact-hero {
  min-height: 400px;
}

.contact-hero-content {
  background: var(--surface-hero-dark);
  padding: 4.5rem 4rem 4.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

.contact-hero-content h2 {
  font-size: 2.8rem;
  line-height: 1.15;
  color: white;
  margin-bottom: 1rem;
}

.contact-hero-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-hero-ctas {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.contact-hero-photo {
  background-size: cover;
  background-position: center 45%;
}

/* Contact strip */
.contact-strip {
  background: var(--surface-strip);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1.8rem 3rem;
  flex-wrap: wrap;
}

.contact-strip-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-strip-item i {
  font-size: 1.3rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.contact-strip-item div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-strip-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.contact-strip-item a,
.contact-strip-item span:last-child {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.contact-strip-item a:hover {
  color: var(--primary-color);
}

.contact-strip-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-strip-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

/* Legacy #team section (keep for safety) */
#team {
  background: var(--bg-white);
  padding: 5rem 2rem;
  margin: 3rem 0;
}

#team h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

#team > p {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-medium);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.team-member {
  text-align: center;
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--primary-color);
  transition: var(--transition);
}

.team-member:hover img {
  border-color: var(--accent-color);
  transform: scale(1.05);
}

.team-member h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.team-member > p:first-of-type {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.bio {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.6;
}

/* ========================================
   BLOG SECTION
   ======================================== */

/* Blog hero reuses #team-hero / .team-hero-content / .team-hero-photo */
#blog-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}

#blog {
  background: var(--bg-white);
  padding: 4rem 2rem 5rem;
}

.blog-featured-post {
  max-width: 780px;
  margin: 0 auto 3rem;
  background: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 12px 12px 0;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.blog-featured-post h3 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.blog-tag {
  display: inline-block;
  color: white;
  padding: 0.3rem 0.9rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.blog-coming-soon {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  max-width: 780px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f0fafa, #e4f5f5);
  border: 1px solid rgba(48, 151, 152, 0.2);
  border-radius: 12px;
  padding: 2.5rem;
}

.blog-coming-soon-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  opacity: 0.6;
  flex-shrink: 0;
  padding-top: 0.3rem;
}

.blog-coming-soon-body h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.blog-coming-soon-body p {
  color: var(--text-medium);
  line-height: 1.7;
  margin: 0;
}

#blog h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-post {
  background: var(--bg-light);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.blog-post::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--primary-color);
  transition: var(--transition);
}

.blog-post:hover::before {
  height: 100%;
}

.blog-post:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.blog-post h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 1.2rem;
}

.blog-post p {
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}

.read-more:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

#testimonials {
  background: var(--bg-light);
  padding: 5rem 2rem;
  margin: 3rem 0;
}

#testimonials h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.testimonial:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.testimonial img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--primary-color);
}

.testimonial blockquote {
  font-size: 1.1rem;
  font-style: italic;
  margin: 0;
  color: var(--text-medium);
  line-height: 1.8;
}

.testimonial blockquote::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.3;
  line-height: 0;
  display: block;
  margin-bottom: 1rem;
}

.testimonial footer {
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

#contact {
  background: var(--bg-white);
  padding: 5rem 2rem;
  margin: 3rem 0;
}

#contact h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

#contact > p {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-medium);
  margin-bottom: 3rem;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

form label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: -1rem;
}

form input,
form textarea {
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(48, 151, 152, 0.1);
}

form textarea {
  min-height: 150px;
  resize: vertical;
}

form button {
  padding: 1.2rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

form button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.contact-details h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

.contact-details p {
  margin-bottom: 1.5rem;
  color: var(--text-medium);
}

.contact-details a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-details a:hover {
  color: var(--accent-color);
}

.map-container {
  margin-top: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background: var(--surface-footer);
  color: #fff;
  padding: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  text-align: left;
}

.footer-product {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.footer-by {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.75;
  margin: 0;
  font-style: italic;
}

.footer-col-label {
  font-family: var(--font-label); /* excepted — keep serif label font */
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.92);
}

.social-media {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.social-media a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-media a:hover {
  color: #fff;
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.footer-email {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--transition);
  display: block;
  text-align: center;
  margin-top: 0.45rem;
}

.footer-email:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.82rem;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.82rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.65);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet and below */
@media (max-width: 768px) {
  /* Header */
  header {
    padding: 1rem 1.5rem;
    position: sticky;
  }

  header .logo-container img {
    height: 34px;
  }

  /* Hamburger visible, nav hidden by default */
  .nav-toggle {
    display: flex;
  }

  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  #main-nav.is-open {
    display: block;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 0.5rem 0;
  }

  #main-nav ul li a {
    display: block;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-size: 1rem;
  }

  #main-nav ul li a::after {
    display: none;
  }

  #main-nav ul li a:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-app-btn {
    margin: 0.5rem 1.5rem !important;
    display: block !important;
    text-align: center !important;
  }

  .nav-neurohive-link {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 0.25rem;
  }

  /* Hero sections */
  #hero {
    padding: 3rem 1.5rem;
  }

  #hero h2 {
    font-size: 2.2rem;
  }

  #hero p {
    font-size: 1.1rem;
  }

  /* Section headings — !important overrides section-specific sizes
     (e.g. #cta h2 { font-size: 2.5rem }) on small screens */
  h2 {
    font-size: 2rem !important;
  }
  h3 {
    font-size: 1.5rem !important;
  }
  h4 {
    font-size: 1.2rem !important;
  }

  /* Grids — stack on mobile */
  .benefit-cards,
  #features ul,
  .team-members,
  .blog-posts,
  .testimonials-grid,
  .showcase-grid,
  .contact-container,
  .grid-2col {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  /* Testimonial cards */
  .testimonials-grid > * {
    min-width: 0 !important;
  }

  /* Sections padding */
  section {
    padding: 3rem 1.5rem !important;
  }

  /* CTA buttons */
  .cta-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }

  /* Padded boxes use the .padded-box class (see LAYOUT UTILITIES) */

  /* Map height */
  iframe[style*="height"] {
    min-height: 300px !important;
  }

  /* Hide decorative elements on mobile */
  #hero::before,
  #hero::after {
    display: none;
  }

  /* Comparison Table - Hide competitor columns on mobile */
  table th:nth-child(2),
  table th:nth-child(3),
  table th:nth-child(4),
  table td:nth-child(2),
  table td:nth-child(3),
  table td:nth-child(4) {
    display: none;
  }

  /* Adjust first column width */
  table th:first-child,
  table td:first-child {
    padding: 1rem !important;
    font-size: 0.95rem !important;
  }

  /* Adjust Digital Farmer column */
  table th:last-child,
  table td:last-child {
    padding: 1rem !important;
    font-size: 0.9rem !important;
  }

  /* Table container */
  table {
    font-size: 0.9rem !important;
  }

  /* Add note for mobile users */
  .comparison-table-wrap::before {
    content: "✨ Showing Digital Farmer features";
    display: block;
    text-align: center;
    padding: 0.5rem;
    background: var(--accent-color);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px 4px 0 0;
    margin-bottom: 0.5rem;
  }

  .page-hero {
    padding: 3rem 0;
  }
  .page-hero h2 {
    font-size: 2rem;
  }
  .section-light,
  .section-white {
    padding: 3rem 0;
  }
  .section-light.section-diagonal,
  .section-white.section-diagonal {
    padding-top: 5.5rem;
  }
  .section-diagonal {
    clip-path: polygon(0 1.5rem, 100% 0, 100% 100%, 0 100%);
    margin-top: -1.5rem;
  }
}

/* ========================================
   LAYOUT & TYPOGRAPHY UTILITIES
   Usage: add these classes to HTML; override with section tokens
   where needed. No !important — they rely on normal cascade.
   ======================================== */

/* Responsive 2-column grid — collapses to 1 col on ≤768px */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
}

/* Text containers — centre-aligned and max-width capped */
.text-container {
  max-width: 800px;
  margin-inline: auto;
}
.text-container--sm {
  max-width: 700px;
  margin-inline: auto;
}
.text-container--xs {
  max-width: 600px;
  margin-inline: auto;
}

/* Text size scale (use on <p> / prose when the element
   selector alone isn't specific enough) */
.text-xl {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}
.text-lg {
  font-size: clamp(1rem, 2vw, 1.2rem);
}
.text-md {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}
.text-sm {
  font-size: 0.9rem;
}
.text-xs {
  font-size: 0.85rem;
}
.lh-lg {
  line-height: 1.8;
}

/* Padded box — card-like padding that reduces on small screens.
   Apply this class to any div that currently has
   style="padding: 2.5rem" so responsive scaling is automatic. */
.padded-box {
  padding: 2.5rem;
}
@media (max-width: 768px) {
  .padded-box {
    padding: 1.5rem;
  }
}
@media (max-width: 480px) {
  .padded-box {
    padding: 1.2rem;
  }
}

/* Flex row that collapses to column on mobile */
.flex-row-wrap {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .flex-row-wrap {
    flex-direction: column;
  }
}

/* ========================================
   PAGE & SECTION UTILITIES
   ======================================== */

.page-hero {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  padding: 5rem 0;
  text-align: center;
  color: white;
}

.page-hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.3rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
}

.section-light {
  background: var(--bg-light);
  padding: 5rem 0;
}
.section-white {
  background: var(--bg-white);
  padding: 5rem 0;
}
.section-light.section-diagonal,
.section-white.section-diagonal {
  padding-top: 7.5rem;
}

.section-problems {
  padding: 5rem 0;
  background-size: cover;
  background-position: center 55%;
  position: relative;
  color: #fff;
}

.section-problems::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(4, 18, 18, 0.84) 0%,
    rgba(8, 32, 32, 0.91) 100%
  );
  z-index: 0;
}

.section-problems > .container {
  position: relative;
  z-index: 1;
}

.section-problems .df-card-lg {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.82);
}

.section-problems .df-card-lg h4 {
  color: #fff;
}

.section-problems .df-card-lg strong {
  color: rgba(255, 255, 255, 0.95);
}

.section-problems .df-card-lg .text-muted {
  color: rgba(255, 255, 255, 0.65) !important;
}

.section-problems .df-card-lg ul li {
  color: rgba(255, 255, 255, 0.65);
}

.section-problems .df-card-lg p.mb-0 {
  color: rgba(255, 255, 255, 0.88);
}

.section-problems.section-diagonal {
  padding-top: 7.5rem;
}

.section-problems .section-eyebrow::after {
  background: rgba(255, 255, 255, 0.35);
}
.section-primary {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-color)
  );
  padding: 4rem 0;
  text-align: center;
  color: white;
}
.section-border-primary {
  border-bottom: 3px solid var(--primary-color);
}
.section-border-accent {
  border-top: 3px solid var(--accent-color);
}

/* ========================================
   WHO WE SERVE: portrait-overlay cards
   ======================================== */

.who-card {
  background: var(--bg-white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

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

.who-card-photo {
  position: relative;
  height: 260px;
  background-size: cover;
  background-position: center;
}

.who-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 28%,
    rgba(4, 20, 20, 0.93) 100%
  );
}

.who-card-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1.2rem;
  right: 1.2rem;
  z-index: 1;
}

.who-card-badge {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  color: white;
  margin-bottom: 0.4rem;
}

.who-card-overlay h4 {
  font-size: 1.25rem;
  color: white;
  margin: 0;
  line-height: 1.3;
}

.who-card-body {
  padding: 1.5rem;
}

.who-card-body ul {
  margin-left: 1.2rem;
  margin-top: 0.25rem;
}

.who-card-body li {
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ========================================
   APP PREVIEW: dark atmospheric section
   ======================================== */

.section-app-preview {
  background: var(--gradient-dark-section);
  padding: 5rem 0;
}

.section-app-preview .section-eyebrow {
  color: var(--primary-light);
}

.section-app-preview .section-eyebrow::after {
  background: var(--primary-light);
}

.section-app-preview h3 {
  color: white;
}

.section-app-preview .browser-frame {
  box-shadow:
    0 24px 80px rgba(48, 151, 152, 0.28),
    0 8px 32px rgba(0, 0, 0, 0.7);
}

.section-expertise {
  background: linear-gradient(160deg, #f0fafa 0%, #e8f5f5 60%, #f4fbfb 100%);
  padding: 5rem 0;
}

.section-expertise.section-diagonal {
  padding-top: 7.5rem;
}

.expertise-card {
  background: #fff;
  padding: 2.2rem 2.5rem;
  border-radius: var(--border-radius);
  border-left: 5px solid;
  box-shadow: 0 2px 16px rgba(48, 151, 152, 0.08);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.expertise-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
}

@media (max-width: 768px) {
  .expertise-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-left: none;
    border-top: 5px solid;
  }
}

.expertise-wisdom {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-color)
  );
  padding: 2.5rem;
  border-radius: var(--border-radius);
  color: white;
  box-shadow: 0 8px 32px rgba(29, 60, 114, 0.2);
}

/* ========================================
   CARD UTILITIES
   ======================================== */

.df-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.df-card-lg {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.df-card-light {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

/* ========================================
   FORM UTILITIES
   ======================================== */

.df-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.df-input {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--bg-light);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.df-input:focus {
  border-color: var(--primary-color);
  outline: none;
}

select.df-input {
  background: white;
}

.df-btn-submit {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
}

.df-btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.form-section {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

/* ========================================
   NEWSLETTER MODAL
   ======================================== */

.newsletter-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.newsletter-modal.is-open {
  display: flex;
}

.newsletter-modal-inner {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.25s ease;
}

.newsletter-modal-inner h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.newsletter-modal-inner > p {
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.newsletter-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s;
}

.newsletter-modal-close:hover {
  color: var(--text-dark);
}

/* ========================================
   FEATURED POST (blog)
   ======================================== */

.featured-post {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.featured-post-body {
  padding: 3rem;
  color: white;
}

.featured-post-image {
  padding: 2rem;
}

.featured-post-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.featured-post-btn {
  display: inline-block;
  background: white;
  color: var(--primary-color);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.featured-post-btn:hover {
  opacity: 0.9;
  color: var(--primary-color);
}

/* ========================================
   POST TAG
   ======================================== */

.post-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: white;
}

/* ========================================
   ICON CIRCLE
   ======================================== */

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  flex-shrink: 0;
}

/* ========================================
   RESOURCES PAGE
   ======================================== */

.quick-link {
  display: block;
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.quick-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.quick-link-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: block;
}
.quick-link-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.resource-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.resource-card h4 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.resource-card p {
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.resource-card ul {
  color: var(--text-medium);
  line-height: 1.8;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.resource-card a.guide-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}
.resource-card a.guide-link:hover {
  text-decoration: underline;
}

.step-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.step-badge--primary {
  background: var(--primary-color);
}
.step-badge--accent {
  background: var(--accent-color);
}
.step-badge--success {
  background: #059669;
}

.video-card {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.video-card-thumb {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  padding: 5rem 2rem;
  text-align: center;
  color: white;
  position: relative;
}

.video-card-thumb .play-icon {
  font-size: 4rem;
}

.video-card-thumb .duration {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* ========================================
   TYPOGRAPHY — canonical role assignments
   All values reference tokens declared in :root.
   To restyle a section, override the role token there:
     #my-section { --font-heading: var(--font-ui); }
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

.logo-product {
  font-family: var(--font-heading);
}

/* ── Type scale (clamp-based, auto-responsive) ──────────────────
   These are the BASE sizes; more-specific rules (e.g. #hero h2)
   override where a section needs a larger/smaller size.
   The clamp() values mean no media-query font-size overrides are
   needed for plain headings — they scale fluidly.
──────────────────────────────────────────────────────────────── */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
}
h3 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  line-height: 1.3;
}
h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.4;
}
h5,
h6 {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

/* Pastoral illustration removed */

/* Why hero: photo left, content right (inverted from team/contact) */
#why-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}

.why-hero-photo {
  background-size: cover;
  background-position: center;
}

/* Team + Contact page responsive */
@media (max-width: 900px) {
  #team-hero,
  #contact-hero,
  #why-hero,
  #blog-hero,
  #testimonials-hero,
  #resources-hero,
  #free-resources-hero {
    grid-template-columns: 1fr;
  }

  .team-hero-photo,
  .contact-hero-photo,
  .why-hero-photo,
  .editorial-hero-photo {
    height: 200px;
    order: -1;
  }

  .team-hero-content,
  .contact-hero-content {
    padding: 3rem 2rem;
  }

  .team-hero-content h2,
  .contact-hero-content h2 {
    font-size: 2.1rem;
  }

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

  .advisor-card {
    grid-template-columns: 1fr;
  }
  .advisor-card-photo {
    min-height: 240px;
  }

  .contact-strip {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 2rem;
  }

  .contact-strip-divider {
    width: 60px;
    height: 1px;
  }

  .contact-strip-item {
    padding: 0.5rem 0;
  }
}

/* ========================================
   HOMEPAGE FEATURE HIGHLIGHT (3-card teaser)
   ======================================== */

.features-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.features-highlight-card {
  background: var(--bg-white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.features-highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.features-highlight-photo {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.features-highlight-body {
  padding: 1.6rem;
}

.features-highlight-body h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.features-highlight-body p {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .features-highlight-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   WHY PAGE — MODULE GRID (6 modules) — dark section
   ======================================== */

.section-modules {
  background: var(--gradient-dark-section);
  padding: 5rem 0;
}

.section-modules .section-eyebrow {
  color: var(--primary-light);
}

.section-modules .section-eyebrow::after {
  background: var(--primary-light);
}

.section-modules h3 {
  color: white;
}

.section-modules .section-subtitle-muted {
  color: rgba(255, 255, 255, 0.52);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.module-card {
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.module-card-photo {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.module-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 22%,
    rgba(4, 20, 20, 0.96) 100%
  );
}

.module-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.9rem 1.2rem;
  z-index: 1;
}

.module-card-overlay h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin: 0;
  line-height: 1.3;
}

.module-card-body {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-radius: 0 0 14px 14px;
  padding: 1.2rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.module-card-body h4 {
  display: none;
}

.module-card-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.module-card-body ul li {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.68);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.module-card-body ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-size: 0.75rem;
}

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

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

/* ========================================
   BENEFITS MASONRY RHYTHM (index.html)
   ======================================== */

.benefit-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-card:nth-child(1),
.benefit-card:nth-child(6) {
  grid-column: span 2;
}

.benefit-card:nth-child(1) .benefit-card-visual,
.benefit-card:nth-child(6) .benefit-card-visual {
  height: 210px;
}

@media (max-width: 768px) {
  .benefit-card:nth-child(1),
  .benefit-card:nth-child(6) {
    grid-column: span 1;
  }

  .benefit-card:nth-child(1) .benefit-card-visual,
  .benefit-card:nth-child(6) .benefit-card-visual {
    height: 155px;
  }
}

/* ========================================
   SCROLL-REVEAL ANIMATION
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ========================================
   FEATURE CATEGORY PHOTO BANNERS
   ======================================== */

.feature-category-banner {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 180px;
  margin-bottom: 2rem;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.feature-category-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 84, 85, 0.93) 0%,
    rgba(48, 151, 152, 0.55) 55%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.feature-category-banner h3 {
  position: relative;
  z-index: 1;
  color: white !important;
  font-size: 1.55rem;
  font-weight: 700;
  padding: 1.2rem 2rem;
  margin: 0;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.01em;
}

/* Banner height variants */
.feature-category-banner--tall {
  height: 240px;
}

.feature-category-banner--compact {
  height: 140px;
}

/* Banner text-alignment variants */
.feature-category-banner--left {
  justify-content: flex-start;
}

.feature-category-banner--left h3 {
  text-align: left;
  padding-left: 2.5rem;
}

.feature-category-banner--right {
  justify-content: flex-end;
}

.feature-category-banner--right h3 {
  text-align: right;
  padding-right: 2.5rem;
}

/* Lighter overlay for dark source images (night-vision etc) */
.feature-category-banner--overlay-light::after {
  background: linear-gradient(
    to top,
    rgba(10, 50, 55, 0.88) 0%,
    rgba(20, 80, 85, 0.45) 55%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

/* ========================================
   FEATURE CARD PHOTO STRIPS
   ======================================== */

.feature-card-photo {
  height: 95px;
  background-size: cover;
  background-position: center;
  border-radius: 12px 12px 0 0;
  margin: -1.3rem -1.3rem 1rem;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.feature-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(48, 151, 152, 0.25) 0%,
    rgba(255, 255, 255, 0.05) 60%,
    rgba(255, 255, 255, 0.8) 100%
  );
}

.feature-card--secondary {
  display: flex;
  flex-direction: column;
}

/* ========================================
   BENEFIT CARD VISUALS
   ======================================== */

.benefit-card-visual {
  height: 155px;
  background-size: cover;
  background-position: center;
  border-radius: 12px 12px 0 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.benefit-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(255, 255, 255, 0.97) 100%
  );
}

/* ========================================
   CUSTOM FARM SVG ICONS (primary-benefits, why)
   ======================================== */

.farm-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 0.75rem;
  color: var(--primary-color);
}

.farm-icon svg {
  width: 100%;
  height: 100%;
}

.why-farm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  color: var(--primary-color);
}

.why-farm-icon svg {
  width: 100%;
  height: 100%;
}

.video-card-body {
  padding: 1.5rem;
}
.video-card-body h4 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.video-card-body p {
  color: var(--text-medium);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.video-card-body a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.practice-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--primary-color);
}

.practice-card ul {
  color: var(--text-medium);
  line-height: 1.8;
  padding-left: 1.5rem;
}
.practice-card ul li {
  margin-bottom: 0.5rem;
}

.download-row {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.download-row:hover {
  box-shadow: var(--shadow-md);
}

.download-btn {
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.download-btn:hover {
  background: var(--primary-dark);
  color: white;
}

.comparison-table-wrap {
  overflow-x: auto;
}

.comparison-table {
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--bg-light);
}

.comparison-table tbody td {
  border-bottom: 1px solid var(--bg-light);
  padding: 1.2rem;
}

.comp-df-col {
  box-shadow:
    inset 3px 0 0 0 var(--primary-color),
    inset -3px 0 0 0 var(--primary-color);
}

.comparison-table thead .comp-df-col {
  box-shadow:
    inset 3px 0 0 0 var(--accent-color),
    inset -3px 0 0 0 var(--accent-color),
    inset 0 3px 0 0 var(--accent-color);
}

.comparison-table tbody tr:last-child .comp-df-col {
  box-shadow:
    inset 3px 0 0 0 var(--primary-color),
    inset -3px 0 0 0 var(--primary-color),
    inset 0 -3px 0 0 var(--primary-color);
  border-radius: 0 0 var(--border-radius) 0;
}

/* Mobile phones */
@media (max-width: 480px) {
  /* Header */
  header {
    padding: 0.8rem 1rem;
  }

  header h1 {
    font-size: 1.2rem;
  }

  header .logo-container {
    gap: 0.5rem;
  }

  header .logo-container img {
    height: 28px;
  }

  nav ul {
    gap: 0.3rem;
  }

  nav a {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
  }

  /* Hero */
  #hero {
    padding: 2.5rem 1rem;
  }

  #hero h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    color: #fff;
  }

  #hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Section headings */
  h2 {
    font-size: 1.8rem !important;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.3rem !important;
  }

  h4 {
    font-size: 1.1rem !important;
  }

  /* Sections */
  section {
    padding: 2.5rem 1rem !important;
  }

  /* Buttons */
  .cta-button,
  button[type="submit"] {
    padding: 0.9rem 1.5rem !important;
    font-size: 0.95rem !important;
  }

  /* Padded boxes (class-based, see LAYOUT UTILITIES) */
  .padded-box {
    padding: 1.2rem;
  }

  /* Forms */
  form input,
  form textarea,
  form select {
    padding: 0.7rem !important;
    font-size: 0.95rem !important;
  }

  form label {
    font-size: 0.95rem !important;
  }

  /* Map */
  iframe {
    min-height: 250px !important;
    height: 250px !important;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.5rem 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
    padding: 1rem 1.5rem;
  }

  .social-media {
    gap: 0.5rem;
  }

  /* Summary/details */
  summary {
    font-size: 1.1rem !important;
  }

  /* Hide verbose text on mobile */
  [style*="(Optional - Click to expand/collapse)"] span:last-child {
    display: none;
  }
}

/* ========================================
   BROWSER FRAME & SLIDESHOW (From Herdbook Landing)
   ======================================== */

.browser-frame {
  width: 100%;
  max-width: 680px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid #d0d0d0;
  cursor: zoom-in;
  animation: fadeInUp 0.8s ease 0.5s backwards;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.browser-chrome {
  background: #f0f0f0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #ddd;
  flex-shrink: 0;
}

.browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.browser-dots span:nth-child(1) {
  background: #ff5f57;
}
.browser-dots span:nth-child(2) {
  background: #febc2e;
}
.browser-dots span:nth-child(3) {
  background: #28c840;
}

.browser-url {
  flex: 1;
  background: #fff;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.78rem;
  color: #666;
  border: 1px solid #ddd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.browser-content {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: #fff;
}

/* Slideshow inside browser frame */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  animation: slideshow 36s infinite;
}

.hero-slide.slide-1 {
  animation: slideshow-first 36s infinite;
}
.hero-slide.slide-2 {
  animation-delay: 6s;
}
.hero-slide.slide-3 {
  animation-delay: 12s;
}
.hero-slide.slide-4 {
  animation-delay: 18s;
}
.hero-slide.slide-5 {
  animation-delay: 24s;
}
.hero-slide.slide-6 {
  animation-delay: 30s;
}

@keyframes slideshow-first {
  0%,
  13.8% {
    opacity: 1;
  }
  16.6%,
  100% {
    opacity: 0;
  }
}

@keyframes slideshow {
  0% {
    opacity: 0;
  }
  2.7%,
  13.8% {
    opacity: 1;
  }
  16.6%,
  100% {
    opacity: 0;
  }
}

/* Slideshow fullscreen modal */
.slideshow-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fadeIn 0.2s ease;
}

.slideshow-modal.is-open {
  display: flex;
}

.slideshow-modal img {
  max-width: min(90vw, 900px);
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

.slideshow-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slideshow-modal-close:hover,
.slideshow-modal-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.slideshow-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 1;
}

.slideshow-modal-prev {
  left: 1.5rem;
}
.slideshow-modal-next {
  right: 1.5rem;
}

.slideshow-modal-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.modal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.modal-dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

/* Very small phones */
@media (max-width: 360px) {
  header h1 {
    font-size: 1rem;
  }

  nav ul {
    gap: 0.2rem;
  }

  nav a {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }

  #hero h2 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  section {
    padding: 2rem 0.8rem !important;
  }
}

/* ========================================
   NEUROHIVE HOMEPAGE SECTIONS
   (hero two-column, research, products, focus, about, blog)
   ======================================== */

/* Hero: two-column layout classes */
.hero-logo {
  height: 52px;
  width: auto;
  margin-bottom: 1.2rem;
  display: block;
}

.hero-text-col {
  position: relative;
  z-index: 1;
}

#hero .container {
  position: relative;
  z-index: 1;
}

#hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  animation: fadeInUp 0.7s ease 0.1s backwards;
}

#hero h1 em {
  font-style: normal;
  color: #fff;
}

#hero .hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.8;
  animation: fadeInUp 0.7s ease 0.2s backwards;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.3s backwards;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  padding: 1rem 2.2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--primary-color);
  padding: 1rem 2.2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

#hero .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

#hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: #fff;
}

/* hero-stat-value used in neurohive-style hero (vs hero-stat-num in old hero) */
.hero-stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  display: block;
  line-height: 1;
}

/* Hero product preview cards */
.hero-product-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 14px;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.7s ease 0.2s backwards;
}

.hero-product-card:nth-child(2) {
  animation-delay: 0.35s;
}

.hero-product-card--farmer {
  background: linear-gradient(135deg, #309798 0%, #267a7b 100%);
  box-shadow: 0 6px 24px rgba(48, 151, 152, 0.3);
}

.hero-product-card--farmer:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(48, 151, 152, 0.4);
}

.hero-product-card--herdbook {
  background: linear-gradient(135deg, #254e94 0%, #1d3c72 100%);
  box-shadow: 0 6px 24px rgba(37, 78, 148, 0.3);
}

.hero-product-card--herdbook:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(37, 78, 148, 0.4);
}

.hpc-icon {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 4px;
}

.hpc-body {
  flex: 1;
}

.hpc-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.hpc-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.hpc-body p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
  margin-bottom: 0.8rem;
}

.hpc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hpc-features li {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hpc-features li i {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.hero-product-card--herdbook .hpc-features li i {
  color: #7eb3ff;
}

.hpc-arrow {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  flex-shrink: 0;
  align-self: center;
  transition: var(--transition);
}

.hero-product-card:hover .hpc-arrow {
  color: rgba(255, 255, 255, 0.9);
  transform: translateX(4px);
}

/* Research & Technology */
#research {
  background: var(--bg-white, #fff);
  padding: 5rem 2rem;
}

.research-card {
  background: var(--bg-white, #fff);
  padding: 2rem;
  border-radius: var(--border-radius, 12px);
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.05));
  transition: var(--transition, all 0.3s ease);
  border-top: 3px solid transparent;
}

.research-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.1));
  border-top-color: var(--primary-color);
}

.research-card--wide {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.research-card--wide .research-card-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  font-size: 1.6rem;
}

.research-card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(48,151,152,0.12), rgba(48,151,152,0.06));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.research-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark, #1a1a1a);
  margin-bottom: 0.6rem;
}

.research-card p {
  font-size: 0.95rem;
  color: var(--text-medium, #4a4a4a);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 576px) {
  .research-card--wide {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
}

/* Products section */
#products {
  background: linear-gradient(135deg, var(--bg-light, #f8f9fa) 0%, #e8f4f4 100%);
  padding: 5rem 2rem;
  scroll-margin-top: 80px;
}

.product-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.05));
  transition: var(--transition, all 0.3s ease);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,0.15));
}

.product-card-header {
  padding: 2.5rem 2.5rem 1.5rem;
}

.product-card--farmer .product-card-header {
  background: linear-gradient(135deg, #309798 0%, #267a7b 100%);
  color: #fff;
}

.product-card--herdbook .product-card-header {
  background: linear-gradient(135deg, #254e94 0%, #1a3a70 100%);
  color: #fff;
}

.product-icon {
  font-size: 2.5rem;
  margin-bottom: 0.6rem;
  display: block;
  opacity: 0.9;
}

.product-card-header h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.product-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.95);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.product-card-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.6;
}

.product-card-body {
  background: #fff;
  padding: 2rem 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-features {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.55rem 0;
  font-size: 0.95rem;
  color: var(--text-medium, #4a4a4a);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.product-features li:last-child {
  border-bottom: none;
}

.product-features li i {
  margin-top: 0.15rem;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.product-card--farmer .product-features li i { color: #309798; }
.product-card--herdbook .product-features li i { color: #254e94; }

.product-card-footer {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn-product-primary {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition, all 0.3s ease);
  flex: 1;
  text-align: center;
}

.product-card--farmer .btn-product-primary {
  background: linear-gradient(135deg, #309798, #267a7b);
  color: #fff;
  box-shadow: 0 3px 10px rgba(48, 151, 152, 0.3);
}

.product-card--farmer .btn-product-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(48, 151, 152, 0.4);
  color: #fff;
}

.product-card--herdbook .btn-product-primary {
  background: linear-gradient(135deg, #254e94, #1a3a70);
  color: #fff;
  box-shadow: 0 3px 10px rgba(37, 78, 148, 0.3);
}

.product-card--herdbook .btn-product-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 78, 148, 0.4);
  color: #fff;
}

.btn-product-secondary {
  flex: 1;
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition, all 0.3s ease);
  border: 2px solid;
  text-align: center;
}

.product-card--farmer .btn-product-secondary {
  color: #309798;
  border-color: #309798;
}

.product-card--farmer .btn-product-secondary:hover {
  background: #309798;
  color: #fff;
}

.product-card--herdbook .btn-product-secondary {
  color: #254e94;
  border-color: #254e94;
}

.product-card--herdbook .btn-product-secondary:hover {
  background: #254e94;
  color: #fff;
}

/* Focus / Where Research Meets the Farm */
#focus {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  padding: 4.5rem 2rem;
  color: #fff;
}

.focus-pillar {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--border-radius, 12px);
  padding: 1.8rem 1.5rem;
  transition: var(--transition, all 0.3s ease);
}

.focus-pillar:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.focus-pillar i {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.8rem;
  display: block;
}

.focus-pillar h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.focus-pillar p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0;
}

/* About section */
#about {
  background: var(--bg-light, #f8f9fa);
  padding: 5rem 2rem;
  scroll-margin-top: 80px;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-medium, #4a4a4a);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-location {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 2rem;
}

.about-location i {
  color: var(--primary-color);
}

.value-card {
  background: #fff;
  padding: 1.4rem;
  border-radius: var(--border-radius, 12px);
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.05));
  transition: var(--transition, all 0.3s ease);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.1));
}

.value-card i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
  display: block;
}

.value-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark, #1a1a1a);
  margin-bottom: 0.3rem;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--text-medium, #4a4a4a);
  line-height: 1.5;
  margin: 0;
}

/* Blog section */
#blog {
  background: #fff;
  padding: 5rem 2rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-light, #f8f9fa);
  border-radius: 16px;
  padding: 1.8rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(48, 151, 152, 0.12);
  transition: var(--transition, all 0.3s ease);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(48, 151, 152, 0.15);
  border-color: rgba(48, 151, 152, 0.3);
  color: inherit;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.blog-date {
  font-size: 0.82rem;
  color: var(--text-light, #666);
}

.blog-card .blog-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
  background: rgba(48, 151, 152, 0.1);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark, #1a1a1a);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.93rem;
  color: var(--text-light, #666);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.2rem;
}

.blog-read-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: var(--transition, all 0.3s ease);
}

.blog-card:hover .blog-read-more {
  color: var(--primary-dark);
}

/* Responsive adjustments for new homepage sections */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.4rem;
  }

  #hero .hero-subtitle {
    font-size: 1.05rem;
    max-width: 100%;
  }

  .hero-product-card {
    padding: 1.3rem;
  }

  .product-card-footer {
    flex-direction: column;
  }

  #products,
  #about,
  #focus,
  #research,
  #blog {
    padding: 3.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .hpc-body p {
    display: none;
  }
}
