/* ── Reset & base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0A0A1A;
  --bg-card:      #12122A;
  --violet:       #7C3AED;
  --violet-light: #A78BFA;
  --pink:         #EC4899;
  --teal:         #06B6D4;
  --border:       rgba(124, 58, 237, 0.25);
  --text:         #E2E8F0;
  --text-muted:   #64748B;
  --text-dim:     #334155;

  /* Emotion colors */
  --joy:          #FCD34D;
  --sadness:      #60A5FA;
  --anger:        #F87171;
  --surprise:     #E879F9;
  --trust:        #34D399;
  --fear:         #F97316;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  overflow-x: hidden;
}

/* ── Halos flottants ─────────────────────────────────────────────── */
.halos {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.halo {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}

/* Chaque halo a sa propre trajectoire, durée et délai */
.h1 { width:480px; height:480px; background:var(--joy);      top:-12%; left:-8%;   filter:blur(90px);  animation: float-a 20s ease-in-out infinite 0s;   }
.h2 { width:380px; height:380px; background:var(--sadness);  top:52%;  right:-10%; filter:blur(80px);  animation: float-b 27s ease-in-out infinite -8s;  }
.h3 { width:300px; height:300px; background:var(--anger);    top:20%;  right:-6%;  filter:blur(72px);  animation: float-c 16s ease-in-out infinite -3s;  }
.h4 { width:420px; height:420px; background:var(--trust);    bottom:-12%; left:8%; filter:blur(88px);  animation: float-d 29s ease-in-out infinite -13s; }
.h5 { width:260px; height:260px; background:var(--surprise); top:8%;   left:48%;   filter:blur(65px);  animation: float-a 15s ease-in-out infinite -5s;  }
.h6 { width:340px; height:340px; background:var(--fear);     top:42%;  left:28%;   filter:blur(78px);  animation: float-b 23s ease-in-out infinite -11s; }
.h7 { width:220px; height:220px; background:var(--violet);   bottom:4%; right:22%; filter:blur(60px);  animation: float-c 19s ease-in-out infinite -7s;  }
.h8 { width:500px; height:500px; background:var(--sadness);  top:10%;  left:-12%;  filter:blur(110px); animation: float-d 32s ease-in-out infinite -18s; }

/* ── 4 trajectoires distinctes ─────────────────────────────────── */

/* A — arc diagonal haut-droit puis retour */
@keyframes float-a {
  0%   { transform: translate(0px,    0px)   scale(1);    opacity: 0.28; }
  25%  { transform: translate(80px,  -55px)  scale(1.18); opacity: 0.44; }
  50%  { transform: translate(35px,  -95px)  scale(0.92); opacity: 0.34; }
  75%  { transform: translate(-45px, -42px)  scale(1.10); opacity: 0.40; }
  100% { transform: translate(0px,    0px)   scale(1);    opacity: 0.28; }
}

/* B — spirale gauche-bas, respiration ample */
@keyframes float-b {
  0%   { transform: translate(0px,   0px)   scale(1);    opacity: 0.24; }
  20%  { transform: translate(-65px, 45px)  scale(1.12); opacity: 0.40; }
  50%  { transform: translate(-90px,-35px)  scale(1.24); opacity: 0.36; }
  80%  { transform: translate(-25px, 65px)  scale(0.88); opacity: 0.30; }
  100% { transform: translate(0px,   0px)   scale(1);    opacity: 0.24; }
}

/* C — triangle haut-gauche / droite / retour, rapide */
@keyframes float-c {
  0%   { transform: translate(0px,    0px)  scale(1);    opacity: 0.32; }
  33%  { transform: translate(-85px, -65px) scale(1.16); opacity: 0.50; }
  66%  { transform: translate(65px,  -45px) scale(0.88); opacity: 0.26; }
  100% { transform: translate(0px,    0px)  scale(1);    opacity: 0.32; }
}

/* D — dérive lente vers la droite, scale imposant */
@keyframes float-d {
  0%   { transform: translate(0px,    0px)   scale(1);    opacity: 0.20; }
  25%  { transform: translate(55px,   75px)  scale(0.90); opacity: 0.34; }
  50%  { transform: translate(110px,  22px)  scale(1.22); opacity: 0.44; }
  75%  { transform: translate(45px,  -55px)  scale(1.06); opacity: 0.30; }
  100% { transform: translate(0px,    0px)   scale(1);    opacity: 0.20; }
}

/* ── Layout ──────────────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 4rem;
  gap: 0;
}

/* ── Logo ────────────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0.5rem;
  user-select: none;
}

.logo img {
  max-width: clamp(200px, 85vw, 550px);
  height: auto;
  display: block;
}

.logo-mood {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1;
}

.logo-world {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--violet-light);
  line-height: 1;
}

.tagline {
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: var(--violet-light);
  font-style: italic;
  letter-spacing: 0.04em;
  margin-bottom: 3rem;
  text-align: center;
}

/* ── Badge "coming soon" ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(124, 58, 237, 0.12);
  border: 0.5px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 2.5rem;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet-light);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ── Description ─────────────────────────────────────────────────── */
.description {
  max-width: 560px;
  text-align: center;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  line-height: 1.75;
  color: #94A3B8;
  margin-bottom: 3.5rem;
}

.description strong {
  color: var(--text);
  font-weight: 500;
}

/* ── Feature cards ───────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 680px;
  width: 100%;
  margin-bottom: 3.5rem;
}

.feature {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature:hover {
  border-color: rgba(167, 139, 250, 0.5);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.feature-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.feature-desc {
  font-size: 0.75rem;
  color: var(--text);
  line-height: 1.5;
}

/* ── Emotion dots + modal ───────────────────────────────────────── */
.emotion-dots {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.emotion-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 62px;
}

.emotion-dot {
  position: relative;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: emotion-dot-pulse 2.8s ease-in-out infinite;
}

.emotion-dot::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 18%, transparent);
  opacity: 0;
  transform: scale(0.82);
  z-index: -1;
  animation: emotion-dot-halo 2.8s ease-in-out infinite;
}

.emotion-dot:hover {
  transform: scale(1.12);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.08);
}

.emotion-item:nth-child(even) .emotion-dot,
.emotion-item:nth-child(even) .emotion-dot::after {
  animation-delay: -1.4s;
}

.emotion-item:nth-child(3n) .emotion-dot,
.emotion-item:nth-child(3n) .emotion-dot::after {
  animation-duration: 3.2s;
}

.emotion-dot-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-weight: 600;
  line-height: 1;
}

.emotion-dot[data-emotion="joy"] { background: #facc15; }
.emotion-dot[data-emotion="sadness"] { background: #3b82f6; }
.emotion-dot[data-emotion="anger"] { background: #ef4444; }
.emotion-dot[data-emotion="fear"] { background: #8b5cf6; }
.emotion-dot[data-emotion="love"] { background: #ec4899; }
.emotion-dot[data-emotion="calm"] { background: #10b981; }

.emotion-dot[data-emotion="joy"] { color: #facc15; }
.emotion-dot[data-emotion="sadness"] { color: #3b82f6; }
.emotion-dot[data-emotion="anger"] { color: #ef4444; }
.emotion-dot[data-emotion="fear"] { color: #8b5cf6; }
.emotion-dot[data-emotion="love"] { color: #ec4899; }
.emotion-dot[data-emotion="calm"] { color: #10b981; }

@keyframes emotion-dot-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 12%, transparent);
  }
}

@keyframes emotion-dot-halo {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.82);
  }
  45% {
    opacity: 0.32;
    transform: scale(1.18);
  }
  70% {
    opacity: 0;
    transform: scale(1.38);
  }
}

.modal {
  --modal-accent: #a78bfa;
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 26, 0.48);
  backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.modal-content {
  position: relative;
  width: min(92%, 520px);
  margin: 10vh auto 0;
  background: #12122A;   /* Space Dark — charte */
  color: #E2E8F0;        /* text primary — charte */
  border: 1px solid color-mix(in srgb, var(--modal-accent) 36%, rgba(255, 255, 255, 0.08));
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 32px color-mix(in srgb, var(--modal-accent) 18%, transparent);
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.modal.open .modal-backdrop {
  opacity: 1;
}

.modal.open .modal-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: #E2E8F0;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--modal-accent) 18%, transparent), 0 0 18px color-mix(in srgb, var(--modal-accent) 45%, transparent);
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.modal-content h2 {
  margin: 0;
  font-size: 1.4rem;
}

.modal-content p {
  color: #94A3B8;        /* text-muted — charte */
  line-height: 1.6;
}

.modal-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-section h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #ffffff;
}

/* ── Notify form ─────────────────────────────────────────────────── */
.notify-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin-bottom: 4rem;
}

.notify-label {
  font-size: 0.78rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.notify-form {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 8px;
}

.notify-input {
  flex: 1;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  height: 50px;
}

.notify-input::placeholder { color: var(--text-dim); }
.notify-input:focus { border-color: rgba(167, 139, 250, 0.6); }

.notify-btn {
  background: var(--violet);
  border: none;
  border-radius: 100px;
  padding: 10px 22px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.notify-btn:hover  { background: #6D28D9; transform: scale(1.03); }
.notify-btn:active { transform: scale(0.98); }

.notify-privacy {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Success message ──────────────────────────────────────────────── */
.success-msg {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(52, 211, 153, 0.1);
  border: 0.5px solid rgba(52, 211, 153, 0.3);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 0.82rem;
  color: var(--trust);
  font-weight: 500;
}

/* ── Tokens ──────────────────────────────────────────────────────── */
.tokens {
  display: flex;
  gap: 12px;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.token {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.token-mood { color: var(--violet-light); }
.token-love { color: var(--pink); }
.token-pulse { color: var(--teal); }

.token-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── App stores ─────────────────────────────────────────────────── */
.app-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 3.5rem;
}

.app-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.app-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.app-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 10px 18px;
  transition: border-color 0.2s, transform 0.2s;
  cursor: default;
}

.app-badge:hover {
  border-color: rgba(167, 139, 250, 0.5);
  transform: translateY(-2px);
}

.app-badge svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.app-badge-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.app-badge-soon {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 500;
}

.app-badge-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.06em;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover { color: var(--violet-light); }

/* ── Divider ─────────────────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 0.5px;
  background: var(--border);
  margin: 0 auto 3rem;
}

/* ── Small Mobile Halos ──────────────────────────────────────────── */
@media (max-width: 840px) {
  .h1 { width: 300px; height: 300px; }
  .h2 { width: 240px; height: 240px; }
  .h3 { width: 190px; height: 190px; }
  .h4 { width: 260px; height: 260px; }
  .h5 { width: 170px; height: 170px; }
  .h6 { width: 220px; height: 220px; }
  .h7 { width: 150px; height: 150px; }
  .h8 { width: 320px; height: 320px; }
}

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .page { padding: 2rem 2rem 4rem; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .notify-form { gap: 12px; flex-direction: row; justify-content: center; }
}

@media (min-width: 1024px) {
  .page { padding: 2rem 3rem 4rem; }
}