@font-face {
  font-family: 'lucide';
  src: url('https://unpkg.com/lucide-static@latest/font/lucide.woff2') format('woff2');
}
.icon-lucide {
  font-family: 'lucide';
  font-style: normal;
  font-weight: normal;
  font-size: inherit;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga';
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered children */
[data-reveal-child] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal-child].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Warm ambient section lighting */
.warm-glow-top {
  position: relative;
  isolation: isolate;
}
.warm-glow-top::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0; left: 0; right: 0;
  height: 55%;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(200, 148, 106, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.warm-glow-center {
  position: relative;
  isolation: isolate;
}
.warm-glow-center::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 40% 50%, rgba(200, 148, 106, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Shooting star / comet streaks */
.aurora-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.aurora-layer .comet {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  will-change: transform, opacity;
  opacity: 0;
}
/* The bright head */
.comet::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  width: 6px; height: 6px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 4px rgba(255, 240, 220, 0.9), 0 0 30px 10px rgba(232, 184, 122, 0.6);
}
/* Thin / subtle comets */
.comet-thin::after {
  width: 4px; height: 4px;
  box-shadow: 0 0 8px 3px rgba(255, 240, 220, 0.7), 0 0 20px 6px rgba(232, 184, 122, 0.4);
}
.comet-1 {
  width: 320px;
  background: linear-gradient(90deg, transparent 0%, rgba(200, 148, 106, 0.6) 70%, #ffe0c0 100%);
  top: 10%; left: -350px;
  transform: rotate(-6deg);
  animation: shoot-1 9s cubic-bezier(0.2, 0, 0.4, 1) 0.5s infinite;
}
.comet-2 {
  width: 220px;
  background: linear-gradient(90deg, transparent 0%, rgba(232, 184, 122, 0.5) 70%, #fef0e8 100%);
  top: 28%; left: -280px;
  transform: rotate(-4deg);
  animation: shoot-2 11s cubic-bezier(0.15, 0, 0.35, 1) 4s infinite;
}
.comet-3 {
  width: 400px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 168, 120, 0.45) 70%, #ffe8d0 100%);
  top: 6%; left: -450px;
  transform: rotate(-10deg);
  animation: shoot-3 14s cubic-bezier(0.25, 0, 0.4, 1) 2s infinite;
}
.comet-4 {
  width: 160px; height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(200, 148, 106, 0.35) 70%, #ffe0c0 100%);
  top: 18%; left: -200px;
  transform: rotate(-3deg);
  animation: shoot-4 8s cubic-bezier(0.2, 0, 0.4, 1) 7s infinite;
}
.comet-5 {
  width: 280px;
  background: linear-gradient(90deg, transparent 0%, rgba(220, 170, 120, 0.5) 70%, #fff0e0 100%);
  top: 35%; left: -320px;
  transform: rotate(-7deg);
  animation: shoot-5 12s cubic-bezier(0.2, 0, 0.35, 1) 10s infinite;
}
.comet-6 {
  width: 130px; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(200, 148, 106, 0.25) 70%, rgba(255, 224, 192, 0.7) 100%);
  top: 45%; left: -180px;
  transform: rotate(-2deg);
  animation: shoot-6 7s cubic-bezier(0.15, 0, 0.4, 1) 15s infinite;
}
@keyframes shoot-1 {
  0%   { opacity: 0; transform: rotate(-6deg) translateX(0); }
  3%   { opacity: 0.9; }
  60%  { opacity: 0.9; }
  85%  { opacity: 0.3; }
  100% { opacity: 0; transform: rotate(-6deg) translateX(130vw); }
}
@keyframes shoot-2 {
  0%   { opacity: 0; transform: rotate(-4deg) translateX(0); }
  4%   { opacity: 0.8; }
  55%  { opacity: 0.8; }
  80%  { opacity: 0.2; }
  100% { opacity: 0; transform: rotate(-4deg) translateX(130vw); }
}
@keyframes shoot-3 {
  0%   { opacity: 0; transform: rotate(-10deg) translateX(0); }
  2%   { opacity: 0.85; }
  50%  { opacity: 0.85; }
  80%  { opacity: 0.2; }
  100% { opacity: 0; transform: rotate(-10deg) translateX(140vw); }
}
@keyframes shoot-4 {
  0%   { opacity: 0; transform: rotate(-3deg) translateX(0); }
  5%   { opacity: 0.6; }
  55%  { opacity: 0.6; }
  85%  { opacity: 0; }
  100% { opacity: 0; transform: rotate(-3deg) translateX(125vw); }
}
@keyframes shoot-5 {
  0%   { opacity: 0; transform: rotate(-7deg) translateX(0); }
  3%   { opacity: 0.75; }
  50%  { opacity: 0.75; }
  82%  { opacity: 0.15; }
  100% { opacity: 0; transform: rotate(-7deg) translateX(135vw); }
}
@keyframes shoot-6 {
  0%   { opacity: 0; transform: rotate(-2deg) translateX(0); }
  6%   { opacity: 0.5; }
  60%  { opacity: 0.5; }
  90%  { opacity: 0; }
  100% { opacity: 0; transform: rotate(-2deg) translateX(120vw); }
}

/* Ambient star twinkle */
.stars-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.star {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: rgba(255, 240, 220, 0.6);
  animation: twinkle var(--dur) ease-in-out var(--delay) infinite;
}
.star-lg {
  width: 3px; height: 3px;
  background: rgba(255, 240, 220, 0.45);
  box-shadow: 0 0 6px 2px rgba(232, 184, 122, 0.25);
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Hero content gentle float */
.hero-float {
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Warm card borders */
.bg-card,
.bg-card-alt {
  border: 1px solid rgba(200, 148, 106, 0.06);
}

/* ---- CARD HOVER EFFECTS (dark cards) ---- */
.card-hover {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.45s ease,
              box-shadow 0.45s ease;
}
.card-hover:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 148, 106, 0.18) !important;
  box-shadow: 0 10px 50px rgba(200, 148, 106, 0.08), 0 0 0 1px rgba(200, 148, 106, 0.08);
}
.card-hover:hover svg {
  filter: drop-shadow(0 0 10px rgba(200, 148, 106, 0.5));
  transition: filter 0.45s ease;
}
.card-hover:hover .step-num {
  color: rgba(254, 240, 232, 0.45);
  text-shadow: 0 0 50px rgba(200, 148, 106, 0.35);
}

/* Light card hover (sand bg) */
.card-hover-light {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s ease;
}
.card-hover-light:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 50px rgba(58, 40, 24, 0.1), 0 0 0 1px rgba(58, 40, 24, 0.06);
}

/* ---- GLOWING SECTION DIVIDERS ---- */
.glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(200, 148, 106, 0.25) 30%, rgba(200, 148, 106, 0.45) 50%, rgba(200, 148, 106, 0.25) 70%, transparent 95%);
  position: relative;
}
.glow-divider::after {
  content: '';
  position: absolute;
  inset: -6px 15% -6px 15%;
  background: linear-gradient(90deg, transparent, rgba(200, 148, 106, 0.12), transparent);
  filter: blur(10px);
  pointer-events: none;
}
.glow-divider-light {
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(58, 40, 24, 0.1) 30%, rgba(58, 40, 24, 0.18) 50%, rgba(58, 40, 24, 0.1) 70%, transparent 95%);
}

/* ---- FLOATING PARTICLES (light sections) ---- */
.particles-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(58, 40, 24, 0.07);
  animation: particleFloat var(--dur) ease-in-out var(--delay) infinite;
}
@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(0.8); opacity: 0; }
  20% { opacity: 1; }
  50% { transform: translateY(-60px) scale(1.2); opacity: 0.7; }
  80% { opacity: 0.3; }
  100% { transform: translateY(-120px) scale(0.6); opacity: 0; }
}

/* ---- VIDEO GLOW FRAME ---- */
.video-glow {
  position: relative;
}
.video-glow::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(200, 148, 106, 0.35), transparent 40%, transparent 60%, rgba(200, 148, 106, 0.25));
  z-index: -1;
  animation: videoGlowPulse 4s ease-in-out infinite;
}
@keyframes videoGlowPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ---- VOICE COMMAND PILL FLOAT ---- */
.pill-float {
  animation: pillFloat 3.5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes pillFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ---- STAT NUMBER GLOW ---- */
.stat-glow {
  text-shadow: 0 0 40px rgba(200, 148, 106, 0.3), 0 0 80px rgba(200, 148, 106, 0.1);
}

/* ---- SDK TAG SHIMMER ---- */
.tag-shimmer {
  position: relative;
  overflow: hidden;
}
.tag-shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; bottom: 0;
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(254, 240, 232, 0.08), transparent);
  animation: shimmerSlide 5s ease-in-out infinite;
  animation-delay: var(--sd, 0s);
}
@keyframes shimmerSlide {
  0%, 70%, 100% { left: -100%; }
  40% { left: 150%; }
}

/* ---- STEP NUMBER ---- */
.step-num {
  transition: color 0.5s ease, text-shadow 0.5s ease;
}

/* ---- DEMO STEP PILL ACTIVE PULSE ---- */
.demo-step {
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.demo-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(200, 148, 106, 0.12);
  border-color: rgba(200, 148, 106, 0.15);
}

/* ---- CTA BUTTON GLOW ---- */
.cta-glow {
  position: relative;
}
.cta-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 30px rgba(254, 240, 232, 0.25);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.cta-glow:hover::after {
  opacity: 1;
}

/* ---- ORBITING COMET RING (GitHub button) ---- */
@property --ring-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.comet-ring {
  position: relative;
  z-index: 1;
  border-color: transparent !important;
}
/* Sharp comet trail border */
.comet-ring::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  padding: 2px;
  background: conic-gradient(
    from var(--ring-angle),
    transparent 0%,
    transparent 50%,
    rgba(200, 148, 106, 0.08) 60%,
    rgba(200, 148, 106, 0.35) 74%,
    rgba(255, 224, 192, 0.7) 84%,
    #fff 89%,
    rgba(255, 240, 220, 0.9) 91%,
    rgba(200, 148, 106, 0.4) 95%,
    rgba(200, 148, 106, 0.1) 98%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: cometRingOrbit 5s linear infinite;
  z-index: -1;
}
/* Soft outer glow halo */
.comet-ring::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 9999px;
  background: conic-gradient(
    from var(--ring-angle),
    transparent 0%,
    transparent 65%,
    rgba(200, 148, 106, 0.08) 78%,
    rgba(255, 240, 220, 0.18) 88%,
    rgba(200, 148, 106, 0.06) 95%,
    transparent 100%
  );
  filter: blur(10px);
  animation: cometRingOrbit 5s linear infinite;
  z-index: -2;
  pointer-events: none;
}
@keyframes cometRingOrbit {
  to { --ring-angle: 360deg; }
}
