/* Fastlane Specific Overrides & Layouts */

body {
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================================
   Typography Resets for Fastlane Style
   ============================================================ */
h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
}

h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

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

/* ============================================================
   Announcement Banner
   ============================================================ */
.announcement-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 24px;
  position: relative;
  z-index: 10;
}

.announcement-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.announcement-banner:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.announcement-badge {
  background: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ============================================================
   Fastlane Hero
   ============================================================ */
.hero-section--fastlane {
  position: relative;
  min-height: 100vh;
  padding-top: 64px;
  padding-bottom: 80px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* Smooth fade from hero glow into next section */
.hero-section--fastlane::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

/* Colorful glow behind fan cards */
.hero-glow {
  position: absolute;
  bottom: -5%;
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  max-width: 1200px;
  height: 500px;
  background:
    radial-gradient(ellipse 50% 50% at 30% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 70% 50%, rgba(139, 92, 246, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 60%, rgba(236, 72, 153, 0.12) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
  filter: blur(50px);
  animation: glowPulse 8s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.03); }
}

@media (prefers-color-scheme: dark) {
  .hero-glow {
    opacity: 0.4;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 896px;
  margin: 0 auto;
}

/* Cursor reveal glow */
.cursor-reveal {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, rgba(139,92,246,0.1) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

html[data-theme='light'] .cursor-reveal {
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, rgba(59,130,246,0.08) 40%, transparent 70%);
}

.hero-headline em {
  font-style: italic;
  padding-right: 8px;
}

/* Hero Fan Layout */
.hero-fan {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 80px;
  height: 500px;
  width: 100%;
  flex-shrink: 0;
}

/* Hide side cards — single hero approach */
.hero-fan-card--left,
.hero-fan-card--right {
  display: none;
}

/* Entrance animation */
@keyframes heroCardReveal {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-fan-card {
  position: relative;
  width: min(960px, 80vw);
  border-radius: 16px;
  overflow: visible;
  background: linear-gradient(135deg, rgba(99,102,241,0.4), rgba(139,92,246,0.3), rgba(59,130,246,0.4));
  padding: 2px;
  animation: heroCardReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.4),
    0 32px 80px rgba(99,102,241,0.12);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-fan-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.5),
    0 40px 100px rgba(99,102,241,0.18);
}

.hero-fan-card video,
.hero-fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
  border-radius: 14px;
}

/* Bottom fade into background */
.hero-fan-card--center::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--bg, #0a0a0a) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 0 0 14px 14px;
}

/* Mobile */
@media (max-width: 768px) {
  .hero-fan {
    margin-top: 40px;
    height: auto;
  }

  .hero-fan-card {
    width: min(400px, 92vw);
  }
}

/* ============================================================
   Step-by-Step Sections
   ============================================================ */
.step-section {
  padding: 120px 24px;
  text-align: center;
  position: relative;
}

.step-indicator {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: block;
}

.step-headline {
  margin-bottom: 16px;
}

.step-desc {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 64px;
}

.step-visual {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
}

.step-visual .browser-frame {
  border: none; /* override landing.css */
  border-radius: 0;
}
.step-visual .browser-bar {
  background: var(--bg);
  border-color: var(--border-subtle);
}
.step-visual .browser-url {
  background: var(--border-subtle);
  color: var(--text-muted);
}

/* ============================================================
   Social Proof / Testimonials (Overriding Game)
   ============================================================ */
.testimonials-section {
  padding: 120px 24px;
  background: var(--card-bg);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.testimonial-card-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
  max-width: 1024px;
  margin: 64px auto 0;
}

@media (min-width: 768px) {
  .testimonial-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.testimonial-text {
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border-subtle);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.testimonial-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

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

/* ============================================================
   Pricing Card
   ============================================================ */
.pricing-wrapper {
  max-width: 400px;
  margin: 64px auto 0;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 40px;
  text-align: left;
  box-shadow: var(--shadow-md);
}

.pricing-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 48px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-top: 32px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--text);
}

.pricing-feature svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ============================================================
   Navbar overrides
   ============================================================ */
.nav {
  background: transparent !important;
  border-bottom: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav.nav--scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo, .nav-links a {
  color: var(--text) !important;
}

.nav-links a:hover {
  opacity: 0.7;
}

/* Buttons */
.btn-primary {
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   Footer Overrides
   ============================================================ */
.footer-heading { color: var(--text) !important; }
.footer-link, .footer-social-link, .footer-tagline, .footer-copyright { color: var(--text-muted) !important; transition: color 0.2s; }
.footer-link:hover, .footer-social-link:hover { color: var(--text) !important; }

/* ============================================================
   Crazy Animated Background
   ============================================================ */
.crazy-bg {
  position: fixed;
  inset: 0;
  z-index: -20;
  pointer-events: none;
  background-color: var(--bg);
  overflow: hidden;
}

.crazy-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  animation: orbFloat 20s infinite alternate ease-in-out;
}

.crazy-orb-1 {
  width: 60vh; height: 60vh;
  background: var(--primary, #3b82f6);
  top: -10vh; left: -10vw;
  animation-duration: 25s;
}

.crazy-orb-2 {
  width: 50vh; height: 50vh;
  background: #8b5cf6;
  bottom: -20vh; right: -10vw;
  animation-duration: 30s;
  animation-delay: -5s;
}

.crazy-orb-3 {
  width: 40vh; height: 40vh;
  background: #ec4899;
  top: 40vh; left: 40vw;
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15vw, 15vh) scale(1.2); }
  100% { transform: translate(-15vw, -10vh) scale(0.8); }
}

@media (prefers-color-scheme: dark) {
  .crazy-orb { opacity: 0.3; }
}

/* ============================================================
   Horizontal Cross-Section Scroll
   ============================================================ */
.pin-track {
  width: 100%;
  overflow: hidden;
  background: transparent;
}

.horizontal-scroll-container {
  display: flex;
  width: 400vw;
  height: 100vh;
}

.step-section {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 24px;
}

/* ============================================================
   Connect Page / Footer Overrides (Light Mode fixes)
   ============================================================ */
.connect-hero h1, .connect-section-heading, .tool-name { color: var(--text) !important; }
.connect-hero p, .connect-section-sub, .setup-tab, .setup-steps li, .setup-steps pre code, .tool-desc, .example-prompts li, .connect-bottom-cta p { color: var(--text-muted) !important; }
.server-url-block, .setup-tabs, .setup-steps pre, .tool-card, .example-prompts li { background: var(--card-bg) !important; border-color: var(--border-subtle) !important; }
.setup-steps li { border-left-color: var(--border-subtle) !important; }
