/* =============================================
   The DALF Dojo — Landing Page
   French Flag Palette: #002395 | #FFFFFF | #ED2939
   Google Labs aesthetic with bold French identity
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Lexend:wght@400;500;600;700&family=Patrick+Hand&family=Quicksand:wght@300;400;500;600;700&display=swap');

:root {
  /* Core French flag colours */
  --fr-blue: #002395;
  --fr-red: #ED2939;
  --fr-white: #ffffff;

  /* Soft tints for wave backgrounds */
  --fr-blue-tint: #dce6ff;
  --fr-red-tint: #ffe0e3;

  /* UI colours */
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg-off: #f9fafb;

  /* Radii */
  --radius-pill: 100px;
  --radius-card: 20px;
  --radius-lg: 16px;

  /* Transitions */
  --transition: all 0.2s ease;
}

/* ======================== RESET ======================== */
.landing-page * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.landing-page {
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ======================== NAV ======================== */
.landing-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2.5rem;
}

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  flex-shrink: 0;
  transition: height 0.3s ease, transform 0.3s ease;
}

.nav-logo:hover .logo-img {
  transform: scale(1.05);
}

.logo-name {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--fr-blue);
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

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

.nav-cta-pill {
  background: var(--fr-blue);
  color: white !important;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 35, 149, 0.3);
}

.nav-cta-pill:hover {
  background: #0030cc;
  box-shadow: 0 4px 16px rgba(0, 35, 149, 0.4);
}

/* ======================== HERO ======================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  background: white;
  overflow: hidden;
}

/* Animated soft waves */
.hero-waves {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.wave {
  position: absolute;
  width: 150%;
  height: 100%;
  left: -25%;
  border-radius: 40%;
}

.wave-1 {
  background: var(--fr-blue-tint);
  top: -70%;
  opacity: 0.7;
  animation: waveRotate 22s infinite linear;
}

.wave-2 {
  background: var(--fr-red-tint);
  top: -65%;
  opacity: 0.45;
  animation: waveRotate 28s infinite linear reverse;
}

@keyframes waveRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

/* Tiny tricolor accent above title */
.hero-tricolor-accent {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 1.75rem;
}

.tca-blue, .tca-white, .tca-red {
  display: block;
  height: 5px;
  width: 32px;
  border-radius: 99px;
}
.tca-blue  { background: var(--fr-blue); }
.tca-white { background: #d1d5db; }
.tca-red   { background: var(--fr-red); }

.hero-title {
  font-family: 'Patrick Hand', cursive;
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  color: var(--fr-blue);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 400;
}

/* Pill-style input card */
.hero-form-card {
  position: relative;
  z-index: 2;
  background: white;
  border-radius: var(--radius-card);
  padding: 2rem 2.5rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--border);
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: left;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.form-input-row input,
.form-input-row select {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  transition: var(--transition);
  background: white;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  padding-right: 2.75rem;
  cursor: pointer;
}

.form-input-row input:focus,
.form-input-row select:focus {
  outline: none;
  border-color: var(--fr-blue);
  box-shadow: 0 0 0 4px rgba(0, 35, 149, 0.1);
}

.form-submit-btn {
  background: var(--fr-blue);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.form-submit-btn:hover {
  background: #0030cc;
  box-shadow: 0 4px 16px rgba(0, 35, 149, 0.35);
}

/* ======================== TRICOLOR BAR ======================== */
.tricolor-bar {
  display: flex;
  height: 5px;
  width: 100%;
}

.bar-blue  { flex: 1; background: var(--fr-blue); }
.bar-white { flex: 1; background: #e5e7eb; }
.bar-red   { flex: 1; background: var(--fr-red); }

.tricolor-footer-bar .bar-white {
  background: var(--border);
}

/* ======================== STATS BAR ======================== */
.stats-bar {
  padding: 3.5rem 2rem;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--fr-blue);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.25rem;
}

.stat-detail {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ======================== SECTIONS ======================== */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fr-red);
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-title {
  font-family: 'Patrick Hand', cursive;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--text);
  text-align: center;
  margin-bottom: 3.5rem;
  line-height: 1.15;
}

/* ======================== HOW IT WORKS ======================== */
.how-section {
  padding: 6rem 2rem;
  background: var(--bg-off);
}

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

.step-card {
  background: white;
  border-radius: var(--radius-card);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.step-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.step-blue { background: var(--fr-blue); color: white; }
.step-dark { background: #1f2937; color: white; }
.step-red  { background: var(--fr-red); color: white; }

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ======================== DEMO ======================== */
.demo-section {
  padding: 6rem 2rem;
  background: white;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.demo-card {
  background: white;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.demo-card-img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--border);
}

.demo-card-body {
  padding: 1.5rem;
}

.demo-card-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.label-blue { background: #dce6ff; color: var(--fr-blue); }
.label-red  { background: #ffe0e3; color: var(--fr-red); }

.demo-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.demo-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ======================== FEATURES ======================== */
.features-section {
  padding: 6rem 2rem;
  background: var(--bg-off);
}

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

.feature-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.75rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.feature-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.icon-blue { background: #dce6ff; }
.icon-red  { background: #ffe0e3; }

.feature-text h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.feature-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ======================== CTA ======================== */
.cta-section {
  padding: 7rem 2rem;
  background: var(--fr-blue);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle red glow */
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: var(--fr-red);
  border-radius: 50%;
  opacity: 0.12;
  filter: blur(60px);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-flag {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 2rem;
}

.cta-flag span {
  display: block;
  width: 8px;
  height: 28px;
  border-radius: 3px;
}

.cta-flag span:nth-child(1) { background: white; opacity: 0.5; }
.cta-flag span:nth-child(2) { background: white; opacity: 0.85; }
.cta-flag span:nth-child(3) { background: var(--fr-red); }

.cta-title {
  font-family: 'Patrick Hand', cursive;
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 400;
  color: white;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.cta-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2.75rem;
  background: var(--fr-red);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(237, 41, 57, 0.5);
}

.cta-btn:hover {
  background: #c5001e;
  box-shadow: 0 6px 28px rgba(237, 41, 57, 0.6);
  transform: translateY(-2px);
}

/* ======================== FOOTER ======================== */
.landing-footer {
  background: #f8f9fb;
  padding: 3.5rem 2.5rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  opacity: 0.9;
}

.footer-site-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.footer-site-url {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-tagline {
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-muted);
}

.footer-tagline strong {
  color: var(--text);
  font-weight: 600;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--fr-blue);
}

.social-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ======================== TRUST BADGES ======================== */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  backdrop-filter: blur(8px);
}

/* ======================== FORM MICROCOPY ======================== */
.form-microcopy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  opacity: 0.8;
}

/* ======================== STICKY NAV ======================== */
.landing-nav.nav-scrolled {
  position: fixed;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 24px 24px;
  padding: 0.9rem 2.5rem;
  animation: navSlideDown 0.3s ease;
}

.landing-nav.nav-scrolled .logo-img {
  height: 32px;
}

@keyframes navSlideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--fr-blue);
}

/* ======================== SOCIAL PROOF ======================== */
.social-proof-section {
  padding: 3rem 2rem;
  background: var(--bg-off);
  border-bottom: 1px solid var(--border);
}

.social-proof-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.social-proof-headline {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.social-proof-avatars {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  font-size: 1rem;
  margin-left: -8px;
}

.avatar:first-child {
  margin-left: 0;
}

.social-proof-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ======================== FAQ ======================== */
.faq-section {
  padding: 5rem 2rem;
  background: white;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--bg-off);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ======================== CTA MICROCOPY ======================== */
.cta-microcopy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 1rem;
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-socials {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .landing-nav {
    padding: 1rem 1.25rem;
  }

  .hero-section {
    padding: 7rem 1.25rem 4rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-form-card {
    padding: 1.5rem;
  }

  .form-input-row {
    flex-direction: column;
  }

  .form-submit-btn {
    width: 100%;
  }

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

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

  .stat-number {
    font-size: 2rem;
  }

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

  .trust-badges {
    gap: 0.4rem;
  }

  .trust-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
  }
}

/* ======================== SCROLL REVEAL ======================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* ======================== CREDIBILITY ======================== */
.credibility-section {
  padding: 2.5rem 2rem;
  background: white;
  border-bottom: 1px solid var(--border);
}

.credibility-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.dalf-logo {
  height: 72px;
  width: auto;
  flex-shrink: 0;
}

.credibility-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.5;
  margin: 0;
}

/* ======================== PRICING ======================== */
.pricing-card {
  max-width: 900px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background: white;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.pricing-price-col {
  padding: 3rem 2rem;
  background: var(--fr-blue-tint);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px solid var(--border);
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--fr-blue);
  line-height: 1;
  letter-spacing: -0.02em;
}

.pricing-period {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 500;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 24ch;
  line-height: 1.5;
}

.pricing-details-col {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pricing-features li {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
  padding-left: 1.75rem;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--fr-blue);
  font-weight: 700;
}

.pricing-cta {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* ======================== RESPONSIVE (Pricing + Credibility) ======================== */
@media (max-width: 640px) {
  .credibility-row {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .credibility-text {
    max-width: none;
  }

  .pricing-card {
    grid-template-columns: 1fr;
  }

  .pricing-price-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 2rem 1.5rem;
  }

  .pricing-details-col {
    padding: 2rem 1.5rem;
  }

  .pricing-cta {
    align-self: stretch;
    text-align: center;
  }
}
