/* ========================================
   Amplifiable V2 - Design System & Styles
   ======================================== */

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

/* ========================================
   Design System Variables
   ======================================== */

:root {
  /* Primary - derived from logo */
  --purple-deep: #3D0066;
  --purple-rich: #5C0099;
  --cyan-bright: #5CE1E6;
  --cyan-soft: #7EEEF3;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F8F8FC;
  --gray-light: #E8E8F0;
  --gray-mid: #9090A0;
  --gray-dark: #2D2D3D;

  /* Semantic */
  --text-on-dark: #FFFFFF;
  --text-on-light: #2D2D3D;
  --text-muted: #9090A0;

  /* Typography */
  --font-headline: 'Lora', Georgia, serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  /* Type Scale */
  --text-xs: 0.875rem;    /* 14px - fine print */
  --text-sm: 1rem;        /* 16px - labels, captions */
  --text-base: 1.125rem;  /* 18px - body text */
  --text-lg: 1.25rem;     /* 20px - large body, card titles */
  --text-xl: 1.5rem;      /* 24px - section intros */
  --text-2xl: 2rem;       /* 32px - H2 mobile */
  --text-3xl: 2.5rem;     /* 40px - H2 desktop */
  --text-4xl: 3rem;       /* 48px - H1 mobile */
  --text-5xl: 3.75rem;    /* 60px - H1 desktop */

  /* Line Heights */
  --leading-tight: 1.2;   /* Headlines */
  --leading-normal: 1.5;  /* UI text */
  --leading-relaxed: 1.7; /* Body paragraphs */

  /* Spacing */
  --space-xs: 0.5rem;     /* 8px */
  --space-sm: 1rem;       /* 16px */
  --space-md: 1.5rem;     /* 24px */
  --space-lg: 2rem;       /* 32px */
  --space-xl: 3rem;       /* 48px */
  --space-2xl: 4rem;      /* 64px */
  --space-3xl: 6rem;      /* 96px */
  --space-section: 8rem;  /* 128px */

  /* Layout */
  --max-width-content: 680px;  /* Readable line length */
  --max-width-wide: 960px;     /* Cards section */
  --max-width-form: 480px;     /* Form width */
  --padding-page: 1.5rem;      /* Mobile: 24px */
  --padding-page-lg: 4rem;     /* Desktop: 64px */

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* ========================================
   Base Styles
   ======================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-on-light);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Section Base Styles
   ======================================== */

.section {
  padding: var(--space-section) var(--padding-page);
}

.section-content {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.section-content-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.section-content-form {
  max-width: var(--max-width-form);
  margin: 0 auto;
}

/* ========================================
   Section 1: Hero
   ======================================== */

.hero {
  min-height: 100vh;
  background-color: var(--purple-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--padding-page);
}

.hero-content {
  max-width: var(--max-width-content);
  text-align: center;
}

.hero-logo {
  font-family: var(--font-headline);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--cyan-bright);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3xl);
  animation: fadeIn 0.6s ease-out 0s both;
}

.hero-headline {
  font-family: var(--font-headline);
  font-size: var(--text-4xl);
  font-weight: 400;
  color: var(--white);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease-out 0.15s both;
}

.hero-subhead {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-cta {
  animation: fadeInUp 0.6s ease-out 0.45s both;
}

/* ========================================
   Section 2: The Problem
   ======================================== */

.section-problem {
  background-color: var(--off-white);
}

.section-headline {
  font-family: var(--font-headline);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--purple-deep);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-lg);
}

.section-body p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--gray-dark);
  line-height: var(--leading-relaxed);
}

.section-body p + p {
  margin-top: var(--space-md);
}

/* ========================================
   Section 3: The Guide
   ======================================== */

.section-guide {
  background-color: var(--purple-deep);
}

.section-headline-cyan {
  color: var(--cyan-bright);
}

.section-body-light p {
  color: rgba(255, 255, 255, 0.9);
}

.transition-text {
  margin-top: var(--space-lg);
}

.statements {
  margin-top: var(--space-md);
}

.statement {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--cyan-soft);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-xs);
}

/* ========================================
   Section 4: The Offer
   ======================================== */

.section-offer {
  background-color: var(--off-white);
}

.section-subhead {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--gray-mid);
  margin-bottom: var(--space-xl);
}

/* Cards Grid */
.cards-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.card {
  background-color: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.card-title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--purple-deep);
  margin-bottom: var(--space-xs);
}

.card-body {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--gray-mid);
  line-height: var(--leading-normal);
}

/* Card stagger animation delays */
.card.reveal:nth-child(1) { transition-delay: 0s; }
.card.reveal:nth-child(2) { transition-delay: 0.1s; }
.card.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ========================================
   Section 5: The Form
   ======================================== */

.section-form {
  background-color: var(--purple-rich);
}

.section-headline-white {
  color: var(--white);
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Form Styles */
.signup-form {
  width: 100%;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--cyan-soft);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--cyan-bright);
  background-color: rgba(255, 255, 255, 0.12);
}

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

.form-submit {
  width: 100%;
  margin-top: var(--space-lg);
}

/* Form Success State */
.form-success {
  text-align: center;
  padding: var(--space-xl) 0;
}

.success-headline {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.success-body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--white);
}

/* Form Error State */
.form-error {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: #FF6B6B;
  margin-top: var(--space-sm);
  text-align: center;
}

/* Turnstile Container */
.turnstile-container {
  display: flex;
  justify-content: center;
  margin: var(--space-md) 0;
}

/* ========================================
   Section 6: Footer
   ======================================== */

.footer {
  background-color: var(--purple-deep);
  padding: var(--space-xl) var(--padding-page);
  text-align: center;
}

.footer-content {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-headline);
  font-size: var(--text-lg);
  font-weight: 400;
  color: rgba(92, 225, 230, 0.7);
  margin-bottom: var(--space-sm);
}

.footer-location {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-xs);
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Button Component
   ======================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: var(--cyan-bright);
  color: var(--purple-deep);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--cyan-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92, 225, 230, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ========================================
   Animations
   ======================================== */

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

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

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

/* ========================================
   Responsive Breakpoints
   ======================================== */

/* Tablet (768px) */
@media (min-width: 768px) {
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

/* Desktop (1024px) */
@media (min-width: 1024px) {
  .hero-logo {
    font-size: var(--text-3xl);
  }

  .hero-headline {
    font-size: var(--text-5xl);
  }

  .hero-subhead {
    font-size: var(--text-xl);
  }

  .section-headline {
    font-size: var(--text-3xl);
  }

  .section {
    padding-left: var(--padding-page-lg);
    padding-right: var(--padding-page-lg);
  }

  .hero {
    padding-left: var(--padding-page-lg);
    padding-right: var(--padding-page-lg);
  }

  .footer {
    padding-left: var(--padding-page-lg);
    padding-right: var(--padding-page-lg);
  }
}
