/* ==========================================================================
   ANKORA BRAND SYSTEM (APP-MATCHED THEME)
   ========================================================================== */

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

:root {
  /* Colors */
  --bg-color: #0a1128;
  --surface-color: #151E32;
  --surface-hover: #1e293b;
  --accent-color: #A5B4FC; /* Periwinkle Blue */
  --accent-hover: #c7d2fe;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --border-color: rgba(165, 180, 252, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.5);

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout */
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-hover);
}

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

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
  color: var(--text-color);
  line-height: 1.2;
}

h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  font-weight: 700;
}

p {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 1.25rem; /* 20px for high readability like vividvocab */
  line-height: 1.7;
}

ul {
  margin-bottom: 24px;
  font-size: 1.25rem;
}

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

/* ==========================================================================
   LAYOUT & COMPONENTS
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--accent-color);
  color: #0a1128;
  box-shadow: 0 4px 14px rgba(165, 180, 252, 0.3);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(165, 180, 252, 0.4);
}

.btn-secondary {
  background: var(--surface-color);
  color: var(--accent-color);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: rgba(165, 180, 252, 0.3);
}

/* ==========================================================================
   COMING SOON BADGE
   ========================================================================== */
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 100px;
  background: rgba(165, 180, 252, 0.1);
  border: 1px solid rgba(165, 180, 252, 0.2);
  color: var(--accent-color);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  animation: pulseBadge 3s infinite;
  box-shadow: 0 0 20px rgba(165, 180, 252, 0.1);
}

.store-icon {
  width: 20px;
  height: 20px;
  filter: invert(1);
  opacity: 0.9;
  margin-left: 4px;
}

@keyframes pulseBadge {
  0% { box-shadow: 0 0 0 0 rgba(165, 180, 252, 0.3); }
  70% { box-shadow: 0 0 0 15px rgba(165, 180, 252, 0); }
  100% { box-shadow: 0 0 0 0 rgba(165, 180, 252, 0); }
}

.spinner-ring {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(165, 180, 252, 0.2);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spinRing 1s linear infinite;
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

.loading-dots::after {
  content: '';
  display: inline-block;
  width: 1.5em;
  text-align: left;
  animation: loadingDots 2s infinite steps(4);
}

@keyframes loadingDots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: ''; }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: rgba(10, 17, 40, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px; /* App icon squircle effect */
  box-shadow: 0 6px 16px rgba(165, 180, 252, 0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}

.logo:hover .logo-img {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(165, 180, 252, 0.5);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-color);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Header & Language Alignment */
@media (max-width: 768px) {
  .navbar {
    height: 72px;
    background: rgba(10, 17, 40, 0.9);
  }
  
  .logo {
    font-size: 1.25rem;
    gap: 10px;
  }
  
  .logo-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .nav-links {
    display: flex;
    gap: 12px;
  }

  .nav-links > a {
    display: none; /* Hide text links on mobile, keep language dropdown */
  }

  .lang-dropdown {
    margin-left: 0;
  }

  .lang-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    gap: 6px;
  }

  .lang-content {
    right: -10px;
    min-width: 160px;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative Glows */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(165, 180, 252, 0.15) 0%, rgba(10, 17, 40, 0) 70%);
  z-index: -1;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.35rem;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
}

.hero-image-wrapper {
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .hero {
    padding: 110px 0 60px;
  }

  .hero h1 {
    font-size: clamp(1.95rem, 7.5vw, 2.6rem);
    margin-bottom: 16px;
    line-height: 1.2;
  }

  .hero h1 br {
    display: none; /* Fluid wrapping on mobile */
  }

  .hero p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 28px;
    padding: 0 8px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0 16px;
  }

  .coming-soon-badge {
    padding: 12px 24px;
    font-size: 0.95rem;
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .hero-image-wrapper .phone-mockup {
    max-width: 260px;
  }
}

/* ==========================================================================
   FEATURES (Z-PATTERN)
   ========================================================================== */
.feature-section {
  padding: 100px 0;
}

.feature-section:nth-child(even) {
  background: rgba(21, 30, 50, 0.3);
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 140px;
}

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

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

.feature-content {
  flex: 1;
}

.feature-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-color);
  background: rgba(165, 180, 252, 0.1);
  border: 1px solid rgba(165, 180, 252, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.feature-content h2 {
  position: relative;
  font-size: 2.75rem;
  margin-bottom: 20px;
  padding-top: 16px;
  line-height: 1.2;
}

.feature-content h2::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(270deg, var(--accent-color), transparent);
}

.feature-content h2::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 114px;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px var(--accent-color);
}

.feature-content p {
  font-size: 1.2rem;
  margin-bottom: 24px;
  color: var(--text-secondary);
  opacity: 0.9;
  font-weight: 300;
  line-height: 1.7;
}

.feature-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(21, 30, 50, 0.6);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.feature-pill:hover {
  background: rgba(165, 180, 252, 0.08);
  border-color: rgba(165, 180, 252, 0.35);
  transform: translateX(6px);
}

.feature-pill-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.feature-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   AI HOLOGRAPHIC FRAME
   ========================================================================== */
.phone-mockup-container {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  padding: 4px; /* Minimal padding */
}

/* Remove physical hardware buttons */
.phone-mockup-container::before,
.phone-mockup-container::after {
  display: none;
}

/* Mesmerizing Aura / Glow */
.phone-glow {
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  background: conic-gradient(from 180deg at 50% 50%, rgba(165,180,252,0.8) 0deg, rgba(99,102,241,0.6) 120deg, rgba(236,72,153,0.5) 240deg, rgba(165,180,252,0.8) 360deg);
  filter: blur(50px);
  z-index: 0;
  border-radius: 50%;
  animation: spinGlow 8s linear infinite;
}

@keyframes spinGlow {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

.phone-mockup {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 300px;
  border-radius: 36px;
  border: 4px solid rgba(165, 180, 252, 0.4); /* Glowing semi-transparent border */
  background: rgba(10, 17, 40, 0.6); /* Dark frosted glass */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 8px; /* Inner spacing for the screen */
  box-shadow: 
    0 0 40px rgba(99, 102, 241, 0.5), /* Outer neon glow */
    inset 0 0 20px rgba(165, 180, 252, 0.3); /* Inner glass reflection */
  overflow: hidden;
}

/* Sleek AI Sensor (Instead of a bulky notch) */
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: rgba(165, 180, 252, 0.9);
  border-radius: 10px;
  z-index: 10;
  box-shadow: 0 0 12px rgba(165, 180, 252, 1); /* Glowing sensor light */
}

/* Subtle Screen Glass Reflection */
.phone-mockup::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 5;
  border-radius: 32px;
}

.phone-mockup img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   DUAL PHONE MOCKUP (INTERACTIVE MULTI-SCREEN)
   ========================================================================== */
.phone-mockup-dual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  min-height: 520px;
  margin: 0 auto;
}

.phone-mockup-dual .phone-mockup-container {
  position: absolute;
  width: 270px; /* Explicit width prevents image collapse */
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.phone-mockup-dual .phone-mockup-container:nth-child(1) {
  left: 15px;
  top: 10px;
  transform: scale(0.9) rotate(-3deg);
  z-index: 1;
  opacity: 0.92;
  filter: brightness(0.95);
}

.phone-mockup-dual .phone-mockup-container:nth-child(2) {
  right: 15px;
  top: 0;
  transform: scale(0.98) rotate(3deg);
  z-index: 2;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.phone-mockup-dual:hover .phone-mockup-container:nth-child(1) {
  transform: scale(0.95) translateX(-20px) rotate(-6deg);
  opacity: 1;
  filter: brightness(1);
  z-index: 3;
}

.phone-mockup-dual:hover .phone-mockup-container:nth-child(2) {
  transform: scale(1.02) translateX(20px) rotate(5deg);
  z-index: 2;
}

/* Mobile & Click Interactive Tap-to-Swap State */
.phone-mockup-dual.swapped .phone-mockup-container:nth-child(1) {
  transform: scale(1) translateX(15px) rotate(2deg) !important;
  z-index: 5 !important;
  opacity: 1 !important;
  filter: brightness(1) !important;
}

.phone-mockup-dual.swapped .phone-mockup-container:nth-child(2) {
  transform: scale(0.85) translateX(-15px) rotate(-4deg) !important;
  z-index: 1 !important;
  opacity: 0.8 !important;
  filter: brightness(0.88) !important;
}

@media (max-width: 992px) {
  .feature-row, .feature-row.reverse {
    flex-direction: column !important;
    text-align: left;
    gap: 36px;
    margin-bottom: 80px;
  }
  .feature-content h2 {
    font-size: clamp(1.65rem, 5.5vw, 2.2rem);
    padding-top: 0;
    line-height: 1.25;
    margin-bottom: 16px;
  }
  .feature-content h2::before,
  .feature-content h2::after {
    display: none;
  }
  .feature-content p {
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 20px;
  }
  .feature-category {
    font-size: 0.8rem;
    padding: 5px 12px;
    margin-bottom: 12px;
  }
  .feature-pill {
    padding: 11px 16px;
    font-size: 0.92rem;
  }
  .phone-mockup-dual {
    min-height: 440px;
    max-width: 380px;
  }
  
  /* Mobile-Optimized Anchor Animation */
  .global-anchor-container {
    display: block;
    top: -180px;
    opacity: 0.85;
    pointer-events: none;
    z-index: 50;
  }
  .global-anchor-container.dropping .chain-clip {
    height: 32vh; /* Scaled drop height for tablet */
  }
  .demo-anchor {
    width: 100px;
    height: 100px;
    margin-top: -20px !important; /* Locks chain directly into anchor loop */
    display: block;
  }
  .link-v {
    width: 10px;
    height: 18px;
    border: 3px solid var(--accent-color);
    margin-bottom: -3px;
  }
  .link-h {
    width: 18px;
    height: 10px;
    border: 3px solid var(--accent-color);
    margin-bottom: -3px;
  }
}

@media (max-width: 480px) {
  .feature-row, .feature-row.reverse {
    margin-bottom: 64px;
    gap: 28px;
  }
  .feature-content h2 {
    font-size: clamp(1.5rem, 6vw, 1.85rem);
  }
  .feature-content p {
    font-size: 0.95rem;
  }
  .feature-pills {
    gap: 8px;
    margin-top: 14px;
  }
  .feature-pill {
    padding: 10px 12px;
    font-size: 0.85rem;
    gap: 8px;
  }
  .feature-pill-icon {
    font-size: 1.05rem;
  }
  .phone-mockup-dual {
    min-height: 420px;
    max-width: 320px;
  }
  .phone-mockup-dual .phone-mockup-container {
    width: 200px; /* Explicit width prevents image collapse */
  }
  .phone-mockup-dual .phone-mockup {
    max-width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 26px;
    border: 3px solid rgba(165, 180, 252, 0.4);
    overflow: hidden;
  }
  .phone-mockup-dual .phone-mockup-container:nth-child(1) {
    left: 0;
    top: 8px;
    transform: scale(0.9) rotate(-3deg);
  }
  .phone-mockup-dual .phone-mockup-container:nth-child(2) {
    right: 0;
    top: 0;
    transform: scale(0.96) rotate(3deg);
  }
  .phone-mockup {
    max-width: 270px;
    border-radius: 26px;
    border: 3px solid rgba(165, 180, 252, 0.4);
    background: transparent;
    padding: 0;
    overflow: hidden;
  }
  .phone-mockup img {
    border-radius: 23px;
    width: 100%;
    height: auto;
    display: block;
  }
  .phone-mockup::after {
    border-radius: 23px;
    opacity: 0.5; /* Removes excessive top-left white sheen */
  }
  .phone-mockup::before {
    top: 10px;
    width: 44px;
    height: 3px;
  }
  .phone-glow {
    filter: blur(35px);
  }
  .global-anchor-container.dropping .chain-clip {
    height: 24vh;
  }
  .demo-anchor {
    width: 80px;
    height: 80px;
    margin-top: -24px !important; /* Deep lock into chain loop on phones */
    display: block;
  }
  .link-v {
    width: 8px;
    height: 14px;
    border: 2.5px solid var(--accent-color);
    margin-bottom: -2px;
  }
  .link-h {
    width: 14px;
    height: 8px;
    border: 2.5px solid var(--accent-color);
    margin-bottom: -2px;
  }
}

/* ==========================================================================
   CTA / DOWNLOAD SECTION
   ========================================================================== */
.cta-section {
  padding: 120px 0;
  text-align: center;
}

.cta-box {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 64px 24px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 20px 40px var(--shadow-color);
}

.cta-box h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

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

@media (max-width: 768px) {
  .cta-section {
    padding: 60px 0;
  }
  .cta-box {
    padding: 36px 18px;
    border-radius: 20px;
  }
  .cta-box h2 {
    font-size: 1.85rem;
  }
  .cta-box p {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 64px 0 32px;
  background: var(--bg-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.footer-logo img {
  height: 48px;
  margin-bottom: 16px;
}

.footer-col p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 0 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .footer-col h4 {
    margin-bottom: 12px;
    font-size: 1rem;
  }
  .footer-links {
    gap: 10px;
  }
  .logo {
    justify-content: center;
  }
}

/* ==========================================================================
   LEGAL PAGES (Privacy & Terms)
   ========================================================================== */
.legal-content {
  padding-top: 100px;
  padding-bottom: 80px;
}
.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.page-meta {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}
.meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(165, 180, 252, 0.1);
  color: var(--accent-color);
  border: 1px solid var(--border-color);
}
.intro {
  font-size: 1.1rem;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
  line-height: 1.7;
  color: #cbd5e1;
}
.section {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}
.section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-top: 24px;
  margin-bottom: 12px;
}
.section p {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: #cbd5e1;
  line-height: 1.7;
}
.section ul, .section ol {
  margin-bottom: 20px;
  padding-left: 24px;
  font-size: 1.05rem;
}
.section ul li, .section ol li {
  padding: 6px 0;
  color: #cbd5e1;
  line-height: 1.65;
}
.section ul li::marker {
  color: var(--accent-color);
}
.legal-list {
  list-style: none;
  padding-left: 0;
}
.legal-list li {
  padding: 8px 0 8px 24px;
  position: relative;
}
.legal-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--accent-color);
  font-size: 1.2rem;
}
strong {
  color: var(--text-primary);
  font-weight: 600;
}
.definition-list {
  margin-top: 16px;
}
.definition-list dt {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 16px;
  margin-bottom: 4px;
}
.definition-list dd {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-left: 0;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 2px solid rgba(165, 180, 252, 0.3);
  line-height: 1.6;
}

/* Callout Boxes */
.callout-box {
  border-radius: 14px;
  padding: 20px 24px;
  margin: 24px 0;
  line-height: 1.65;
  font-size: 1rem;
}
.callout-box p {
  font-size: 1rem;
  margin-bottom: 12px;
}
.callout-box p:last-child {
  margin-bottom: 0;
}
.callout-box ul, .callout-box ol {
  font-size: 1rem;
  margin-bottom: 12px;
}
.callout-box li {
  font-size: 1rem;
  padding: 4px 0;
}
.callout-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.05);
}
.callout-warning .callout-title {
  color: #fbbf24;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.callout-warning p, .callout-warning li {
  color: #e2e8f0;
}
.callout-info {
  background: rgba(165, 180, 252, 0.06);
  border: 1px solid rgba(165, 180, 252, 0.25);
}
.callout-info .callout-title {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.callout-info p, .callout-info li {
  color: #cbd5e1;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
  background: rgba(165, 180, 252, 0.1);
  color: var(--accent-color);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(165, 180, 252, 0.15);
}

/* Legal Tables */
.legal-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(21, 30, 50, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  min-width: 600px;
}
.legal-table th {
  background: rgba(165, 180, 252, 0.1);
  color: var(--accent-color);
  font-weight: 700;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.legal-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(165, 180, 252, 0.06);
  color: #cbd5e1;
  vertical-align: top;
  line-height: 1.6;
  font-size: 0.95rem;
}
.legal-table tr:last-child td {
  border-bottom: none;
}
.legal-table tr:hover td {
  background: rgba(165, 180, 252, 0.03);
}
.legal-table td strong {
  color: var(--text-primary);
}
.legal-table td em {
  color: #94a3b8;
  font-style: normal;
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
}

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

.animate-up {
  opacity: 0; /* JS will trigger this */
}

.animate-up.visible {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

/* Anchor Drop Animation */
@keyframes dropAnchor {
  0% {
    transform: translateY(-200px) rotate(15deg);
    opacity: 0;
  }
  60% {
    transform: translateY(20px) rotate(-10deg);
    opacity: 1;
  }
  80% {
    transform: translateY(-5px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0);
  }
}

.logo-drop {
  animation: dropAnchor 1.2s cubic-bezier(0.21, 1.11, 0.81, 0.99) forwards;
}

/* ==========================================================================
   APP LOADING DEMO (Recreated from DeckLoadingScreen.kt)
   ========================================================================== */
.demo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 33, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-card {
  width: 90%;
  max-width: 400px;
  background: rgba(21, 30, 50, 0.4);
  border: 1px solid rgba(165, 180, 252, 0.3);
  border-radius: 24px;
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.close-demo {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
}
.close-demo:hover { color: var(--text-color); }

/* ==========================================================================
   GLOBAL SCROLL ANCHOR
   ========================================================================== */
.global-anchor-container {
  position: fixed;
  top: -250px; /* Hide completely off-screen */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000; /* Higher than demo-overlay */
  pointer-events: none; /* Let user click through */
}

/* Anchor Animation */
.demo-anim-container {
  height: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.mount-point {
  width: 12px;
  height: 12px;
  background: var(--accent-color);
  border-radius: 50%;
  border: 4px solid rgba(165, 180, 252, 0.25);
  z-index: 2;
}

@keyframes pendulumSwing {
  0% { transform: rotate(22deg); }
  50% { transform: rotate(-18deg); }
  100% { transform: rotate(22deg); }
}

.global-anchor-container .pendulum {
  transform-origin: top center;
  animation: pendulumSwing 5.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes anchorBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(40px); }
}

.global-anchor-container.dropping .demo-anim-container {
  animation: anchorBob 7.5s ease-in-out infinite;
}

.global-anchor-container .chain-clip {
  overflow: hidden;
  height: 0;
  transition: height 3.5s cubic-bezier(0.25, 0, 0, 1);
}

.global-anchor-container.dropping .chain-clip {
  height: 60vh; /* Drop down even further */
}

.chain-links {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.link-v {
  width: 16px;
  height: 26px;
  border: 5px solid var(--accent-color);
  border-radius: 8px;
  margin-bottom: -3px;
}
.link-h {
  width: 26px;
  height: 16px;
  border: 5px solid var(--accent-color);
  border-radius: 8px;
  margin-bottom: -3px;
}

.demo-anchor {
  width: 220px;
  height: 220px;
  margin-top: -16px; /* Connect to chain with zero gap */
  display: block;
}

/* Text and Progress */
.demo-title {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-bottom: 24px;
  margin-top: 16px;
}

.demo-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(165, 180, 252, 0.15);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-bottom: 32px;
}

@keyframes progressMove {
  from { left: -50%; }
  to { left: 100%; }
}

.demo-progress-bar {
  width: 50%;
  height: 100%;
  background: var(--accent-color);
  border-radius: 4px;
  position: absolute;
  animation: progressMove 1.5s linear infinite;
}

.demo-text-carousel {
  height: 130px;
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-text {
  position: absolute;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: all 1.4s cubic-bezier(0.25, 1, 0.5, 1);
  text-align: center;
  width: 100%;
  padding: 0 16px;
}

.carousel-text.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  color: var(--accent-color);
}


/* ==========================================================================
   LANGUAGE DROPDOWN
   ========================================================================== */
.lang-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 16px;
}

.lang-btn {
  background: var(--surface-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 100px; /* Pill shape */
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lang-btn:hover {
  background: var(--surface-hover);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(165, 180, 252, 0.2);
}

/* Add a tiny downward arrow to the button */
.lang-btn::after {
  content: '▼';
  font-size: 0.6rem;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.lang-dropdown:hover .lang-btn::after,
.lang-dropdown:focus-within .lang-btn::after,
.lang-dropdown.active .lang-btn::after {
  transform: rotate(180deg);
}

.lang-content {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transform-origin: top right;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 12px;
  background: var(--surface-color); /* Solid background for readability */
  min-width: 180px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border-color);
  border-radius: 16px;
  z-index: 1001;
  overflow: hidden;
  padding: 8px 0;
}

.lang-content a {
  color: var(--text-primary);
  padding: 12px 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  transition: all 0.2s;
  font-weight: 500;
  border-left: 3px solid transparent;
}

.lang-content a:hover {
  background: rgba(165, 180, 252, 0.1);
  color: var(--accent-color);
  border-left: 3px solid var(--accent-color);
}

.lang-dropdown:hover .lang-content,
.lang-dropdown:focus-within .lang-content,
.lang-dropdown.active .lang-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
