/* ===== CSS Variables ===== */
:root {
  --bg-primary: #212633;
  --bg-card: #262b38;
  --bg-nav: rgba(33, 38, 51, 0.95);
  --accent-primary: #CEEBED;
  --accent-secondary: #A2DECC;
  --text-primary: #e8eaed;
  --text-secondary: #9aa0b0;
  --text-muted: #6b7280;
  --border-subtle: rgba(206, 235, 237, 0.12);
  --border-hover: rgba(206, 235, 237, 0.25);
  --gradient-text: linear-gradient(135deg, #CEEBED, #A2DECC);
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-pill: 2.5rem;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.3);
  --transition: 0.3s ease;
  --max-width: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  background-image: radial-gradient(circle, rgba(206, 235, 237, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-secondary);
}

ul {
  list-style: none;
}

/* ===== Typography ===== */
h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.3;
}

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-header p {
  margin-top: 1rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(206, 235, 237, 0.2);
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent-secondary);
  color: var(--bg-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.nav-logo img {
  height: 36px;
  width: auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 2px;
}

.nav-logo span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-cta {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Pain Confirmation ===== */
.pain {
  background: var(--bg-primary);
}

.pain-intro {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  text-align: center;
  max-width: 680px;
  margin: -1.5rem auto 3rem;
  line-height: 1.7;
}

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

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.pain-card blockquote {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.6;
  position: relative;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent-primary);
}

/* ===== Solution / Benefits ===== */
.benefits {
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(38, 43, 56, 0.5) 50%, var(--bg-primary) 100%);
}

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

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.benefit-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.benefit-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
}

.benefits-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ===== How It Works ===== */
.how-it-works {
  background: var(--bg-primary);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 2.25rem;
  left: calc(10% + 1rem);
  right: calc(10% + 1rem);
  height: 2px;
  background: var(--border-subtle);
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--accent-primary);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
}

.step h3 {
  margin-bottom: 0.625rem;
  color: var(--text-primary);
}

.step p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.how-note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== Testimonials ===== */
.testimonials {
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(38, 43, 56, 0.5) 50%, var(--bg-primary) 100%);
}

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

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem;
}

.testimonial-card blockquote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

.testimonials-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== Pilot Program ===== */
.pilot {
  background: var(--bg-primary);
}

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

.pilot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  text-align: center;
}

.pilot-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.pilot-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.pilot-cta {
  text-align: center;
}

.pilot-cta .btn {
  margin-bottom: 1rem;
}

.pilot-subtext {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ===== FAQ ===== */
.faq {
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(38, 43, 56, 0.5) 50%, var(--bg-primary) 100%);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.active {
  border-color: var(--border-hover);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--accent-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  position: relative;
  transition: transform var(--transition);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--accent-primary);
  border-radius: 2px;
}

.faq-icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}

.faq-icon::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  transition: transform var(--transition);
}

.faq-item.active .faq-icon::after {
  transform: translateX(-50%) scaleY(0);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ===== Final CTA ===== */
.final-cta {
  background: var(--bg-primary);
  text-align: center;
  padding: 5rem 0;
}

.final-cta h2 {
  margin-bottom: 1rem;
}

.final-cta p {
  max-width: 560px;
  margin: 0 auto 2rem;
}

.final-cta-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo img {
  height: 28px;
  width: auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  padding: 2px;
}

.footer-logo span {
  font-weight: 600;
  color: var(--text-primary);
}

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

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ===== Persona Selector ===== */
.persona-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 3rem auto 0;
}

.persona-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.persona-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-primary);
}

.persona-icon {
  font-size: 2rem;
}

.persona-card h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  text-align: center;
}

.persona-card p {
  font-size: 0.875rem;
  text-align: center;
  color: var(--text-muted);
}

/* ===== Screenshot Placeholders ===== */
.screenshot-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.screenshot-placeholder span {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
}

.hero-screenshot {
  max-width: 900px;
  margin: 3rem auto 0;
}

.step-screenshot {
  margin-top: 1rem;
  aspect-ratio: 4 / 3;
}

/* ===== Pain Card Attribution ===== */
.pain-card cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ===== Feature Sections (Campaign Planner, Performance Tracking) ===== */
.feature-section {
  background: var(--bg-primary);
}

.feature-section:nth-of-type(even) {
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(38, 43, 56, 0.5) 50%, var(--bg-primary) 100%);
}

.feature-content {
  max-width: 720px;
  margin: 0 auto;
}

.feature-content .section-header {
  margin-bottom: 2rem;
}

.feature-intro {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.feature-list li {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.feature-tagline {
  text-align: center;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--accent-primary);
  font-weight: 600;
}

/* Full-width benefit card (homepage 5th card) */
.benefit-card--full {
  grid-column: 1 / -1;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

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

  /* Nav mobile */
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  /* Grids */
  .pain-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

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

  .steps::before {
    display: none;
  }

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

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

  .persona-selector {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .testimonials-grid--two {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 3rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
  }
}
