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

/* Force Font Consistency Everywhere */
html, body, input, button, select, textarea {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

html, body {
  height: 100%;
  color: #000000;
  /* Body Gradient: Stronger and Fixed */
  background: radial-gradient(circle at 0% 100%, rgba(20, 60, 255, 0.4) 0%, rgba(20, 60, 255, 0.05) 50%, transparent 60%),
              radial-gradient(circle at 100% 0%, rgba(255, 0, 180, 0.3) 0%, rgba(255, 0, 180, 0.05) 50%, transparent 60%),
              #ffffff;
  background-attachment: fixed;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 6vh;
  position: relative;
  overflow-y: auto;
  min-height: 100vh;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Hidden utility */
.hidden {
  display: none !important;
}

/* Plus marks */
.plus-mark {
  position: absolute; /* Changed from fixed to absolute */
  font-size: 18px;
  color: rgba(0, 0, 0, 0.08);
  font-weight: 300;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

.plus-tl { top: 15%; left: 10%; }
.plus-tr { top: 15%; right: 10%; }
.plus-bl { bottom: 15%; left: 10%; }
.plus-br { bottom: 15%; right: 10%; }

/* Noise Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1; /* Above background, below content */
  opacity: 0.05; /* Subtle texture */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Main Card (Big Box) */
.card {
  position: relative;
  z-index: 2;
  
  /* Complex Background: Glass + Internal Bottom Gradients */
  background: 
    /* Bottom Left Blue Glow */
    radial-gradient(circle at 0% 100%, rgba(20, 60, 255, 0.15) 0%, transparent 40%),
    /* Bottom Right Pink Glow */
    radial-gradient(circle at 100% 100%, rgba(255, 0, 180, 0.15) 0%, transparent 40%),
    /* Base White Glass */
    rgba(255, 255, 255, 0.65);
    
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  
  border-radius: 40px;
  /* Border fades out at bottom? Hard to do on border directly. 
     Using solid color for now, maybe transparent border-bottom? */
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom-color: rgba(255, 255, 255, 0.1); /* Fade effect on border */
  
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.05);
  max-width: 1600px; 
  width: 96%; 
  padding: 30px 40px 80px; /* More bottom padding for fade area */
  text-align: center;
  margin-bottom: 0; /* Connect to next section? */
  
  /* Fade out the bottom of the card */
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* Logo */
.logo-container {
  /* Nuclear Option: Force crop the whitespace */
  height: 150px; /* Tight fixed height */
  overflow: hidden; /* Cut off top/bottom whitespace */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.logo {
  height: 380px; /* Huge image, but cropped by container */
  width: auto;
  object-fit: contain;
  /* If whitespace is uneven, we might need transform: translateY() */
}

/* Badge pill */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F3F4F6;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 100px;
  padding: 6px 16px 6px 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.badge-icon-wrap {
  background: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  color: #000000;
}

.badge-success {
  background: rgba(72, 187, 120, 0.1);
  color: #2f855a;
  padding: 8px 16px;
}

/* Heading */
.heading {
  font-size: 3.5rem; 
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #000000;
  position: relative;
  z-index: 2;
}

.gradient-text {
  background: linear-gradient(135deg, rgb(20, 60, 255), rgb(255, 0, 180));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typewriter-cursor {
  position: absolute;
  color: rgb(20, 60, 255);
  font-weight: 300;
  animation: blink 0.7s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.mobile-br, .mobile-only {
  display: none;
}

/* Subheading */
.subheading {
  font-size: 1.1rem;
  font-weight: 300;
  color: #000000;
  max-width: 500px;
  margin: 0 auto 56px;
  position: relative;
  z-index: 2;
}

#success-state .subheading {
  white-space: normal;
  max-width: 650px;
}

/* Force single line on desktop */
@media (min-width: 768px) {
  .subheading {
    white-space: nowrap;
  }
}

/* Waitlist Card (Small Box) */
.waitlist-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
  max-width: 600px;
  margin: 0 auto;
  text-align: left; 
  position: relative;
  z-index: 2;
}

/* Scarcity */
.scarcity {
  margin-bottom: 28px;
}

.scarcity-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.avatar-cluster {
  display: flex;
  align-items: center;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -12px;
  object-fit: cover;
}

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

.avatar-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: #000000; 
  margin-left: 8px;
}

.scarcity-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 4px;
}

.scarcity-text {
  font-size: 0.95rem;
  font-weight: 300;
  color: #000000;
}

/* Honeypot */
.honeypot-wrap {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* Phase visibility */
.phase {
  display: none;
}

.phase-active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Phase 1: Integrated Email Pill */
.email-phase-container {
  width: 100%;
}

.input-wrapper-pill {
  display: flex;
  align-items: center;
  background: #F3F4F6; /* Gray background */
  border-radius: 100px; /* Pill shape */
  padding: 4px;
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.input-wrapper-pill:focus-within {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.input-wrapper-pill input {
  flex: 1;
  background: transparent !important; /* Remove individual bg */
  border: none !important;
  box-shadow: none !important;
  padding: 12px 24px;
  font-size: 1rem;
  outline: none;
  border-radius: 0;
  color: #000000;
}

.input-wrapper-pill .cta-btn {
  margin: 0;
  width: auto;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.95rem;
}


/* Back button */
.back-btn {
  display: inline-block;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.4);
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 20px;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: color 0.2s;
  font-weight: 500;
}

.back-btn:hover {
  color: #000000;
}

/* Phase header */
.phase-header {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #000000;
}

/* Standard Inputs (Phases 2+) */
.input-group {
  margin-bottom: 16px;
  text-align: left;
}

input[type="text"],
select {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #000000;
  background: #F3F4F6; 
  outline: none;
  transition: all 0.2s;
}

input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

input:focus, select:focus {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

input.input-error, select.input-error {
  background: #fff;
  border-color: #e53e3e;
}

.field-error {
  font-size: 0.85rem;
  color: #e53e3e;
  margin-top: 6px;
  padding-left: 12px;
  min-height: 0;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 44px;
  cursor: pointer;
}

select option[value=""][disabled] {
  color: rgba(0, 0, 0, 0.3);
}

/* CTA Button */
.cta-btn {
  width: 100%;
  background: #000000;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cta-btn:hover {
  background: #222;
}

.cta-btn:active {
  transform: scale(0.99);
}

.cta-btn .arrow {
  transition: transform 0.2s;
}

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

/* Checkboxes */
.checkbox-group {
  text-align: left;
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: #000000;
  margin-bottom: 12px;
  cursor: pointer;
  font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  padding: 0;
  accent-color: #000000;
}

/* Trusted By Section */
/* TEMP: hidden until client approval — remove this class to re-enable */
.trusted-section-hidden {
  display: none !important;
}

.trusted-section {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 60px;
  text-align: center;
  position: relative;
  z-index: 2;
  padding-top: 20px;
}

.trusted-header {
  margin-bottom: 40px;
}

.trusted-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trusted-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #000000;
}

/* Infinite Slider */
.slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.slider-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: scroll 40s linear infinite;
}

.slider-track:hover {
  animation-play-state: paused;
}

.slide-item {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.slide-item:hover {
  opacity: 1;
}

.slide-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.1);
}

.slide-name {
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
  white-space: nowrap;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Stacked Circular Footer Styles */
.stacked-circular-footer {
  width: 100%;
  background: transparent; /* Seamless with body gradient */
  padding: 80px 20px;
  position: relative;
  z-index: 2;
  border-top: none;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo-circle {
  background: rgba(20, 60, 255, 0.05); /* Primary/10 equivalent */
  border-radius: 50%;
  width: 80px; /* Reverted to 80px */
  height: 80px; /* Reverted to 80px */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  padding: 12px; /* Restored moderate padding */
  overflow: hidden; 
}

.footer-logo {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Keep aspect ratio */
  transform: scale(1.2); /* Slight zoom, less aggressive than 1.5 */
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-link {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-link:hover {
  color: rgba(20, 60, 255, 1); /* Primary color */
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  text-decoration: none;
  transition: all 0.2s;
}

.social-btn:hover {
  background: #F3F4F6;
  color: rgba(20, 60, 255, 1);
  border-color: rgba(20, 60, 255, 0.2);
}

.social-btn i {
  width: 16px;
  height: 16px;
}

.footer-subscribe {
  width: 100%;
  max-width: 400px;
  margin-bottom: 32px;
}

.subscribe-form {
  width: 100%;
}

.footer-input-wrapper {
  padding: 6px; /* Slightly more padding than default pill */
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.footer-btn {
  padding: 10px 24px; /* Slightly smaller than main CTA */
  font-size: 0.9rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.5); /* Muted foreground */
}

/* Responsive */
@media (max-width: 768px) {
  .card {
    padding: 60px 20px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.75);
  }

  .badge {
    margin-bottom: 16px;
  }

  .heading {
    font-size: 2.3rem;
  }
  
  .logo-container {
    height: 100px;
    margin-bottom: 4px;
  }

  .logo {
    height: 280px;
  }

  .card {
    padding-top: 10px;
  }
  
  .waitlist-card {
    padding: 30px;
  }
  
  /* On mobile, stack email pill? 
     Usually integrated pills break on very small screens, 
     but keeping it pill-shaped often looks best if it fits. */
  .mobile-br {
    display: block;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: inline;
  }

  .input-wrapper-pill {
    padding: 4px;
  }

  .input-wrapper-pill input {
    padding: 12px 16px;
    width: 100%;
    min-width: 0;
    flex: 1 1 0;
  }

  .input-wrapper-pill .cta-btn {
    padding: 12px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .decorative-arc {
    width: 600px;
    height: 600px;
  }
  
  .arc-icon {
    display: none;
  }

  .trusted-title {
    font-size: 1.5rem;
  }
  
  .footer-nav {
    gap: 16px;
  }
}

@media (max-width: 380px) {
  .heading {
    font-size: 2rem;
  }

  .card {
    padding: 40px 20px;
  }
  
  .input-wrapper-pill {
    flex-direction: column;
    background: transparent;
    border-radius: 0;
    padding: 0;
  }
  
  .input-wrapper-pill input {
    background: #F3F4F6 !important;
    border-radius: 12px;
    margin-bottom: 8px;
  }
  
  .input-wrapper-pill .cta-btn {
    width: 100%;
    border-radius: 12px;
  }
  
  /* Footer mobile adjustments */
  .footer-input-wrapper {
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
  
  .footer-input-wrapper input {
    background: #F3F4F6 !important;
    border-radius: 100px;
    margin-bottom: 8px;
    border: 1px solid rgba(0,0,0,0.05) !important;
  }
  
  .footer-input-wrapper .cta-btn {
    width: 100%;
    border-radius: 100px;
  }
}
