/* ==========================================================================
   SubLingo Landing Page
   Design tokens inherited from the extension's design system.
   ========================================================================== */

/* ---- Design Tokens ---- */
:root {
  --sl-bg-deep: #06090f;
  --sl-bg-surface: #0c1220;
  --sl-bg-card: #111827;
  --sl-bg-card-hover: #162032;
  --sl-bg-overlay: rgba(6, 9, 15, 0.85);

  --sl-border: #1e2d4a;
  --sl-border-focus: #3B82F6;

  --sl-text-primary: #e2e8f0;
  --sl-text-secondary: #8b9dc3;
  --sl-text-muted: #4a5f8a;

  --sl-accent-blue: #3B82F6;
  --sl-accent-blue-dim: #2563EB;
  --sl-accent-blue-light: #60A5FA;
  --sl-accent-emerald: #10B981;
  --sl-accent-emerald-dim: #059669;
  --sl-accent-amber: #F59E0B;
  --sl-accent-rose: #F43F5E;
  --sl-accent-violet: #8B5CF6;

  --sl-glow-blue: 0 0 20px rgba(59, 130, 246, 0.2), 0 0 60px rgba(59, 130, 246, 0.06);
  --sl-glow-emerald: 0 0 20px rgba(16, 185, 129, 0.2), 0 0 60px rgba(16, 185, 129, 0.06);

  --sl-font-display: 'Playfair Display', Georgia, serif;
  --sl-font-body: 'Instrument Sans', system-ui, sans-serif;
  --sl-font-mono: 'Space Mono', 'Courier New', monospace;

  --sl-radius-sm: 6px;
  --sl-radius-md: 10px;
  --sl-radius-lg: 16px;
  --sl-radius-xl: 24px;
  --sl-radius-full: 100px;

  --sl-transition-fast: 150ms ease;
  --sl-transition-base: 250ms ease;
  --sl-transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  --sl-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --sl-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --sl-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --sl-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--sl-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--sl-text-primary);
  background: var(--sl-bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---- Typography Helpers ---- */
.text-gradient {
  background: linear-gradient(135deg, var(--sl-accent-blue), var(--sl-accent-violet), var(--sl-accent-emerald));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ==========================================================================
   Floating Glyphs Layer (global background, matches auth screen pattern)
   ========================================================================== */

.glyphs-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glyph {
  position: absolute;
  font-family: var(--sl-font-display);
  font-weight: 700;
  color: var(--sl-text-muted);
  opacity: 0;
  animation: glyphDrift linear infinite;
  user-select: none;
  will-change: transform, opacity;
}

@keyframes glyphDrift {
  0% {
    opacity: 0;
    transform: translateY(40px) rotate(-8deg);
  }
  8% {
    opacity: var(--glyph-opacity, 0.07);
  }
  92% {
    opacity: var(--glyph-opacity, 0.07);
  }
  100% {
    opacity: 0;
    transform: translateY(calc(-100vh - 60px)) rotate(8deg);
  }
}

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 300ms ease, box-shadow 300ms ease, backdrop-filter 300ms ease;
}

.nav--scrolled {
  background: rgba(6, 9, 15, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(30, 45, 74, 0.5);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 101;
}

.nav__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--sl-accent-blue), var(--sl-accent-violet));
  color: #fff;
  font-family: var(--sl-font-display);
  font-size: 20px;
  font-weight: 800;
  border-radius: var(--sl-radius-sm);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), 0 0 60px rgba(139, 92, 246, 0.15);
}

.nav__name {
  font-family: var(--sl-font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--sl-text-secondary);
  transition: color var(--sl-transition-fast);
  position: relative;
}

.nav__link:hover {
  color: var(--sl-text-primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sl-accent-blue);
  border-radius: 1px;
  transition: width 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--sl-accent-blue), var(--sl-accent-blue-dim));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--sl-radius-full);
  transition: all var(--sl-transition-fast);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.nav__cta:hover {
  box-shadow: var(--sl-glow-blue);
  transform: translateY(-1px);
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav__mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sl-text-secondary);
  border-radius: 1px;
  transition: all 250ms ease;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto 0 calc((100% - 1200px) / 2 + 0px);
}

/* ---- Aurora Background ---- */

.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}

.aurora__orb--1 {
  width: 500px;
  height: 500px;
  background: var(--sl-accent-blue);
  top: -150px;
  left: -100px;
  animation: auroraFloat1 10s ease-in-out infinite alternate;
}

.aurora__orb--2 {
  width: 400px;
  height: 400px;
  background: var(--sl-accent-violet);
  top: 100px;
  right: -120px;
  animation: auroraFloat2 12s ease-in-out infinite alternate;
}

.aurora__orb--3 {
  width: 300px;
  height: 300px;
  background: var(--sl-accent-emerald);
  bottom: 100px;
  left: 30%;
  opacity: 0.15;
  animation: auroraFloat3 14s ease-in-out infinite alternate;
}

.aurora__orb--4 {
  width: 250px;
  height: 250px;
  background: var(--sl-accent-rose);
  bottom: -50px;
  right: 20%;
  opacity: 0.1;
  animation: auroraFloat1 16s ease-in-out infinite alternate-reverse;
}

@keyframes auroraFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.2); }
}

@keyframes auroraFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 60px) scale(1.15); }
}

@keyframes auroraFloat3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -40px) scale(1.25); }
}

/* ---- Hero Badge ---- */

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--sl-radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--sl-accent-blue-light);
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sl-accent-emerald);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* ---- Hero Title ---- */

.hero__title {
  font-family: var(--sl-font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--sl-accent-blue), var(--sl-accent-violet));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease-in-out infinite;
}

/* ---- Hero Subtitle ---- */

.hero__subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--sl-text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
}

/* ---- Hero Actions ---- */

.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* ---- Hero Stats ---- */

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero__stat-value {
  font-family: var(--sl-font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--sl-text-primary);
}

.hero__stat-pct {
  font-size: 18px;
  color: var(--sl-accent-emerald);
}

.hero__stat-label {
  font-size: 12px;
  color: var(--sl-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--sl-border);
}

/* ---- Hero Visual (Browser Mockup) ---- */

.hero__visual {
  position: absolute;
  right: calc((100% - 1200px) / 2);
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  z-index: 2;
}

.hero__browser {
  background: var(--sl-bg-card);
  border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius-lg);
  overflow: hidden;
  box-shadow: var(--sl-shadow-xl), 0 0 80px rgba(59, 130, 246, 0.08);
}

.hero__browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--sl-bg-surface);
  border-bottom: 1px solid var(--sl-border);
}

.hero__browser-dots {
  display: flex;
  gap: 6px;
}

.hero__browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sl-border);
}

.hero__browser-dots span:first-child { background: #F43F5E; }
.hero__browser-dots span:nth-child(2) { background: #F59E0B; }
.hero__browser-dots span:last-child { background: #10B981; }

.hero__browser-url {
  flex: 1;
  padding: 6px 12px;
  background: var(--sl-bg-deep);
  border-radius: var(--sl-radius-sm);
  font-family: var(--sl-font-mono);
  font-size: 12px;
  color: var(--sl-text-muted);
}

.hero__browser-content {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  overflow: hidden;
}

.hero__video-mock {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}

.hero__video-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
}

/* Subtitle Demo */

.hero__subtitle-demo {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 90%;
}

.hero__sub-original {
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
  margin-bottom: 4px;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  display: inline-block;
  animation: subtitleFadeIn 1s ease 1s both;
}

.hero__sub-translated {
  font-size: 13px;
  color: var(--sl-accent-blue-light);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
  padding: 3px 10px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 4px;
  display: inline-block;
  animation: subtitleFadeIn 1s ease 1.4s both;
}

@keyframes subtitleFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hover Popup Demo */

.hero__hover-popup {
  position: absolute;
  bottom: 80px;
  left: 40px;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius-md);
  padding: 12px 16px;
  min-width: 160px;
  box-shadow: var(--sl-shadow-lg);
  animation: popupFloat 1s ease 2s both;
}

.hero__popup-word {
  font-family: var(--sl-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--sl-text-primary);
  margin-bottom: 2px;
}

.hero__popup-phonetic {
  font-family: var(--sl-font-mono);
  font-size: 11px;
  color: var(--sl-text-muted);
  margin-bottom: 6px;
}

.hero__popup-translation {
  font-size: 13px;
  color: var(--sl-accent-blue-light);
  margin-bottom: 4px;
}

.hero__popup-pos {
  font-size: 11px;
  color: var(--sl-accent-violet);
  font-style: italic;
}

@keyframes popupFloat {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sl-font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn--lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--sl-radius-md);
}

.btn--xl {
  padding: 18px 36px;
  font-size: 17px;
  border-radius: var(--sl-radius-lg);
}

.btn--primary {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, var(--sl-accent-blue), var(--sl-accent-blue-dim));
  border: 1px solid rgba(59, 130, 246, 0.3);
  overflow: hidden;
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--sl-accent-violet), var(--sl-accent-blue));
  opacity: 0;
  transition: opacity 350ms ease;
}

.btn--primary:hover {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3), 0 0 80px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.btn--primary svg,
.btn--primary span {
  position: relative;
  z-index: 1;
}

.btn--ghost {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--sl-radius-md);
  color: var(--sl-text-secondary);
  background: transparent;
  border: 1px solid var(--sl-border);
}

.btn--ghost:hover {
  color: var(--sl-text-primary);
  border-color: var(--sl-text-muted);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

.btn--ghost svg {
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn--ghost:hover svg {
  transform: translate(3px, -3px);
}

/* ==========================================================================
   Section Shared Styles
   ========================================================================== */

.section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section__label {
  display: inline-block;
  font-family: var(--sl-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--sl-accent-blue-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--sl-radius-full);
}

.section__title {
  font-family: var(--sl-font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 17px;
  color: var(--sl-text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

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

.features {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  padding: 32px;
  background: var(--sl-bg-card);
  border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius-lg);
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(59, 130, 246, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 400ms ease;
}

.feature-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(59, 130, 246, 0.05);
}

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

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--sl-radius-md);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.feature-card__icon--blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--sl-accent-blue-light);
}

.feature-card__icon--violet {
  background: rgba(139, 92, 246, 0.1);
  color: var(--sl-accent-violet);
}

.feature-card__icon--emerald {
  background: rgba(16, 185, 129, 0.1);
  color: var(--sl-accent-emerald);
}

.feature-card__icon--amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--sl-accent-amber);
}

.feature-card__icon--rose {
  background: rgba(244, 63, 94, 0.1);
  color: var(--sl-accent-rose);
}

.feature-card__title {
  font-family: var(--sl-font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.feature-card__desc {
  font-size: 14px;
  color: var(--sl-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.feature-card__tags {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.tag {
  font-family: var(--sl-font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--sl-radius-full);
  letter-spacing: 0.02em;
}

.tag--blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--sl-accent-blue-light);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.tag--violet {
  background: rgba(139, 92, 246, 0.1);
  color: var(--sl-accent-violet);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.tag--emerald {
  background: rgba(16, 185, 129, 0.1);
  color: var(--sl-accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.tag--amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--sl-accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.tag--rose {
  background: rgba(244, 63, 94, 0.1);
  color: var(--sl-accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.15);
}

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

.how-it-works {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.steps {
  max-width: 700px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  background: var(--sl-bg-card);
  border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius-lg);
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.step:hover {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateX(8px);
}

.step__number {
  font-family: var(--sl-font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--sl-accent-blue);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
}

.step__content {
  flex: 1;
}

.step__title {
  font-family: var(--sl-font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step__desc {
  font-size: 14px;
  color: var(--sl-text-secondary);
  line-height: 1.6;
}

.step__visual {
  flex-shrink: 0;
}

.step__icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--sl-radius-md);
  background: rgba(59, 130, 246, 0.08);
  color: var(--sl-accent-blue-light);
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.step__connector {
  display: flex;
  justify-content: flex-start;
  padding: 0 0 0 75px;
  height: 32px;
}

.step__line {
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--sl-border), transparent);
  border-radius: 1px;
}

/* ==========================================================================
   Languages Marquee
   ========================================================================== */

.languages-section {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
  overflow: hidden;
}

.marquee {
  margin-top: 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee__track {
  display: flex;
  gap: 24px;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

.marquee__item {
  font-family: var(--sl-font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--sl-text-muted);
  white-space: nowrap;
  opacity: 0.5;
  transition: opacity 300ms ease;
}

.marquee__item--accent {
  color: var(--sl-accent-blue);
  opacity: 0.3;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Platforms Section
   ========================================================================== */

.platforms {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.platforms__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.platform-card {
  position: relative;
  padding: 32px 24px;
  background: var(--sl-bg-card);
  border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius-lg);
  text-align: center;
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 40px rgba(59, 130, 246, 0.05);
}

.platform-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: var(--sl-radius-lg);
  color: #FF0000;
  background: rgba(255, 0, 0, 0.08);
}

.platform-card__icon--netflix {
  color: #E50914;
  background: rgba(229, 9, 20, 0.08);
}

.platform-card__icon--disney {
  color: #113CCF;
  background: rgba(17, 60, 207, 0.08);
}

.platform-card__icon--generic {
  color: var(--sl-text-secondary);
  background: rgba(139, 157, 195, 0.08);
}

.platform-card__name {
  font-family: var(--sl-font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.platform-card__status {
  font-family: var(--sl-font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.platform-card__status--live {
  color: var(--sl-accent-emerald);
}

.platform-card__status--soon {
  color: var(--sl-accent-amber);
}

.platform-card__desc {
  font-size: 13px;
  color: var(--sl-text-secondary);
  line-height: 1.5;
}

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

.cta {
  position: relative;
  z-index: 1;
  padding: 120px 0;
  overflow: hidden;
}

.aurora--cta .aurora__orb--1 {
  width: 400px;
  height: 400px;
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
}

.aurora--cta .aurora__orb--2 {
  width: 350px;
  height: 350px;
  top: 50%;
  right: 10%;
  left: auto;
  background: var(--sl-accent-violet);
  transform: translate(0, -50%);
}

.cta__content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta__title {
  font-family: var(--sl-font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.cta__desc {
  font-size: 18px;
  color: var(--sl-text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta__actions {
  margin-bottom: 20px;
}

.cta__note {
  font-family: var(--sl-font-mono);
  font-size: 12px;
  color: var(--sl-text-muted);
  letter-spacing: 0.02em;
}

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

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--sl-border);
  padding: 40px 24px;
}

.footer__inner {
  max-width: 1200px;
  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: 8px;
}

.footer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--sl-accent-blue), var(--sl-accent-violet));
  color: #fff;
  font-family: var(--sl-font-display);
  font-size: 16px;
  font-weight: 800;
  border-radius: var(--sl-radius-sm);
}

.footer__name {
  font-family: var(--sl-font-display);
  font-size: 16px;
  font-weight: 700;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 14px;
  color: var(--sl-text-muted);
  transition: color var(--sl-transition-fast);
}

.footer__links a:hover {
  color: var(--sl-text-primary);
}

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

/* ==========================================================================
   Scroll Reveal Animation
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 1100px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 140px;
  }

  .hero__content {
    margin: 0 auto;
    max-width: 100%;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__visual {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 560px;
    margin: 48px auto 0;
  }
}

@media (max-width: 900px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platforms__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__mobile-toggle {
    display: flex;
  }

  .nav__links--open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--sl-bg-deep);
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 100;
    animation: mobileMenuIn 300ms ease forwards;
  }

  .nav__links--open .nav__link {
    font-size: 24px;
  }

  .nav__links--open .nav__cta {
    font-size: 18px;
    padding: 14px 32px;
  }

  @keyframes mobileMenuIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .hero__title {
    font-size: clamp(32px, 8vw, 48px);
  }

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

  .step {
    flex-direction: column;
    gap: 16px;
  }

  .step__connector {
    padding-left: 40px;
  }

  .platforms__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

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

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero__stat-divider {
    width: 40px;
    height: 1px;
  }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .glyph {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
