@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --color-bg: #07090e;
  --color-surface: #0e121b;
  --color-accent-cyan: #00f2fe;
  --color-accent-blue: #4facfe;
  --color-accent-purple: #8a2be2;
  --color-accent-red: #ff2a5f;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: #f1f5f9;
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  background-color: var(--color-bg);
  min-height: 100vh;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #07090e;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Typography Helpers */
.font-heading {
  font-family: var(--font-heading);
}
.font-mono {
  font-family: var(--font-mono);
}

/* Glassmorphism Styles */
.glass-nav {
  background: rgba(10, 14, 23, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.glass-card {
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Ambient Background Lights & Mesh */
.ambient-glow-1 {
  position: fixed;
  top: 15%;
  left: 10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.12) 0%, rgba(0, 242, 254, 0.03) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: floatSlow 20s ease-in-out infinite alternate;
}

.ambient-glow-2 {
  position: fixed;
  bottom: 20%;
  right: 10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.12) 0%, rgba(255, 42, 95, 0.03) 50%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: floatSlowReverse 25s ease-in-out infinite alternate;
}

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

@keyframes floatSlowReverse {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, 30px) scale(1.15); }
  100% { transform: translate(40px, -60px) scale(0.9); }
}

/* Background Grid Lines */
.bg-grid {
  background-size: 50px 50px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Story Presentation Stage */
.story-stage {
  position: relative;
  width: 100%;
}

.story-section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
  padding: 6rem 2rem;
}

@media (min-width: 1024px) {
  .story-section {
    padding: 0 6rem;
  }
}

/* Vertical Chapter Navigation Tracker */
.chapter-tracker {
  position: fixed;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tracker-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.tracker-dot.active {
  background: #00f2fe;
  border-color: #00f2fe;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.8);
  height: 28px;
}

.tracker-dot::before {
  content: attr(data-title);
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: rgba(15, 23, 42, 0.9);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: #94a3b8;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tracker-dot:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Phone Mockup Frame */
.phone-mockup {
  position: relative;
  width: 290px;
  height: 590px;
  border-radius: 46px;
  background: #020617;
  border: 9px solid #1e293b;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 40px rgba(0, 242, 254, 0.15);
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

@media (min-width: 1280px) {
  .phone-mockup {
    width: 320px;
    height: 640px;
  }
}

.phone-mockup:hover {
  transform: translateY(-10px) rotate3d(1, 1, 0, 3deg);
  box-shadow: 
    0 35px 80px -20px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 242, 254, 0.3),
    0 0 50px rgba(0, 242, 254, 0.25);
}

.phone-screen {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #090d16;
}

/* Dynamic Punch Hole Camera */
.phone-camera {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #000;
  border-radius: 50%;
  z-index: 30;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating App UI Chips */
.floating-chip {
  position: absolute;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  z-index: 20;
  animation: floatChip 6s ease-in-out infinite alternate;
}

@keyframes floatChip {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

/* Shimmer Button Effect */
.btn-shimmer {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transform: rotate(30deg);
  transition: all 0.8s ease;
}

.btn-shimmer:hover::after {
  left: 100%;
}

/* Code Blueprint Grid for App 2 */
.blueprint-card {
  background: linear-gradient(135deg, rgba(14, 21, 38, 0.9) 0%, rgba(10, 15, 28, 0.95) 100%);
  border: 1px dashed rgba(0, 242, 254, 0.25);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 242, 254, 0.03);
  position: relative;
  overflow: hidden;
}

.blueprint-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00f2fe, transparent);
  animation: scanline 4s linear infinite;
}

@keyframes scanline {
  0% { transform: translateY(0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(400px); opacity: 0; }
}

/* Glow Badges */
.badge-beta {
  background: rgba(0, 242, 254, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.badge-dev {
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-yt {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
