/* ============================================
   AIPS Landing — Modern Design System
   ============================================ */

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

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1424;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  --accent-1: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #ec4899;
  --accent-glow: rgba(99, 102, 241, 0.4);
  --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-2: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
  --gradient-3: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Ambient glow that follows the cursor (subtle spotlight effect) */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  opacity: 0.25;
}

@media (hover: none) {
  .cursor-glow { display: none; }
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(10, 14, 26, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
}

/* Company logo — crop to show only the swirl mark (left portion) */
.logo-img {
  height: 36px;
  width: 36px;
  object-fit: cover;
  object-position: left center;
  display: block;
  border-radius: 6px;
}

/* Footer logo — same treatment, slightly bigger */
.footer-brand .logo-img {
  height: 48px;
  width: 48px;
}

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

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

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

.nav-cta {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease !important;
}

.nav-cta:hover {
  border-color: var(--accent-1);
  background: var(--bg-card-hover);
}

@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============================================
   Hero
   ============================================ */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  animation: float 45s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-1);
  top: 5%;
  left: -15%;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-2);
  top: 40%;
  right: -15%;
  animation-delay: -15s;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: var(--accent-3);
  bottom: 5%;
  left: 25%;
  animation-delay: -30s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.05); }
  66% { transform: translate(-40px, 60px) scale(0.97); }
}

/* Floating particles (subtle data dots) */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-1);
  opacity: 0;
  animation: drift 20s ease-in-out infinite;
}

@keyframes drift {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5);
  }
  10%, 90% {
    opacity: 0.4;
  }
  50% {
    transform: translate(var(--dx, 30px), var(--dy, -100px)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--dx, 30px) * 2), calc(var(--dy, -100px) * 2)) scale(0.5);
  }
}

/* Distribute particles randomly */
.particles span:nth-child(1)  { left: 5%;  top: 80%; --dx: 40px;  --dy: -120px; animation-duration: 22s; animation-delay: 0s; background: var(--accent-1); }
.particles span:nth-child(2)  { left: 12%; top: 90%; --dx: -30px; --dy: -150px; animation-duration: 28s; animation-delay: -3s; background: var(--accent-2); }
.particles span:nth-child(3)  { left: 22%; top: 75%; --dx: 50px;  --dy: -180px; animation-duration: 30s; animation-delay: -6s; background: var(--accent-1); width: 3px; height: 3px; }
.particles span:nth-child(4)  { left: 35%; top: 95%; --dx: -50px; --dy: -160px; animation-duration: 26s; animation-delay: -2s; background: var(--accent-3); }
.particles span:nth-child(5)  { left: 48%; top: 85%; --dx: 30px;  --dy: -200px; animation-duration: 32s; animation-delay: -8s; background: var(--accent-2); width: 5px; height: 5px; }
.particles span:nth-child(6)  { left: 60%; top: 80%; --dx: -40px; --dy: -140px; animation-duration: 24s; animation-delay: -12s; background: var(--accent-1); }
.particles span:nth-child(7)  { left: 72%; top: 92%; --dx: 60px;  --dy: -170px; animation-duration: 27s; animation-delay: -5s; background: var(--accent-3); width: 3px; height: 3px; }
.particles span:nth-child(8)  { left: 85%; top: 78%; --dx: -30px; --dy: -190px; animation-duration: 29s; animation-delay: -10s; background: var(--accent-1); }
.particles span:nth-child(9)  { left: 95%; top: 88%; --dx: -50px; --dy: -150px; animation-duration: 25s; animation-delay: -15s; background: var(--accent-2); }
.particles span:nth-child(10) { left: 8%;  top: 50%; --dx: 40px;  --dy: -100px; animation-duration: 35s; animation-delay: -7s; background: var(--accent-3); width: 5px; height: 5px; }
.particles span:nth-child(11) { left: 18%; top: 30%; --dx: 30px;  --dy: -80px;  animation-duration: 33s; animation-delay: -11s; background: var(--accent-1); }
.particles span:nth-child(12) { left: 28%; top: 60%; --dx: -40px; --dy: -130px; animation-duration: 31s; animation-delay: -4s; background: var(--accent-2); width: 3px; height: 3px; }
.particles span:nth-child(13) { left: 40%; top: 25%; --dx: 50px;  --dy: -70px;  animation-duration: 28s; animation-delay: -16s; background: var(--accent-3); }
.particles span:nth-child(14) { left: 52%; top: 55%; --dx: -30px; --dy: -90px;  animation-duration: 26s; animation-delay: -9s; background: var(--accent-1); width: 5px; height: 5px; }
.particles span:nth-child(15) { left: 65%; top: 35%; --dx: 40px;  --dy: -110px; animation-duration: 30s; animation-delay: -13s; background: var(--accent-2); }
.particles span:nth-child(16) { left: 78%; top: 50%; --dx: -50px; --dy: -100px; animation-duration: 24s; animation-delay: -1s; background: var(--accent-3); width: 3px; height: 3px; }
.particles span:nth-child(17) { left: 90%; top: 30%; --dx: -40px; --dy: -120px; animation-duration: 32s; animation-delay: -14s; background: var(--accent-1); }
.particles span:nth-child(18) { left: 3%;  top: 20%; --dx: 60px;  --dy: -60px;  animation-duration: 27s; animation-delay: -6s; background: var(--accent-2); width: 5px; height: 5px; }
.particles span:nth-child(19) { left: 15%; top: 10%; --dx: 30px;  --dy: -50px;  animation-duration: 29s; animation-delay: -17s; background: var(--accent-3); }
.particles span:nth-child(20) { left: 30%; top: 15%; --dx: -40px; --dy: -40px;  animation-duration: 25s; animation-delay: -8s; background: var(--accent-1); width: 3px; height: 3px; }
.particles span:nth-child(21) { left: 45%; top: 8%;  --dx: 50px;  --dy: -30px;  animation-duration: 34s; animation-delay: -2s; background: var(--accent-2); }
.particles span:nth-child(22) { left: 58%; top: 18%; --dx: -30px; --dy: -60px;  animation-duration: 28s; animation-delay: -12s; background: var(--accent-3); }
.particles span:nth-child(23) { left: 72%; top: 8%;  --dx: 40px;  --dy: -45px;  animation-duration: 31s; animation-delay: -19s; background: var(--accent-1); width: 5px; height: 5px; }
.particles span:nth-child(24) { left: 85%; top: 12%; --dx: -50px; --dy: -55px;  animation-duration: 26s; animation-delay: -3s; background: var(--accent-2); }
.particles span:nth-child(25) { left: 95%; top: 5%;  --dx: -40px; --dy: -35px;  animation-duration: 33s; animation-delay: -10s; background: var(--accent-3); }

/* Subtle horizontal scan line — like a slow data sweep */
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.3) 50%, transparent 100%);
  animation: scan 18s linear infinite;
  opacity: 0.6;
}

@keyframes scan {
  0% { top: 0%; }
  100% { top: 100%; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

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

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  position: relative;
}

.pulse-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: #10b981;
  border-radius: 50%;
  opacity: 0.4;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}

.hero-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.hero-line-1, .hero-line-2, .hero-line-3 {
  padding: 6px 0;
}

.hero-line-1, .hero-line-2, .hero-line-3 {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-line-1 { animation-delay: 0.4s; }
.hero-line-2 { animation-delay: 0.9s; }
.hero-line-3 { animation-delay: 1.4s; }

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

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

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

.hero-subtitle {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 80px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2.5s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.6);
}

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

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 3s forwards;
}

.stat {
  text-align: center;
  min-width: 120px;
}

.stat-value {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1.5px solid var(--text-muted);
  border-radius: 12px;
}

.scroll-line {
  width: 2px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 1px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
  0%, 100% { opacity: 0; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 12px); }
}

/* ============================================
   Video Showcase
   ============================================ */

.video-showcase {
  padding: 100px 0;
  position: relative;
}

.video-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: #0a0e1a;
  box-shadow:
    0 30px 80px rgba(99, 102, 241, 0.25),
    0 0 0 1px var(--border);
}

.hero-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}

.video-glow {
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899, #f59e0b);
  opacity: 0.4;
  filter: blur(20px);
  z-index: -1;
  animation: video-glow-pulse 4s ease-in-out infinite;
}

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

/* ============================================
   Product Showcase (Feature Videos)
   ============================================ */

.product-showcase {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.product-showcase-right::before,
.product-showcase-left::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.product-showcase-right::before {
  background: var(--accent-1);
  top: 50%;
  right: -200px;
  transform: translateY(-50%);
}

.product-showcase-left::before {
  background: var(--accent-3);
  top: 50%;
  left: -200px;
  transform: translateY(-50%);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.showcase-grid-reverse {
  grid-template-columns: 1.3fr 1fr;
}

@media (max-width: 968px) {
  .showcase-grid,
  .showcase-grid-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .showcase-grid-reverse .showcase-video {
    order: 2;
  }
}

.showcase-text .section-badge {
  margin-bottom: 20px;
}

.showcase-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.showcase-desc {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.showcase-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-list li {
  font-size: 15px;
  color: var(--text-primary);
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.showcase-list li:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-1);
  transform: translateX(4px);
}

.video-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0a0e1a;
  box-shadow:
    0 30px 80px rgba(99, 102, 241, 0.25),
    0 0 0 1px var(--border);
}

.video-frame video {
  width: 100%;
  height: auto;
  display: block;
}

.video-frame .video-glow {
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  opacity: 0.3;
  filter: blur(20px);
  z-index: -1;
  animation: video-glow-pulse 4s ease-in-out infinite;
}

/* ============================================
   Reveal Animation
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Section Common
   ============================================ */

.features, .how-it-works, .demo, .stats-section, .cta {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 80px;
}

/* Premium section badge — accent bar + tracked uppercase text */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  position: relative;
}

.section-badge::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
  border-radius: 2px;
}

.section-badge::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: badge-pulse 2.4s ease-in-out infinite;
}

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

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.showcase-title {
  line-height: 1.3 !important;
  padding: 4px 0;
}

/* ============================================
   Features
   ============================================ */

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

.feature-card {
  position: relative;
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.feature-card[data-feature="quote"]::before { background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent); }
.feature-card[data-feature="gantt"]::before { background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent); }
.feature-card[data-feature="drag"]::before { background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), transparent); }
.feature-card[data-feature="ai"]::before { background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), transparent); }

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrap {
  background: var(--gradient-1);
  border-color: transparent;
  transform: rotate(-5deg) scale(1.1);
}

.feature-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-1);
  transition: color 0.3s ease;
}

.feature-card:hover .feature-icon {
  color: white;
}

.feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}

.feature-desc strong {
  color: var(--text-primary);
  font-weight: 600;
}

.feature-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.meta-tag {
  color: var(--accent-1);
  font-weight: 600;
}

.meta-time {
  color: var(--text-muted);
}

/* ============================================
   How It Works
   ============================================ */

.how-it-works {
  background: var(--bg-secondary);
}

.workflow {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

.workflow-step {
  flex: 1;
  min-width: 200px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.workflow-step:hover {
  border-color: var(--accent-1);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.workflow-num {
  width: 36px;
  height: 36px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.workflow-content h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.workflow-content p {
  font-size: 13px;
  color: var(--text-secondary);
}

.workflow-arrow {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--accent-1);
  z-index: 2;
}

@media (max-width: 768px) {
  .workflow-arrow { display: none; }
}

.algos {
  overflow: hidden;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.algos-track {
  display: flex;
  gap: 16px;
  animation: scroll-x 25s linear infinite;
}

@keyframes scroll-x {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 8px)); }
}

.algo-card {
  flex-shrink: 0;
  width: 200px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  transition: all 0.3s ease;
}

.algo-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.algo-featured {
  border-color: var(--accent-1);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
}

.algo-tag {
  position: absolute;
  top: -10px;
  right: 16px;
  padding: 4px 10px;
  background: var(--gradient-1);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

.algo-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.algo-time {
  font-size: 14px;
  color: var(--accent-1);
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* ============================================
   Demo
   ============================================ */

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

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

.demo-card:hover {
  border-color: var(--border-hover);
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.demo-method {
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.demo-url {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 4px 10px;
  border-radius: 6px;
}

.demo-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.btn-demo {
  position: relative;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  justify-content: center;
  overflow: hidden;
}

.btn-demo:hover {
  background: var(--gradient-1);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-glow);
}

.btn-demo:active {
  transform: translateY(0);
}

.btn-demo.loading {
  pointer-events: none;
  background: var(--bg-card-hover);
  color: var(--text-secondary);
}

.btn-demo.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.btn-demo.error-state {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.15), rgba(248, 113, 113, 0.08));
  border-color: rgba(248, 113, 113, 0.4);
  color: #f87171;
}

/* Spinner */
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent-1);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

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

/* Demo result — smoother reveal with skeleton loader */
.demo-result {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.6;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              padding 0.3s ease,
              border-color 0.3s ease;
  color: var(--text-secondary);
  position: relative;
}

.demo-result.show {
  max-height: 320px;
  padding: 16px;
  overflow: auto;
}

.demo-result.show pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  animation: fadeInContent 0.4s ease;
}

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

.demo-result.loading-state {
  max-height: 120px;
  padding: 16px;
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 0%,
    rgba(99, 102, 241, 0.06) 50%,
    var(--bg-secondary) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
  border-color: rgba(99, 102, 241, 0.3);
}

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

.demo-result.loading-state .skeleton {
  display: block;
  height: 10px;
  margin: 8px 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
  border-radius: 4px;
}

.demo-result.loading-state .skeleton:nth-child(1) { width: 92%; }
.demo-result.loading-state .skeleton:nth-child(2) { width: 70%; }
.demo-result.loading-state .skeleton:nth-child(3) { width: 85%; }
.demo-result.loading-state .skeleton:nth-child(4) { width: 60%; }

.demo-result.error {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.05);
}

.demo-result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.demo-result-meta .meta-pill {
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ============================================
   Stats Section
   ============================================ */

.comparison {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.comparison-row {
  display: grid;
  grid-template-columns: 200px 1fr 100px;
  gap: 32px;
  align-items: center;
}

@media (max-width: 768px) {
  .comparison-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.comparison-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar {
  position: relative;
  height: 36px;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
}

.bar-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--bar-color);
  border-radius: 8px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar.animate .bar-fill {
  width: var(--width);
}

.bar-old {
  --bar-color: linear-gradient(90deg, rgba(248, 113, 113, 0.3), rgba(248, 113, 113, 0.1));
}

.bar-new {
  --bar-color: var(--gradient-1);
}

.bar-value {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 14px;
}

.comparison-improvement {
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: right;
}

/* ============================================
   CTA
   ============================================ */

.cta-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 50%, var(--accent-1) 0%, transparent 30%),
    radial-gradient(circle at 70% 50%, var(--accent-3) 0%, transparent 30%);
  opacity: 0.15;
  filter: blur(40px);
  z-index: 0;
}

.cta-card > * {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

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

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-brand p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 600px) {
  .footer-links { grid-template-columns: 1fr; }
}

.footer-col h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a, .footer-col p {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.2s;
}

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