/* Sleek CSS variables for modern harmony color system */
:root {
  --bg-dark: #07090e;
  --bg-card: rgba(18, 22, 32, 0.65);
  --border-color: rgba(255, 255, 255, 0.05);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  
  --glow-shadow: 0 0 25px rgba(139, 92, 246, 0.25);
  --border-radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Background Glow Blobs */
.glow-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

.blob-1 {
  background: var(--accent-blue);
  top: -100px;
  left: -100px;
}

.blob-2 {
  background: var(--accent-pink);
  top: 600px;
  right: -100px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(7, 9, 14, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  padding: 16px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand-logo {
  width: 24px;
  height: 24px;
  color: var(--accent-blue);
}

.brand-name {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #ffffff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

/* Buttons */
.btn {
  background: var(--accent-gradient);
  border: none;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

/* Hero Section */
.hero {
  padding: 100px 0 80px 0;
  text-align: center;
  position: relative;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.badge-pill {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #60a5fa;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 4rem;
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

/* Simulated Floating Notch */
.hero-device-wrapper {
  margin-top: 60px;
  width: 100%;
  max-width: 600px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  position: relative;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.notch-simulator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.sim-pill {
  background: rgba(10, 13, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 25px;
  height: 42px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 260px;
  justify-content: center;
}

.sim-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Sim Soundwave visualizer */
.sim-waves {
  display: none;
  align-items: center;
  gap: 3px;
  height: 14px;
}

.wave-bar {
  width: 3px;
  height: 16px;
  transform: scaleY(0.25);
  transform-origin: center;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-pink));
  border-radius: 2px;
}

/* Spinner loader */
.sim-loader {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(139, 92, 246, 0.15);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.sim-sparkle {
  display: none;
  font-size: 12px;
  animation: pulse 1.2s infinite ease-in-out;
}

/* Simulation States */
.sim-pill.recording {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}
.sim-pill.recording .sim-waves {
  display: flex;
}
/* Animate individual waves randomly */
.sim-pill.recording .wave-bar:nth-child(1) { animation: wave 0.6s ease infinite alternate; }
.sim-pill.recording .wave-bar:nth-child(2) { animation: wave 0.8s ease infinite alternate 0.1s; }
.sim-pill.recording .wave-bar:nth-child(3) { animation: wave 0.5s ease infinite alternate 0.2s; }
.sim-pill.recording .wave-bar:nth-child(4) { animation: wave 0.9s ease infinite alternate 0.15s; }
.sim-pill.recording .wave-bar:nth-child(5) { animation: wave 0.7s ease infinite alternate 0.25s; }
.sim-pill.recording .wave-bar:nth-child(6) { animation: wave 0.6s ease infinite alternate 0.05s; }
.sim-pill.recording .wave-bar:nth-child(7) { animation: wave 0.8s ease infinite alternate 0.3s; }

.sim-pill.processing {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
}
.sim-pill.processing .sim-loader {
  display: block;
}

.sim-pill.cleaning {
  border-color: rgba(236, 72, 153, 0.3);
  box-shadow: 0 10px 40px rgba(236, 72, 153, 0.2);
}
.sim-pill.cleaning .sim-sparkle {
  display: block;
}

.sim-pill.pasted {
  border-color: #10b981;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.2);
}
.sim-pill.pasted .sim-sparkle {
  display: block;
  color: #10b981;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes wave {
  from { transform: scaleY(0.25); }
  to { transform: scaleY(1.0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px var(--accent-pink)); }
  50% { transform: scale(1.3); filter: drop-shadow(0 0 8px var(--accent-pink)); }
}

/* Features Grid */
.features {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

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

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

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

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.2);
}

.feature-icon {
  font-size: 2rem;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Demo Section */
.demo-section {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--border-color);
}

.demo-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.demo-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.demo-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.demo-output-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.output-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.box-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-weight: 700;
}

.box-content {
  font-size: 0.92rem;
  line-height: 1.6;
  min-height: 60px;
}

.text-raw {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
}

.text-cleaned {
  color: #a855f7;
  font-weight: 500;
}

/* Install Guide */
.install {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.install-card {
  background: rgba(7, 9, 14, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.card-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.install-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.install-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

.code-block-container {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 14px;
  border-radius: 8px;
  margin-top: 8px;
  overflow-x: auto;
  max-width: 100%;
}

.code-block-container code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #38bdf8;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Roadmap */
.roadmap {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--border-color);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--accent-purple);
  border-radius: 50%;
  position: absolute;
  left: -31px;
  top: 6px;
  box-shadow: 0 0 10px var(--accent-purple);
}

.timeline-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: rgba(7, 9, 14, 0.95);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  margin-top: auto;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

@media (max-width: 900px) {
  .features-grid, .install-steps {
    grid-template-columns: 1fr;
  }
  .demo-wrapper {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .install-card {
    padding: 20px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  .footer-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
