/* ========================================
   Lemeno AI — Dark Futuristic Landing Page
   ======================================== */

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

:root {
  --bg-primary:      #050811;
  --bg-secondary:    #0a1020;
  --bg-card:         #0d1628;
  --accent-primary:  #00d4ff;
  --accent-secondary:#7b61ff;
  --accent-glow:     rgba(0, 212, 255, 0.15);
  --accent-glow-strong: rgba(0, 212, 255, 0.3);
  --text-primary:    #e8f0fe;
  --text-secondary:  #8899bb;
  --text-muted:      #445577;
  --border-subtle:   #1a2840;
  --border-glow:     rgba(0, 212, 255, 0.25);
  --error-color:     #ff6b6b;
  --error-glow:      rgba(255, 107, 107, 0.2);
  --success-color:   #00d4ff;

  --font-display:  'Space Grotesk', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  --nav-height: 64px;
  --container-max: 1120px;
  --section-gap: 120px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---- Aurora Blobs (CSS layer beneath canvas) ---- */
.aurora {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  animation: aurora-drift 20s ease-in-out infinite alternate;
}

.aurora-blob-1 {
  width: 700px;
  height: 500px;
  background: var(--accent-primary);
  top: -150px;
  left: -200px;
  animation-duration: 18s;
}

.aurora-blob-2 {
  width: 600px;
  height: 600px;
  background: var(--accent-secondary);
  top: 30%;
  right: -200px;
  animation-duration: 24s;
  animation-delay: -8s;
}

.aurora-blob-3 {
  width: 500px;
  height: 400px;
  background: var(--accent-primary);
  bottom: -100px;
  left: 30%;
  animation-duration: 20s;
  animation-delay: -4s;
}

@keyframes aurora-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* ---- Layout Utility ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Dot Grid Texture ---- */
.dot-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0, 212, 255, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(5, 8, 17, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.logo-prompt {
  color: var(--accent-primary);
  margin-right: 4px;
}

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

.logo-cursor {
  color: var(--accent-primary);
  animation: blink-cursor 1.1s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ---- Scroll Animations ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Common Section Elements ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 1.25rem;
}

.eyebrow-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent-primary); }
  50%       { opacity: 0.6; box-shadow: 0 0 16px var(--accent-primary); }
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 60%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: shimmer-gradient 6s ease infinite;
}

@keyframes shimmer-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---- Hero Section ---- */
.section-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 4rem) 2rem 6rem;
}

.hero-content {
  max-width: 600px;
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.subheadline {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  box-shadow: 0 0 20px var(--accent-glow);
  white-space: nowrap;
}

.cta-btn:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 40px var(--accent-glow-strong), inset 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.cta-btn svg {
  transition: transform 0.2s ease;
}

.cta-btn:hover svg {
  transform: translateX(3px);
}

/* ---- Orbital Visual ---- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.orbital-system {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.orbit-outer {
  width: 360px;
  height: 360px;
  animation: orbit-spin 28s linear infinite;
}

.orbit-mid {
  width: 250px;
  height: 250px;
  animation: orbit-spin 18s linear infinite reverse;
  border-color: rgba(123, 97, 255, 0.25);
}

.orbit-inner {
  width: 155px;
  height: 155px;
  animation: orbit-spin 12s linear infinite;
  border-color: rgba(0, 212, 255, 0.35);
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.orbit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  margin-top: -4px;
  box-shadow: 0 0 12px var(--accent-primary), 0 0 24px var(--accent-glow-strong);
}

.orbit-mid .orbit-dot {
  background: var(--accent-secondary);
  box-shadow: 0 0 12px var(--accent-secondary), 0 0 24px rgba(123, 97, 255, 0.4);
}

.orbit-center {
  position: absolute;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-glow {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
}

.center-core {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-primary), 0 0 40px var(--accent-glow-strong);
  animation: pulse-core 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.4); opacity: 1; }
}

@keyframes pulse-core {
  0%, 100% { box-shadow: 0 0 20px var(--accent-primary), 0 0 40px var(--accent-glow-strong); }
  50%       { box-shadow: 0 0 30px var(--accent-primary), 0 0 60px var(--accent-glow-strong); }
}

/* ---- Hero Social Proof ---- */
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-avatars {
  display: flex;
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: 2px solid var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--bg-primary);
  margin-left: -8px;
}

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

/* ---- Scroll Indicator ---- */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  transition: color 0.2s ease;
  animation: bounce-down 2.5s ease-in-out infinite;
}

.scroll-indicator:hover { color: var(--accent-primary); }

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ---- Stats Bar ---- */
.stats-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 16, 32, 0.6);
  backdrop-filter: blur(10px);
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1.5rem 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 3.5rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* ---- Manifesto Section ---- */
.section-manifesto {
  position: relative;
  z-index: 1;
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border-subtle);
}

.manifesto-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-quote {
  position: relative;
  padding: 0 2rem;
}

.quote-mark {
  position: absolute;
  top: -1.5rem;
  left: 0;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--accent-primary);
  opacity: 0.15;
  font-weight: 700;
  pointer-events: none;
  select: none;
}

.manifesto-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.manifesto-attr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.attr-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--text-muted);
}

/* ---- Features Section ---- */
.section-features {
  position: relative;
  z-index: 1;
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.feature-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-6px);
  box-shadow: 0 12px 48px var(--accent-glow), 0 0 0 1px var(--border-glow);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-primary);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover .card-icon {
  background: rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 20px var(--accent-glow);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Waitlist Section ---- */
.section-waitlist {
  position: relative;
  z-index: 1;
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border-subtle);
}

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

.waitlist-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.5rem;
}

.waitlist-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.waitlist-inner .section-sub {
  margin-bottom: 2.5rem;
}

/* ---- Form Styles ---- */
#waitlist-form {
  margin-bottom: 1rem;
}

.input-group {
  display: flex;
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-group:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 28px var(--accent-glow);
}

.input-group.has-error {
  border-color: var(--error-color);
  box-shadow: 0 0 20px var(--error-glow);
}

#email-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.9rem 1.25rem;
  min-width: 0;
}

#email-input::placeholder {
  color: var(--text-muted);
}

#email-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#submit-btn {
  flex-shrink: 0;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: none;
  outline: none;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.2s ease, opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
}

#submit-btn:hover:not(:disabled) {
  filter: brightness(1.12);
}

#submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  animation: spin-anim 0.8s linear infinite;
}

@keyframes spin-anim {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.form-error {
  font-size: 0.85rem;
  color: var(--error-color);
  margin-top: 0.6rem;
  text-align: left;
  padding-left: 0.25rem;
}

/* ---- Success State ---- */
.success-state {
  padding: 2.5rem;
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  background: rgba(0, 212, 255, 0.04);
  animation: success-appear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes success-appear {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.success-icon {
  color: var(--accent-primary);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.success-icon svg {
  filter: drop-shadow(0 0 12px var(--accent-primary));
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.success-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ---- Waitlist Note ---- */
.waitlist-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}

/* ---- Footer ---- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  background: var(--bg-secondary);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.social-link {
  color: var(--text-muted);
  transition: color 0.2s ease, filter 0.2s ease;
  display: flex;
  align-items: center;
}

.social-link:hover {
  color: var(--accent-primary);
  filter: drop-shadow(0 0 6px var(--accent-primary));
}

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

/* ---- Responsive ---- */
@media (max-width: 960px) {
  :root {
    --section-gap: 80px;
  }

  .section-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--nav-height) + 3rem);
  }

  .hero-content {
    max-width: 100%;
  }

  .subheadline {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-social-proof {
    justify-content: center;
  }

  .orbital-system {
    width: 280px;
    height: 280px;
  }

  .orbit-outer { width: 260px; height: 260px; }
  .orbit-mid   { width: 185px; height: 185px; }
  .orbit-inner { width: 115px; height: 115px; }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .stats-inner {
    gap: 0;
  }

  .stat-item {
    padding: 0 1.5rem;
  }

  .manifesto-quote p {
    font-size: 1.3rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1.25rem;
  }

  .section-hero {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-visual {
    display: none;
  }

  .stats-inner {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 0;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .stat-item {
    padding: 0;
  }

  .scroll-indicator {
    display: none;
  }

  .input-group {
    flex-direction: column;
    border-radius: 10px;
    overflow: visible;
    background: transparent;
    border: none;
    gap: 0.75rem;
    box-shadow: none !important;
  }

  #email-input {
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    background: var(--bg-card);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
  }

  #email-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
  }

  #submit-btn {
    width: 100%;
    border-radius: 10px;
    padding: 0.9rem;
    min-width: unset;
  }

  .headline {
    font-size: 2.2rem;
  }
}
