/* ============================================
   KAFA — Landing teaser
   Page unique, sans scroll, DA-FUN-B
   ============================================ */

:root {
  --paper:        #FDF5E2;
  --paper-warm:   #F4E9D6;
  --paper-light:  #FFFAEC;
  --espresso:     #1A1611;

  --orange-carlisle: #E8482C;
  --orange-flat:     #F2A766;

  --bleu-crouwel: #2856B5;
  --bleu-pale:    #B8D1E5;

  --vert-sticker: #2D7548;

  --display: "Bagel Fat One", "Anton", "Helvetica Neue", sans-serif;
  --sub:     "Familjen Grotesk", -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", monospace;
  --serif:   "Newsreader", Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--espresso);
  font-family: var(--sub);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  height: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Grain noise overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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");
}

/* Decorative blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
}
.blob-1 {
  width: 460px; height: 460px;
  background: var(--orange-flat);
  top: -160px; right: -120px;
}
.blob-2 {
  width: 380px; height: 380px;
  background: var(--bleu-pale);
  bottom: -140px; left: -120px;
}

/* ============================================
   STAGE — Plein écran, 3 zones (top / center / bottom)
   ============================================ */
.stage {
  position: relative;
  z-index: 2;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px 32px;
  max-width: 1400px;
  margin: 0 auto;
}

/* TOP */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--espresso);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--espresso);
  color: var(--paper);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange-carlisle);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 72, 44, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(232, 72, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 72, 44, 0); }
}

/* CENTER */
.center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--orange-carlisle);
  letter-spacing: 0.1em;
  margin: 0;
}

.hero {
  font-family: var(--display);
  font-size: clamp(56px, 10vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--espresso);
  margin: 0;
  font-weight: 400;
  max-width: 12ch;
}

.sub {
  font-family: var(--sub);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.4;
  color: rgba(26, 22, 17, 0.65);
  margin: 0;
  max-width: 40ch;
}

/* WAITLIST — input en énorme, bouton attaché */
.waitlist {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 720px;
  margin-top: 8px;
  background: var(--paper-light);
  border: 2.5px solid var(--espresso);
  border-radius: 100px;
  padding: 8px 8px 8px 32px;
  transition: box-shadow 0.18s, transform 0.18s;
}

.waitlist:focus-within {
  box-shadow: 6px 6px 0 var(--orange-carlisle);
  transform: translate(-2px, -2px);
}

.waitlist input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 18px 0;
  font-family: var(--sub);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 500;
  background: transparent;
  border: none;
  color: var(--espresso);
  outline: none;
}

.waitlist input[type="email"]::placeholder {
  color: rgba(26,22,17,0.32);
  font-weight: 400;
}

.waitlist button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 28px;
  font-family: var(--sub);
  font-weight: 600;
  font-size: clamp(15px, 1.4vw, 18px);
  background: var(--espresso);
  color: var(--paper);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.waitlist button:hover { background: var(--orange-carlisle); }
.waitlist button:active { transform: scale(0.98); }

.btn-arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.waitlist button:hover .btn-arrow { transform: translateX(4px); }

.msg {
  font-family: var(--mono);
  font-size: 13px;
  margin: 0;
  min-height: 18px;
  color: var(--vert-sticker);
  letter-spacing: 0.02em;
}
.msg.error { color: var(--orange-carlisle); }

/* BOTTOM */
.bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: rgba(26,22,17,0.5);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
}

.foot-meta {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.foot-meta:hover { color: var(--orange-carlisle); }

.dot { opacity: 0.4; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 900px) {
  .stage { padding: 24px 24px; }
  .center { gap: 28px; }
  .hero { font-size: clamp(56px, 11vw, 100px); }
}

/* Mobile */
@media (max-width: 600px) {
  /* Permet le scroll uniquement si vraiment besoin (clavier ouvert) */
  html, body { overflow-y: auto; }

  .stage {
    padding: 20px 20px;
    grid-template-rows: auto 1fr auto;
  }

  .center { gap: 24px; }

  .hero {
    font-size: clamp(48px, 13vw, 88px);
    max-width: 10ch;
  }

  .waitlist {
    flex-direction: column;
    align-items: stretch;
    border-radius: 28px;
    padding: 10px;
    gap: 10px;
  }

  .waitlist input[type="email"] {
    padding: 16px 18px;
    font-size: clamp(18px, 5vw, 24px);
    text-align: center;
  }

  .waitlist button {
    padding: 16px 24px;
    justify-content: center;
    font-size: 16px;
  }

  .blob { filter: blur(50px); opacity: 0.4; }
  .blob-1 { width: 300px; height: 300px; top: -100px; right: -80px; }
  .blob-2 { width: 260px; height: 260px; bottom: -100px; left: -80px; }

  .bottom { font-size: 10px; gap: 8px; }
  .status { font-size: 10px; padding: 6px 12px; }
}

/* Petits écrans */
@media (max-width: 380px) {
  .hero { font-size: clamp(42px, 14vw, 64px); }
}

/* Très court (paysage mobile) */
@media (max-height: 600px) and (orientation: landscape) {
  .center { gap: 18px; }
  .hero { font-size: clamp(40px, 7vw, 72px); }
  .stage { padding: 16px 24px; }
}
