/* AEX Landing Page - Clean, modern, outdoor-inspired */
:root {
  /* Primary palette - Colorado adventure */
  --aex-sky-blue: #0ea5e9;
  --aex-forest-green: #16a34a;
  --aex-sunset-orange: #f97316;
  --aex-orange: #f97316;
  --aex-dark: #1a1a1a;
  --aex-dark-grey: #374151;
  --aex-light: #f8fafc;
  --aex-white: #ffffff;
  /* Accents */
  --accent: var(--aex-sunset-orange);
  --accent-hover: #ea580c;
  --accent-light: rgba(249, 115, 22, 0.08);
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.06);
  /* Transitions */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--aex-dark);
  background: var(--aex-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sticky header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s var(--ease-out);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 2.5rem;
  width: auto;
}

.nav-links {
  display: none;
}

.nav-links.open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  padding: 1rem;
  background: white;
  box-shadow: var(--shadow-lg);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.nav-links.open a {
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.nav-links.open a:hover {
  background: var(--accent-light);
}

@media (min-width: 768px) {
  .nav-links.open {
    position: static;
    flex-direction: row;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-top: none;
  }

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

  .nav-links.open a {
    padding: 0;
  }

  .nav-links.open a:hover {
    background: transparent;
  }
}

.nav-links a {
  color: var(--aex-dark-grey);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* CTA Button - high contrast */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--shadow-md);
}

.btn-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(249, 115, 22, 0.5);
}

.btn-cta:active {
  transform: translateY(0);
}

.btn-cta-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.0625rem;
  border-radius: 14px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--aex-dark-grey);
  background: transparent;
  border: 2px solid var(--aex-dark-grey);
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background: var(--aex-dark-grey);
  color: white;
}

.activity-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--aex-light);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.activity-row span:last-child {
  font-weight: 600;
  color: var(--accent);
}

/* Hero section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3rem 1.5rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 42rem;
}

.hero-logo {
  margin-bottom: 1.5rem;
}

.hero-logo img {
  height: clamp(4.9rem, 11.2vw, 7rem);
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.hero-brand-name {
  display: block;
  margin-top: 0;
  font-size: clamp(0.75rem, 2vw, 0.9375rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f8912a;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: white;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subheadline {
  margin: 0 0 0.75rem;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  line-height: 1.5;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-social-proof {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-urgency {
  margin: 0 0 1.5rem;
  font-size: 0.9575rem;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
}

.hero-cta {
  margin-bottom: 2rem;
}

.hero-cta .btn-cta {
  background: var(--accent);
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
}

.hero-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  animation: bounce-subtle 2s ease-in-out infinite;
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.hero-scroll svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Section common */
.section {
  padding: 4.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

#what, #credits, #benefits, #cta {
  scroll-margin-top: 5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--aex-dark);
}

/* What is AEX */
.what-section {
  background: var(--aex-white);
}

.what-content {
  display: grid;
  gap: 2rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .what-content {
    grid-template-columns: 1fr auto;
  }
}

.what-text p {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  color: var(--aex-dark-grey);
  line-height: 1.7;
}

.what-text p:last-child {
  margin-bottom: 0;
}

.what-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.what-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 16px;
  color: var(--accent);
}

.what-icon svg {
  width: 2rem;
  height: 2rem;
}

/* How Credits Work */
.credits-section {
  background: linear-gradient(180deg, var(--aex-light) 0%, var(--aex-white) 100%);
}

.credits-steps {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .credits-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.credit-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--aex-white);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.credit-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.credit-step-num {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 12px;
}

.credit-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--aex-dark);
}

.credit-step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--aex-dark-grey);
  line-height: 1.6;
}

/* Benefits */
.benefits-section {
  background: var(--aex-white);
}

.benefits-grid {
  display: grid;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--aex-light);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.benefit-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.benefit-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 10px;
}

.benefit-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.benefit-card h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--aex-dark);
}

.benefit-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--aex-dark-grey);
  line-height: 1.5;
}

/* Social proof quote box (LP pages) */
.social-proof-section {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.social-proof-box {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.75rem 2rem;
  background: var(--aex-white);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.social-proof-quote {
  margin: 0;
  font-size: 1.125rem;
  font-style: italic;
  color: var(--aex-dark-grey);
  line-height: 1.6;
  text-align: center;
}

/* Final CTA */
.cta-section {
  background: linear-gradient(135deg, var(--accent-light) 0%, rgba(14, 165, 233, 0.06) 50%, var(--aex-white) 100%);
  padding: 4.5rem 1.5rem;
}

.cta-box {
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--aex-white);
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
}

.cta-box h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--aex-dark);
}

.cta-box .urgency-text {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--aex-dark-grey);
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .cta-form {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.cta-form input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: border-color 0.2s, outline 0.2s;
  box-sizing: border-box;
}

.cta-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.cta-form input::placeholder {
  color: #9ca3af;
}

.cta-form button {
  flex-shrink: 0;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  box-sizing: border-box;
}

.progress-bar {
  margin-top: 1.25rem;
}

.progress-bar-text {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  color: var(--aex-dark-grey);
}

.progress-track {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 68%;
  background: linear-gradient(90deg, var(--accent), var(--aex-forest-green));
  border-radius: 3px;
  transition: width 0.5s var(--ease-out);
}

.cta-message {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  min-height: 1.25rem;
}

.cta-message.success { color: var(--aex-forest-green); }
.cta-message.error { color: #dc2626; }

/* Footer */
.footer {
  background: var(--aex-dark);
  color: var(--aex-white);
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

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

.footer-social svg {
  width: 1.5rem;
  height: 1.5rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: white !important;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.2s, transform 0.2s;
}

.footer-contact-btn:hover {
  background: var(--accent-hover);
  color: white !important;
}

/* Mobile menu */
.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--aex-dark-grey);
}

.header-cta-mobile {
  display: inline-flex;
}

@media (min-width: 768px) {
  .header-cta-mobile {
    display: none;
  }

  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Inner page layout (signup, how-it-works, plans, partners, terms, privacy) */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 4.5rem;
}

.page-hero {
  background: linear-gradient(180deg, var(--accent-light) 0%, rgba(14, 165, 233, 0.04) 50%, var(--aex-white) 100%);
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--aex-dark);
  line-height: 1.15;
}

.page-hero p {
  margin: 0;
  font-size: 1.125rem;
  color: var(--aex-dark-grey);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  width: 100%;
}

/* Form styles for signup */
.page-form {
  max-width: 32rem;
  margin: 0 auto;
}

.page-form .form-card {
  background: var(--aex-white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.page-form label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--aex-dark);
  margin-bottom: 0.5rem;
}

.page-form input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s;
}

.page-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.page-form .btn-cta {
  width: 100%;
  padding: 1rem;
  font-size: 1.0625rem;
}

/* Cards for how-it-works, plans, partners */
.page-card {
  background: var(--aex-white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.page-card:hover {
  box-shadow: var(--shadow-xl);
}

.page-card h2 { margin: 0 0 0.5rem; font-size: 1.5rem; font-weight: 700; color: var(--aex-dark); }
.page-card h3 { margin: 0 0 0.5rem; font-size: 1.125rem; font-weight: 600; color: var(--aex-dark); }
.page-card p { margin: 0 0 1rem; font-size: 1rem; color: var(--aex-dark-grey); line-height: 1.6; }
.page-card p:last-child, .page-card li:last-child { margin-bottom: 0; }

.page-card-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .page-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .credits-examples-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Prose for terms/privacy */
.page-prose {
  color: var(--aex-dark-grey);
  line-height: 1.7;
}

.page-prose h1 { font-size: 2rem; font-weight: 700; color: var(--aex-dark); margin: 0 0 1.5rem; }
.page-prose h2 { font-size: 1.25rem; font-weight: 600; color: var(--aex-dark); margin: 2rem 0 0.75rem; }
.page-prose h3 { font-size: 1.0625rem; font-weight: 600; color: var(--aex-dark); margin: 1.5rem 0 0.5rem; }
.page-prose p { margin: 0 0 1rem; }
.page-prose ul { margin: 0 0 1rem; padding-left: 1.5rem; }
.page-prose li { margin-bottom: 0.5rem; }
.page-prose a { color: var(--accent); text-decoration: none; }
.page-prose a:hover { text-decoration: underline; }

/* Plan cards */
.plan-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.plan-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

/* CTA box for partners */
.page-cta-box {
  background: var(--accent-light);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  margin-top: 2rem;
}

.page-cta-box h2 { margin: 0 0 0.5rem; }
.page-cta-box p { margin: 0 0 1.5rem; }
