/* ==========================================================================
   RHEMA CAPITAL — Coming Soon
   ========================================================================== */

:root {
  --ease: cubic-bezier(.2, .7, .2, 1);

  --page: #E8EDF6;
  --frame: #FFFFFF;
  --surface: #F6F8FC;
  --ink: #0B1F3A;
  --muted: #5B6476;
  --accent: #1E4FD8;
  --gold-text: #8C6A2A;
  --line: rgba(11, 31, 58, .25);

  --btn: #0B1F3A;
  --btn-ink: #FFFFFF;
  --btn-dot: #FFFFFF;
  --btn-dot-ink: #0B1F3A;

  --social: #FFFFFF;
  --social-ink: #0B1F3A;
  --social-line: rgba(11, 31, 58, .06);

  --glass: rgba(255, 255, 255, .62);
  --glass-line: rgba(255, 255, 255, .95);
  --cell-line: rgba(11, 31, 58, .10);

  --field: #FFFFFF;
  --field-dot: #EEF2FA;
  --field-line: rgba(11, 31, 58, .08);
  --error: #B42318;
  --error-line: rgba(180, 35, 24, .6);

  /* 3D objects */
  --gold: radial-gradient(circle at 32% 28%, #FFF4D6 0%, #E7CA8A 22%, #C9A45C 46%, #8F6E33 80%, #5E4520 100%);
  --obj-shade: rgba(11, 31, 58, .22);
  --obj-glow: 0 0 0 transparent;
  --ring-glass: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(190, 206, 242, .35) 55%, rgba(255, 255, 255, .7));
  --ring-shade: rgba(11, 31, 58, .16);
  --ring-arc: rgba(255, 255, 255, .9);
  --bar-glass: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(196, 210, 244, .4));
  --bar-line: rgba(255, 255, 255, .95);
  --sphere-shade: rgba(11, 31, 58, .3);

  --blob-1: rgba(30, 79, 216, .20);
  --blob-2: rgba(201, 164, 92, .22);
  --blob-3: rgba(160, 190, 255, .30);
}

[data-theme="dark"] {
  --page: #050E1C;
  --frame: #10284A;
  --surface: #0B1F3A;
  --ink: #F4F6FB;
  --muted: #AEB8CB;
  --accent: #D9B872;
  --gold-text: #D9B872;
  --line: rgba(217, 184, 114, .5);

  --btn: #C9A45C;
  --btn-ink: #0B1F3A;
  --btn-dot: #0B1F3A;
  --btn-dot-ink: #E6C886;

  --social: rgba(255, 255, 255, .06);
  --social-ink: #E9EDF5;
  --social-line: rgba(255, 255, 255, .12);

  --glass: rgba(255, 255, 255, .05);
  --glass-line: rgba(255, 255, 255, .12);
  --cell-line: rgba(255, 255, 255, .12);

  --field: #132E54;
  --field-dot: #0B1F3A;
  --field-line: rgba(255, 255, 255, .12);
  --error: #FFB4A8;

  --gold: radial-gradient(circle at 32% 28%, #FFF7DC 0%, #F0D497 20%, #D7B46A 45%, #9C7836 78%, #6B4E1E 100%);
  --obj-shade: rgba(11, 31, 58, .6);
  --obj-glow: 0 0 40px rgba(217, 184, 114, .35);
  --ring-glass: linear-gradient(135deg, rgba(255, 255, 255, .45), rgba(120, 150, 220, .12) 60%, rgba(217, 184, 114, .35));
  --ring-shade: rgba(11, 31, 58, .5);
  --ring-arc: rgba(255, 255, 255, .35);
  --bar-glass: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(120, 150, 220, .08));
  --bar-line: rgba(255, 255, 255, .25);
  --sphere-shade: rgba(11, 31, 58, .6);

  --blob-1: rgba(30, 79, 216, .55);
  --blob-2: rgba(201, 164, 92, .28);
  --blob-3: rgba(60, 110, 240, .22);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--page);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
*:focus-visible { outline: 2px solid #1E4FD8; outline-offset: 3px; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--r0, 0deg)); }
  50% { transform: translate3d(0, var(--dy, -14px), 0) rotate(var(--r1, 4deg)); }
}
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(var(--dx), var(--dy), 0) scale(1.08); }
}

.rise { animation: rise .9s var(--ease) var(--d, 0s) both; }

/* ---------- Layout ---------- */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(10px, 2.4vw, 32px);
  display: flex;
  overflow: hidden;
}
.frame {
  position: relative;
  flex: 1;
  display: flex;
  background: var(--frame);
  border-radius: clamp(28px, 3.4vw, 46px);
  padding: clamp(8px, .9vw, 12px);
  box-shadow: 0 30px 80px -30px rgba(11, 31, 58, .28);
}
.surface {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 620px;
  background: var(--surface);
  border-radius: clamp(22px, 2.7vw, 36px);
  overflow: hidden;
}

/* ---------- Logo tab ---------- */
.tab { position: relative; z-index: 3; display: flex; align-items: flex-start; }
.tab__body {
  display: flex;
  align-items: center;
  background: var(--frame);
  padding: 14px 30px 18px;
  border-radius: 0 0 26px 26px;
}
.tab__fillet { width: 22px; height: 22px; }
.tab__fillet--l { background: radial-gradient(circle at 0 100%, transparent 21.5px, var(--frame) 22px); }
.tab__fillet--r { background: radial-gradient(circle at 100% 100%, transparent 21.5px, var(--frame) 22px); }

.wordmark { display: flex; align-items: baseline; gap: 10px; line-height: 1; font-size: 18px; letter-spacing: .2em; }
.wordmark__a { font-weight: 800; color: var(--ink); }
.wordmark__b { font-weight: 700; color: var(--gold-text); }

/* ---------- Main ---------- */
.main {
  position: relative;
  z-index: 3;
  flex: 1;
  width: 100%;
  padding: clamp(40px, 6vh, 72px) 22px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.eyebrow {
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--accent);
}
.title {
  margin: 0;
  max-width: 13ch;
  font-weight: 800;
  font-size: clamp(40px, 6.6vw, 92px);
  line-height: 1.02;
  letter-spacing: -.04em;
  color: var(--ink);
  text-wrap: balance;
}
.title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--accent);
}
.lead {
  margin: 28px 0 0;
  max-width: 34em;
  font-size: clamp(15px, 1.25vw, 17.5px);
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}
.contact { margin: 22px 0 0; font-size: 14px; color: var(--muted); }
.contact a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.contact a:hover { color: var(--accent); }

/* ---------- Countdown ---------- */
.countdown {
  margin-top: 34px;
  display: flex;
  align-items: stretch;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  box-shadow: 0 18px 40px -22px rgba(11, 31, 58, .35);
}
.countdown__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px clamp(18px, 3vw, 34px);
}
.countdown__cell + .countdown__cell { border-left: 1px solid var(--cell-line); }
.countdown__value {
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.countdown__label { font-size: 10.5px; font-weight: 700; letter-spacing: .22em; color: var(--muted); }

/* ---------- CTA / email capture ---------- */
.cta { margin-top: 40px; min-height: 64px; width: 100%; display: flex; justify-content: center; }
.cta__button, .cta__form-wrap, .cta__done { display: none; }
.cta[data-state="idle"] .cta__button { display: flex; }
.cta[data-state="open"] .cta__form-wrap { display: flex; }
.cta[data-state="sent"] .cta__done { display: flex; }

.pill-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-dot);
  color: var(--btn-dot-ink);
}
.pill-dot--soft { background: var(--field-dot); color: var(--ink); }
.pill-dot--ink { background: var(--btn); color: var(--btn-ink); }

.cta__button {
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 28px 0 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: var(--btn);
  color: var(--btn-ink);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: 0 14px 28px -14px rgba(11, 31, 58, .45);
  transition: box-shadow .35s ease, transform .35s ease;
}
.cta__arrow { transition: transform .35s var(--ease); }
.cta__button:hover { box-shadow: 0 22px 40px -14px rgba(11, 31, 58, .55); transform: translateY(-2px); }
.cta__button:hover .cta__arrow { transform: translateX(5px); }

.cta__form-wrap { flex-direction: column; align-items: center; gap: 10px; width: 100%; max-width: 470px; }
.field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 64px;
  padding: 8px;
  border-radius: 999px;
  background: var(--field);
  border: 1px solid var(--field-line);
  box-shadow: 0 18px 36px -18px rgba(11, 31, 58, .35);
}
.field.is-invalid { border-color: var(--error-line); }
.field__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  padding: 0 4px;
}
.field__input::placeholder { color: #8A93A5; }
.field__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field__submit {
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  flex: none;
  cursor: pointer;
  background: var(--btn);
  color: var(--btn-ink);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
}
.field__submit:hover { filter: brightness(1.15); }
.field__submit:disabled { cursor: progress; opacity: .7; }
.field__error { font-size: 13px; color: var(--error); }
.field__error:empty { display: none; }

.cta__done {
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 8px 26px 8px 8px;
  border-radius: 999px;
  background: var(--field);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  box-shadow: 0 18px 36px -18px rgba(11, 31, 58, .35);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 0 20px 26px;
}
.socials { display: flex; gap: 14px; }
.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--social);
  color: var(--social-ink);
  border: 1px solid var(--social-line);
  box-shadow: 0 8px 20px -8px rgba(11, 31, 58, .3);
  transition: transform .25s ease, color .25s ease;
}
.socials a:hover { transform: translateY(-2px); color: #1E4FD8; }
.copyright { margin: 0; font-size: 11px; letter-spacing: .08em; color: var(--muted); }

/* ==========================================================================
   Décor : aurora + objets 3D (CSS)
   ========================================================================== */

.aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  animation: drift var(--t) ease-in-out var(--delay) infinite;
}
.blob--1 { left: -12%; top: -18%; width: 55vmax; height: 55vmax; background: radial-gradient(circle, var(--blob-1) 0%, transparent 65%); --t: 18s; --delay: 0s; --dx: 50px; --dy: 30px; }
.blob--2 { right: -14%; bottom: -22%; width: 52vmax; height: 52vmax; background: radial-gradient(circle, var(--blob-2) 0%, transparent 65%); --t: 22s; --delay: -5s; --dx: -40px; --dy: -30px; }
.blob--3 { right: 8%; top: -25%; width: 38vmax; height: 38vmax; background: radial-gradient(circle, var(--blob-3) 0%, transparent 65%); --t: 26s; --delay: -10s; --dx: -30px; --dy: 40px; }
[data-theme="dark"] .blob--1 { width: 58vmax; height: 58vmax; }
[data-theme="dark"] .blob--2 { width: 55vmax; height: 55vmax; }
[data-theme="dark"] .blob--3 { right: 10%; width: 40vmax; height: 40vmax; }

.objects { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.objects--outer { z-index: 5; }

/* Taille fluide : clamp(0.6·N px, N/14.4 vw, N px) */
.obj {
  --k: 1;
  position: absolute;
  width: clamp(calc(var(--s) * var(--k) * .6px), calc(var(--s) * var(--k) * 1vw / 14.4), calc(var(--s) * var(--k) * 1px));
  aspect-ratio: 1;
  animation: float var(--t, 8s) ease-in-out var(--delay, 0s) infinite;
}

.obj--ring      { --s: 300; left: -5%; top: 6%; filter: blur(1px); --t: 10s; --r0: -6deg; --r1: 5deg; }
.obj--dot       { --s: 44; left: 24%; top: 9%; filter: blur(3px); opacity: .85; --t: 7s; --delay: -2s; }
.obj--coins     { --s: 150; left: 8%; bottom: 14%; --t: 8s; --delay: -3s; }
.obj--bars      { --s: 150; right: 8%; top: 13%; --t: 9s; --delay: -1s; }
.obj--arrow     { --s: 120; right: 13%; bottom: 17%; --t: 8.5s; --delay: -4s; --r0: -4deg; --r1: 5deg; }
.obj--coin-side { --s: 64; right: 3%; top: 52%; filter: blur(2.5px); opacity: .8; --t: 7s; --delay: -5s; --r0: 6deg; --r1: -6deg; }
.obj--sphere    { --s: 120; right: 1.2%; bottom: 1.5%; --t: 10s; }
.obj--coin-top  { --s: 70; left: 20%; top: -14px; filter: blur(1.5px); --t: 9s; --delay: -3s; --r0: -8deg; --r1: 6deg; }

/* Pièce d'or brossé */
.coin {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 10deg, rgba(255, 255, 255, .10) 0deg 3deg, rgba(0, 0, 0, .05) 3deg 6deg),
    var(--gold);
  box-shadow: 0 7px 0 #8A6830, 0 7px 0 1px rgba(90, 64, 24, .5), 0 22px 30px -6px var(--obj-shade), var(--obj-glow);
}
.coin::after {
  content: "";
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 248, 225, .55);
  box-shadow: inset 0 2px 6px rgba(80, 55, 15, .3);
}
.coin-tilt {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--i) * -14%);
  bottom: calc(var(--i) * 14%);
  transform: perspective(700px) rotateX(58deg) rotateZ(-18deg);
}
.coin-flip { position: absolute; inset: 0; transform: perspective(700px) rotateY(48deg) rotateZ(14deg); }

/* Anneau de verre */
.ring {
  position: absolute;
  inset: 0;
  transform: perspective(800px) rotateX(62deg) rotateY(-12deg);
  filter: drop-shadow(0 18px 22px var(--ring-shade));
}
.ring__glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ring-glass);
  -webkit-mask-image: radial-gradient(circle, transparent 50%, #000 51%, #000 69%, transparent 70%);
  mask-image: radial-gradient(circle, transparent 50%, #000 51%, #000 69%, transparent 70%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ring__arc {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1.5px solid var(--ring-arc);
  border-bottom-color: transparent;
  border-left-color: transparent;
}

/* Barres de graphique en verre */
.bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8%;
  transform: perspective(600px) rotateY(-16deg);
}
.bar {
  position: relative;
  width: 26%;
  height: var(--h);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bar-glass);
  border: 1px solid var(--bar-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 16px 28px -10px var(--obj-shade);
}
.bar--gold::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 18%;
  background: var(--gold);
}

/* Sphère dorée */
.sphere {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset -8px -12px 24px rgba(70, 48, 14, .45), inset 6px 8px 16px rgba(255, 250, 230, .5), 0 24px 34px -10px var(--sphere-shade);
}
[data-theme="dark"] .sphere { box-shadow: inset -8px -12px 24px rgba(70, 48, 14, .45), inset 6px 8px 16px rgba(255, 250, 230, .5), 0 24px 34px -10px var(--sphere-shade), 0 0 60px rgba(217, 184, 114, .45); }
.sphere::after {
  content: "";
  position: absolute;
  left: 22%;
  top: 16%;
  width: 26%;
  height: 18%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  filter: blur(4px);
}

/* Flèche ascendante */
.arrow {
  position: absolute;
  inset: 0;
  transform: rotate(-38deg);
  filter: drop-shadow(0 14px 16px var(--obj-shade));
}
[data-theme="dark"] .arrow { filter: drop-shadow(0 14px 16px var(--obj-shade)) drop-shadow(0 0 18px rgba(217, 184, 114, .4)); }
.arrow__body, .arrow__shine {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 40%, 58% 40%, 58% 16%, 100% 50%, 58% 84%, 58% 60%, 0 60%);
}
.arrow__body { background: linear-gradient(160deg, #FFF4D6 0%, #E2C27F 30%, #C9A45C 55%, #8F6E33 100%); }
.arrow__shine { background: linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 48%); }

/* ---------- Mobile ---------- */
@media (max-width: 759px) {
  .obj { --k: .5; }
  .obj--dot, .obj--coin-side, .obj--coin-top { display: none; }
  .obj--ring   { --s: 240; left: -16%; top: 7%; filter: blur(.5px); --t: 9s; --r0: -6deg; --r1: 4deg; }
  .obj--bars   { right: 3%; top: 9%; --t: 8s; --delay: -2s; }
  /* Ancrés de part et d'autre des icônes sociales, quelle que soit la hauteur du contenu */
  .obj--coins  { --s: 140; left: 3%; bottom: 74px; --t: 7.5s; --delay: -3s; }
  .obj--arrow  { --s: 130; right: 4%; bottom: 74px; --delay: -1s; --r1: 4deg; }
  .obj--sphere { right: 0; bottom: 0; }

  .cta__button { gap: 12px; padding-right: 22px; font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
