/*
 * Main Styles
 * Level10 Coming Soon Page
 */

/* ================================
   BASE STYLES
   ================================ */

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ================================
   THEME TOGGLE
   ================================ */

.theme-toggle {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-fixed);
  width: 50px;
  height: 50px;
  background: var(--bg-primary);
  border: none;
  border-radius: var(--radius-full);
  box-shadow: var(--neu-shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.theme-toggle:hover {
  box-shadow: var(--neu-shadow-hover);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--text-primary);
  transition: all var(--transition-base);
}

[data-theme="dark"] .sun-icon {
  opacity: 1;
  transform: rotate(0deg);
}

[data-theme="dark"] .moon-icon {
  opacity: 0;
  transform: rotate(90deg);
  position: absolute;
}

[data-theme="light"] .sun-icon {
  opacity: 0;
  transform: rotate(-90deg);
  position: absolute;
}

[data-theme="light"] .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

/* ================================
   PARTICLES BACKGROUND
   ================================ */

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) 0;
  background: var(--gradient-animated);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  opacity: 0.85;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.logo-container {
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeInDown 1s ease-out 0.2s forwards;
}

.logo {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

[data-theme="dark"] .logo-light {
  display: block;
}

[data-theme="dark"] .logo-dark {
  display: none;
}

[data-theme="light"] .logo-light {
  display: none;
}

[data-theme="light"] .logo-dark {
  display: block;
}

.hero-title {
  font-family: var(--font-title);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.title-line {
  display: block;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.4s forwards;
}

.title-highlight {
  display: block;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.6s forwards, glowPulse 3s ease-in-out 1.5s infinite;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-light);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.8s forwards;
}

.hero-cta {
  opacity: 0;
  animation: fadeInUp 1s ease-out 1s forwards;
  margin-bottom: var(--space-3xl);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--gradient-1);
  color: white;
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow:
    0 10px 30px rgba(231, 76, 60, 0.4),
    0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 15px 40px rgba(231, 76, 60, 0.6),
    0 10px 25px rgba(0, 0, 0, 0.4);
}

.cta-button:active {
  transform: translateY(-1px) scale(1.02);
}

.cta-arrow {
  transition: transform var(--transition-base);
}

.cta-button:hover .cta-arrow {
  transform: translateX(5px);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-xs);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0;
  animation: fadeIn 1s ease-out 1.5s forwards, bounce 2s ease-in-out 2s infinite;
  z-index: 1;
}

/* Responsive adjustment for scroll indicator on shorter screens */
@media (max-height: 700px) {
  .scroll-indicator {
    bottom: var(--space-xs);
  }
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-tertiary);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--text-tertiary);
  border-radius: var(--radius-full);
  animation: scrollWheel 1.5s ease-in-out infinite;
}

.scroll-text {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ================================
   SECTION HEADERS
   ================================ */

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.title-underline {
  width: 100px;
  height: 4px;
  background: var(--gradient-1);
  margin: 0 auto;
  border-radius: var(--radius-full);
}

/* ================================
   MISSION SECTION
   ================================ */

.mission {
  position: relative;
  padding: var(--space-4xl) 0;
  z-index: var(--z-base);
}

.mission-content {
  max-width: 900px;
  margin: 0 auto;
}

.mission-quote {
  font-family: var(--font-quote);
  font-size: var(--font-size-2xl);
  font-style: italic;
  line-height: var(--line-height-relaxed);
  text-align: center;
  color: var(--text-primary);
  margin-bottom: var(--space-2xl);
  padding: var(--space-lg);
  position: relative;
}

.mission-quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 0;
  font-size: 100px;
  color: var(--color-primary-1);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.mission-text {
  background: var(--bg-primary);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--neu-shadow);
}

.mission-text p {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.mission-text p:last-child {
  margin-bottom: 0;
}

.coming-soon-badge {
  display: flex;
  justify-content: center;
  margin-top: var(--space-3xl);
}

.badge-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  background: var(--bg-primary);
  padding: var(--space-lg) var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--neu-shadow);
}

.badge-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.badge-value {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
}

/* ================================
   FEATURES SECTION
   ================================ */

.features {
  position: relative;
  padding: var(--space-4xl) 0;
  background: var(--bg-secondary);
  z-index: var(--z-base);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.feature-card {
  background: var(--bg-primary);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--neu-shadow);
  transition: all var(--transition-base);
  text-align: center;
  opacity: 1;
  visibility: visible;
}

.feature-card:hover {
  box-shadow: var(--neu-shadow-hover);
  transform: translateY(-10px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-primary);
  border-radius: var(--radius-full);
  box-shadow: var(--neu-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  transition: all var(--transition-base);
}

.feature-icon svg {
  color: var(--color-accent);
  stroke-width: 2;
}

.feature-card:hover .feature-icon {
  box-shadow: var(--neu-shadow-hover);
  transform: scale(1.1) rotateY(180deg);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-description {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
}

/* ================================
   WAITLIST SECTION
   ================================ */

.waitlist {
  position: relative;
  padding: var(--space-4xl) 0;
  z-index: var(--z-base);
}

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

.waitlist-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.waitlist-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: var(--line-height-relaxed);
}

.waitlist-form {
  background: var(--bg-primary);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--neu-shadow);
  margin-bottom: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-input {
  width: 100%;
  background: var(--bg-primary);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--neu-shadow-inset);
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  color: var(--text-primary);
  transition: all var(--transition-base);
}

.form-input:focus {
  outline: none;
  box-shadow:
    var(--neu-shadow-inset),
    0 0 0 3px rgba(93, 173, 226, 0.3);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-input.error {
  box-shadow:
    var(--neu-shadow-inset),
    0 0 0 2px rgba(231, 76, 60, 0.5);
}

.form-error {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-primary-1);
  margin-top: var(--space-xs);
  text-align: left;
  min-height: 20px;
}

.form-submit {
  width: 100%;
  background: var(--gradient-1);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.form-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(231, 76, 60, 0.6);
}

.form-submit:active:not(:disabled) {
  transform: translateY(0);
}

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

.submit-text {
  transition: opacity var(--transition-fast);
}

.submit-loader {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.form-submit.loading .submit-text {
  opacity: 0;
}

.form-submit.loading .submit-loader {
  opacity: 1;
}

.loader-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.submit-checkmark {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.form-submit.success .submit-text {
  opacity: 0;
}

.form-submit.success .submit-checkmark {
  opacity: 1;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-2xl);
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--neu-shadow);
  text-align: center;
}

.form-success.show {
  display: flex;
  animation: scaleIn var(--transition-slow) ease-out;
}

.success-icon {
  color: var(--color-accent);
  animation: circleGrow var(--transition-slow) ease-out;
}

.success-icon circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: checkmarkDraw 0.6s ease-out 0.2s forwards;
}

.success-icon polyline {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkmarkDraw 0.4s ease-out 0.5s forwards;
}

.success-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  text-transform: uppercase;
}

.success-message {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

.waitlist-privacy {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  line-height: var(--line-height-relaxed);
}

/* ================================
   FOOTER
   ================================ */

.footer {
  position: relative;
  padding: var(--space-2xl) 0;
  text-align: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-tertiary);
  z-index: var(--z-base);
}

.footer-text {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 768px) {
  :root {
    --container-padding: var(--space-md);
  }

  .theme-toggle {
    top: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
  }

  .logo {
    max-width: 200px;
  }

  .hero {
    min-height: auto;
    padding: var(--space-3xl) 0;
  }

  .scroll-indicator {
    display: none;
  }

  .section-header {
    margin-bottom: var(--space-2xl);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .mission-quote {
    font-size: var(--font-size-xl);
  }

  .mission-text {
    padding: var(--space-lg);
  }

  .waitlist-form {
    padding: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-md);
  }

  .cta-button {
    padding: var(--space-sm) var(--space-xl);
    font-size: var(--font-size-base);
  }

  .section-title {
    font-size: var(--font-size-2xl);
  }

  .feature-card {
    padding: var(--space-lg);
  }
}

/* ================================
   ACCESSIBILITY
   ================================ */

/* Focus styles */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Skip to main content link */
.skip-to-main {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  text-decoration: none;
}

.skip-to-main:focus {
  left: var(--space-md);
  top: var(--space-md);
}

/* Fallback for when animations don't load */
.no-animations .mission-quote,
.no-animations .mission-text,
.no-animations .coming-soon-badge,
.no-animations .feature-card,
.no-animations .waitlist-title,
.no-animations .waitlist-subtitle,
.no-animations .waitlist-form {
  opacity: 1 !important;
  transform: none !important;
}

/* Print styles */
@media print {
  .theme-toggle,
  .particles-canvas,
  .scroll-indicator {
    display: none;
  }
}
