/* ========================================
   CLAREO - Futuristic Dark Theme
   ======================================== */

:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;

  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #606070;

  --accent-purple: #8b5cf6;
  --accent-purple-light: #a78bfa;
  --accent-cyan: #06b6d4;
  --accent-cyan-light: #22d3ee;
  --accent-pink: #ec4899;

  --gradient-primary: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
  --gradient-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.4) 0%, rgba(6, 182, 212, 0.4) 100%);

  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.3);

  /* Spacing */
  --section-padding: 120px 24px;
  --container-width: 1200px;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', var(--font-primary);

  /* Effects */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.3);
}

/* ========================================
   RESET & BASE
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */

.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: float 20s ease-in-out infinite;
}

.glow-1 {
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: rgba(139, 92, 246, 0.15);
  animation-delay: 0s;
}

.glow-2 {
  top: 50%;
  right: -300px;
  width: 800px;
  height: 800px;
  background: rgba(6, 182, 212, 0.1);
  animation-delay: -7s;
}

.glow-3 {
  bottom: -200px;
  left: 30%;
  width: 500px;
  height: 500px;
  background: rgba(236, 72, 153, 0.1);
  animation-delay: -14s;
}

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

/* ========================================
   NAVIGATION
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.logo-icon {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: white;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.5);
}

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

.btn-secondary:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-glow);
}

.btn-nav {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-nav:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

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

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  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 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 900px;
}

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

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.7;
}

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

/* ========================================
   HERO DEMO VISUAL
   ======================================== */

.hero-visual {
  margin-top: 80px;
  width: 100%;
  max-width: 700px;
  perspective: 1000px;
}

.demo-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(139, 92, 246, 0.1);
  transform: rotateX(5deg);
  transition: var(--transition);
}

.demo-window:hover {
  transform: rotateX(0);
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.demo-dots {
  display: flex;
  gap: 8px;
}

.demo-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
}

.demo-dots span:nth-child(1) { background: #ff5f57; border-color: #ff5f57; }
.demo-dots span:nth-child(2) { background: #ffbd2e; border-color: #ffbd2e; }
.demo-dots span:nth-child(3) { background: #28ca42; border-color: #28ca42; }

.demo-title {
  font-size: 13px;
  color: var(--text-muted);
}

.demo-content {
  padding: 32px;
}

.demo-input-area {
  margin-bottom: 24px;
}

.demo-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
}

.typing-text {
  font-size: 15px;
  color: var(--text-secondary);
}

.clareo-btn {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.4); }
  50% { box-shadow: 0 0 30px rgba(139, 92, 246, 0.6), 0 0 60px rgba(6, 182, 212, 0.3); }
}

.demo-arrow {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-purple);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.demo-output {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 20px;
}

.output-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.7;
}

/* ========================================
   SECTIONS COMMON
   ======================================== */

section {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
}

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

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

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-purple-light);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

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

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */

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

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

.step {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  max-width: 280px;
  text-align: center;
  transition: var(--transition);
}

.step:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-connector {
  color: var(--text-muted);
}

/* ========================================
   PLATFORMS SECTION
   ======================================== */

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

.platform-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.platform-logo {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.platform-logo:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
}

/* ========================================
   BETA SIGNUP SECTION
   ======================================== */

.beta {
  padding: var(--section-padding);
  display: flex;
  justify-content: center;
}

.beta-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 64px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  overflow: hidden;
}

.beta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: var(--gradient-glow);
  filter: blur(100px);
  pointer-events: none;
}

.beta-card h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.beta-card > p {
  position: relative;
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.signup-form {
  position: relative;
}

.input-group {
  display: flex;
  gap: 12px;
  max-width: 450px;
  margin: 0 auto;
}

.input-group input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  transition: var(--transition);
}

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

.input-group input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.signup-note {
  position: relative;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer {
  position: relative;
  z-index: 1;
  padding: 64px 24px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  text-align: center;
}

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

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.copyright {
  font-size: 13px;
  color: var(--text-muted);
}

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

@media (max-width: 768px) {
  .nav {
    padding: 16px 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .hero {
    padding: 120px 20px 60px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  .demo-window {
    transform: none;
  }

  .steps {
    flex-direction: column;
  }

  .step-connector {
    transform: rotate(90deg);
  }

  .input-group {
    flex-direction: column;
  }

  .beta-card {
    padding: 40px 24px;
  }
}

/* ========================================
   ANIMATIONS ON SCROLL (optional class)
   ======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
