:root {
  /* ExplantFlow Exact Color Palette */
  --primary: #012D1D;
  --on-primary: #FFFFFF;
  --primary-container: #1B4332;
  --on-primary-container: #86AF99;
  --primary-fixed: #C1ECD4;
  --secondary: #116C4A;
  --secondary-container: #A1F4C8;
  --tertiary-fixed-dim: #FFBA27;
  --surface-base: #F8F9FA;
  --surface-container-highest: #E1E3E4;
  --on-surface: #191C1D;
  --outline-variant: #C1C8C2;

  /* Fonts */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

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

body {
  font-family: var(--font-family);
  background-color: var(--surface-base);
  color: var(--on-surface);
  line-height: 1.6;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

/* ====== HEADER ====== */
header {
  background-color: rgba(248, 249, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--outline-variant);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* ====== BUTTONS ====== */
.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(1, 45, 29, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: var(--primary-container);
  color: var(--on-primary);
  box-shadow: 0 8px 24px rgba(1, 45, 29, 0.2);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* ====== MAIN LAYOUT ====== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* ====== HERO ====== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0 4rem;
}

.hero-tagline {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  opacity: 1 !important;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--on-surface);
  opacity: 0.75;
  margin-bottom: 2rem;
  text-wrap: pretty;
}

.hero-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 40px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.12);
  display: block;
  margin: 0 auto;
}

/* ====== FEATURES ZIG-ZAG ====== */
.features {
  margin-top: 4rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.feature-row:nth-child(even) .feature-image {
  order: -1;
}

.feature-text h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.feature-text p {
  font-size: 1.0625rem;
  color: var(--on-surface);
  opacity: 0.75;
  line-height: 1.7;
}

.feature-image img {
  width: 100%;
  max-width: 380px;
  border-radius: 36px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

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

/* ====== HIGHLIGHTS GRID ====== */
.highlights {
  margin-top: 2rem;
  margin-bottom: 4rem;
  text-align: center;
}

.highlights > h2 {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 3rem;
  text-wrap: balance;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.highlight-card {
  background: var(--on-primary);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid var(--outline-variant);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.highlight-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.highlight-card h3 {
  color: var(--primary);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.highlight-card p {
  font-size: 0.9375rem;
  color: var(--on-surface);
  opacity: 0.7;
  line-height: 1.6;
}

/* ====== CTA SECTION ====== */
.cta {
  text-align: center;
  padding: 4rem 2rem;
  margin: 2rem -2rem 0;
  background: linear-gradient(135deg, var(--primary-fixed) 0%, var(--secondary-container) 100%);
  border-radius: 32px;
}

.cta h2 {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.cta p {
  font-size: 1.125rem;
  color: var(--primary-container);
  margin-bottom: 2rem;
  opacity: 0.85;
}

/* ====== PAGE CONTENT (Privacy / Support) ====== */
.page-content {
  max-width: 800px;
  margin: 4rem auto;
  background: var(--on-primary);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.page-content h1 {
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.page-content h2 {
  color: var(--secondary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-content p {
  margin-bottom: 1rem;
}

.page-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ====== FOOTER ====== */
footer {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
  padding: 3rem 2rem 1.5rem;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-content a {
  color: var(--on-primary-container);
  transition: color 0.2s ease;
}

.footer-content a:hover {
  color: var(--on-primary);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .hero,
  .feature-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .feature-row:nth-child(even) .feature-image {
    order: unset;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

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

  .cta {
    margin: 2rem 0 0;
    border-radius: 24px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
