/* ===========================
   Rectifi — Design System
   =========================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* CSS Custom Properties */
:root {
  /* Brand colors */
  --bg-deep: #0A0A0F;
  --bg-mid: #16161D;
  --bg-light: #1C1C24;
  --accent: #818CF8;
  --accent-light: #C4B5FD;
  --accent-glow: rgba(129, 140, 248, 0.3);
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);

  /* Layout */
  --max-width: 1100px;
  --section-padding: 100px 0;
  --border-radius: 16px;
  --border-radius-sm: 10px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(22, 22, 29, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(129, 140, 248, 0.08) 0%, transparent 50%),
    linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--bg-light) 100%);
  z-index: -1;
}

/* Subtle dot grid overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 40%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 40%, black 40%, transparent 85%);
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-brand span {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

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

/* Nav CTA button */
.nav-cta {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--accent), #6366F1);
  color: white !important;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: var(--transition);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
  color: white !important;
}

/* Coming Soon variant (pre-launch) */
.nav-cta-coming-soon {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border);
  color: var(--text-muted) !important;
  cursor: default;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.nav-cta-coming-soon:hover {
  transform: none;
  box-shadow: none;
  color: var(--text-muted) !important;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.08), rgba(196, 181, 253, 0.05));
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 12px;
  color: var(--accent-light);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow:
    0 0 40px rgba(129, 140, 248, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.coming-soon-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(105deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent 60%,
    transparent 100%);
  animation: coming-soon-shimmer 5s ease-in-out infinite;
  animation-delay: 1s;
  pointer-events: none;
}

@keyframes coming-soon-shimmer {
  0% { left: -75%; }
  30% { left: 150%; }
  100% { left: 150%; }
}

.coming-soon-apple {
  width: 20px;
  height: 20px;
  color: var(--accent-light);
  flex-shrink: 0;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 1px;
}

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

.hero {
  padding: 160px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Animated aurora glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(129, 140, 248, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 80%, rgba(196, 181, 253, 0.06) 0%, transparent 50%);
  animation: aurora 12s ease-in-out infinite alternate;
  z-index: -1;
  pointer-events: none;
}

@keyframes aurora {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }

  50% {
    transform: translate(-3%, 2%) scale(1.05);
    opacity: 1;
  }

  100% {
    transform: translate(3%, -2%) scale(1);
    opacity: 0.8;
  }
}

.hero-split {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero-visual {
  flex: 0 0 380px;
  position: relative;
}

.hero-visual .compare-slider {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(129, 140, 248, 0.1);
}

/* Hero Share Card */
.hero-share-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(129, 140, 248, 0.12),
    0 0 60px rgba(129, 140, 248, 0.08);
}

.share-card-img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin-bottom: 32px;
  box-shadow:
    0 20px 60px rgba(129, 140, 248, 0.2),
    0 0 0 1px rgba(129, 140, 248, 0.15);
  animation: float 6s ease-in-out infinite;
}

.hero-wordmark {
  display: block;
  max-width: 275px;
  height: auto;
  margin: 0 auto 32px;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-light);
  margin-bottom: 12px;
  max-width: none;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow:
    0 0 30px rgba(129, 140, 248, 0.35),
    0 0 60px rgba(129, 140, 248, 0.15);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 0 40px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--accent), #6366F1);
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep animation */
.hero-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(105deg,
      transparent 0%,
      transparent 40%,
      rgba(255, 255, 255, 0.15) 45%,
      rgba(255, 255, 255, 0.25) 50%,
      rgba(255, 255, 255, 0.15) 55%,
      transparent 60%,
      transparent 100%);
  animation: shimmer 4s ease-in-out infinite;
  animation-delay: 2s;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    left: -75%;
  }

  30% {
    left: 150%;
  }

  100% {
    left: 150%;
  }
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
  color: white;
}

.hero-cta svg {
  width: 20px;
  height: 20px;
}

/* Apple-style App Store badge */
.hero-cta.app-store-badge {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 10px 24px;
  gap: 8px;
  box-shadow: none;
  color: #000;
}

.hero-cta.app-store-badge svg {
  width: 28px;
  height: 28px;
  color: #000;
}

.hero-cta.app-store-badge:hover {
  background: #e8e8e8;
  box-shadow: none;
  color: #000;
}

.badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.badge-small {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.badge-large {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.hero .hero-subtitle {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-badge-group {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.badge-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  padding-left: 2px;
}

.hero-trust {
  margin-top: 40px;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.7;
}

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

.features {
  padding: var(--section-padding);
  padding-left: 24px;
  padding-right: 24px;
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

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

.feature-card {
  --card-hue: 235;
  background: var(--glass-bg);
  border: none;
  border-radius: var(--border-radius);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

/* Animated gradient border via pseudo-element */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius);
  padding: 1px;
  background: conic-gradient(from var(--border-angle, 0deg),
      hsla(var(--card-hue), 80%, 75%, 0.05),
      hsla(var(--card-hue), 80%, 75%, 0.4),
      hsla(var(--card-hue), 80%, 75%, 0.05),
      hsla(var(--card-hue), 80%, 75%, 0.4),
      hsla(var(--card-hue), 80%, 75%, 0.05));
  -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;
  z-index: -1;
  transition: var(--transition);
}

/* Inner glow per card hue */
.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsla(var(--card-hue), 80%, 75%, 0.5), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  animation: border-spin 3s linear infinite;
}

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

@keyframes border-spin {
  to {
    --border-angle: 360deg;
  }
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ===========================
   Highlights Section (compact 3-col)
   =========================== */

.highlights {
  padding: 80px 24px;
  position: relative;
}

.highlights::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(129, 140, 248, 0.3),
      rgba(196, 181, 253, 0.2),
      rgba(129, 140, 248, 0.3),
      transparent);
}

.highlights-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Highlight Rows */
.highlight-row {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 32px;
  padding: 32px;
  border-radius: var(--border-radius);
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.5s ease-out;
  position: relative;
  overflow: hidden;
}

/* Top accent glow line */
.highlight-row::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.4), transparent);
}

.highlight-row:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(129, 140, 248, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(129, 140, 248, 0.08);
}

.highlight-row:last-child {
  margin-bottom: 0;
}

.highlight-row-reverse {
  flex-direction: row-reverse;
}

.highlight-media {
  flex: 0 0 340px;
}

.highlight-text {
  flex: 1;
}

.highlight-video-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(129, 140, 248, 0.06);
  background: #000;
  height: 480px;
}

.highlight-video-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

#highlight-video-2 {
  object-position: center -81px;
}

.highlight-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  height: 480px;
}

.highlight-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlight-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background: var(--glass-bg);
}

.placeholder-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.highlight-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsla(var(--card-hue), 80%, 75%, 0.25), hsla(var(--card-hue), 60%, 60%, 0.12));
  border: 1px solid hsla(var(--card-hue), 80%, 75%, 0.4);
  box-shadow: 0 0 20px hsla(var(--card-hue), 80%, 70%, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: hsla(var(--card-hue), 80%, 80%, 1);
}

.highlight-text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  color: #FFFFFF;
  text-shadow: 0 0 20px rgba(129, 140, 248, 0.2);
}

.highlight-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.15), rgba(196, 181, 253, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--accent-light);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.how-it-works {
  padding: var(--section-padding);
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  background: linear-gradient(180deg,
      rgba(28, 28, 36, 0.4) 0%,
      rgba(22, 22, 29, 0.2) 50%,
      transparent 100%);
}

/* Gradient divider at top of How It Works */
.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(129, 140, 248, 0.3),
      rgba(196, 181, 253, 0.2),
      rgba(129, 140, 248, 0.3),
      transparent);
}

.how-it-works-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Carousel */
.carousel {
  position: relative;
  margin-top: 48px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(129, 140, 248, 0.06));
  border: 1px solid rgba(129, 140, 248, 0.12);
  border-radius: 24px;
  padding: 48px 72px 40px;
  overflow: hidden;
}

.carousel-track {
  position: relative;
  overflow: hidden;
  height: 340px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateX(105%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.carousel-slide.active {
  position: relative;
  transform: translateX(0);
  pointer-events: auto;
}

.carousel-slide.sliding {
  position: absolute;
}

.carousel-slide.exit-left {
  transform: translateX(-105%);
}

.carousel-slide.exit-right {
  transform: translateX(105%);
}

.carousel-slide.enter-right {
  transform: translateX(105%);
}

.carousel-slide.enter-left {
  transform: translateX(-105%);
}

.step {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.step-content {
  flex: 1;
  text-align: left;
}

.step-visual {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.2), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(129, 140, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-light);
}

.step h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-screenshot {
  text-align: center;
}

.step-screenshot img {
  max-height: 340px;
  width: auto;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Carousel Navigation */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 5;
}

.carousel-prev {
  left: 16px;
}

.carousel-next {
  right: 16px;
}

.carousel-arrow:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(129, 140, 248, 0.3);
  color: var(--text-primary);
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(129, 140, 248, 0.4);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.carousel-dot:hover:not(.active) {
  background: rgba(129, 140, 248, 0.2);
}

/* Comparison Slider */
.compare-slider {
  position: relative;
  width: 280px;
  border-radius: 14px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.compare-after {
  display: block;
  width: 100%;
  height: auto;
}

.compare-after-wrap {
  position: relative;
}

.compare-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 50% 0 0);
  overflow: hidden;
}

.compare-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.compare-handle-line {
  flex: 1;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.compare-handle-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 2px solid rgba(129, 140, 248, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  animation: handle-pulse 2s ease-in-out infinite;
}

@keyframes handle-pulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  }

  50% {
    transform: scale(1.12);
    box-shadow: 0 2px 20px rgba(129, 140, 248, 0.5);
  }
}

.compare-label {
  position: absolute;
  bottom: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.compare-label-before {
  left: 12px;
}

.compare-label-after {
  right: 12px;
}



/* ===========================
   FAQ Section
   =========================== */

.faq {
  padding: var(--section-padding);
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
}

.faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(129, 140, 248, 0.2),
      transparent);
}

.faq-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.faq-accordion {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  transition: var(--transition);
  overflow: hidden;
}

.faq-item:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(129, 140, 248, 0.2);
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  transition: var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--accent-light);
}

.faq-item p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

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

.cta-section {
  padding: 80px 24px;
  text-align: center;
}

.cta-card {
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.1), rgba(99, 102, 241, 0.05));
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-radius: 24px;
  padding: 60px 40px;
}

.cta-card h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.cta-card p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* ===========================
   Email Signup (Hero Inline)
   =========================== */

.hero-email-form {
  margin-top: 12px;
  max-width: 400px;
}

.email-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  max-width: none;
  line-height: 1.4;
}

.email-form {
  width: 100%;
}

.email-input-group {
  display: flex;
  gap: 10px;
  width: 100%;
}

.email-input-group input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.email-input-group input::placeholder {
  color: var(--text-muted);
}

.email-input-group input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.email-input-group button {
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #6366F1);
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.email-input-group button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

.email-input-group button:active {
  transform: translateY(0);
}

.email-input-group button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loading svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.email-message {
  margin-top: 14px;
  font-size: 0.85rem;
  min-height: 1.2em;
  transition: var(--transition);
}

.email-message.success {
  color: #34D399;
}

.email-message.error {
  color: #F87171;
}

.btn-success {
  background: linear-gradient(135deg, #34D399, #10B981) !important;
  cursor: default !important;
  box-shadow: 0 6px 24px rgba(52, 211, 153, 0.3) !important;
}

/* ===========================
   Bottom Email Signup (slim)
   =========================== */

.bottom-signup {
  padding: 48px 24px;
  text-align: center;
  position: relative;
}

.bottom-signup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(129, 140, 248, 0.2),
      transparent);
}

.bottom-signup-inner {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.bottom-signup-inner>p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

.bottom-signup .email-input-group {
  max-width: 440px;
  width: 100%;
}

/* Radial glow accent behind bottom CTA */
.bottom-cta::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(129, 140, 248, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.bottom-cta-inner {
  max-width: 540px;
  margin: 0 auto;
}

.bottom-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bottom-cta p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.bottom-email-form .email-input-group {
  max-width: 440px;
  margin: 0 auto;
}

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

.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--glass-border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

/* ===========================
   Legal Pages (Privacy / Terms)
   =========================== */

.legal-page {
  padding: 120px 24px 80px;
}

.legal-content {
  max-width: 740px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.legal-content .effective-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 48px;
  display: block;
}

.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--accent-light);
  letter-spacing: -0.3px;
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-left: 24px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content strong {
  color: var(--text-primary);
}

.legal-content a {
  color: var(--accent-light);
}

.legal-content a:hover {
  text-decoration: underline;
}

/* ===========================
   Guide Page
   =========================== */

.guide-content h2 {
  scroll-margin-top: 100px;
}

/* Active nav link */
.nav-links a.active {
  color: var(--accent-light);
}

/* Table of Contents */
.guide-toc {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 28px 32px;
  margin: 32px 0 48px;
}

.guide-toc-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px !important;
}

.guide-toc ol {
  columns: 2;
  column-gap: 32px;
  padding-left: 20px;
  margin-bottom: 0;
}

.guide-toc li {
  margin-bottom: 8px;
  break-inside: avoid;
}

.guide-toc a {
  color: var(--accent-light);
  font-size: 0.9rem;
  font-weight: 500;
}

.guide-toc a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* Numbered Steps */
.guide-steps {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 20px 24px;
  transition: var(--transition);
}

.guide-step:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(129, 140, 248, 0.15);
}

.guide-step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.2), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(129, 140, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-light);
}

.guide-step-content {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.guide-step-content strong {
  color: var(--text-primary);
}

/* Tip Callout */
.guide-tip {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.08), rgba(99, 102, 241, 0.04));
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-left: 3px solid var(--accent);
  border-radius: var(--border-radius-sm);
  padding: 18px 24px;
  margin: 24px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.guide-tip strong {
  color: var(--text-primary);
}

/* Bottom CTA */
.guide-diagram {
  display: block;
  max-width: 480px;
  width: 100%;
  margin: 24px auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
}

.guide-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.guide-table th {
  background: rgba(129, 140, 248, 0.12);
  color: var(--accent-light);
  font-weight: 600;
  text-align: left;
  padding: 14px 20px;
  white-space: nowrap;
}

.guide-table td {
  padding: 12px 20px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.guide-table td:first-child {
  color: var(--text-primary);
}

.guide-table tbody tr:hover {
  background: var(--glass-bg-hover);
}

.guide-cta-box {
  text-align: center;
  margin-top: 56px;
  padding: 48px 32px;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.1), rgba(99, 102, 241, 0.05));
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-radius: 24px;
}

.guide-cta-box h2 {
  color: var(--text-primary) !important;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

.guide-cta-box p {
  margin-bottom: 28px;
}

.guide-cta-btn {
  display: inline-flex;
  margin: 0 auto;
}

.guide-cta-btn svg {
  width: 20px;
  height: 20px;
}

/* ===========================
   Blog / "How I Use It" Page
   =========================== */

.blog-hero {
  text-align: center;
  margin-bottom: 48px;
}

.blog-hero h1 {
  margin-bottom: 12px;
}

.blog-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.blog-callout {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.08), rgba(99, 102, 241, 0.04));
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-left: 3px solid var(--accent);
  border-radius: var(--border-radius-sm);
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.blog-callout strong {
  color: var(--text-primary);
}

.blog-content h2 {
  margin-top: 48px;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-links.open {
    display: flex;
  }

  /* Hidden for pre-launch (no nav links to toggle) */
  .nav-toggle {
    display: none;
  }

  .hero {
    padding: 130px 24px 60px;
  }

  .hero-split {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .hero-text {
    text-align: center;
    order: 2;
  }

  .hero-email-form {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-icon {
    width: 80px;
    height: 80px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    display: none;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .hero-cta {
    font-size: 0.85rem;
    padding: 14px 24px;
    gap: 8px;
  }

  .carousel {
    padding: 32px 20px 28px;
  }

  .carousel-track {
    height: 500px;
  }

  .carousel-slide.active {
    position: relative;
  }

  .step {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

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

  .step-number {
    margin: 0 auto 12px;
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .step h3 {
    font-size: 1.2rem;
  }

  .step p {
    font-size: 0.9rem;
  }

  .step-screenshot img {
    max-height: 220px;
    border-radius: 12px;
  }

  .compare-slider {
    width: 200px;
    margin: 0 auto;
  }

  .coming-soon-badge {
    font-size: 0.9rem;
    padding: 12px 24px;
    white-space: nowrap;
  }

  .hero-badge-group {
    width: 100%;
    max-width: 300px;
  }

  .coming-soon-badge {
    width: 100%;
    justify-content: center;
  }

  .hero-email-form {
    width: 100%;
    max-width: 300px;
    margin-top: 20px;
  }

  .hero-email-form .email-input-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-email-form .email-input-group input,
  .hero-email-form .email-input-group button {
    width: 100%;
  }

  .hero-email-form .email-input-group input {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .hero-email-form .email-input-group button {
    padding: 10px 20px;
    font-size: 0.85rem;
    min-width: auto;
  }

  .bottom-signup .email-input-group {
    flex-direction: column;
    max-width: 300px;
  }

  .bottom-signup .email-input-group input {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .bottom-signup .email-input-group button {
    padding: 10px 20px;
    font-size: 0.85rem;
    min-width: auto;
  }

  .highlight-row,
  .highlight-row-reverse {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
  }

  .highlight-media {
    flex: none;
    width: 100%;
    max-width: 280px;
  }

  .highlight-number {
    display: none;
  }

  .highlight-video-wrap {
    height: auto;
    max-height: 360px;
  }

  .highlight-video-wrap video {
    max-height: 360px;
  }

  .highlight-img-wrap {
    height: auto;
  }

  .highlight-img-wrap img {
    height: auto;
    object-fit: contain;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-card {
    padding: 40px 24px;
  }

  .legal-content h1 {
    font-size: 1.8rem;
  }

  .email-input-group {
    flex-direction: column;
  }

  .email-input-group button {
    width: 100%;
    justify-content: center;
  }

  .guide-toc ol {
    columns: 1;
  }

  .guide-cta-box {
    padding: 32px 20px;
  }
}