/* ============================================================
   Affixx Intelligence — Coming Soon Page
   Brand: #3f2fe1 (Deep Indigo / Electric Violet)
   Fonts: Bricolage Grotesque (Headings), Onest (Body)
   Aesthetic: Deep Cyber-Glassmorphic Dark Mode with Ambient Glow
   ============================================================ */

/* ── Custom Properties ── */
:root {
  --color-brand: #3f2fe1;
  --color-brand-glow: rgba(63, 47, 225, 0.45);
  --color-brand-light: #6352f8;
  --color-brand-dark: #271a9e;
  --color-cyan: #06b6d4;
  --color-cyan-glow: rgba(6, 182, 212, 0.35);
  --color-purple: #a855f7;
  
  --bg-primary: #07070d;
  --bg-secondary: #0e0e17;
  --bg-card: rgba(18, 18, 30, 0.65);
  --bg-card-hover: rgba(26, 26, 42, 0.85);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-card-border-glow: rgba(99, 82, 248, 0.35);

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #c7d2fe;

  --font-heading: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-primary);
}

/* ── Interactive Particle Background Canvas ── */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.75;
}

/* ── Glowing Radial Ambient Blobs ── */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 2;
  opacity: 0.55;
  will-change: transform;
}

.orb-primary {
  top: -10vw;
  left: 20vw;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, var(--color-brand) 0%, rgba(63, 47, 225, 0) 70%);
  animation: floatOrb 22s ease-in-out infinite alternate;
}

.orb-secondary {
  bottom: -15vw;
  right: 10vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
  animation: floatOrb 28s ease-in-out infinite alternate-reverse;
}

.orb-accent {
  top: 40vh;
  left: -15vw;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--color-cyan) 0%, rgba(6, 182, 212, 0) 70%);
  animation: floatOrb 18s ease-in-out infinite alternate;
  opacity: 0.25;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* ── Cinematic Grain Overlay ── */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 3;
  opacity: 0.6;
}

/* ── Page Layout ── */
.page-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
}

/* ── Site Header ── */
.site-header {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-container {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.3s var(--ease-spring);
}

.brand-logo:hover {
  transform: translateY(-2px);
}

.brand-mark {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 16px var(--color-brand-glow));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-suffix {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #e2e8f0;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGreen 2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.sound-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}

.sound-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.sound-icon {
  width: 18px;
  height: 18px;
}

.sound-icon-on {
  display: none;
}

.sound-toggle.active .sound-icon-off {
  display: none;
}

.sound-toggle.active .sound-icon-on {
  display: block;
  color: var(--color-cyan);
}

/* ── Main Hero Section ── */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.hero-container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Eyebrow Badge ── */
.badge-wrapper {
  margin-bottom: 1.5rem;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  background: linear-gradient(135deg, rgba(63, 47, 225, 0.22), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(99, 82, 248, 0.4);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #e0e7ff;
  box-shadow: 0 0 24px -4px var(--color-brand-glow);
  backdrop-filter: blur(12px);
}

.badge-icon {
  color: #a78bfa;
}

.badge-separator {
  color: rgba(255, 255, 255, 0.3);
}

.badge-highlight {
  color: var(--color-cyan);
}

/* ── Headings & Copy ── */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 15%, #c7d2fe 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 20px rgba(99, 82, 248, 0.4));
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 3rem;
  font-weight: 400;
}

/* ── Countdown Grid ── */
.countdown-section {
  width: 100%;
  max-width: 640px;
  margin-bottom: 3.5rem;
}

.countdown-header {
  margin-bottom: 1rem;
}

.countdown-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}

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

.countdown-card {
  position: relative;
  flex: 1;
  min-width: 80px;
  max-width: 125px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 1.25rem 0.75rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease;
}

.countdown-card:hover {
  transform: translateY(-4px);
  border-color: var(--bg-card-border-glow);
}

.card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.time-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(99, 82, 248, 0.35);
  font-variant-numeric: tabular-nums;
}

.time-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.countdown-divider {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  margin-top: -1.25rem;
}

/* ── Early Access / Waitlist Card ── */
.cta-card {
  width: 100%;
  max-width: 640px;
  background: linear-gradient(180deg, rgba(22, 22, 38, 0.85) 0%, rgba(13, 13, 23, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.25rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8),
              0 0 40px -15px var(--color-brand-glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 82, 248, 0.8), transparent);
}

.cta-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.cta-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Form & Input ── */
.waitlist-form {
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  gap: 0.75rem;
  position: relative;
}

.input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1.15rem;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.25s ease;
}

.input-wrapper input {
  width: 100%;
  padding: 1rem 1.15rem 1rem 2.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
}

.input-wrapper input::placeholder {
  color: #64748b;
}

.input-wrapper input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-brand-light);
  box-shadow: 0 0 20px -5px var(--color-brand-glow);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--color-brand-light);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  background: linear-gradient(135deg, var(--color-brand) 0%, #4f46e5 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 25px -8px var(--color-brand), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.25s var(--ease-spring);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  box-shadow: 0 14px 30px -8px var(--color-brand-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

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

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.btn-primary.loading .btn-text,
.btn-primary.loading .btn-arrow {
  display: none;
}

.btn-primary.loading .btn-spinner {
  display: inline-block;
}

.form-feedback {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  display: none;
  text-align: left;
}

.form-feedback.success {
  display: block;
  color: #34d399;
}

.form-feedback.error {
  display: block;
  color: #f87171;
}

/* ── Social Proof ── */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #0e0e17;
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
}

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

.proof-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.proof-text strong {
  color: #ffffff;
}

/* ── Pillars / Feature Grid ── */
.pillars-section {
  width: 100%;
  margin-bottom: 3.5rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  text-align: left;
  backdrop-filter: blur(14px);
  transition: all 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.pillar-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(99, 82, 248, 0.35);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7), 0 0 25px -10px var(--color-brand-glow);
}

.pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(63, 47, 225, 0.15);
  border: 1px solid rgba(99, 82, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #c7d2fe;
}

.pillar-icon-box svg {
  width: 22px;
  height: 22px;
}

.pillar-info h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.pillar-info p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ── Progress Section ── */
.progress-section {
  width: 100%;
  max-width: 680px;
}

.progress-card {
  background: rgba(18, 18, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  backdrop-filter: blur(16px);
}

.progress-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
}

.progress-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pulsing-radar {
  width: 8px;
  height: 8px;
  background: var(--color-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--color-cyan);
  animation: radarPulse 1.8s infinite;
}

@keyframes radarPulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(0.9); opacity: 1; }
}

.progress-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #e2e8f0;
}

.progress-percentage {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-cyan);
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 1.15rem;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-brand) 0%, var(--color-cyan) 100%);
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 16px var(--color-cyan-glow);
}

.progress-sheen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: sheenSlide 2.5s infinite;
}

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

.milestones-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.milestone-item.completed {
  color: #34d399;
  font-weight: 600;
}

.milestone-item.in-progress {
  color: var(--color-cyan);
  font-weight: 600;
}

.milestone-item.upcoming {
  color: var(--text-muted);
}

/* ── Footer ── */
.site-footer {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 7, 13, 0.85);
  backdrop-filter: blur(16px);
  padding: 1.5rem 2rem;
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.affixx-text {
  color: #cbd5e1;
  font-weight: 600;
}

.footer-separator {
  color: rgba(255, 255, 255, 0.2);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.link-icon, .external-icon {
  width: 14px;
  height: 14px;
}

/* ── Confetti Canvas ── */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 10000;
  pointer-events: none;
}

.toast {
  background: rgba(18, 18, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 20px -5px var(--color-brand-glow);
  backdrop-filter: blur(20px);
  padding: 0.875rem 1.25rem;
  border-radius: 14px;
  font-size: 0.875rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toastIn 0.35s var(--ease-spring) forwards;
  pointer-events: auto;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast.toast-exit {
  animation: toastOut 0.3s ease forwards;
}

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

.toast-icon {
  width: 20px;
  height: 20px;
  color: #34d399;
  flex-shrink: 0;
}

/* ── Responsive Queries ── */
@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .site-header {
    padding: 1.5rem 1.25rem 0.5rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-left {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .countdown-grid {
    gap: 0.35rem;
  }

  .countdown-card {
    min-width: 65px;
    padding: 0.85rem 0.35rem;
    border-radius: 12px;
  }

  .countdown-divider {
    font-size: 1.5rem;
    margin-top: -0.75rem;
  }

  .time-value {
    font-size: 1.75rem;
  }

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

  .btn-primary {
    width: 100%;
    padding: 0.875rem;
  }

  .cta-card {
    padding: 1.5rem 1.25rem;
    border-radius: 20px;
  }

  .milestones-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
