/* ============================================
   NOTION NAG - Landing Page Styles
   ============================================ */

/* CSS Variables */
:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-card: #18181b;
  --bg-card-hover: #1f1f23;
  
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --accent-primary: #a855f7;
  --accent-secondary: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  
  --border-color: #27272a;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(168, 85, 247, 0.3);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(99, 102, 241, 0.25);
  top: 50%;
  right: -100px;
  animation-delay: -7s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: rgba(139, 92, 246, 0.2);
  bottom: -50px;
  left: 30%;
  animation-delay: -14s;
}

.orb-4 {
  width: 200px;
  height: 200px;
  background: rgba(236, 72, 153, 0.15);
  top: 40%;
  left: -50px;
  animation-delay: -5s;
}

.orb-5 {
  width: 350px;
  height: 350px;
  background: rgba(59, 130, 246, 0.12);
  bottom: 20%;
  right: -100px;
  animation-delay: -10s;
}

/* Floating Particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(168, 85, 247, 0.6);
  border-radius: 50%;
  animation: particleFloat 15s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: -2s; }
.particle:nth-child(3) { left: 35%; top: 40%; animation-delay: -4s; }
.particle:nth-child(4) { left: 50%; top: 70%; animation-delay: -6s; }
.particle:nth-child(5) { left: 65%; top: 30%; animation-delay: -8s; }
.particle:nth-child(6) { left: 75%; top: 60%; animation-delay: -10s; }
.particle:nth-child(7) { left: 85%; top: 15%; animation-delay: -12s; }
.particle:nth-child(8) { left: 90%; top: 85%; animation-delay: -14s; }

@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate(20px, -30px) scale(1.5);
    opacity: 1;
  }
  50% {
    transform: translate(-10px, -60px) scale(0.8);
    opacity: 0.4;
  }
  75% {
    transform: translate(15px, -20px) scale(1.2);
    opacity: 0.8;
  }
}

/* Glowing Lines */
.glow-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
  animation: glowMove 8s ease-in-out infinite;
}

.glow-1 {
  width: 300px;
  top: 30%;
  left: -300px;
  animation-delay: 0s;
}

.glow-2 {
  width: 200px;
  top: 70%;
  right: -200px;
  animation-delay: -4s;
  animation-direction: reverse;
}

@keyframes glowMove {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(calc(100vw + 300px));
    opacity: 0;
  }
}

@keyframes float {
  0%, 100% { 
    transform: translate(0, 0) scale(1); 
  }
  25% { 
    transform: translate(30px, -30px) scale(1.1); 
  }
  50% { 
    transform: translate(-20px, 20px) scale(0.95); 
  }
  75% { 
    transform: translate(20px, 30px) scale(1.05); 
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 60px 0;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  padding: 16px 32px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 100px;
  animation: fadeInUp 0.5s ease;
}

.logo-icon {
  width: 56px;
  height: 56px;
}

.logo-text {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Launch Badge */
.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.9rem;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease;
}

.pulse {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Hero Title */
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

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

/* Hero Subtitle */
.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-subtitle strong {
  color: var(--text-primary);
}

/* CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-gradient);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glow);
  animation: fadeInUp 0.6s ease 0.3s both;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.4);
}

.cta-button svg {
  transition: transform 0.3s ease;
}

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

/* Social Proof */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  animation: fadeInUp 0.6s ease 0.4s both;
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem {
  padding: 100px 0;
  background: var(--bg-secondary);
  position: relative;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: -0.02em;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
}

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

.problem-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 16px;
}

.problem-icon {
  font-size: 2rem;
  line-height: 1;
}

.problem-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.problem-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============================================
   SOLUTION SECTION
   ============================================ */
.solution {
  padding: 100px 0;
  position: relative;
}

.steps {
  max-width: 700px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-secondary);
}

.step-line {
  width: 2px;
  height: 40px;
  background: var(--border-color);
  margin-left: 23px;
  margin: 8px 0 8px 23px;
}

/* ============================================
   CHANNELS SECTION
   ============================================ */
.channels {
  padding: 100px 0;
  background: var(--bg-secondary);
  position: relative;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.channel-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.channel-card span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
  padding: 100px 0;
  position: relative;
}

.pricing-headline {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: -40px;
  margin-bottom: 40px;
}

.pricing-content {
  max-width: 800px;
  margin: 0 auto;
}

.pricing-philosophy {
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  line-height: 1.8;
}

.pricing-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.pricing-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
}

.pricing-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-free {
  border-color: rgba(34, 197, 94, 0.3);
}

.pricing-free:hover {
  border-color: rgba(34, 197, 94, 0.5);
}

.pricing-free h3 {
  color: #22c55e;
}

.pricing-paid {
  border-color: rgba(168, 85, 247, 0.3);
}

.pricing-paid:hover {
  border-color: rgba(168, 85, 247, 0.5);
}

.pricing-paid h3 {
  color: var(--accent-primary);
}

.pricing-box h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-box ul {
  list-style: none;
  margin-bottom: 16px;
}

.pricing-box li {
  padding: 8px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.pricing-box li:last-child {
  border-bottom: none;
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 16px;
}

.pricing-footer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ============================================
   WAITLIST FORM SECTION
   ============================================ */
.waitlist {
  padding: 100px 0;
  position: relative;
}

.waitlist-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
}

.waitlist-card h2 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.waitlist-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.waitlist-subtitle strong {
  color: var(--accent-primary);
}

/* Form Styles */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.required {
  color: var(--accent-primary);
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* Checkbox Grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkbox-item:hover {
  border-color: var(--accent-primary);
}

.checkbox-item input[type="checkbox"] {
  display: none;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-label {
  color: var(--accent-primary);
}

.checkbox-item:has(input:checked) {
  border-color: var(--accent-primary);
  background: rgba(168, 85, 247, 0.1);
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

/* Submit Button */
.submit-button {
  width: 100%;
  padding: 16px 24px;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--border-radius);
  color: white;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

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

.btn-loading {
  display: none;
}

.submit-button.loading .btn-text {
  display: none;
}

.submit-button.loading .btn-loading {
  display: inline;
}

/* Success & Error Messages */
.success-message {
  text-align: center;
  padding: 32px 0;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.success-message h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.success-message p {
  color: var(--text-secondary);
}

.position {
  margin-top: 16px;
  font-family: var(--font-mono);
  color: var(--accent-primary);
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 12px 16px;
  border-radius: var(--border-radius);
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
}

.privacy-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 24px;
}

.hidden {
  display: none !important;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-color);
  position: relative;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-icon {
  width: 24px;
  height: 24px;
}

.footer-logo span {
  font-weight: 600;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 80px 0 60px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-subtitle br {
    display: none;
  }
  
  .cta-button {
    width: 100%;
    justify-content: center;
  }
  
  .problem, .solution, .channels, .waitlist, .pricing {
    padding: 60px 0;
  }
  
  .pricing-columns {
    grid-template-columns: 1fr;
  }
  
  .pricing-headline {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 1.6rem;
    margin-bottom: 40px;
  }
  
  .problem-grid {
    grid-template-columns: 1fr;
  }
  
  .step {
    gap: 16px;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1rem;
  }
  
  .step-line {
    margin-left: 19px;
  }
  
  .channel-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .channel-card {
    padding: 16px 12px;
  }
  
  .channel-card span {
    font-size: 0.8rem;
  }
  
  .waitlist-card {
    padding: 32px 24px;
  }
  
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
  
  .floating-orb {
    opacity: 0.3;
  }
  
  .orb-1 {
    width: 200px;
    height: 200px;
  }
  
  .orb-2 {
    width: 150px;
    height: 150px;
  }
  
  .orb-3 {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .logo {
    padding: 12px 24px;
    gap: 12px;
  }
  
  .logo-icon {
    width: 40px;
    height: 40px;
  }
  
  .logo-text {
    font-size: 1.5rem;
  }
  
  .launch-badge {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
  
  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
