:root {
  --bg: #0c0a08;
  --bg-alt: #14100c;
  --bg-alt-2: #1a140e;
  --gold: #dbaa68;
  --gold-deep: #9c6d32;
  --cream: #f6f1e7;
  --muted: #a89a86;
  --muted-dim: #6f6455;
  --border: rgba(246, 241, 231, 0.09);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; font-weight: 600; }

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--muted);
  max-width: 620px;
  line-height: 1.65;
}

.center { text-align: center; margin-inline: auto; }
.center .lede { margin-inline: auto; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.35s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(160deg, #e8c088, var(--gold) 55%, var(--gold-deep));
  color: #1a1108;
  box-shadow: 0 8px 24px -8px rgba(219, 170, 104, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(219, 170, 104, 0.7); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-small { padding: 10px 20px; font-size: 13px; }

.btn-text {
  background: none;
  color: var(--muted);
  padding: 15px 6px;
  font-weight: 500;
}
.btn-text:hover { color: var(--gold); }

/* Nav */

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(140%);
  background: rgba(12, 10, 8, 0.55);
  border-bottom: 1px solid var(--border);
}

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

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 17px; }

/* Hero */

.hero {
  position: relative;
  padding: 180px 32px 120px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  width: 1200px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(156, 109, 50, 0.28), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 480px;
  margin: 24px 0 36px;
  line-height: 1.65;
}

.hero-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Phone frame */

.phone-frame {
  width: 240px;
  border-radius: 38px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2118, #0f0c08);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(246, 241, 231, 0.06),
    inset 0 0 0 2px rgba(246, 241, 231, 0.04);
}
.phone-frame img { border-radius: 28px; }

.phone-frame-back {
  position: absolute;
  width: 210px;
  right: -10px;
  bottom: -20px;
  transform: rotate(9deg);
  opacity: 0.85;
  z-index: 0;
}
.hero-visual .phone-frame:first-child {
  position: relative;
  z-index: 1;
  transform: rotate(-6deg);
}

.phone-frame-small { width: 190px; }

/* Comment ça marche */

.section.comment { padding-top: 80px; padding-bottom: 80px; }
.section.comment h2 { margin-inline: auto; }

.steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.step {
  padding: 32px 28px;
  border-radius: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(160deg, #e8c088, var(--gold) 55%, var(--gold-deep));
  color: #1a1108;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

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

/* Sections */

.section { padding: 120px 32px; position: relative; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section.problem { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section.gratuit { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.problem-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 60px;
  align-items: center;
  margin-top: 12px;
}

.screen-float { display: flex; justify-content: center; }

.features {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(219, 170, 104, 0.12);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 18px;
}

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

.showcase-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: center;
}

.showcase .phone-frame { justify-self: center; transform: rotate(4deg); }

.cta-logo { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 28px; }

.signup-form {
  margin-top: 36px;
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin-inline: auto;
  flex-wrap: wrap;
  justify-content: center;
}

.signup-form input {
  flex: 1;
  min-width: 220px;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt-2);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
}
.signup-form input:focus { outline: none; border-color: var(--gold); }
.signup-form input::placeholder { color: var(--muted-dim); }

.form-note { margin-top: 16px; color: var(--muted); font-size: 14px; min-height: 20px; }

/* Footer */

footer { padding: 60px 32px 40px; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { width: 100%; color: var(--muted-dim); font-size: 13px; margin-top: 8px; }

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Responsive */

@media (max-width: 860px) {
  .hero { padding: 140px 20px 80px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 420px; order: -1; }
  .steps { grid-template-columns: 1fr; }
  .phone-frame { width: 190px; }
  .phone-frame-back { width: 170px; }
  .problem-grid { grid-template-columns: 1fr; gap: 40px; }
  .problem-grid .screen-float { order: -1; }
  .features { grid-template-columns: 1fr 1fr; gap: 28px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 40px; }
  .showcase .phone-frame { order: -1; }
  .section { padding: 80px 20px; }
  .nav-inner { padding: 14px 20px; }
}

@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
