/* ============================================
   REVÉRSÉ SOCIETY — Design System
   Ultra-premium dark chrome aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --black: #000000;
  --black-rich: #050505;
  --dark-panel: #0a0a0a;
  --dark-border: #1a1a1a;
  --chrome-dark: #6b6b6b;
  --chrome-mid: #a0a0a0;
  --chrome-light: #c8c8c8;
  --chrome-bright: #e0e0e0;
  --chrome-white: #f0f0f0;
  --accent-glow: rgba(200, 200, 200, 0.08);
  --accent-glow-strong: rgba(220, 220, 220, 0.15);
  --font-primary: 'Outfit', -apple-system, 'Segoe UI', sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--black);
  font-family: var(--font-primary);
  color: var(--chrome-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(200, 200, 200, 0.2);
  color: var(--chrome-white);
}

/* --- Background Video --- */
.bg-video-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.bg-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* --- Custom Cursor --- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, var(--chrome-white), var(--chrome-mid));
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.15s ease-out, opacity 0.3s;
  mix-blend-mode: difference;
  opacity: 0;
}

.cursor-dot.visible {
  opacity: 1;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(200, 200, 200, 0.25);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.08s ease-out, width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0;
}

.cursor-ring.visible {
  opacity: 1;
}

.cursor-ring.hover {
  width: 52px;
  height: 52px;
  border-color: rgba(200, 200, 200, 0.5);
}

/* --- Particle Canvas --- */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* --- Ambient Spotlight --- */
.ambient-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse 600px 500px at 50% 0%,
    rgba(180, 180, 180, 0.06) 0%,
    rgba(120, 120, 120, 0.02) 40%,
    transparent 70%
  );
}

/* --- Mouse Follow Light --- */
.mouse-light {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.mouse-light.visible {
  opacity: 1;
}

/* --- Main Container --- */
.splash-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  text-align: center;
}

/* --- Logo --- */
.logo-wrapper {
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  animation: logoReveal 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  margin-bottom: 32px;
}

.logo-img {
  width: clamp(260px, 35vw, 500px);
  height: auto;
  filter: drop-shadow(0 0 60px rgba(180, 180, 180, 0.18));
  object-fit: contain;
}

@keyframes logoReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- Tagline --- */
.tagline {
  opacity: 0;
  transform: translateY(20px);
  animation: textReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 1.0s forwards;
  margin-bottom: 36px;
}

.tagline-hero {
  font-size: clamp(22px, 4vw, 44px);
  font-weight: 300;
  letter-spacing: 0.15em;
  background: linear-gradient(
    135deg,
    var(--chrome-dark) 0%,
    var(--chrome-mid) 20%,
    var(--chrome-white) 40%,
    var(--chrome-bright) 50%,
    var(--chrome-mid) 60%,
    var(--chrome-dark) 80%,
    var(--chrome-mid) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: chromeShimmer 6s ease-in-out infinite;
  line-height: 1.3;
  margin-bottom: 8px;
}

.tagline-sub {
  font-size: clamp(11px, 1.6vw, 16px);
  font-weight: 300;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--chrome-dark);
}

@keyframes chromeShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes textReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Divider Line --- */
.divider {
  opacity: 0;
  animation: fadeIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) 1.4s forwards;
  width: 60px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--chrome-dark),
    var(--chrome-mid),
    var(--chrome-dark),
    transparent
  );
  margin-bottom: 36px;
}

/* --- Signup Section --- */
.signup-wrapper {
  opacity: 0;
  transform: translateY(20px);
  animation: textReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 1.8s forwards;
  margin-bottom: 40px;
  width: 100%;
  max-width: 520px;
}

/* --- VIP Counter --- */
.vip-counter {
  margin-bottom: 22px;
}

.counter-text {
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--chrome-mid);
  margin-bottom: 10px;
}

.counter-num {
  font-weight: 600;
  color: var(--chrome-white);
  font-variant-numeric: tabular-nums;
}

.counter-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.counter-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--chrome-dark), var(--chrome-mid), var(--chrome-bright));
  border-radius: 2px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Email Form --- */
.signup-form {
  width: 100%;
}

.input-group {
  display: flex;
  gap: 0;
  width: 100%;
  border: 1px solid var(--dark-border);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.4s;
  overflow: hidden;
}

.input-group:focus-within {
  border-color: rgba(200, 200, 200, 0.2);
}

.email-input {
  flex: 1;
  padding: 16px 22px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--chrome-white);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.email-input::placeholder {
  color: rgba(150, 150, 150, 0.4);
  letter-spacing: 0.08em;
}

.submit-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: linear-gradient(
    135deg,
    rgba(30, 30, 30, 0.9),
    rgba(20, 20, 20, 0.95)
  );
  border: none;
  border-left: 1px solid var(--dark-border);
  color: var(--chrome-mid);
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(200, 200, 200, 0.05),
    transparent
  );
  transition: left 0.6s;
}

.submit-btn:hover {
  color: var(--chrome-white);
  background: linear-gradient(
    135deg,
    rgba(50, 50, 50, 0.9),
    rgba(30, 30, 30, 0.95)
  );
}

.submit-btn:hover::before {
  left: 100%;
}

.btn-arrow {
  transition: transform 0.3s;
  font-size: 14px;
}

.submit-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.signup-note {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(120, 120, 120, 0.5);
}

/* --- Success State --- */
.signup-success {
  text-align: center;
  animation: textReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(200, 200, 200, 0.2);
  border-radius: 50%;
  font-size: 20px;
  color: var(--chrome-white);
  margin-bottom: 16px;
  animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 200, 200, 0.1); }
  50% { box-shadow: 0 0 20px 4px rgba(200, 200, 200, 0.08); }
}

.success-text {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--chrome-light);
}

/* --- Social Links --- */
.socials {
  opacity: 0;
  transform: translateY(20px);
  animation: textReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 2.2s forwards;
  display: flex;
  gap: 36px;
  align-items: center;
}

.social-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  text-decoration: none;
  color: var(--chrome-dark);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-link::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-link:hover {
  color: var(--chrome-white);
  transform: translateY(-3px);
}

.social-link:hover::before {
  border-color: rgba(200, 200, 200, 0.15);
  box-shadow: 0 0 24px rgba(200, 200, 200, 0.06);
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: filter 0.4s;
}

.social-link:hover svg {
  filter: drop-shadow(0 0 8px rgba(200, 200, 200, 0.3));
}

/* --- Bottom Signature --- */
.bottom-sig {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0;
  animation: fadeIn 1s ease 3s forwards;
}

.bottom-sig p {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(100, 100, 100, 0.5);
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* --- Vignette Overlay --- */
.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

/* --- Scan Line Effect --- */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  pointer-events: none;
  opacity: 0.03;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.03) 2px,
    rgba(255, 255, 255, 0.03) 4px
  );
}

/* --- Top Horizon Glow --- */
.horizon-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 400px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(160, 160, 160, 0.04) 0%,
    transparent 70%
  );
  animation: horizonPulse 8s ease-in-out infinite;
}

@keyframes horizonPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* --- Edge Light Lines --- */
.edge-line-top {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  z-index: 7;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(180, 180, 180, 0.08),
    rgba(200, 200, 200, 0.15),
    rgba(180, 180, 180, 0.08),
    transparent
  );
}

.edge-line-bottom {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 1px;
  z-index: 7;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(150, 150, 150, 0.06),
    rgba(180, 180, 180, 0.1),
    rgba(150, 150, 150, 0.06),
    transparent
  );
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .logo-img {
    width: clamp(140px, 40vw, 220px);
  }

  .input-group {
    flex-direction: column;
  }

  .submit-btn {
    border-left: none;
    border-top: 1px solid var(--dark-border);
    justify-content: center;
  }

  .socials {
    gap: 28px;
  }

  .signup-wrapper {
    padding: 0 10px;
  }

  .vip-badge {
    display: block;
    margin-top: 6px;
    margin-left: 0;
  }
}
