/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #000000;
  --dark: #0a0a0a;
  --card-bg: #111111;
  --card-border: #222222;
  --purple: #8B5CF6;
  --purple-light: #A78BFA;
  --purple-dark: #6D28D9;
  --purple-glow: rgba(139, 92, 246, 0.3);
  --white: #FFFFFF;
  --gray-100: #F3F4F6;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-800: #1F1F1F;
  --font-base: Georgia, serif;
  --font-brand: 'General Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 40px;
  border-radius: 100px;
  padding: 12px 20px 12px 28px;
  min-width: 420px;
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 45px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  position: relative;
}

.nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--gray-400);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 100px;
  transition: color 0.3s ease;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link.active {
  color: var(--white);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 6vw 0;
  overflow: hidden;
  background: var(--black);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: linear-gradient(to top, #000000 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

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

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  opacity: 0.6;
}

.hero-layout {
  position: relative;
  z-index: 1000;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.hero-content {
  text-align: center;
}

.hero-title {
  font-family: var(--font-base);
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 8px;
}

.hero-subtitle {
  display: inline-block;
  font-family: var(--font-base);
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 500;
  line-height: 1.2;
  color: #636873;
  font-style: italic;
  transition: color 0.8s ease;
}
.hero-subtitle.color-reveal {
  color: var(--purple-light);
}
.hero-subtitle-in {
  color: #ffffff;
}

.hero-subtitle em {
  font-style: italic;
}

/* Waitlist Card */
.waitlist-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 40px;
  padding: 32px 28px;
  align-self: center;
  box-sizing: border-box;
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.waitlist-label {
  color: var(--white);
  font-size: 25px;
  font-weight: 400;
  margin-bottom: 24px;
  text-align: center;
}

.waitlist-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  padding: 6px 6px 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.waitlist-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-base);
  font-size: 14px;
  color: var(--white);
  outline: none;
  min-width: 0;
  padding: 10px 0;
}

.waitlist-input::placeholder {
  color: var(--gray-500);
}

.waitlist-btn {
  background: var(--purple);
  color: var(--white);
  border: none;
  border-radius: 100px;
  padding: 14px 28px;
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.waitlist-btn:hover {
  background: var(--purple-dark);
}

/* Waitlist typo suggestion */
.waitlist-suggestion {
  margin-top: 12px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--gray-300);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-align: center;
}

.waitlist-suggestion strong {
  color: var(--white);
}

.waitlist-suggestion .suggestion-yes,
.waitlist-suggestion .suggestion-no {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 4px;
}

.waitlist-suggestion .suggestion-yes {
  color: #22C55E;
}

.waitlist-suggestion .suggestion-yes:hover {
  background: rgba(34, 197, 94, 0.15);
}

.waitlist-suggestion .suggestion-no {
  color: var(--gray-400);
}

.waitlist-suggestion .suggestion-no:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Waitlist Lottie overlay */
.waitlist-lottie-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 40px;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.waitlist-lottie-overlay.visible {
  opacity: 1;
}
.waitlist-lottie-overlay dotlottie-wc {
  width: 120px;
  height: 120px;
}

/* Hero Brand — edge-to-edge UXpert with inner shadow */
.hero-brand {
  position: relative;
  z-index: 2;
  width: 100%;
  line-height: 0;
  margin-top: -16vw;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, black 30%);
}

.hero-brand-svg {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

/* ===== FEATURES SECTION — Sticky Horizontal Scroll ===== */
.features-wrapper {
  /* Height determines how much vertical scroll maps to horizontal movement. */
  height: 400vh;
  position: relative;
}

.features-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.features-sticky::before,
.features-sticky::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30vw;
  z-index: 2;
  pointer-events: none;
}

.features-sticky::before {
  left: 0;
  background: linear-gradient(to right, #000000 0%, transparent 100%);
}

.features-sticky::after {
  right: 0;
  background: linear-gradient(to left, #000000 0%, transparent 100%);
}

.features-layout {
  height: 100%;
  overflow: hidden;
}

.features-title {
  /* Title lives inside the track — hidden, positioned via CSS below */
  display: none;
}

.features-cards {
  overflow: hidden;
  height: 100%;
}

.features-track {
  display: flex;
  align-items: center;
  gap: 48px;
  height: 100%;
  will-change: transform;
  padding-left: calc(100vw - clamp(170px, 16vw, 230px) - 64px);
  padding-right: 40vw;
}

.features-track-title {
  font-family: var(--font-base);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 700;
  font-style: bold;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  white-space: nowrap;
  margin-right: 48px;
}

.feature-card {
  flex-shrink: 0;
  width: 515px;
  height: 577px;
}

.feature-card-inner {
  background: linear-gradient(180deg, rgba(80, 40, 160, 0.25) 0%, rgba(30, 15, 60, 0.4) 100%);
  border: 1px solid rgba(139, 92, 246, 0.15);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-visual {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.feature-rive {
  width: 100%;
  height: 100%;
  display: block;
}

.feature-caption {
  font-family: var(--font-base);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  padding: 0 32px 40px;
  text-align: center;
}

/* ===== BLOG SECTION ===== */
.blog {
  padding: 100px 0 80px;
  overflow: hidden;
}

.blog .section-title {
  font-family: var(--font-base);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 700;
  font-style: bold;
  letter-spacing: -0.02em;
  padding-left: clamp(24px, 5vw, 80px);
  margin-bottom: 48px;
}

.blog-carousel {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding-left: clamp(24px, 5vw, 80px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.blog-carousel::-webkit-scrollbar {
  display: none;
}

.blog-track {
  display: flex;
  gap: 24px;
  padding-right: 80px;
}

.blog-card {
  flex-shrink: 0;
  width: 480px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  display: flex;
  overflow: hidden;
  padding: 24px;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.blog-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.blog-image {
  width: 160px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
}

.blog-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: linear-gradient(145deg, #f5f5f5 0%, #e8e8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.blog-image-img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.blog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 0;
}

.blog-title {
  font-family: var(--font-base);
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
}

.blog-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--gray-400);
}

/* ===== BOTTOM CTA ===== */
.bottom-cta {
  position: relative;
  padding: 80px 24px 120px;
  max-width: 600px;
  margin: 0 auto;
}

.bottom-cta-title {
  font-family: var(--font-base);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
}



/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-layout {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-brand {
  animation: fadeInUp 1s ease-out 0.5s both;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-pill {
    min-width: auto;
    padding: 10px 14px 10px 20px;
    gap: 20px;
  }

  .nav-link {
    padding: 6px 14px;
    font-size: 13px;
  }

  .hero-layout {
    padding: 0 24px;
  }

  .waitlist-card {
    padding: 20px 18px;
  }

  .waitlist-label {
    font-size: 20px;
  }

  .features-track {
    padding-left: 24px;
  }

  .feature-card {
    width: 280px;
  }

  .blog-card {
    width: 340px;
    flex-direction: column;
  }

  .blog-image {
    width: 100%;
    height: 160px;
  }

  .blog-image-placeholder {
    min-height: 160px;
  }

  .bottom-cta {
    padding: 60px 24px 80px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 100dvh;
  }

  .hero::after {
    height: 100dvh;
  }

  .nav-pill {
    padding: 8px 12px 8px 16px;
    gap: 12px;
  }

  .nav-logo-img {
    height: 24px;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 12px;
  }

  .features-wrapper {
    height: auto;
  }

  .features-sticky {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .features-sticky::before,
  .features-sticky::after {
    display: none;
  }

  .features-layout {
    height: auto;
    overflow: visible;
  }

  .features-cards {
    overflow: visible;
    height: auto;
  }

  .features-track {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    height: auto;
    will-change: auto;
    transform: none !important;
    padding: 40px 20px 60px;
  }

  .features-track-title {
    margin-right: 0;
    margin-bottom: 8px;
  }

  .feature-card {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 515 / 577;
  }

  .blog-card {
    width: 80vw;
    max-width: 300px;
  }

  .blog-title {
    font-size: 17px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 28px;
  }

  .hero {
    padding-bottom: 3vw;
  }

  .hero-layout {
    gap: 20px;
  }

  .waitlist-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .waitlist-input {
    font-size: 16px;
  }

  .waitlist-form {
    padding: 4px 4px 4px 14px;
  }

  .waitlist-label {
    margin-bottom: 16px;
  }
}
