/* ══════════════════════════════════════════
   ChantillyApp — Landing Page
   ══════════════════════════════════════════ */

:root {
  --navy: #354156;
  --brown: #8B7355;
  --cream: #F4F0EB;
  --green: #bcd23a;
  --green-hover: #a7c51f;
  --green-soft: #eef6c3;
  --white-glass: rgba(255,255,255,0.88);
  --white-glass-strong: rgba(255,255,255,0.95);
  --shadow-soft: 0 8px 40px rgba(53,65,86,0.08);
  --shadow-card: 0 12px 48px rgba(53,65,86,0.12);
  --radius-card: 24px;
  --radius-btn: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */

.brand-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-style: italic;
  color: var(--navy);
}

.brand-suffix {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 300;
  color: var(--brown);
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.5px; }

/* ── BUTTONS ── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--green);
  color: var(--navy);
  font-weight: 800;
  font-size: 16px;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(188,210,58,0.3);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--navy);
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s;
  letter-spacing: 0.3px;
}

.btn-secondary:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

/* ── NAV ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(244,240,235,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(53,65,86,0.06);
}

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

.nav-brand {
  font-size: 26px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

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

.nav-cta {
  padding: 10px 24px !important;
  font-size: 14px !important;
}

/* ── HERO ── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--cream) url('/img/bg-3x.webp') center/cover no-repeat fixed;
  padding: 120px 32px 80px;
}

.hero-content {
  max-width: 680px;
  text-align: center;
  background: var(--white-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 64px 56px;
}

.hero-logo {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  object-fit: cover;
  margin: 0 auto 24px;
  display: block;
  box-shadow: 0 4px 20px rgba(53,65,86,0.12);
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: 18px;
  color: var(--brown);
  margin-bottom: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.hero-desc {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── SECTIONS ── */

.section {
  padding: 100px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 12px;
}

.section-title {
  font-size: 38px;
  margin-bottom: 16px;
  color: var(--navy);
}

.section-subtitle {
  font-size: 17px;
  color: #6b7280;
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 64px;
}

/* ── FEATURES ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white-glass-strong);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid rgba(139,115,85,0.06);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  background: var(--green-soft);
}

.feature-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--navy);
}

.feature-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
}

/* ── HOW IT WORKS ── */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}

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

.step::before {
  content: counter(step);
  display: flex;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(50% + 32px);
  width: calc(100% - 64px);
  height: 2px;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(53,65,86,0.15) 100%);
}

.step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

/* ── LABS SHOWCASE ── */

.labs-bg {
  background: var(--navy);
  padding: 100px 32px;
  position: relative;
  overflow: hidden;
}

.labs-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(188,210,58,0.05);
}

.labs-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.labs-bg .section-label { color: var(--green); }
.labs-bg .section-title { color: #fff; }
.labs-bg .section-subtitle { color: rgba(255,255,255,0.6); }

.labs-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 64px;
}

.lab-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  transition: transform 0.25s, background 0.25s;
}

.lab-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.1);
}

.lab-card-accent {
  width: 40px;
  height: 6px;
  border-radius: 3px;
  margin-bottom: 20px;
}

.lab-card h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 8px;
}

.lab-card p {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  line-height: 1.6;
}

/* ── CTA ── */

.cta-section {
  text-align: center;
  padding: 120px 32px;
}

.cta-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white-glass-strong);
  border-radius: var(--radius-card);
  padding: 64px 56px;
  box-shadow: var(--shadow-card);
}

.cta-card h2 {
  font-size: 34px;
  margin-bottom: 16px;
}

.cta-card p {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ── FOOTER ── */

.footer {
  background: var(--navy);
  padding: 48px 32px;
  text-align: center;
}

.footer-brand {
  font-size: 24px;
  margin-bottom: 12px;
}

.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-suffix { color: rgba(255,255,255,0.5); }

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ── ANIMATIONS ── */

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

.fade-up {
  opacity: 0;
  transform: translateY(24px);
}

.fade-up.visible {
  animation: fadeUp 0.6s ease forwards;
}

/* ── RESPONSIVE ── */

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:not(:last-child)::after { display: none; }
  .labs-cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .section-title { font-size: 30px; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-content { padding: 40px 28px; }
  .hero h1 { font-size: 30px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .nav-links { display: none; }
  .cta-card { padding: 40px 28px; }
  .section { padding: 64px 20px; }
}
