/* =====================================================
   RIVHIL AI — waitlist.css
   ===================================================== */

:root {
  --accent:        #c8ff00;
  --accent-blue:   #60a5fa;
  --accent-orange: #fb923c;
  --bg:            #020d1a;
  --bg-card:       #0a1628;
  --bg-card-border:#0f2040;
  --text-primary:  #f1f5f9;
  --text-muted:    #94a3b8;
  --text-dim:      #64748b;
  --font-display:  'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
.accent { color: var(--accent); }

/* ---- NAV ---- */
.wl-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(2,13,26,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wl-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wl-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -1px;
}
.wl-back-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.wl-back-link:hover { color: var(--accent); }

/* ---- HERO ---- */
.wl-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

/* Video background */
.wl-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.wl-video-el {
  position: absolute;
  width: 100%;
  height: 115%;
  top: -7.5%;
  left: 0;
  object-fit: cover;
}
.wl-video-overlay {
  position: absolute;
  inset: 0;
  /* deep dark gradient matching brand bg, slightly transparent to let video breathe */
  background: linear-gradient(
    to bottom,
    rgba(2, 13, 26, 0.30) 0%,
    rgba(2, 13, 26, 0.55) 40%,
    rgba(2, 13, 26, 0.85) 80%,
    #020d1a 100%
  );
}

.wl-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.18;
  z-index: 1;
}
.wl-glow-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -100px; left: -200px;
  opacity: 0.08;
}
.wl-glow-2 {
  width: 500px; height: 500px;
  background: #60a5fa;
  top: 100px; right: -150px;
  opacity: 0.1;
}
.wl-glow-3 {
  width: 400px; height: 400px;
  background: #8b5cf6;
  bottom: 0; left: 30%;
  opacity: 0.08;
}

.wl-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.wl-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,255,0,0.08);
  border: 1px solid rgba(200,255,0,0.25);
  border-radius: 9999px;
  padding: 7px 18px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1.5px;
  opacity: 0;
  animation: heroReveal 0.8s 0.1s cubic-bezier(0.22,1,0.36,1) forwards;
}

.wl-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 8vw, 80px);
  line-height: 1;
  color: #fff;
  opacity: 0;
  animation: heroReveal 0.9s 0.3s cubic-bezier(0.22,1,0.36,1) forwards;
}

@font-face {
  font-family: 'Moglan Demo';
  src: url('Moglan_DEMO.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Minimalist heading variant */
.wl-heading-minimal {
  font-family: 'Moglan Demo', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: normal;
  font-size: clamp(46px, 8.5vw, 88px);
  line-height: 1.05;
  letter-spacing: -2px;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: heroReveal 0.9s 0.3s cubic-bezier(0.22,1,0.36,1) forwards;
}
.wl-heading-minimal em {
  font-style: normal; /* Keep it normal instead of italic for minimalist feel */
  background: linear-gradient(90deg, #c8ff00 0%, #a8e800 40%, #c8ff00 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroReveal 0.9s 0.3s cubic-bezier(0.22,1,0.36,1) forwards,
             shimmerText 3s 1.2s linear infinite;
}

.wl-sub {
  font-size: clamp(15px, 2.2vw, 18px);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  opacity: 0;
  animation: heroReveal 0.9s 0.5s cubic-bezier(0.22,1,0.36,1) forwards;
}

/* Social proof avatars */
.wl-social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: heroReveal 0.9s 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
}
.wl-avatars {
  display: flex;
}
.wl-av {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  margin-left: -8px;
}
.wl-avatars .wl-av:first-child { margin-left: 0; }
.wl-av-more {
  background: rgba(255,255,255,0.1);
  font-size: 14px;
}
.wl-proof-text {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- FORM CARD ---- */
.wl-form-card {
  width: 100%;
  max-width: 520px;
  position: relative;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  backdrop-filter: blur(16px);
  overflow: hidden;
  opacity: 0;
  animation:
    heroReveal 1s 0.9s cubic-bezier(0.22,1,0.36,1) forwards,
    floatCard 6s 2s ease-in-out infinite;
}
.wl-form-card-glow {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 150px;
  background: var(--accent);
  filter: blur(80px);
  opacity: 0.06;
  pointer-events: none;
}
.wl-form-inner {
  padding: clamp(28px, 6vw, 48px);
}

.wl-form-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 4vw, 28px);
  color: #fff;
  margin-bottom: 8px;
}
.wl-form-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.wl-field-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.wl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wl-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}
.wl-optional {
  font-weight: 400;
  color: var(--text-dim);
}
.wl-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.wl-input::placeholder { color: var(--text-dim); }
.wl-input:focus {
  border-color: rgba(200,255,0,0.5);
  box-shadow: 0 0 0 3px rgba(200,255,0,0.08);
}
.wl-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
  background-color: rgba(255,255,255,0.04);
}
.wl-select option { background: #0a1628; color: #f1f5f9; }

/* Validation error states */
.wl-field.error .wl-input {
  border-color: rgba(239,68,68,0.6);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
  animation: inputShake 0.4s cubic-bezier(0.36,0.07,0.19,0.97) both;
}
.wl-error {
  font-size: 12px;
  color: #f87171;
  display: none;
}
.wl-field.error .wl-error { display: block; }

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  15%       { transform: translateX(-7px); }
  30%       { transform: translateX(6px); }
  45%       { transform: translateX(-5px); }
  60%       { transform: translateX(4px); }
  75%       { transform: translateX(-2px); }
  90%       { transform: translateX(2px); }
}

/* Submit button */
.wl-submit-btn {
  width: 100%;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
  min-height: 52px;
}
.wl-submit-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}
.wl-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wl-spinner { display: flex; align-items: center; gap: 8px; }
.wl-spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.wl-err-global {
  margin-top: 12px;
  font-size: 13px;
  color: #f87171;
  text-align: center;
  line-height: 1.5;
}
.wl-err-global a { color: var(--accent); text-decoration: underline; }

.wl-privacy {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

/* ---- SUCCESS STATE ---- */
.wl-success-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 8px 0;
}
.wl-success-icon {
  animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.wl-success-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: #fff;
}
.wl-success-msg {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 340px;
}
.wl-success-name {
  font-size: 13px;
  color: var(--text-dim);
}
.wl-success-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}
.wl-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: border-color 0.2s, background 0.2s;
}
.wl-social-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.wl-back-btn {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  transition: opacity 0.2s;
}
.wl-back-btn:hover { opacity: 0.75; }

.wl-success-share { margin-top: 8px; }
.wl-share-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.wl-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200,255,0,0.08);
  border: 1px solid rgba(200,255,0,0.2);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.2s;
}
.wl-copy-btn:hover { background: rgba(200,255,0,0.15); }

/* ---- TRUST BADGES ---- */
.wl-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.8s 0.45s ease both;
}
.wl-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- FEATURES SECTION ---- */
.wl-features {
  padding: 80px 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.wl-features-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.wl-features-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.wl-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
}
.wl-feat-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s, border-color 0.3s;
}
.wl-feat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
}
.wl-feat-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wl-feat-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
}
.wl-feat-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- TESTIMONIALS ---- */
.wl-testimonials {
  padding: 80px 24px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.2));
}
.wl-testi-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.wl-testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  width: 100%;
}
.wl-testi-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wl-testi-stars { color: var(--accent); font-size: 14px; letter-spacing: 2px; }
.wl-testi-quote {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}
.wl-testi-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wl-testi-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.wl-testi-role {
  font-size: 12px;
  color: var(--text-dim);
}

/* ---- FOOTER ---- */
.wl-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 24px;
}
.wl-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.wl-footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}
.wl-footer-links {
  display: flex;
  gap: 24px;
}
.wl-footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.wl-footer-links a:hover { color: var(--text-primary); }
.wl-footer-copy {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* ---- ANIMATIONS ---- */
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(28px) scale(0.97); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    filter: blur(0); }
}
@keyframes shimmerText {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes particlePulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.4); }
}

/* ---- CONFETTI CANVAS ---- */
#confettiCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ---- PARTICLE CANVAS ---- */
#particlesCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: fadeDown 1.5s 1.4s ease forwards;
}

/* ---- RESPONSIVE ---- */
@media (min-width: 768px) {
  .wl-nav { display: flex; align-items: center; }
}
@media (max-width: 480px) {
  .wl-trust { gap: 12px; }
  .wl-form-inner { padding: 24px; }
  .wl-success-actions { flex-direction: column; }
}
