/* ============================================================
   OKX VIP — Landing (design cloné de la page Weex VIP)
   Vanilla CSS, mobile-first. Tokens alignés sur le thème Weex.
   ============================================================ */

:root {
  /* Backgrounds */
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1424;
  --bg-card: #141929;
  --bg-elevated: #1a1f35;
  /* Text */
  --text-primary: #f0f0f5;
  --text-secondary: #8b8fa3;
  --text-muted: #5a5e72;
  /* Accent (teal) */
  --accent: #2dd4a8;
  --accent-light: #34eabb;
  --accent-dark: #1fb890;
  --accent-glow: rgba(45, 212, 168, 0.15);
  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  /* Feedback */
  --error: #f87171;
  --error-border: rgba(239, 68, 68, 0.6);
  --error-bg: rgba(239, 68, 68, 0.1);
  --discord: #5865F2;
  --discord-hover: #4752C4;
  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 20px rgba(45, 212, 168, 0.18);
  /* Radii */
  --r-lg: 0.5rem;
  --r-xl: 0.75rem;
  --r-2xl: 1rem;
  --r-full: 9999px;
  /* Layout */
  --maxw: 64rem;          /* 6xl */
}

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

::selection { background: rgba(45, 212, 168, 0.3); color: var(--text-primary); }

*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
  line-height: 1.2;
}
.btn__icon { flex-shrink: 0; }

.btn--accent {
  background: var(--accent);
  color: var(--bg-primary);
  border-radius: var(--r-xl);
}
.btn--accent:hover { background: var(--accent-light); box-shadow: var(--shadow-glow); }

.btn--outline {
  background: rgba(45, 212, 168, 0.10);
  color: var(--accent);
  border-color: rgba(45, 212, 168, 0.40);
  border-radius: var(--r-xl);
}
.btn--outline:hover { border-color: rgba(45, 212, 168, 0.60); background: rgba(45, 212, 168, 0.20); }

.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; border-radius: var(--r-lg); }
.btn--lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn--full { width: 100%; padding: 0.875rem 1rem; font-size: 1rem; border-radius: var(--r-lg); }

.btn--discord {
  background: var(--discord);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}
.btn--discord:hover { background: var(--discord-hover); box-shadow: 0 8px 20px rgba(0,0,0,0.4); }

.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.link-accent {
  display: inline-flex; align-items: center; gap: 0.375rem;
  color: var(--accent); font-size: 0.875rem; font-weight: 500;
  transition: color 0.18s ease;
}
.link-accent:hover { color: var(--accent-light); }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 14, 26, 0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.header__brand { font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.header__actions { display: flex; align-items: center; gap: 0.5rem; }
.header__create { display: none; }
@media (min-width: 640px) { .header__create { display: inline-flex; } }

/* ── Section scaffolding ─────────────────────────────────── */
.section { border-top: 1px solid var(--border-subtle); padding-top: 4rem; padding-bottom: 4rem; }
.section--alt { background: var(--bg-secondary); }
@media (min-width: 640px) { .section { padding-top: 6rem; padding-bottom: 6rem; } }

.section-title {
  font-size: 1.5rem; font-weight: 700; text-align: center; letter-spacing: -0.02em;
}
@media (min-width: 640px) { .section-title { font-size: 1.875rem; } }

.section-subtitle {
  margin: 0.75rem auto 0; max-width: 36rem; text-align: center;
  color: var(--text-secondary); line-height: 1.6;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 1024px) { .hero { padding-top: 5rem; padding-bottom: 5rem; } }
.hero__grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center;
}
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; } }

.hero__title {
  font-size: 1.875rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em;
}
@media (min-width: 640px) { .hero__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .hero__title { font-size: 3rem; } }
.hero__highlight { color: var(--accent); }

.hero__subtitle {
  margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.65; color: var(--text-secondary);
}

.hero__bonus {
  margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(45, 212, 168, 0.30); background: rgba(45, 212, 168, 0.07);
  border-radius: var(--r-lg); padding: 0.625rem 0.9rem;
  font-size: 0.875rem; color: var(--text-primary); font-weight: 500;
}
.hero__bonus strong { color: var(--accent); }

.hero__benefits { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.hero__benefit { display: flex; align-items: flex-start; gap: 0.75rem; }
.hero__check {
  flex-shrink: 0; width: 1.5rem; height: 1.5rem; border-radius: var(--r-full);
  background: rgba(45, 212, 168, 0.15); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-top: 0.1rem;
}
.hero__benefit-text { color: var(--text-secondary); line-height: 1.55; }
.hero__benefit-text strong { color: var(--accent); font-weight: 600; }

.hero__ctas { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .hero__ctas { flex-direction: row; } }

.hero__footnote { margin-top: 1.25rem; font-size: 0.75rem; color: var(--text-muted); }

.hero__media {
  position: relative; width: 100%; max-width: 28rem; margin: 0 auto;
  aspect-ratio: 1 / 1; overflow: hidden;
  border: 1px solid var(--border-subtle); border-radius: var(--r-2xl);
  box-shadow: var(--shadow-glow);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* ── Steps (How it works) ────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  border: 1px solid var(--border-subtle); background: var(--bg-card);
  border-radius: var(--r-xl); padding: 1.5rem; box-shadow: var(--shadow-card);
  transition: all 0.18s ease;
}
.card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-card-hover); }

.step-card__num {
  width: 2.5rem; height: 2.5rem; border-radius: var(--r-lg);
  background: rgba(45, 212, 168, 0.12); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.05rem;
}
.step-card__title { margin-top: 1rem; font-size: 1.125rem; font-weight: 600; }
.step-card__text { margin-top: 0.5rem; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }
.step-card__cta { margin-top: 1rem; }

/* ── Form section ────────────────────────────────────────── */
.form-wrap { max-width: 32rem; margin: 2.5rem auto 0; }

.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.form-input {
  width: 100%; border: 1px solid var(--border-subtle); background: var(--bg-card);
  color: var(--text-primary); border-radius: var(--r-lg);
  padding: 0.75rem 1rem; font-family: inherit; font-size: 1rem;
  outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.form-input.is-invalid { border-color: var(--error-border); }
.form-error { min-height: 1rem; margin-top: 0.375rem; font-size: 0.75rem; color: var(--error); }

.form-banner-error {
  display: none; border: 1px solid rgba(239,68,68,0.3); background: var(--error-bg);
  color: var(--error); border-radius: var(--r-lg); padding: 0.75rem 1rem;
  font-size: 0.875rem; margin-bottom: 1rem;
}
.form-banner-error.is-visible { display: block; }

.form-legal { margin-top: 0.75rem; text-align: center; font-size: 0.75rem; color: var(--text-muted); }

/* Success state */
.form-success { display: none; }
.form-success.is-visible { display: block; }
.success-box {
  border: 1px solid rgba(45, 212, 168, 0.30); background: rgba(45, 212, 168, 0.10);
  border-radius: var(--r-xl); padding: 1.75rem 1.5rem; text-align: center;
}
.success-icon {
  width: 3rem; height: 3rem; margin: 0 auto 1rem; border-radius: var(--r-full);
  background: rgba(45, 212, 168, 0.20); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.success-title { font-weight: 600; font-size: 1.05rem; }
.success-text { margin-top: 0.5rem; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* Spinner */
.spinner {
  display: inline-block; width: 1rem; height: 1rem; border-radius: 50%;
  border: 2px solid rgba(10,14,26,0.35); border-top-color: var(--bg-primary);
  animation: spin 0.7s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── UID helper + modal ──────────────────────────────────── */
.uid-helper { text-align: center; max-width: 42rem; margin: 0 auto; }
.uid-helper__btn { margin-top: 1.25rem; }
.uid-helper__btn .btn { gap: 0.5rem; }

.modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal__content {
  position: relative; width: 100%; max-width: 36rem;
  border: 1px solid var(--border-subtle); background: var(--bg-card);
  border-radius: var(--r-2xl); padding: 1.5rem; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  max-height: 90vh; overflow-y: auto;
}
@media (min-width: 640px) { .modal__content { padding: 2rem; } }
.modal__close {
  position: absolute; right: 1rem; top: 1rem; width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center; border-radius: var(--r-lg);
  background: transparent; border: none; color: var(--text-muted); cursor: pointer;
  transition: all 0.15s ease;
}
.modal__close:hover { background: var(--bg-elevated); color: var(--text-primary); }
.modal__title { font-size: 1.25rem; font-weight: 700; padding-right: 2rem; }
.modal__intro { margin-top: 1rem; font-size: 0.875rem; color: var(--text-secondary); }
.modal__steps { margin-top: 0.75rem; padding-left: 1.25rem; list-style: decimal; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--text-secondary); }
.modal__shot { margin-top: 1.25rem; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--border-subtle); }
.modal__shot img { width: 100%; }
.modal__actions { margin-top: 1.5rem; display: flex; justify-content: flex-end; }

/* ── Benefits ────────────────────────────────────────────── */
.benefit-card__icon {
  width: 3rem; height: 3rem; border-radius: var(--r-lg); margin-bottom: 1rem;
  background: rgba(45, 212, 168, 0.10); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.benefit-card__title { font-size: 1.125rem; font-weight: 600; }
.benefit-card__text { margin-top: 0.75rem; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; white-space: pre-line; }

/* ── Value section ───────────────────────────────────────── */
.value { max-width: 48rem; margin: 0 auto; }
.value__list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.value__item { display: flex; align-items: flex-start; gap: 0.75rem; }
.value__dot { width: 0.5rem; height: 0.5rem; border-radius: var(--r-full); background: var(--accent); margin-top: 0.55rem; flex-shrink: 0; }
.value__text { color: var(--text-secondary); line-height: 1.6; }
.value__closure {
  margin-top: 2.5rem; border: 1px solid rgba(45, 212, 168, 0.20);
  background: rgba(45, 212, 168, 0.05); border-radius: var(--r-xl);
  padding: 1.25rem; text-align: center; font-size: 0.875rem; font-weight: 500;
}

/* ── Intermediate CTA ────────────────────────────────────── */
.midcta { max-width: 40rem; margin: 0 auto; text-align: center; }
.midcta__sub { margin-top: 0.75rem; color: var(--text-secondary); }
.midcta__btn { margin-top: 2rem; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { max-width: 42rem; margin: 0 auto; }
.faq__list { margin-top: 2.5rem; }
.faq-item { border-top: 1px solid var(--border-subtle); }
.faq-item:last-child { border-bottom: 1px solid var(--border-subtle); }
.faq-item__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 0; background: none; border: none; cursor: pointer;
  text-align: left; color: var(--text-primary); font-family: inherit;
  font-size: 0.95rem; font-weight: 500;
}
.faq-item__chevron { flex-shrink: 0; color: var(--text-muted); transition: transform 0.2s ease; }
.faq-item.is-open .faq-item__chevron { transform: rotate(180deg); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height 0.22s ease; }
.faq-item.is-open .faq-item__a { max-height: 16rem; }
.faq-item__a p { padding-bottom: 1rem; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border-subtle); background: var(--bg-primary); padding: 2.5rem 0; }
@media (min-width: 640px) { .footer { padding: 3.5rem 0; } }
.footer__inner { max-width: 48rem; margin: 0 auto; text-align: center; }
.footer__disclaimer { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }
.footer__cta { margin-top: 1.25rem; }
.footer__notices { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.footer__notice { font-size: 0.75rem; color: var(--text-muted); }
.footer__brand { margin-top: 1.5rem; font-size: 0.75rem; color: rgba(90, 94, 114, 0.7); }

/* ── Sticky mobile CTA ───────────────────────────────────── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 14, 26, 0.90); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 1rem;
  transform: translateY(100%); transition: transform 0.3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* ── Scroll-in animation ─────────────────────────────────── */
.will-animate { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.will-animate.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .will-animate { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
