/* ===== Theme Variables ===== */
:root {
  /* Light mode (default) */
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f1f3f4;
  --fg: #18304a;
  --fg-secondary: #8f8e8e;
  --fg-muted: #a3a3a3;
  --brand: #ff6b6b;
  --brand-hover: #ff5252;
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-lg: rgba(0, 0, 0, 0.25);
  --accent: #3a3a3a;
  --accent-light: #f5f5f5;
  --success: #22c55e;
  --info: #3b82f6;
  --hover: rgba(255, 107, 107, 0.1);
  --pressed: rgba(255, 107, 107, 0.2);
}

[data-theme="dark"] {
  --bg: #171717;
  --bg-secondary: #262626;
  --bg-tertiary: #404040;
  --fg: #fafafa;
  --fg-secondary: #d4d4d4;
  --fg-muted: #a3a3a3;
  --brand: #ff6b6b;
  --brand-hover: #ff8787;
  --card-bg: #262626;
  --card-border: #404040;
  --nav-bg: rgba(23, 23, 23, 0.8);
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-lg: rgba(0, 0, 0, 0.5);
  --accent: #f5f5f5;
  --accent-light: #404040;
  --success: #22c55e;
  --info: #3b82f6;
  --hover: rgba(255, 107, 107, 0.1);
  --pressed: rgba(255, 107, 107, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  background: var(--nav-bg);
  transition: all 0.3s ease;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.8;
}

.brand img {
  border-radius: 8px;
}

.menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.menu > a {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-secondary);
  transition: color 0.2s;
  position: relative;
}

.menu > a:hover {
  color: var(--fg);
}

.menu .btn {
  padding: 8px 16px;
  font-size: 14px;
}

/* ===== Theme Toggle ===== */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--fg);
  margin-left: 8px;
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  transform: scale(1.05);
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--brand);
  color: white;
}

.btn-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow-lg);
}

.btn-secondary {
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--fg);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
}

/* ===== Hero Section ===== */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--hover) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--pressed) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.3;
  animation: float 15s ease-in-out infinite reverse;
}

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

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--fg) 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--fg-secondary);
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
  margin-top: 40px;
}

.badges li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-secondary);
  transition: all 0.2s;
}

.badges li svg {
  color: var(--brand);
  flex-shrink: 0;
}

/* ===== Problem Section ===== */
.problem {
  padding: 80px 0;
  background: var(--bg);
}

.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-text h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.split-text p {
  font-size: 18px;
  color: var(--fg-secondary);
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
  border-color: var(--brand);
}

.stat-icon {
  width: 56px;
  height: 56px;
  background: var(--hover);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 8px;
  transition: all 0.3s;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--pressed);
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--fg-secondary);
}

/* ===== How It Works ===== */
.how {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.section-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--fg-secondary);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.how-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s;
}

.how-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
}

.how-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--brand);
  transition: all 0.3s;
}

.how-card:hover .how-icon {
  transform: scale(1.1);
  background: var(--hover);
}

.how-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.how-card ol {
  padding-left: 20px;
  color: var(--fg-secondary);
}

.how-card ol li {
  margin-bottom: 12px;
  padding-left: 8px;
}

/* ===== Features Section ===== */
.features {
  padding: 80px 0;
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
  border-color: var(--brand);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--brand);
  transition: all 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.15);
  background: var(--hover);
}

.feature-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--fg-secondary);
  line-height: 1.6;
}

/* ===== Waitlist Section ===== */
.waitlist {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg) 100%);
}

.waitlist-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-icon {
  width: 80px;
  height: 80px;
  background: var(--hover);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--brand);
  animation: pulse 3s ease-in-out infinite;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.waitlist h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.waitlist p {
  font-size: 18px;
  color: var(--fg-secondary);
  margin-bottom: 32px;
  transition: all 0.3s ease;
}

.wl-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto 16px;
}

.wl-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--fg);
  font-size: 15px;
  transition: all 0.2s;
}

.wl-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.wl-form input::placeholder {
  color: var(--fg-muted);
}

.wl-form .btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wl-form .btn-primary svg {
  transition: transform 0.2s;
}

.wl-form .btn-primary:hover svg {
  transform: translateX(4px);
}

.privacy-note {
  font-size: 13px;
  color: var(--fg-muted);
}

.privacy-note a {
  color: var(--brand);
  text-decoration: underline;
}

/* ===== Success Message ===== */
.success-message {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 30px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.success-icon {
  width: 140px;
  height: 140px;
  margin: 0 auto 32px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

.success-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #22c55e;
  opacity: 0.3;
  animation: ripple 1s ease-out 0.5s infinite;
}

.success-icon .checkmark {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: drawCheckmark 0.6s ease-out 0.5s forwards;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

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

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.3;
    background: #22c55e;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
    background: #22c55e;
  }
}

.success-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--fg);
  animation: fadeInUp 0.5s ease-out 0.6s both;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.success-subtitle {
  font-size: 18px;
  color: var(--fg-secondary);
  margin-bottom: 0;
  animation: fadeInUp 0.5s ease-out 0.7s both;
  line-height: 1.6;
}

.success-message strong {
  color: var(--brand);
  font-weight: 600;
}

.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  border-radius: 12px;
}

.confetti-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  top: -10px;
  animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(400px) rotate(720deg);
    opacity: 0;
  }
}

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

.wl-form {
  transition: all 0.3s ease;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 40px 0;
  background: var(--bg);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand strong {
  font-size: 18px;
}

.footer-brand span {
  font-size: 14px;
  color: var(--fg-secondary);
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 14px;
  color: var(--fg-secondary);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--fg);
}

.footer-copy {
  font-size: 13px;
  color: var(--fg-muted);
}

.footer-version {
  width: 100%;
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  font-size: 12px;
  color: var(--fg-muted);
}

.footer-version time {
  color: var(--fg-secondary);
  font-weight: 500;
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
  .split-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 60px 0 80px;
  }

  .menu {
    gap: 16px;
  }

  .menu > a:not(.btn) {
    display: none;
  }

  .cta {
    flex-direction: column;
    align-items: stretch;
  }

  .cta .btn {
    width: 100%;
  }

  .badges {
    flex-direction: column;
    align-items: stretch;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .wl-form input,
  .wl-form button {
    width: 100%;
  }

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

  .footer-nav {
    justify-content: center;
  }
}

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

