/* HORIZON · clone DA waitlist.horizon-agency.co */

:root {
  --bg: #060606;
  --ink: #f2f4f6;
  --dim: #5e636b;
  --line: #1a1d22;
  --accent: #7c83ff;
  --font: "Space Mono", "Space Mono Fallback", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .main .reveal,
  .kinetic .k {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .scanline { display: none; }
  .grain { animation: none; }
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(124, 131, 255, 0.35);
}

/* ── Atmosphere (waitlist) ──────────────────────────────── */

/* Une seule passe, fluide (transform = pas de saccades) · comme waitlist */
.scanline {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 40;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(242, 244, 246, 0.92), transparent);
  box-shadow: 0 0 12px rgba(242, 244, 246, 0.55), 0 0 42px rgba(242, 244, 246, 0.18);
  transform: translate3d(0, -3vh, 0);
  animation: scan-sweep 1.9s cubic-bezier(0.33, 1, 0.68, 1) forwards;
  will-change: transform, opacity;
}

@keyframes scan-sweep {
  0% {
    opacity: 1;
    transform: translate3d(0, -3vh, 0);
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 108vh, 0);
  }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.9'/></svg>");
  animation: grain-shift 0.45s steps(2) infinite;
  mix-blend-mode: overlay;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-1.5%, 1%); }
  100% { transform: translate(1%, -1%); }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(at 50% 40%, transparent 52%, rgba(0, 0, 0, 0.56) 100%);
}

/* ── Type ───────────────────────────────────────────────── */

.hud {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}

.label {
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.text-dim { color: var(--dim); }

/* Hero: anim auto. Main: .is-shown (sinon opacity 0 = trou géant) */
.hero .reveal {
  opacity: 0;
  animation: reveal-up 0.9s var(--ease) forwards;
}

.main .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.main .reveal.is-shown {
  opacity: 1;
  transform: none;
}

@keyframes reveal-up {
  0% {
    opacity: 0;
    clip-path: inset(0 0 100%);
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 -20%);
    transform: translateY(0);
  }
}

.kinetic .k {
  display: inline-block;
  opacity: 0;
  animation: letter-in 0.55s var(--ease) forwards;
}

@keyframes letter-in {
  0% { opacity: 0; transform: translateY(0.35em); }
  100% { opacity: 1; transform: translateY(0); }
}

.kinetic {
  margin-top: 1rem;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.inline-word {
  display: inline-block;
  white-space: nowrap;
}

.kinetic-static {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

@media (min-width: 640px) {
  .kinetic {
    font-size: 2.25rem;
    line-height: 1.25;
  }
  .kinetic-static { font-size: 1.6rem; }
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  /* Plus de 100vh: ça créait un trou monstre avant la liste */
  min-height: auto;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  padding-bottom: 0.25rem;
}

.scene,
.scene-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Mobile: graphe discret en haut, ne pousse pas le layout */
@media (max-width: 1023px) {
  .scene,
  .scene-fallback {
    height: 42%;
    bottom: auto;
  }
}

.scene {
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}

.scene.is-ready { opacity: 1; }

.scene-fallback {
  background:
    radial-gradient(ellipse 55% 40% at 70% 35%, rgba(242, 244, 246, 0.04), transparent 70%);
}

.frame-hud {
  position: absolute;
  inset-inline: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 1.25rem;
}

.frame-hud.top { top: 0; align-items: flex-start; }
.frame-hud.bottom {
  bottom: 0;
  align-items: flex-end;
  padding-bottom: 0.75rem;
}

@media (max-width: 1023px) {
  .frame-hud.bottom { display: none; }
}

.hide-m { display: none; }

@media (min-width: 640px) {
  .frame-hud { padding: 1.75rem; }
  .hide-m { display: block; }
}

.hero-copy {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 4.25rem 1.5rem 0.5rem;
}

@media (min-width: 640px) {
  .hero-copy {
    padding: 5.5rem 2rem 2rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: min(72dvh, 640px);
  }
  .hero-copy {
    margin: 0;
    margin-left: 9vw;
    max-width: 36rem;
    justify-content: center;
    min-height: min(72dvh, 640px);
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
}

.lede {
  margin-top: 1rem;
  max-width: 28rem;
  font-size: 0.82rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(242, 244, 246, 0.8);
}

@media (min-width: 640px) {
  .lede { font-size: 0.875rem; }
}

.hero-cta {
  display: flex;
  margin-top: 1.35rem;
}

.hero-cta .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .hero-cta .btn {
    width: auto;
    min-width: 14rem;
  }
}

/* ── Controls / buttons (waitlist) ──────────────────────── */

.btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
  padding: 0 1.5rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #000;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

@media (min-width: 640px) {
  .btn { height: 3.5rem; }
}

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.7; cursor: not-allowed; }
.btn:active { transform: scale(0.99); }

.btn-glow {
  transition: box-shadow 0.3s, transform 0.15s;
}

.btn-glow:hover:not(:disabled),
.btn-glow:focus-visible {
  box-shadow: 0 0 24px rgba(124, 131, 255, 0.45);
}

.btn-glow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.input,
.select,
.textarea {
  box-sizing: border-box;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.45);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.input,
.select {
  height: 4rem;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .input,
  .select {
    height: 3.5rem;
    font-size: 1rem;
  }
}

.textarea {
  min-height: 5.5rem;
  padding: 0.9rem 1rem;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--dim);
  opacity: 1;
}

.select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--dim) 50%),
    linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.select option {
  background: var(--bg);
  color: var(--ink);
}

.input-glow {
  transition: border-color 0.25s, box-shadow 0.25s;
}

.input-glow:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 26px rgba(124, 131, 255, 0.32);
  outline: none;
}

.input-glow:focus-visible { outline: none; }

/* ── Main / matrix ──────────────────────────────────────── */

.main {
  position: relative;
  z-index: 10;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.panel {
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.tip-panel {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .panel { padding: 2.25rem 2rem; }
  .tip-panel { padding-top: 1.5rem; padding-bottom: 1.5rem; }
}

.panel-head { margin-bottom: 1.75rem; }
.panel-title {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.controls { margin-bottom: 1.5rem; }

.chip-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chip-row::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  height: 2.5rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  font-family: inherit;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}

.chip.is-active,
.chip:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
  outline: none;
}

.controls-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .controls-row { flex-direction: row; }
  .chip-row { flex-wrap: wrap; overflow: visible; }
}

.field-mini {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.field-grow { flex: 1.5; }

.meta-line {
  margin-top: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.filter-hint {
  margin-bottom: 0.65rem;
}

.tip-text {
  font-size: 0.85rem;
  line-height: 1.75;
  color: rgba(242, 244, 246, 0.78);
  max-width: 36rem;
}

.tip-text strong {
  color: var(--ink);
  font-weight: 700;
}

.matrix {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.card {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  padding: 1.25rem 1.1rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.25s;
}

.card.is-in {
  opacity: 1;
  transform: none;
}

.card:hover {
  border-color: rgba(242, 244, 246, 0.22);
}

.card-head {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .card {
    padding: 1.5rem 1.35rem;
  }
  .card-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.lab-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lab-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.92;
}

.lab-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.lab-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.lab-product {
  margin-top: 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cat {
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 0.3rem 0.45rem;
}

.card-best {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.55rem;
  color: var(--ink);
}

.card-why {
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(242, 244, 246, 0.72);
  margin-bottom: 1rem;
}

.points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.points li {
  display: grid;
  gap: 0.15rem;
}

@media (min-width: 640px) {
  .points li {
    grid-template-columns: 9.5rem 1fr;
    gap: 0.75rem;
    align-items: baseline;
  }
}

.point-k {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.point-v {
  font-size: 0.78rem;
  color: rgba(242, 244, 246, 0.82);
  line-height: 1.5;
}

.price-grid {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 560px) {
  .price-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.price-block .p-label {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.3rem;
}

.price-main {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.price-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.65rem;
  color: var(--dim);
  letter-spacing: 0.03em;
  line-height: 1.45;
}

.empty {
  text-align: center;
  padding: 2.5rem 0;
  color: var(--dim);
}

.exemples-intro {
  margin-bottom: 1.5rem;
}

.recipe-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.recipe {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  padding: 1.25rem 1.1rem;
}

@media (min-width: 640px) {
  .recipe { padding: 1.4rem 1.35rem; }
}

.recipe-want {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.recipe-why {
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(242, 244, 246, 0.7);
  margin-bottom: 1rem;
}

.pick-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.pick-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.25rem;
}

.pick-role {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.15rem;
}

.pick-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pick-product {
  font-weight: 400;
  color: var(--dim);
}

.pick-tip {
  font-size: 0.75rem;
  line-height: 1.55;
  color: rgba(242, 244, 246, 0.78);
  padding-left: calc(22px + 0.65rem);
}

.recipe-avoid {
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.55;
  color: rgba(242, 244, 246, 0.7);
}

.recipe-avoid .point-k {
  display: inline;
  margin-right: 0.5rem;
}

.rules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.rules li {
  border-left: 1px solid var(--line);
  padding-left: 0.9rem;
  color: var(--dim);
  font-size: 0.82rem;
}

.rule-k {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.site-foot {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.75rem 1.5rem calc(1.75rem + env(safe-area-inset-bottom));
  max-width: 52rem;
  margin: 0 auto;
}

.foot-link {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-decoration: none;
}

.foot-link:hover { color: var(--ink); }
