/* ============================================================================
   Ceqoï — site vitrine, hero minimaliste.
   Direction artistique reprise des tokens Sv de l'app.
   ========================================================================= */

:root {
  --bg-top: #F2F1F6;
  --bg-bottom: #E9E8EF;
  --ink: #1A1A1F;
  --sec: #8E8E98;
  --card-body: #5C5866;
  --violet: #5C4FD0;
  --grad: linear-gradient(135deg, #8AA0F5 0%, #5C4FD0 100%);
  --shadow-grad: 0 14px 30px -10px rgba(92, 79, 208, 0.55);
  --shadow-phone: 0 50px 90px -30px rgba(58, 50, 91, 0.45), 0 18px 40px -20px rgba(58, 50, 91, 0.30);
  --r-pill: 999px;
  --font: 'General Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  --grotesk: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100svh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

h1, p { margin: 0; }
a { color: inherit; text-decoration: none; }
.sprite { position: absolute; width: 0; height: 0; }
.ico { width: 1em; height: 1em; display: inline-block; }

/* ── Décor de fond ───────────────────────────────────────────────────── */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; will-change: transform; }
.blob--violet { width: 620px; height: 620px; top: -180px; right: -120px;
  background: radial-gradient(circle at 30% 30%, #C9BEF7, transparent 70%);
  animation: drift 26s var(--ease) infinite alternate; }
.blob--blue { width: 540px; height: 540px; top: 38%; left: -180px;
  background: radial-gradient(circle at 40% 40%, #BFCBFB, transparent 70%);
  animation: drift 32s var(--ease) infinite alternate-reverse; }
.blob--orange { width: 460px; height: 460px; bottom: -160px; right: 8%;
  background: radial-gradient(circle at 50% 50%, #FFE0CC, transparent 70%); opacity: 0.4;
  animation: drift 30s var(--ease) infinite alternate; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(40px, 60px, 0) scale(1.12); } }

/* ── Header (marque seule) ───────────────────────────────────────────── */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; padding: 22px clamp(20px, 5vw, 48px); }
.brand { display: inline-flex; align-items: center; color: var(--ink); }
.brand__name { font-family: var(--grotesk); font-size: 26px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }

/* ── Bouton pill ─────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; font-size: 16.5px; font-weight: 600; letter-spacing: -0.3px;
  border: none; cursor: pointer; font-family: var(--font); border-radius: var(--r-pill);
  white-space: nowrap; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pill .ico { width: 1.15em; height: 1.15em; fill: currentColor; }
.pill--grad { background: var(--grad); color: #fff; box-shadow: var(--shadow-grad); }
.pill--grad:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -10px rgba(92, 79, 208, 0.62); }
.pill.is-disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; box-shadow: none; }

.cta { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cta__soon { font-size: 13.5px; color: var(--sec); font-weight: 500; letter-spacing: -0.1px; }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  width: 100%; max-width: var(--maxw); margin: 0 auto; flex: 1;
  padding: clamp(96px, 14vh, 140px) clamp(20px, 5vw, 48px) clamp(24px, 4vh, 48px);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero__title { font-size: clamp(36px, 5.6vw, 62px); font-weight: 700; letter-spacing: -2px; line-height: 1.03; }
.hero__sub { font-size: clamp(16px, 1.9vw, 20px); color: var(--card-body); line-height: 1.5; max-width: 26em; }
.hero__note { font-size: 13.5px; color: var(--sec); font-weight: 500; }

/* ── Maquette iPhone ─────────────────────────────────────────────────── */
.hero__device { display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; height: 632px; flex-shrink: 0;
  background: linear-gradient(160deg, #2a2935, #16151b);
  border-radius: 50px; padding: 10px; box-shadow: var(--shadow-phone);
}
.phone__notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 104px; height: 26px; background: #16151b; border-radius: 0 0 16px 16px; z-index: 6; }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 41px; overflow: hidden; background: var(--bg-top); }
.phone__shot { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* ── Footer légal ────────────────────────────────────────────────────── */
.legal {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 10px; padding: 18px clamp(20px, 5vw, 48px) 24px;
  font-size: 12px; color: #BCBAC4; font-weight: 500; letter-spacing: -0.1px;
}
.legal a { color: inherit; transition: color 0.2s var(--ease); }
.legal a:hover { color: var(--sec); }
.legal span { opacity: 0.6; }

/* ── Animations ──────────────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero__copy > * { animation: rise 0.9s var(--ease) both; }
.hero__copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero__device { animation: rise 1s var(--ease) 0.12s both; }

.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 44px; }
  .hero__copy { align-items: center; }
  .hero__sub { max-width: 30em; }
}
@media (max-width: 480px) {
  .pill { width: 100%; }
  .phone { transform: scale(0.94); }
}

/* ── Mouvement réduit ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
