/* ============================================
   2026 MODERN WAITLIST PAGE
   Bento Grid • Dark Mode • Glassmorphism 2.0
   Security Hardened Version
   ============================================ */

/* Honeypot Field - Hidden from humans, visible to bots */
.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.honeypot-field input {
  position: absolute;
  left: -9999px;
}

:root {
  /* 2026 Color Palette - Dark Mode with Warm Accents */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  
  /* Warm Gradient Colors */
  --accent-1: #ff6b6b;
  --accent-2: #feca57;
  --accent-3: #ff9ff3;
  --accent-4: #54a0ff;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.4);
  
  /* Gradients */
  --gradient-warm: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #ff9ff3 100%);
  --gradient-cool: linear-gradient(135deg, #54a0ff 0%, #5f27cd 100%);
  --gradient-text: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #ff9ff3 100%);
  --gradient-border: linear-gradient(135deg, rgba(255, 107, 107, 0.5), rgba(254, 202, 87, 0.5), rgba(255, 159, 243, 0.5));
  
  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --glow-warm: 0 0 60px rgba(255, 107, 107, 0.3);
  --glow-cool: 0 0 60px rgba(84, 160, 255, 0.3);
  
  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ============================================
   ANIMATED MESH BACKGROUND
   ============================================ */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.mesh-gradient {
  position: absolute;
  inset: -50%;
  background: 
    radial-gradient(at 40% 20%, rgba(255, 107, 107, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(254, 202, 87, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(255, 159, 243, 0.1) 0px, transparent 50%),
    radial-gradient(at 80% 50%, rgba(84, 160, 255, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(255, 107, 107, 0.15) 0px, transparent 50%);
  animation: meshMove 20s ease infinite;
}

@keyframes meshMove {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(2%, 2%) rotate(1deg); }
  50% { transform: translate(-1%, 3%) rotate(-1deg); }
  75% { transform: translate(1%, -2%) rotate(0.5deg); }
}

.mesh-noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 15s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-1);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-4);
  top: 40%;
  right: -150px;
  animation-delay: -5s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: var(--accent-3);
  bottom: -100px;
  left: 30%;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.main-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  text-align: center;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 1s var(--ease-out);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-1);
  margin-bottom: var(--space-lg);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255, 107, 107, 0); }
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-1);
  border-radius: 50%;
  animation: dotBlink 1.5s ease-in-out infinite;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.title-line {
  display: block;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.highlight {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================
   BENTO GRID
   ============================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: all 0.4s var(--ease-out);
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.bento-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Card Main - Spans 2x2 */
.card-main {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card-main:hover .card-glow {
  opacity: 1;
}

/* Signup Form */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.input-wrapper {
  position: relative;
}

input[type="email"] {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s var(--ease-smooth);
}

input[type="email"]:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

input[type="email"]:focus {
  border-color: var(--accent-1);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.floating-label {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.2s var(--ease-out);
}

input[type="email"]:focus + .floating-label,
input[type="email"]:not(:placeholder-shown) + .floating-label {
  top: 0;
  font-size: 0.75rem;
  color: var(--accent-1);
  background: var(--bg-secondary);
  padding: 0 0.5rem;
}

.input-border {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-warm);
  transition: all 0.3s var(--ease-out);
}

input[type="email"]:focus ~ .input-border {
  left: 0;
  width: 100%;
}

/* CTA Button */
.cta-button {
  position: relative;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--bg-primary);
  background: var(--gradient-warm);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.cta-button:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 107, 107, 0.4);
}

.cta-button:hover:not(:disabled)::before {
  left: 100%;
}

.cta-button:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.cta-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ease-out);
}

.cta-button:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-loading[hidden] {
  display: none;
}

.spinner {
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner circle {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes dash {
  to { stroke-dashoffset: 0; }
}

/* Message */
.message {
  margin-top: var(--space-md);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  animation: messageSlide 0.4s var(--ease-out);
}

.message[hidden] {
  display: none;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.success {
  background: rgba(0, 184, 148, 0.1);
  border: 1px solid rgba(0, 184, 148, 0.2);
  color: #00b894;
}

.message.error {
  background: rgba(255, 118, 117, 0.1);
  border: 1px solid rgba(255, 118, 117, 0.2);
  color: #ff7675;
}

.message-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Privacy Note */
.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.privacy-note svg {
  opacity: 0.6;
}

/* Feature Cards */
.card-feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.card-feature h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-feature p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 107, 0.1);
  border-radius: var(--radius-sm);
  color: var(--accent-1);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

/* Card 1 - spans 2 columns */
.card-1 {
  grid-column: span 2;
}

/* Social Proof Card */
.card-social {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  justify-content: center;
}

.avatars {
  display: flex;
  align-items: center;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: -8px;
  border: 2px solid var(--bg-primary);
  background: var(--gradient-warm);
  color: var(--bg-primary);
}

.avatar:first-child {
  margin-left: 0;
}

.avatar:last-child {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.1);
}

.social-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.social-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s var(--ease-smooth);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--bg-card-hover);
}

.faq-trigger {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

.faq-trigger:hover {
  color: var(--accent-1);
}

.faq-icon {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.line {
  position: absolute;
  width: 12px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.line.vertical {
  transform: rotate(90deg);
}

.faq-trigger[aria-expanded="true"] .line.vertical {
  transform: rotate(0deg);
  opacity: 0;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), opacity 0.3s;
  opacity: 0;
}

.faq-content:not([hidden]) {
  max-height: 500px;
  opacity: 1;
}

.faq-content p {
  padding: 0 var(--space-lg) var(--space-md);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  text-align: center;
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-main {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .card-social {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .main-container {
    padding: var(--space-lg) var(--space-md);
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .card-main,
  .card-1,
  .card-social {
    grid-column: span 1;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .faq-trigger {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9375rem;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
