/* SEEDANCE — 1-Click Funnel (Luminous Glass · Light) */

:root {
  --bg-void: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-inset-bg: rgba(248, 250, 252, 0.9);
  --neon-blue: #2563eb;
  --neon-violet: #7c3aed;
  --neon-cyan: #0891b2;
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-glass:
    0 0 0 1px rgba(255, 255, 255, 0.95) inset,
    0 4px 24px -4px rgba(59, 130, 246, 0.12),
    0 16px 48px -12px rgba(139, 92, 246, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #ffffff;
  background-image:
    radial-gradient(ellipse 100% 55% at 50% -15%, rgba(59, 130, 246, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 20%, rgba(139, 92, 246, 0.06), transparent 50%),
    radial-gradient(ellipse 55% 40% at 0% 80%, rgba(34, 211, 238, 0.05), transparent 45%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: "Inter", system-ui, sans-serif;
}

.funnel-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.funnel-ambient .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.funnel-ambient .o1 {
  width: 50vw;
  height: 50vw;
  max-width: 640px;
  top: -20%;
  left: 10%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 70%);
}

.funnel-ambient .o2 {
  width: 40vw;
  right: 0;
  top: 40%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%);
}

.funnel-ambient .o3 {
  bottom: -10%;
  left: 30%;
  width: 35vw;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.08), transparent 70%);
}

.funnel-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.funnel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.funnel-logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.funnel-logo strong {
  color: var(--text-primary);
}

.btn-login {
  padding: 0.5rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-glass);
  transition: all 0.2s var(--ease);
  text-decoration: none;
}

.btn-login:hover {
  border-color: var(--neon-violet);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.15);
  transform: translateY(-1px);
}

.funnel-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.hero-platinum {
  position: relative;
  margin: 0 0 1.25rem;
  font-family: "Outfit", system-ui, sans-serif;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 100%;
}

.hero-platinum .line-viral {
  display: block;
  font-weight: 500;
  font-size: clamp(1.65rem, 5.2vw, 3.75rem);
  white-space: nowrap;
  background: linear-gradient(
    168deg,
    #252b33 0%,
    #3a4452 18%,
    #4d5a6a 38%,
    #5a6778 52%,
    #45515f 72%,
    #2e3640 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-platinum .line-duo {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.42em;
  margin-top: 0.08em;
  font-size: clamp(2rem, 7vw, 4.85rem);
}

.hero-platinum .line-on {
  display: inline-block;
  flex-shrink: 0;
  font-weight: 500;
  background: linear-gradient(
    168deg,
    #252b33 0%,
    #3a4452 18%,
    #4d5a6a 38%,
    #5a6778 52%,
    #45515f 72%,
    #2e3640 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-platinum .word-autopilot {
  display: inline-block;
  flex-shrink: 0;
  font-weight: 900;
  letter-spacing: -0.03em;
  background-image: linear-gradient(
    100deg,
    transparent 0%,
    transparent 36%,
    rgba(255, 248, 220, 0.35) 44%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 248, 220, 0.35) 56%,
    transparent 64%,
    transparent 100%
  ),
  linear-gradient(
    90deg,
    #1f1606 0%,
    #3d2a0a 6%,
    #5c4212 14%,
    #8b6914 26%,
    #a67c00 38%,
    #c4a035 50%,
    #a67c00 62%,
    #6b4e16 74%,
    #3d2a0a 88%,
    #1a1204 100%
  );
  background-size: 320% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 115% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hero-autopilot-shine 12s ease-in-out infinite;
  filter: drop-shadow(0 2px 16px rgba(166, 124, 0, 0.25));
}

@keyframes hero-autopilot-shine {
  0%, 100% { background-position: 115% 0, 0 0; }
  50% { background-position: -15% 0, 0 0; }
}

@media (max-width: 380px) {
  .hero-platinum .line-viral {
    font-size: clamp(1.35rem, 4.8vw, 1.65rem);
    letter-spacing: -0.03em;
  }
}

.hero-subtitle {
  margin: 0 auto 2.5rem;
  max-width: 520px;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.funnel-widget {
  width: 100%;
  max-width: 640px;
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: var(--shadow-glass);
  text-align: left;
}

.widget-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin: 0 0 1rem;
}

.funnel-widget textarea {
  width: 100%;
  min-height: 100px;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.funnel-widget textarea:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.format-row {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.format-btn {
  flex: 1;
  padding: 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.format-btn:hover {
  border-color: rgba(139, 92, 246, 0.25);
  color: var(--text-primary);
}

.format-btn.active {
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.1));
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.12);
}

.btn-funnel-cta {
  width: 100%;
  padding: 1.05rem 1.5rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-violet));
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.btn-funnel-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.45);
}

.funnel-trust {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.funnel-trust span { opacity: 0.7; margin: 0 0.5rem; }

#plans { scroll-margin-top: 2rem; }

.plans-section {
  padding: 4rem 1.5rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.plans-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.plans-head h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.plans-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

@media (max-width: 900px) {
  .plans-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

.plan-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: 22px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-glass);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  text-align: left;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 1) inset,
    0 16px 48px -8px rgba(59, 130, 246, 0.15);
}

.plan-card.starter { border-color: rgba(15, 23, 42, 0.08); }

.plan-card.pro {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow:
    var(--shadow-glass),
    0 0 0 1px rgba(59, 130, 246, 0.1);
}

.plan-card.elite {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow:
    var(--shadow-glass),
    0 0 0 1px rgba(139, 92, 246, 0.1);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-violet));
  color: white;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.plan-price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem;
  color: var(--text-primary);
}

.plan-price small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.plan-features li::before {
  content: "✓ ";
  color: #059669;
  font-weight: 700;
}

.plan-select {
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.plan-card.pro .plan-select,
.plan-card.elite .plan-select {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
  border-color: rgba(139, 92, 246, 0.2);
  color: var(--neon-violet);
}

.plan-select:hover {
  border-color: var(--neon-violet);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.12);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.05),
    0 24px 64px rgba(59, 130, 246, 0.12);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.35s var(--ease);
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-card h3 {
  margin: 0 0 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.modal-card p {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-card input {
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.modal-card input:focus {
  outline: none;
  border-color: var(--neon-violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.btn-google {
  width: 100%;
  padding: 0.85rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  color: #111;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.modal-divider {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.75rem 0;
}

.btn-magic {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-violet));
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.auth-tab {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.8);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
}

.auth-tab.active {
  background: white;
  color: var(--text);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
}

.auth-status {
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.9);
}

.auth-status-success { color: #059669; }
.auth-status-error { color: #dc2626; }
.auth-status-info { color: #2563eb; word-break: break-word; }

#auth-password {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  font-size: 0.95rem;
}

.hidden { display: none !important; }
