/* ========================================
   AI Color Magic - Landing Page Styles
   Hyperbit-inspired × Plugin CSS Fusion
   ======================================== */

:root {
  /* Key Color (from plugin) */
  --color-key: #C9E832;
  --color-key-dark: #B4D12A;
  --color-key-darker: #9FBA22;

  /* Neutral Colors (from plugin) */
  --color-main-body: #080d12;
  --color-main-bg: #fff;
  --color-main-50: #f6f9fb;
  --color-main-100: #f1f6f9;
  --color-main-200: #e9eef1;
  --color-main-300: #e2eaee;
  --color-main-500: #bac1c5;
  --color-main-600: #7f8b91;
  --color-main-700: #6f767a;
  --color-main-800: #3a4247;

  /* Primary Blue (from plugin) */
  --color-primary: #24afff;
  --color-primary-bg: #ebf6ff;

  /* Hyperbit-inspired Accent Colors */
  --color-accent-red: #fc2919;
  --color-accent-violet: #8a40f9;
  --color-accent-blue: #5a77ed;
  --color-accent-orange: #ffa75b;
  --color-bg-light: #f5f5f5;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #C9E832 0%, #a2eb2d 100%);
  --gradient-violet: linear-gradient(135deg, #8a40f9 0%, #6a20d9 100%);
  --gradient-blue: linear-gradient(135deg, #5a77ed 0%, #3a57cd 100%);
  --gradient-orange: linear-gradient(135deg, #ffa75b 0%, #ff873b 100%);

  /* Radius (Larger for cuteness) */
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;

  /* Typography */
  --text-xs: 0.875rem;      /* 14px */
  --text-sm: 0.9375rem;     /* 15px */
  --text-md: 1rem;          /* 16px */
  --text-lg: 1.125rem;      /* 18px */
  --text-xl: 1.25rem;       /* 20px */
  --text-2xl: 1.5rem;       /* 24px */
  --text-3xl: 1.875rem;     /* 30px */
  --text-4xl: 2.25rem;      /* 36px */
  --text-5xl: 3rem;         /* 48px */
  --text-6xl: 3.75rem;      /* 60px */

  /* Transitions */
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  /* Container */
  --container-max-width: 1200px;
  --section-padding: 120px;
}

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

html {
  scroll-behavior: smooth;
}

/* Scroll offset for fixed header */
section[id] {
  scroll-margin-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--color-main-body);
  background: var(--color-main-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-main-200);
  padding: 1rem 0;
  transition: all 0.2s var(--ease-out);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo {
  display: flex;
  align-items: center;
  transition: transform 0.2s var(--ease-out);
}

.logo:hover {
  transform: translateY(-2px);
}

.logo-img {
  height: 48px;
  width: auto;
}

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

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-main-700);
  transition: color 0.2s var(--ease-out);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-key);
  transition: width 0.2s var(--ease-out);
}

.nav-link:hover {
  color: var(--color-main-body);
}

.nav-link:hover::after {
  width: 100%;
}

/* Active state for navigation links */
.nav-link.active {
  color: var(--color-main-body);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .header-left {
    gap: 1.5rem;
  }

  .logo-img {
    height: 36px;
  }

  .nav {
    position: static;
    transform: none;
    gap: 1rem;
  }

  .nav-link {
    display: none;
  }

  .btn-small {
    padding: 0.5rem 1rem;
    font-size: var(--text-xs);
  }
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
}

.section-alt {
  background: var(--color-bg-light);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  color: var(--color-main-body);
}

.section-subtitle {
  font-size: var(--text-lg);
  text-align: center;
  color: var(--color-main-600);
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-lg);
  font-size: var(--text-md);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  will-change: transform;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-hero);
  color: var(--color-main-body);
  box-shadow:
    0 0 0 1px hsla(70, 78%, 75%, 1),
    0 3px 8px -1px hsla(70, 78%, 50%, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #B4D12A 0%, #8FCC1E 100%);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px hsla(70, 78%, 70%, 1),
    0 6px 16px -2px hsla(70, 78%, 50%, 0.35);
}

.btn-secondary {
  background: var(--color-main-bg);
  color: var(--color-main-body);
  border: 2px solid var(--color-main-200);
}

.btn-secondary:hover {
  background: var(--color-main-50);
  border-color: var(--color-key);
  transform: translateY(-2px);
}

.btn-large {
  padding: 20px 40px;
  font-size: var(--text-lg);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  padding: 180px 0 120px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-main-50) 100%);
  position: relative;
  overflow: hidden;
}

/* Lottie Animation in Hero Section */
.lottie-container {
  position: absolute;
  right: 5%;
  top: 180px;
  width: 280px;
  height: 280px;
  pointer-events: none;
  z-index: 10;
  opacity: 0.9;
}

@media (min-width: 1200px) {
  .lottie-container {
    right: 10%;
    width: 320px;
    height: 320px;
  }
}

@media (max-width: 768px) {
  .lottie-container {
    display: none;
  }
}

.hero-title {
  font-size: var(--text-6xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  color: var(--color-main-body);
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-main-600);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: var(--text-sm);
  color: var(--color-main-700);
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-demo {
  margin-top: 80px;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  background: var(--color-main-100);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-main-500);
}

.demo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Demo video caption (uses hero-subtitle styling) */
.demo-caption {
  font-size: var(--text-xl);
  color: var(--color-main-600);
  margin-top: 32px;
  margin-bottom: 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-align: center;
}

/* ========================================
   PROBLEM SECTION
   ======================================== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.problem-item {
  background: var(--color-main-bg);
  padding: 32px 24px;
  border-radius: var(--radius-2xl);
  border: 2px solid var(--color-main-200);
  text-align: center;
}

.problem-icon {
  font-size: var(--text-4xl);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.problem-icon-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.problem-text {
  font-size: var(--text-md);
  color: var(--color-main-700);
  line-height: 1.6;
}

/* ========================================
   SOLUTION SECTION
   ======================================== */
.solution-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.step-card {
  text-align: center;
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-main-body);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.step-icon.step-1 {
  background: var(--color-key);
  box-shadow: 0 8px 24px rgba(201, 232, 50, 0.3);
}

.step-icon.step-2 {
  background: var(--color-key);
  box-shadow: 0 8px 24px rgba(201, 232, 50, 0.3);
}

.step-icon.step-3 {
  background: var(--color-key);
  box-shadow: 0 8px 24px rgba(201, 232, 50, 0.3);
}

.step-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-main-body);
}

.step-description {
  font-size: var(--text-md);
  color: var(--color-main-600);
  line-height: 1.6;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.features-grid-four {
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid-six {
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

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

  .features-grid-six {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--color-main-bg);
  padding: 32px 24px;
  border-radius: var(--radius-2xl);
  border: 2px solid var(--color-main-200);
  transition: all 0.2s var(--ease-out);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: var(--color-key);
}

.feature-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 24px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--color-main-100);
  border: 1px solid var(--color-main-200);
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease-out);
}

.feature-card:hover .feature-image {
  transform: scale(1.05);
}

.feature-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-main-body);
}

.feature-description {
  font-size: var(--text-sm);
  color: var(--color-main-600);
  line-height: 1.7;
  flex: 1;
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-main-bg);
  padding: 32px 24px;
  border-radius: var(--radius-3xl);
  border: 2px solid var(--color-main-200);
  transition: all 0.2s var(--ease-out);
  display: flex;
  flex-direction: column;
}

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

.pricing-card.featured {
  transform: scale(1.05);
  border-color: var(--color-key);
  box-shadow: 0 12px 40px rgba(201, 232, 50, 0.3);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.plan-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.plan-badge.free {
  background: var(--color-main-200);
  color: var(--color-main-700);
}

.plan-badge.starter {
  background: var(--color-main-300);
  color: var(--color-main-800);
}

.plan-badge.pro {
  background: var(--color-key);
  color: var(--color-main-body);
}

.plan-badge.premium {
  background: var(--color-main-700);
  color: white;
}

.plan-name {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-main-body);
}

.plan-price {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-main-body);
}

.plan-price span {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-main-600);
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}

.plan-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-main-100);
  font-size: var(--text-sm);
  color: var(--color-main-700);
  line-height: 1.6;
}

.plan-cta {
  width: 100%;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: var(--color-main-bg);
  padding: 32px 24px;
  border-radius: var(--radius-2xl);
  border: 2px solid var(--color-main-200);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testimonial-text {
  font-size: var(--text-md);
  color: var(--color-main-600);
  line-height: 1.7;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-main-200);
  flex-shrink: 0;
  border: 2px solid var(--color-main-100);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* 画像の中心を表示 */
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-main-body);
  margin-bottom: 4px;
}

.author-title {
  font-size: var(--text-sm);
  color: var(--color-main-500);
  line-height: 1.4;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-main-bg);
  padding: 32px 24px;
  border-radius: var(--radius-2xl);
  border: 2px solid var(--color-main-200);
  margin-bottom: 16px;
}

.faq-question {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-main-body);
}

.faq-answer {
  font-size: var(--text-md);
  color: var(--color-main-600);
  line-height: 1.7;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background: var(--gradient-hero);
  padding: 100px 0;
  text-align: center;
  color: var(--color-main-body);
}

.cta-title {
  font-size: var(--text-5xl);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}

.cta-subtitle {
  font-size: var(--text-lg);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.cta-button {
  background: var(--color-main-body);
  color: var(--color-key);
  padding: 20px 40px;
  border-radius: var(--radius-lg);
  font-size: var(--text-lg);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  display: inline-block;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.cta-note {
  margin-top: 20px;
  font-size: var(--text-sm);
  opacity: 0.8;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-main-800);
  color: var(--color-main-100);
  padding: 60px 0 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-main-100);
  font-size: var(--text-sm);
  transition: color 0.2s var(--ease-out);
}

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

.footer-social {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-out);
}

.social-link:hover {
  background: var(--color-key);
  color: var(--color-main-body);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-sm);
  color: var(--color-main-500);
}

/* ========================================
   WAITLIST FORM
   ======================================== */
.waitlist-form {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-main-200);
  font-size: var(--text-md);
  font-family: inherit;
  transition: all 0.2s var(--ease-out);
  background: var(--color-main-bg);
}

.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-key);
  box-shadow: 0 0 0 3px rgba(201, 232, 50, 0.1);
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--color-main-500);
}

/* Header form - コンパクト */
.waitlist-form-header {
  max-width: 420px;
}

.waitlist-form-header input[type="email"] {
  padding: 10px 16px;
  font-size: var(--text-sm);
}

/* Hero form - 大きめ */
.waitlist-form-hero {
  max-width: 600px;
  margin: 0 auto;
}

.waitlist-form-hero input[type="email"] {
  padding: 16px 24px;
  font-size: var(--text-lg);
}

/* CTA form - 大きめ、中央配置 */
.waitlist-form-cta {
  max-width: 600px;
  margin: 0 auto;
  flex-direction: column;
  gap: 16px;
}

.waitlist-form-cta input[type="email"] {
  width: 100%;
  padding: 16px 24px;
  font-size: var(--text-lg);
}

.waitlist-form-cta .cta-button {
  width: 100%;
}

/* Pricing form - インライン、縦積み */
.waitlist-form-pricing {
  flex-direction: column;
  gap: 8px;
}

.waitlist-form-pricing input[type="email"] {
  width: 100%;
  padding: 10px 16px;
  font-size: var(--text-sm);
}

.waitlist-form-pricing .plan-cta {
  width: 100%;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
  }

  .hero {
    padding: 140px 0 80px;
  }

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

  .hero-subtitle {
    font-size: var(--text-lg);
  }

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

  .solution-steps,
  .features-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Waitlist forms - モバイル対応 */
  .waitlist-form {
    flex-direction: column;
    width: 100%;
  }

  .waitlist-form-header {
    max-width: 100%;
  }

  .waitlist-form-hero,
  .waitlist-form-cta {
    max-width: 100%;
  }

  .waitlist-form input[type="email"] {
    width: 100%;
  }

  .waitlist-form button {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 120px 0 60px;
  }

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

  .section-title {
    font-size: var(--text-2xl);
  }

  .cta-title {
    font-size: var(--text-3xl);
  }

  .demo-caption {
    font-size: var(--text-lg);
    margin-top: 24px;
  }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

/* Fade-in-up animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for child elements */
.fade-in-up.visible .step-card,
.fade-in-up.visible .feature-card,
.fade-in-up.visible .pricing-card,
.fade-in-up.visible .faq-item,
.fade-in-up.visible .problem-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUpChild 0.6s ease-out forwards;
}

/* Delay for staggered effect */
.fade-in-up.visible .step-card:nth-child(1),
.fade-in-up.visible .feature-card:nth-child(1),
.fade-in-up.visible .pricing-card:nth-child(1),
.fade-in-up.visible .problem-item:nth-child(1),
.fade-in-up.visible .faq-item:nth-child(1) {
  animation-delay: 0.1s;
}

.fade-in-up.visible .step-card:nth-child(2),
.fade-in-up.visible .feature-card:nth-child(2),
.fade-in-up.visible .pricing-card:nth-child(2),
.fade-in-up.visible .problem-item:nth-child(2),
.fade-in-up.visible .faq-item:nth-child(2) {
  animation-delay: 0.2s;
}

.fade-in-up.visible .step-card:nth-child(3),
.fade-in-up.visible .feature-card:nth-child(3),
.fade-in-up.visible .pricing-card:nth-child(3),
.fade-in-up.visible .problem-item:nth-child(3),
.fade-in-up.visible .faq-item:nth-child(3) {
  animation-delay: 0.3s;
}

.fade-in-up.visible .step-card:nth-child(4),
.fade-in-up.visible .feature-card:nth-child(4),
.fade-in-up.visible .pricing-card:nth-child(4),
.fade-in-up.visible .faq-item:nth-child(4) {
  animation-delay: 0.4s;
}

.fade-in-up.visible .feature-card:nth-child(5),
.fade-in-up.visible .faq-item:nth-child(5) {
  animation-delay: 0.5s;
}

.fade-in-up.visible .feature-card:nth-child(6),
.fade-in-up.visible .faq-item:nth-child(6) {
  animation-delay: 0.6s;
}

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

/* ========================================
   WAITLIST FORMS
   ======================================== */

/* Base waitlist form styles */
.waitlist-form {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-main-200);
  font-size: var(--text-md);
  font-family: inherit;
  color: var(--color-main-body);
  background: var(--color-main-bg);
  transition: all 0.2s var(--ease-out);
  outline: none;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--color-key);
  box-shadow: 0 0 0 3px rgba(201, 232, 50, 0.1);
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--color-main-500);
}

/* Header waitlist form (compact) */
.waitlist-form-header {
  max-width: 400px;
}

.waitlist-form-header input[type="email"] {
  padding: 10px 16px;
  font-size: var(--text-sm);
}

.waitlist-form-header .btn-small {
  padding: 10px 20px;
  font-size: var(--text-sm);
  white-space: nowrap;
}

/* Hero section waitlist form (large) */
.waitlist-form-hero {
  max-width: 600px;
  margin: 0 auto;
}

.waitlist-form-hero input[type="email"] {
  padding: 18px 24px;
  font-size: var(--text-lg);
}

.waitlist-form-hero .btn-large {
  white-space: nowrap;
}

/* CTA section waitlist form */
.waitlist-form-cta {
  max-width: 600px;
  margin: 0 auto;
}

.waitlist-form-cta input[type="email"] {
  padding: 18px 24px;
  font-size: var(--text-lg);
}

.waitlist-form-cta .cta-button {
  padding: 18px 40px;
  background: var(--gradient-hero);
  color: var(--color-main-body);
  font-size: var(--text-lg);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
  box-shadow:
    0 0 0 1px hsla(70, 78%, 75%, 1),
    0 3px 8px -1px hsla(70, 78%, 50%, 0.25);
}

.waitlist-form-cta .cta-button:hover {
  background: linear-gradient(135deg, #B4D12A 0%, #8FCC1E 100%);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px hsla(70, 78%, 70%, 1),
    0 6px 16px -2px hsla(70, 78%, 50%, 0.35);
}

/* Inline waitlist form (pricing cards) */
.waitlist-form-inline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.waitlist-form-inline input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  font-size: var(--text-md);
}

.waitlist-form-inline .plan-cta {
  width: 100%;
  padding: 16px 32px;
  font-size: var(--text-md);
  white-space: nowrap;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .waitlist-form,
  .waitlist-form-header,
  .waitlist-form-hero,
  .waitlist-form-cta {
    flex-direction: column;
    width: 100%;
  }

  .waitlist-form input[type="email"],
  .waitlist-form-header input[type="email"],
  .waitlist-form-hero input[type="email"],
  .waitlist-form-cta input[type="email"] {
    width: 100%;
  }

  .waitlist-form-header .btn-small,
  .waitlist-form-hero .btn-large,
  .waitlist-form-cta .cta-button {
    width: 100%;
  }

  /* Adjust padding for mobile */
  .waitlist-form-hero input[type="email"],
  .waitlist-form-cta input[type="email"] {
    padding: 14px 20px;
    font-size: var(--text-md);
  }

  .waitlist-form-hero .btn-large,
  .waitlist-form-cta .cta-button {
    padding: 14px 32px;
    font-size: var(--text-md);
  }
}

/* ========================================
   LANGUAGE SELECTOR
   ======================================== */
.language-toggle {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 100;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f6f9fb;
  color: #080d12;
  border: 1px solid #e9eef1;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  width: 38px;
  overflow: hidden;
  transition: width 0.25s cubic-bezier(0,0,.2,1),
              padding 0.25s cubic-bezier(0,0,.2,1),
              background 0.15s cubic-bezier(0,0,.2,1),
              border-color 0.15s cubic-bezier(0,0,.2,1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.language-btn:hover {
  background: #f1f6f9;
  border-color: #e2eaee;
  width: auto;
  padding: 6px 10px;
}

.language-flag {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.language-name {
  font-size: 12px;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.25s cubic-bezier(0,0,.2,1),
              opacity 0.2s cubic-bezier(0,0,.2,1);
}

.language-btn:hover .language-name {
  max-width: 60px;
  opacity: 1;
}

.language-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0,0,.2,1),
              max-width 0.25s cubic-bezier(0,0,.2,1),
              opacity 0.2s cubic-bezier(0,0,.2,1);
}

.language-btn:hover .language-arrow {
  max-width: 14px;
  opacity: 0.6;
}

.language-btn.open {
  width: auto;
  padding: 6px 10px;
}

.language-btn.open .language-name {
  max-width: 60px;
  opacity: 1;
}

.language-btn.open .language-arrow {
  max-width: 14px;
  opacity: 0.6;
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  background: #ffffff;
  border: 1px solid #e9eef1;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 140px;
  display: none;
  overflow: hidden;
  z-index: 1000;
}

.language-menu.open {
  display: block;
}

.language-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s cubic-bezier(0,0,.2,1);
  font-size: 14px;
}

.language-menu-item:hover {
  background: #f1f6f9;
}

.language-menu-item.active {
  background: rgba(201, 232, 50, 0.1);
  color: #080d12;
  font-weight: 600;
}
