:root {
  /* Premium Palette */
  --bg-deep: #020604;
  /* Very dark green/black */
  --bg-surface: #061810;
  /* Dark green tone */
  --bg-surface-translucent: rgba(6, 24, 16, 0.6);
  --primary: #33A854;
  /* Emerald 500 */
  --primary-glow: #34d399;
  /* Emerald 400 */
  --accent: #2dd4bf;
  /* Teal 400 */
  --secondary: #2dd4bf;
  --text-main: #ecfdf5;
  /* Mint white */
  --text-muted: #9ca3af;
  --border-light: rgba(16, 185, 129, 0.15);
  --glass-highlight: rgba(16, 185, 129, 0.05);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  /* Update header-height to match scrolled state (60px) */
  --header-height: 60px;

  /* Gradients - Cyber Green */
  --mesh-gradient: radial-gradient(at 0% 0%, hsla(160, 20%, 8%, 1) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(150, 40%, 15%, 1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(170, 40%, 10%, 1) 0, transparent 50%);
}

[data-theme="light"] {
  --bg-deep: #ffffff;
  --bg-surface: #f0fdf4;
  --bg-surface-translucent: rgba(255, 255, 255, 0.8);
  --text-main: #064e3b;
  /* Darker green for main text */
  --text-muted: #1f2937;
  /* Darker gray for subtitles */
  --border-light: rgba(16, 185, 129, 0.1);
  --glass-highlight: rgba(16, 185, 129, 0.05);
  --mesh-gradient: radial-gradient(at 0% 0%, hsla(150, 80%, 96%, 1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(170, 80%, 96%, 1) 0, transparent 50%);
  --primary: #059669;
  /* Darker emerald for light mode */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Scroll Animation Performance Optimization ===== */
.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.fade-in-element.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Remove will-change after animation to free GPU memory */
.fade-in-element.animate-in {
  will-change: auto;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image: var(--mesh-gradient);
  /* Removed background-attachment: fixed for better scroll performance */
  background-size: 100% 100vh;
  background-repeat: no-repeat;
}

/* Grid Pulse Container */
#grid-pulse-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
  /* Performance: isolate this layer */
}

/* ===== DATA TRANSMISSION EFFECTS ===== */

/* The fading trail left behind the signal - Head is at the end of the element */
.signal-trail {
  position: absolute;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.7));
  animation: trail-fade var(--trail-duration, 1.5s) ease-in-out forwards;
}

.signal-trail.horizontal {
  height: 2px;
}

.signal-trail.vertical {
  width: 2px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.7));
}

@keyframes trail-fade {
  0% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.signal-head {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(45, 212, 191, 1) 50%, transparent 100%);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(45, 212, 191, 0.6);
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  z-index: 2;
  will-change: left, top, opacity;
  contain: layout style;
}

/* Cross glow at grid intersections - opacity controlled by JS */
.grid-cross {
  position: absolute;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  /* Removed transition to allow smooth JS-driven frame updates */
}

.grid-cross::before,
.grid-cross::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.grid-cross::before {
  width: var(--cross-size, 30px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cross-color, rgba(45, 212, 191, 0.9)), transparent);
  box-shadow: 0 0 10px var(--cross-color, rgba(45, 212, 191, 0.6));
}

.grid-cross::after {
  width: 2px;
  height: var(--cross-size, 30px);
  background: linear-gradient(180deg, transparent, var(--cross-color, rgba(45, 212, 191, 0.9)), transparent);
  box-shadow: 0 0 10px var(--cross-color, rgba(45, 212, 191, 0.6));
}


/* Destination cross - stays lit then fades */
.grid-cross.destination {
  --cross-size: 40px;
  --cross-color: rgba(16, 185, 129, 1);
  animation: cross-arrive 1s ease-out forwards;
}

@keyframes cross-arrive {
  0% {
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  60% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}






/* Static Base Grid */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to right, rgba(16, 185, 129, 0.25) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 185, 129, 0.25) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
  pointer-events: none;
  opacity: 0.6;
  transform: translateZ(0);
  /* GPU acceleration */
  backface-visibility: hidden;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to right, rgba(45, 212, 191, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(45, 212, 191, 0.15) 1px, transparent 1px);
  background-size: 100px 100px;
  z-index: -3;
  pointer-events: none;
  opacity: 0.5;
  transform: translateZ(0);
  /* GPU acceleration */
  backface-visibility: hidden;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--text-muted));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 1.5rem;
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
  font-weight: 400;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Glass Header */
header {
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface-translucent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

header.scrolled {
  background: rgba(3, 7, 18, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] header.scrolled {
  background: rgba(255, 255, 255, 0.85);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

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

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  /* Reduced from 12px 24px */
  border-radius: 99px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  color: #064e3b;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  transition: 0.5s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #ffffff 0%, #e0f2f1 100%);
}

.btn-primary:hover::before {
  left: 100%;
}

[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  color: #fff;
  border: 1px solid rgba(6, 78, 59, 0.1);
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.2);
}

[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 8px 24px rgba(6, 78, 59, 0.3);
  opacity: 0.95;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(4px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon {
  width: 38px;
  /* Reduced from 40px */
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  color: var(--text-main);
  background: var(--glass-highlight);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Language Dropdown */
.lang-dropdown-container {
  display: inline-block;
}

.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 8px;
  min-width: 120px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lang-dropdown-menu.active {
  display: block;
  animation: fadeIn 0.15s ease-out;
}

.lang-option {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  font-weight: 500;
  /* Ensure <a> tags also display correctly */
  display: block;
  text-decoration: none;
}

.lang-option:hover {
  background: var(--glass-highlight);
  color: var(--text-main);
}

.lang-option.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  position: relative;
}

@keyframes glow-drift {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }

  50% {
    transform: translate(-40%, -60%) scale(1.2);
    opacity: 0.5;
  }
}

@keyframes glow-pulse {

  0%,
  100% {
    filter: blur(60px) brightness(1);
  }

  50% {
    filter: blur(100px) brightness(1.3);
  }
}

.hero-glow {
  position: absolute;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.5) 0%, rgba(45, 212, 191, 0.2) 40%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
  animation: glow-drift 6s ease-in-out infinite, glow-pulse 4s ease-in-out infinite;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--primary);
  /* Changed to variable */
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-visual {
  margin-top: 5rem;
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotateX(2deg);
  }

  50% {
    transform: translateY(-10px) rotateX(4deg);
  }

  100% {
    transform: translateY(0px) rotateX(2deg);
  }
}

/* Feature Cards (Spotlight Effect) */
.features-section {
  padding: 6rem 0 1rem;
}

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

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  position: relative;
  padding: 32px 24px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-2px);
}

.card::before {
  content: "";
  position: absolute;
  top: var(--y, -50%);
  left: var(--x, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.card p {
  font-size: 1rem;
  line-height: 1.7;
}

/* Stats / Trust Section */
.trust-section {
  background: linear-gradient(90deg,
      rgba(6, 24, 16, 0) 0%,
      rgba(16, 185, 129, 0.05) 50%,
      rgba(6, 24, 16, 0) 100%);
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  backdrop-filter: blur(5px);
  margin-top: 40px;
  padding: 6rem 0;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-item h4 {
  font-size: 2.5rem;
  background: linear-gradient(to bottom, var(--text-main), var(--text-muted));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}



.spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.spec-badge i {
  font-size: 1.1em;
  color: var(--primary);
}

.spec-badge:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--primary);
  color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* Footer (Clean) */
footer {
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--border-light);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  flex: 0 0 280px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-highlight);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  gap: 4rem;
  flex: 1;
  justify-content: flex-end;
}

.footer-col h5 {
  color: var(--text-main);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 2rem;
  /* border-top: 1px solid var(--border-light); */
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .header-inner {
    /* Keep row layout */
    gap: 0.5rem;
    height: 60px;
    padding: 0;
  }

  .nav-links {
    display: none;
  }

  /* Desktop/Mobile Toggles */
  .desktop-only {
    display: none !important;
  }

  .hero-mobile-visual {
    display: block !important;
    margin-top: 3rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer-brand {
    flex: none;
    text-align: center;
  }

  .footer-desc {
    max-width: 100%;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-links {
    flex-direction: column;
    /* Stack vertically */
    gap: 2rem;
    align-items: center;
    /* Ensure center alignment */
  }

  .footer-col {
    text-align: center;
  }

  /* Trust Section Mobile Optimization */
  .trust-section {
    padding: 2rem 0;
    margin-top: 20px;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-items: center;
  }

  .stat-item {
    width: auto;
  }

  .stat-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
  }

  .spec-badge {
    margin-top: 8px;
    padding: 4px 10px;
    font-size: 0.65rem;
    gap: 4px;
  }

  .spec-badge i {
    font-size: 0.9em;
  }
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  padding: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  position: relative;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.quote-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 2rem;
  color: var(--border-light);
  opacity: 0.5;
}

/* ===== Download Page Styles ===== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 3rem;
}

.download-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.download-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.4);
}

.highlight-card {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
}

.web-card {
  background: linear-gradient(145deg, var(--bg-surface), rgba(16, 185, 129, 0.05));
}

.platform-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
  display: inline-block;
}

.platform-icon i {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.platform-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.platform-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.req-list {
  margin-bottom: 2rem;
  text-align: left;
  display: inline-block;
}

.req-item {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.req-item i {
  color: var(--primary);
  margin-right: 8px;
}

.btn-block {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Gradient Text Universal */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle-lg {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.section-header-center {
  text-align: center;
  margin-bottom: 3rem;
}

/* Release Logs */
.release-logs-section {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-light);
}

.release-logs-container {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.what-new-item {
  background: var(--bg-surface);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.what-new-header {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-main);
  font-size: 1.1rem;
}

.what-new-header span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-left: 8px;
}

.what-new-log {
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .release-logs-section {
    margin-top: 3rem;
    padding-top: 2rem;
  }

  .release-logs-container {
    padding: 0 1rem;
    gap: 16px;
  }

  .what-new-item {
    padding: 16px;
    border-radius: 16px;
  }

  .what-new-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    font-size: 1rem;
  }

  .what-new-header span {
    margin-left: 0;
    font-size: 0.85rem;
  }

  .what-new-log ul {
    padding-left: 0 !important;
    margin: 0;
    list-style-position: inside;
  }
}

/* ===== Docs (Privacy & Terms) Styles ===== */
.doc-main {
  padding-top: 80px;
  padding-bottom: 3rem;
  min-height: 80vh;
}

.pp-meta-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.pp-meta-info h1 {
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-main);
}

.pp-meta-info p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.pp-meta-info img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pp-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  position: relative;
}

.doc-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.toc-menu {
  list-style: none;
  padding: 0;
}

.toc-menu li {
  margin-bottom: 12px;
}

.toc-menu a {
  display: block;
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
  cursor: pointer;
}

.toc-menu a:hover,
.toc-menu a.nav-active {
  color: var(--primary);
  font-weight: 500;
}

.toc-menu ul {
  list-style: none;
  padding-left: 16px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.toc-menu ul a {
  font-size: 0.9rem;
}

.split-line {
  background: var(--border-light);
  width: 1px;
  height: 100%;
}

.md-container {
  color: var(--text-muted);
  line-height: 1.8;
}

.md-container h1,
.md-container h2,
.md-container h3 {
  color: var(--text-main);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.md-container p {
  margin-bottom: 1rem;
}

.md-container ul,
.md-container ol {
  margin-bottom: 1rem;
  padding-left: 20px;
}

@media (max-width: 900px) {
  .pp-meta-info {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pp-meta-info img {
    order: -1;
    margin: 0 auto;
  }

  .pp-layout {
    grid-template-columns: 1fr;
  }

  .doc-sidebar,
  .split-line {
    display: none;
  }
}

/* User Agreement Specific */
.ua-container {
  display: grid;
  gap: 64px;
  color: var(--text-muted);
}

.ua-container h1 {
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  text-align: center;
  color: var(--text-main);
}

@media (max-width: 600px) {
  .ua-container {
    gap: 48px;
  }
}


.quote-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-main);
  opacity: 0.9;
  margin-bottom: 2rem;
  min-height: 80px;
  font-style: italic;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.9rem;
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 0 2px var(--border-light);
}

.user-info h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: var(--text-main);
}

.user-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero Chat UI */
.hero-visual-wrapper {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.chat-ui-container {
  width: 100%;
  max-width: 500px;
  height: 480px;
  background: rgba(6, 24, 16, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.chat-ui-container:hover {
  transform: rotateY(0) rotateX(0);
}

/* Sidebar */
.chat-sidebar {
  width: 140px;
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid rgba(16, 185, 129, 0.1);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.05);
}

.sidebar-search {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sidebar-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.sidebar-item:hover,
.sidebar-item.active {
  background: rgba(16, 185, 129, 0.1);
}

.sidebar-item .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: white;
}

.sidebar-item .item-info {
  flex: 1;
  min-width: 0;
}

.sidebar-item .item-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.sidebar-item .name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-item .time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.sidebar-item .item-msg {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Chat */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(6, 24, 16, 0.4);
}

.chat-header {
  padding: 16px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
}

.header-text {
  display: flex;
  flex-direction: column;
}

.header-text .name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.header-text .status {
  font-size: 0.7rem;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.chat-actions {
  display: flex;
  gap: 12px;
  color: var(--primary);
  opacity: 0.8;
  font-size: 0.9rem;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.msg-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
  animation: fadeUp 0.5s ease backwards;
}

.msg-bub.mobile-app-preview {
  background: linear-gradient(145deg, rgba(6, 24, 16, 0.8), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.mobile-preview-header {
  text-align: center;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 16px;
}

.mobile-message-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.msg-bubble-preview {
  max-width: 80%;
  padding: 12px;
  border-radius: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.msg-bubble-preview.incoming {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: 4px;
}

.msg-bubble-preview.outgoing {
  align-self: flex-end;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-bottom-right-radius: 4px;
}

.text-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.line {
  height: 4px;
  /* Delicacy: reduced from 6px */
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  /* More subtle */
  width: 100px;
}

.line.short {
  width: 60px;
}

.line.medium {
  width: 80px;
  background: rgba(16, 185, 129, 0.2);
}

.secure-badge {
  text-align: center;
  font-size: 0.75rem;
  color: var(--primary);
  background: rgba(16, 185, 129, 0.08);
  /* More subtle */
  padding: 6px;
  border-radius: 99px;
  display: inline-block;
  width: 100%;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.msg-bubble.incoming {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px 16px 16px 16px;
  color: var(--text-main);
  align-self: flex-start;
}

.msg-bubble.outgoing {
  background: var(--primary);
  border-radius: 16px 4px 16px 16px;
  color: #020604;
  align-self: flex-end;
  animation-delay: 0.2s;
}

.msg-meta {
  font-size: 0.65rem;
  margin-top: 4px;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}

.msg-bubble.incoming .msg-meta {
  justify-content: flex-start;
}

.security-badge {
  align-self: center;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--primary);
  font-size: 0.75rem;
  padding: 6px 16px;
  border-radius: 99px;
  margin: 16px 0;
  animation: fadeUp 0.5s ease backwards;
  animation-delay: 0.4s;
}

.chat-input-area {
  padding: 16px;
  border-top: 1px solid rgba(16, 185, 129, 0.1);
}

.chat-input {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.input-placeholder {
  flex: 1;
  font-size: 0.9rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .chat-sidebar {
    width: 60px;
  }

  .sidebar-item .item-info,
  .sidebar-header span {
    display: none;
  }

  .sidebar-search {
    justify-content: center;
  }

  /* Download Page Hero Mobile Optimization: Hide visuals to save space */
  #hero-download-section .hero-visual-wrapper,
  #hero-download-section .hero-mobile-visual {
    display: none !important;
  }

  /* Force center alignment for download hero content on mobile/tablet if needed, 
     though usually .hero-content is already centered. 
     If the issue is general (desktop too), we target the ID specifically. */
  #hero-download-section .hero-content {
    text-align: center;
    align-items: center;
    margin: 0 auto;
  }
}

/* Ensure Download Page Hero Content is Centered on Desktop too if it was overridden */
#hero-download-section .hero-content {
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

/* 1:1 Figma Restore - Light Mode App */
.hero-app-light {
  width: 100%;
  max-width: 960px;
  /* Increased from 800px */
  height: 640px;
  /* Increased from 520px */
  background: #ffffff;
  border-radius: 20px;
  /* Modern rounded look */
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  /* Subtle border + Deep shadow */
  display: flex;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-app-light:hover {
  transform: rotateY(0) rotateX(0);
}

/* App Sidebar */
.app-sidebar {
  width: 280px;
  background: #ffffff;
  border-right: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
}

.app-sidebar-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-search-bar {
  background: #f1f2f5;
  border-radius: 18px;
  padding: 8px 12px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8e8e93;
  font-size: 14px;
}

[data-theme="dark"] .app-search-bar {
  background: var(--sidebar-hover);
  color: #8e8e93;
}

.app-sidebar-list {
  flex: 1;
  overflow-y: auto;
}

.app-sidebar-item {
  display: flex;
  padding: 10px 16px;
  gap: 12px;
  cursor: pointer;
  transition: background 0.1s;
}

.app-sidebar-item:hover {
  background: #f5f5f5;
}

.app-sidebar-item.active {
  background: var(--primary);
}

.app-sidebar-item.active * {
  color: white !important;
}

.app-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  color: white;
}

.app-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-item-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.app-name {
  font-size: 15px;
  font-weight: 600;
  color: #000;
}

[data-theme="dark"] .app-name {
  color: #fff;
}

.app-time {
  font-size: 13px;
  color: #8e8e93;
}

.app-msg-preview {
  font-size: 14px;
  color: #8e8e93;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-badge {
  background: #374151;
  /* Darker gray for dark mode */
  color: white;
  border-radius: 10px;
  padding: 0 6px;
  font-size: 12px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .app-badge {
  background: #c4c4c4;
}

.app-badge.blue {
  background: var(--primary);
}

/* App Main */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: url('assets/chat_bg.webp') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.app-main-header {
  height: 60px;
  background: #ffffff;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e5e5;
}

.app-header-title {
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

.app-header-subtitle {
  font-size: 13px;
  color: #d1d5db;
  /* Lighter gray for dark mode */
}

[data-theme="light"] .app-header-subtitle {
  color: #6b7280;
}

.app-chat-area {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  scroll-behavior: smooth;
  /* Ensure smooth scrolling for sent messages */
}

.app-bubble {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.app-bubble.new-msg {
  animation: appBubbleFly 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes appBubbleExpand {
  from {
    max-height: 0;
    margin-top: -12px;
    opacity: 0;
  }

  to {
    max-height: 500px;
    margin-top: 0;
    opacity: 1;
  }
}

@keyframes appBubbleFly {
  0% {
    transform: translate(30px, 80px) scale(0.6);
    filter: blur(2px);
  }

  100% {
    transform: translate(0, 0) scale(1);
    filter: blur(0px);
  }
}



/* Chat Date Labels */
.app-chat-date-wrapper {
  text-align: center;
  margin: 2px 0;
  position: relative;
  z-index: 5;
}

.app-chat-date {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  color: #333;
  padding: 1px 6px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .app-chat-date {
  background: rgba(0, 0, 0, 0.3);
  color: #eee;
  border-color: rgba(255, 255, 255, 0.05);
}

.app-bubble.incoming {
  background: #ffffff;
  color: #000;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.app-bubble.outgoing {
  background: #efffde;
  /* Telegram Greenish/Blue */
  background: var(--primary);
  /* iOS Blue */
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.app-bubble-time {
  font-size: 11px;
  float: right;
  margin-left: 8px;
  margin-top: 6px;
  opacity: 0.7;
}

.app-input-bar {
  height: 60px;
  background: #ffffff;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-input-field {
  flex: 1;
  font-size: 15px;
  color: #000;
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  height: 100%;
  /* Ensure it takes full height of container for better clickability */
}

/* Sidebar Bottom Tabs */
.app-sidebar-footer {
  height: 60px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #ffffff;
}

.app-nav-item {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  cursor: pointer;
  color: #8e8e93;
  transition: color 0.2s;
}

.app-nav-item.active {
  color: var(--primary);
}

.app-nav-item i {
  font-size: 22px;
}

.app-nav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  padding: 0 5px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* Glass Header Refinement */
.app-main-header {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  z-index: 10;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.app-chat-area {
  padding-top: 70px !important;
  /* Make space for absolute header */
}

/* Chat Grouping / Filters (Hypothetical Top Tabs if needed, but going with Pinned for now) */
/* If user wanted top tabs */
.app-sidebar-grouping {
  display: none;
  /* Placeholder */
}

/* Chat Folders (Top Tabs) */
.app-folder-tabs {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #f0f0f0;
  overflow-x: auto;
  gap: 20px;
  height: 40px;
}

.app-folder-tab {
  font-size: 14px;
  font-weight: 500;
  /* color: #707579; */
  cursor: pointer;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.app-folder-tab.active {
  color: var(--primary);
  font-weight: 600;
}

.app-folder-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

.app-folder-badge {
  background: rgba(142, 142, 147, 0.6);
  color: white;
  border-radius: 10px;
  padding: 0 5px;
  font-size: 11px;
  height: 18px;
  min-width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  transition: background 0.2s ease;
}

.app-folder-tab.active .app-folder-badge {
  background: var(--primary);
}

/* Fix Avatar Occlusion in Chat */
.app-bubble {
  /* Ensure bubble doesn't overlap avatar if positioned poorly */
  position: relative;
  z-index: 1;
}

.app-bubble.incoming .app-avatar {
  /* Fix layout for avatar outside bubble */
  z-index: 2;
  /* Bring avatar above any potential overlap */
  left: -42px !important;
  /* Adjust spacing */
}

/* Interactive Input Styling */
/* Consolidated into .app-input-field above */
/* Custom Theme Variables (From User Request) */
:root {
  --theme-primary: #33A854;
  --theme-bg-gradient: linear-gradient(135deg, #95BDA5, #BEDA90, #D3D98F, #ABC688);
  --theme-msg-in-bg: #EFF3E1;
  --theme-msg-in-text: #000;
  --theme-msg-out-bg: #33A854;
  /* Using ThemeColor as base for outgoing */
  --theme-msg-out-text: #fff;
  --app-bg: #ffffff;
  --app-text: #000000;
  --sidebar-bg: #ffffff;
  --sidebar-hover: #f4f4f5;
  --border-color: #e5e5e5;

  /* Chat Pattern logic */
  --chat-pattern-url: url('assets/chat_bg.webp');
  --chat-pattern-opacity: 0.5;
  --chat-pattern-color: #747474;
}

@media (prefers-color-scheme: dark) {
  :root {
    --theme-bg-gradient: linear-gradient(135deg, #499147, #6E9147, #918E47, #6E9147);
    --theme-msg-in-bg: #2b2b2b;
    /* Adjusted for dark mode legibility */
    --theme-msg-in-text: #fff;
    --theme-msg-out-bg: #33A854;
    --app-bg: #1c1c1e;
    --app-text: #ffffff;
    --sidebar-bg: #2c2c2e;
    --sidebar-hover: #3a3a3c;
    --border-color: #38383a;
  }
}


[data-theme="dark"] {
  --theme-bg-gradient: linear-gradient(135deg, #499147, #6E9147, #918E47, #6E9147);
  --theme-msg-in-bg: #2b2b2b;
  --theme-msg-in-text: #fff;
  --theme-msg-out-bg: #33A854;
  --app-bg: #000000;
  --app-text: #ffffff;
  --sidebar-bg: #2c2c2e;
  --sidebar-hover: #3a3a3c;
  --border-color: #38383a;
  --chat-pattern-color: var(--theme-bg-gradient);
  --chat-pattern-opacity: 0.8;
}

/* Apply Theme Variables */
.hero-app-light {
  /* Ensure hero app container respects theme or forces it if needed */
  background: var(--app-bg);
  color: var(--app-text);
}

.hero-app-light .app-sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
}

.hero-app-light .app-sidebar-header,
.hero-app-light .app-sidebar-footer {
  background: var(--sidebar-bg);
  border-color: var(--border-color);
}

.hero-app-light .app-sidebar-item:hover {
  background: var(--sidebar-hover);
}

.hero-app-light .app-sidebar-item.active {
  background: var(--theme-primary) !important;
  opacity: 0.7;
}

.hero-app-light .app-folder-tab {
  color: var(--app-text);
  opacity: 0.7;
}

.hero-app-light .app-folder-tab.active {
  color: var(--theme-primary);
  opacity: 1;
}

.hero-app-light .app-folder-tab.active::after {
  background: var(--theme-primary);
}

.hero-app-light .app-main-header {
  background: var(--sidebar-bg) !important;
  /* Glass effect override if needed, or maintain rgba */
  border-bottom: 1px solid var(--border-color) !important;
}

.hero-app-light .app-header-title {
  color: var(--app-text);
}

.hero-app-light .app-input-bar {
  background: var(--sidebar-bg);
}

.hero-app-light .app-input-field {
  color: var(--app-text);
}

/* Background Blend Mode for Pattern + Gradient */
.hero-app-light .app-main {
  position: relative;
  /* 1. Gradient Background as requested (PC Hero) */
  background: var(--theme-bg-gradient);
  overflow: hidden;
}

[data-theme="dark"] .hero-app-light .app-main {
  background: #000 !important;
}

/* Gradient Pattern Overlay */
.hero-app-light .app-main::before {
  content: "";
  position: absolute;
  inset: 0;

  background: var(--chat-pattern-color);
  -webkit-mask-image: var(--chat-pattern-url);
  mask-image: var(--chat-pattern-url);
  -webkit-mask-size: 500px auto;
  mask-size: 500px auto;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;

  mix-blend-mode: normal;
  filter: none;
  opacity: var(--chat-pattern-opacity);
  pointer-events: none;
  z-index: 0;
}

/* Message Bubble Updates */
.hero-app-light .app-bubble.incoming {
  background: var(--theme-msg-in-bg);
  color: var(--theme-msg-in-text);
}

.hero-app-light .app-bubble.outgoing {
  background: var(--theme-msg-out-bg);
  color: var(--theme-msg-out-text);
}

/* Window Title Bar (Mac Style) */
.app-window-header {
  height: 32px;
  background: var(--sidebar-bg);
  /* Or match sidebar/main bg */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  border-radius: 20px 20px 0 0;
  /* Rounded top corners matching app container */
}

/* Mac Traffic Lights */
.app-window-controls {
  position: absolute;
  left: 16px;
  display: flex;
  gap: 8px;
}

.window-control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.window-control.red {
  background: #FF5F56;
  border: 0.5px solid #E0443E;
}

.window-control.yellow {
  background: #FFBD2E;
  border: 0.5px solid #DEA123;
}

.window-control.green {
  background: #27C93F;
  border: 0.5px solid #1AAB29;
}

.app-window-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--app-text);
  opacity: 0.8;
}

/* Adjust Sidebar & Main to fit below title bar */
.hero-app-light {
  display: flex;
  flex-direction: column;
  /* Stacks title bar then content row */
}

.app-content-row {
  display: flex;
  flex: 1;
  overflow: hidden;
  border-radius: 0 0 20px 20px;
  /* Bottom corners rounded */
}

/* Glass Effect for Header & Input */
.hero-app-light .app-main-header {
  background: rgba(255, 255, 255, 0.65) !important;
  /* Semi-transparent */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.hero-app-light .app-input-bar {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

/* Dark Mode Glass overrides */
@media (prefers-color-scheme: dark) {

  .hero-app-light .app-main-header,
  .hero-app-light .app-input-bar {
    background: rgba(28, 28, 30, 0.65) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
  }
}

/* Adjust Chat Area Padding for floating bars */
.hero-app-light .app-chat-area {
  padding-top: 70px !important;
  padding-bottom: 70px !important;
  /* Space for input bar */
}

/* Segmented Input Bar (Island Style) */
.hero-app-light .app-input-bar.segmented {
  background: transparent !important;
  /* Remove monolithic bar */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-top: none !important;
  display: flex !important;
  align-items: flex-end !important;
  /* Align bottom or center? screenshot looks center/bottom aligned */
  padding: 10px 16px !important;
  gap: 12px;
  pointer-events: none;
  /* Let clicks pass through gaps */
}

/* Glass Buttons (Islands) */
.glass-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  /* Circles */
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: auto;
  /* Re-enable clicks */
  transition: transform 0.1s;
}

.glass-btn:active {
  transform: scale(0.95);
}

.glass-btn i {
  font-size: 20px;
  color: #333;
}

/* Glass Input Pill (Center Island) */
.glass-input-wrapper {
  flex: 1;
  height: 44px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 22px;
  /* Pill shape */
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: auto;
}

.glass-input-wrapper .app-input-field {
  background: transparent;
  border: none;
  height: 100%;
  padding: 0;
  color: #000;
  /* Ensure text is visible */
}

/* Dark Mode Overrides for Islands */
[data-theme="dark"] .glass-btn {
  background: rgba(28, 28, 30, 0.65);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Desktop only: glass-input-wrapper dark mode */
@media (min-width: 769px) {

  /* Targeted fix: Ensure desktop hero input adapts to dark mode even inside .hero-app-light */
  [data-theme="dark"] .hero-app-light .glass-input-wrapper {
    background: rgba(28, 28, 30, 0.65);
    border-color: rgba(255, 255, 255, 0.1);
  }

  [data-theme="dark"] .hero-app-light .glass-input-wrapper .app-input-field {
    color: #ffffff;
  }

  [data-theme="dark"] .hero-app-light .glass-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }

  [data-theme="dark"] .hero-app-light .glass-input-wrapper i {
    color: #ffffff;
  }
}

[data-theme="dark"] .glass-btn i,
[data-theme="dark"] .glass-btn.send-btn .fa-microphone {
  color: #fff !important;
}

/* Mobile hero should always use light mode styles, keep mic icon black */
[data-theme="dark"] .hero-mobile-app .glass-btn.mic-btn i {
  color: #333 !important;
}

/* Segmented Header Styles */
.hero-app-light .app-main-header.segmented {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  pointer-events: none;
  /* Let clicks pass through gaps */
  padding: 10px 10px !important;
  /* Some padding for the floating elements */
}

/* Glass Info Pill (Left side of header) */
.glass-info-pill {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 6px 12px 6px 6px;
  /* Tighter on left for avatar */
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.1s;
}

.glass-info-pill:active {
  transform: scale(0.98);
}

/* Reuse .glass-btn for header icons, ensure right margins if needed */
.hero-app-light .app-main-header.segmented .glass-btn {
  width: 40px;
  height: 40px;
}

/* Encryption Notice */
.encryption-notice {
  background: #fff5d0;
  border-radius: 18px;
  padding: 8px 8px;
  margin: 2px 45px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #606266;
  font-size: 12px;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 2;
}

.encryption-notice i {
  color: #606266;
  font-size: 14px;
}

/* Dark Mode Overrides for Header Pill */
[data-theme="dark"] .glass-info-pill {
  background: rgba(28, 28, 30, 0.65);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Thinner Icons Adjustment */
.glass-btn i {
  /* Removed -webkit-text-stroke: 0.5px transparent; as it can cause artifacts */
  /* font-weight: 300 !important; REMOVED - Breaks FA Free */
  font-size: 18px !important;
  /* Slightly smaller to look sharper */
  transform: scale(0.9);
  /* Visual thinning via scale */
}

.action-btn-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Fallback/Default for FAS */
.glass-btn i.fas {
  font-weight: 900;
  /* Force correct weight for Solid icons */
}


/* Send Button Interaction & Animation */
.glass-btn.send-btn {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Elastic/Spring transition */
  position: relative;
  overflow: hidden;
}

/* Active State (Green Send Button) */
.glass-btn.send-btn.active {
  background: #10b981 !important;
  /* Green as requested */
  border-color: #10b981 !important;
  transform: scale(1.1);
  /* Slight pop */
}

.glass-btn.send-btn i {
  transition: opacity 0.2s ease, transform 0.2s ease;
  position: absolute;
}

/* Icon Switching Logic */
.glass-btn.send-btn .fa-paper-plane {
  opacity: 0;
  transform: scale(0.5) rotate(-45deg);
  color: white !important;
}

.glass-btn.send-btn .fa-microphone {
  opacity: 1;
  transform: scale(1);
  color: #333;
}

/* When Active: Hide Mic, Show Plane */
.glass-btn.send-btn.active .fa-microphone {
  opacity: 0;
  transform: scale(0.5);
}

.glass-btn.send-btn.active .fa-paper-plane {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Dark Mode Icon Color Override */
@media (prefers-color-scheme: dark) {
  .glass-btn i {
    color: #fff;
  }

  .glass-btn.send-btn .fa-microphone {
    color: #fff;
  }
}

/* Fix layout squishing */
.hero-app-light .app-main {
  flex: 1;
  /* Ensure it takes remaining width */
  min-width: 0;
  /* Prevent flex overflow issues */
}

/* Ensure buttons don't shrink and are visible */
.glass-btn {
  flex-shrink: 0;
  z-index: 20;
}

/* Update Send Button to match Outgoing Bubble color with Glass Effect */
.glass-btn.send-btn.active {
  /* Use rgba version of #33A854 for glass transparency */
  background: rgba(51, 168, 84, 0.85) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 12px rgba(51, 168, 84, 0.3);
}

/* Dark Mode Send Button - slightly different green or same? User said match outgoing.
   Outgoing variable is constant #33A854 in dark mode currently.
   So same rgba is fine. */

/* Glass Group (Rounded Rectangle for multiple icons) */
.glass-group {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 20px;
  /* Rounded rectangle */
  display: flex;
  align-items: center;
  padding: 4px;
  gap: 2px;
  /* Small gap between buttons inside group */
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  pointer-events: auto;
}

/* Buttons inside a group shouldn't have their own glass background */
.glass-group .glass-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: 36px;
  /* Slightly compact */
  height: 36px;
  border-radius: 18px;
  /* Inner radius matching group */
}

.glass-group .glass-btn:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  /* Subtle hover effect inside group */
}

/* Dark Mode Group */
[data-theme="dark"] .glass-group {
  background: rgba(28, 28, 30, 0.65);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .glass-group .glass-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Simplified Glass Group Overrides */
.glass-group {
  padding: 0 16px !important;
  /* Horizontal padding for the pill */
  height: 40px;
  /* Consistent height matching buttons */
  gap: 20px !important;
  /* Space between icons */
  justify-content: center;
}

/* Icons inside the group */
.glass-group i {
  color: var(--app-text);
  /* Ensure contrast */
  font-size: 18px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
}

.glass-group i:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Dark mode adjustment for group icons if needed */
@media (prefers-color-scheme: dark) {
  .glass-group i {
    color: #fff;
  }
}

/* Incoming Bubble Spacing Update */
.app-bubble.incoming {
  margin-left: 30px !important;
  /* Force override if inline styles persist or just to be safe */
}



/* Reduced bubble padding override */
.app-bubble {
  padding: 6px 10px !important;
}

/* Ensure chat content isn't hidden behind absolute glass input bar */
.app-chat-area {
  padding-bottom: 180px !important;
  /* Further increased to ensure messages fully clear the segmented islands */
}

/* Prevent bubbles from shrinking when chat fills up */
.app-bubble {
  flex-shrink: 0 !important;
}

/* ===== Privacy Section ===== */
.privacy-section {
  padding: 1rem 0 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.03) 100%);
}

.privacy-card {
  text-align: center;
  padding: 32px 24px;
}

.privacy-card .card-icon {
  margin: 0 auto 24px;
}

/* ===== Solutions Section (Tabs) ===== */
.solutions-section {
  padding: 1rem 0 6rem;
}

.solutions-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.sol-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 12px 24px;
  border-radius: 99px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: all 0.3s ease;
}

.sol-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.sol-tab.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.4);
}

[data-theme="light"] .sol-tab.active {
  color: white;
}

.solutions-content-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  transition: height 0.15s ease;
  will-change: height;
}

.solution-display {
  display: flex;
  align-items: center;
  gap: 3rem;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.solution-display.fading {
  opacity: 0;
}

.sol-text {
  flex: 1;
}

.sol-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.sol-text p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.sol-features-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  /* Wider cards */
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sol-feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Very subtle border */
  border-radius: 16px;
  padding: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.sol-feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(16, 185, 129, 0.2);
  /* Subtle primary hint on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.feature-card-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  /* Space between icon and text */
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  /* Primary tint */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-wrapper i {
  font-size: 20px;
  color: var(--primary);
}

.feature-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.4;
}

/* Dark mode adjustment if needed, though transaprency usually works for both */
[data-theme="light"] .sol-feature-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .sol-feature-card:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.sol-visual {
  flex: 0 0 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-light);
}

.sol-visual i {
  font-size: 5rem;
  color: var(--primary);
  filter: drop-shadow(0 0 20px rgba(52, 211, 153, 0.4));
}

@media (max-width: 768px) {
  .solution-display {
    flex-direction: column;
    /* Changed from column-reverse to standard column */
    text-align: center;
    gap: 2rem;
  }

  /* Make visual smaller and fit better */
  .sol-visual {
    width: 120px;
    height: 120px;
    flex: 0 0 120px;
    margin: 0 auto;
  }

  .sol-visual i {
    font-size: 3rem;
  }

  .solutions-content-wrapper {
    padding: 1.5rem;
    /* Reduced padding */
  }

  .sol-features-list {
    text-align: left;
    display: inline-grid;
  }

  /* Compact Card for Mobile */
  .sol-feature-card {
    padding: 12px;
    border-radius: 12px;
  }

  .feature-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .feature-icon-wrapper i {
    font-size: 18px;
  }

  .feature-card-inner {
    gap: 12px;
  }

  .feature-text {
    font-size: 0.95rem;
  }

  .sol-visual {
    margin-bottom: 2rem;
  }
}

.section-header {
  text-align: center;
}

/* ===== Mobile Menu ===== */
#mobile-menu-btn {
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-surface-translucent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.mobile-nav-links a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  padding: 12px;
  border-radius: 12px;
  transition: background 0.2s;
}

.mobile-nav-links a:hover {
  background: var(--glass-highlight);
}

@media (max-width: 768px) {
  #mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    display: none;
  }
}

/* ===== Mobile Layout Compatibility Enhancements (Re-applied) ===== */
@media (max-width: 768px) {
  .hero {
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 90vh;
  }

  .hero-content {
    padding: 0 16px;
    margin-bottom: 40px !important;
  }

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

  body,
  html {
    overflow-x: hidden;
    width: 100%;
  }

  .hero-visual-wrapper {
    width: 100vw;
    margin-left: -24px;
    margin-right: -24px;
    margin-top: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
    perspective: none;
  }

  .hero-app-light {
    transform-origin: top center;
    transform: scale(0.45);
    margin-bottom: -320px;
    animation: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }

  /* Header Fixes */
  header .header-inner>div>a.btn-primary {
    display: none;
  }

  header .header-inner>div {
    gap: 8px !important;
  }

  .btn-icon {
    width: 36px;
    height: 36px;
  }

  .logo span {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero-app-light .app-sidebar {
    display: none;
  }

  .hero-app-light .app-main {
    flex: 1;
    border-left: none;
  }

  .hero-app-light {
    width: auto;
    max-width: 100%;
    transform: scale(0.65);
    margin-bottom: -200px;
  }

  .stats-grid {
    gap: 3rem;
  }

  .stat-item {
    width: 100%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 2.5rem;
  }
}

@media (max-width: 330px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .hero-app-light {
    transform: scale(0.55);
    margin-bottom: -250px;
  }

  .container {
    padding: 0 12px;
  }

  .badge {
    font-size: 0.75rem;
  }
}

/* Mobile Hero Visual */
.hero-mobile-visual {
  display: none;
  /* Hidden on desktop by default */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
  padding: 2rem;
  position: relative;
}

.shield-container {
  width: 120px;
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.shield-icon {
  font-size: 80px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(52, 211, 153, 0.4));
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.shield-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
  filter: blur(20px);
  animation: glow-pulse 3s infinite;
  z-index: 1;
}

.mobile-visual-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
  text-align: center;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
  padding: 8px 24px;
  border-radius: 99px;
  border: 1px solid var(--border-light);
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 8px;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  z-index: 1000;
}

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

.lang-item {
  padding: 8px 16px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 0.9rem;
  font-weight: 500;
}

.lang-item:hover {
  background: rgba(16, 185, 129, 0.1);
  color: var(--text-main);
}

.lang-item.active {
  color: var(--primary);
  background: rgba(16, 185, 129, 0.05);
}

/* ===== Mobile Hero Implementation ===== */

/* High Fidelity Mobile App Wrapper */
.hero-mobile-app {
  width: 100%;
  max-width: 380px;
  height: 680px;
  /* Typical mobile ratio */
  background: var(--bg-surface);
  border-radius: 40px;
  box-shadow:
    0 0 0 8px rgba(0, 0, 0, 0.8),
    /* Bezel */
    0 0 0 10px rgba(255, 255, 255, 0.1),
    /* Outer Rim */
    0 30px 60px -15px rgba(0, 0, 0, 0.7);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Mobile Status Bar */
.mobile-status-bar {
  height: 44px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: black;
  background: rgba(255, 255, 255, 0.02);
  z-index: 10;
}

.status-icons {
  display: flex;
  gap: 6px;
  font-size: 12px;
}

/* Mobile App Header */
.mobile-app-header {
  height: 60px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 10;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--primary);
  font-size: 1.1rem;
}

.header-center {
  text-align: center;
}

.header-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.header-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #10b981;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

/* Mobile Chat Area */
.mobile-chat-area {
  flex: 1;
  background: url('assets/chat_bg.webp') center/cover no-repeat;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  position: relative;
}

.mobile-chat-area::before {
  content: '';
  position: absolute;
  inset: 0;
  /* background: rgba(0, 0, 0, 0.4); */
  /* Darken bg slightly */
  z-index: 0;
}

.mobile-chat-area>* {
  z-index: 1;
}

.mobile-msg-avatar {
  width: 28px;
  height: 28px;
  position: absolute;
  left: -36px;
  bottom: 0;
  border-radius: 50%;
}

.mobile-msg-name {
  color: #e91e63;
  /* Pink for Sarah */
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 2px;
}

.encryption-notice.small {
  margin: 8px auto 16px;
  font-size: 10px;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  width: fit-content;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mobile Input Bar */
.mobile-input-bar {
  height: 70px;
  /* Taller for mobile touch targets */
  background: rgba(30, 30, 30, 0.95);
  /* Darker footer */
  backdrop-filter: blur(20px);
  padding: 0 12px 20px;
  /* Space for home indicator */
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-input-field {
  flex: 1;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.circle-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
}

.mobile-input-bar i {
  color: var(--primary);
  font-size: 18px;
  cursor: pointer;
}

/* Home Indicator */
.mobile-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  z-index: 20;
}

/* Animation Adjustments */
.hero-mobile-app .app-bubble {
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

.hero-mobile-app .app-bubble:nth-child(3) {
  animation-delay: 0.2s;
}

.hero-mobile-app .app-bubble:nth-child(4) {
  animation-delay: 1.0s;
}

/* Longer delay for reply */
.hero-mobile-app .app-bubble:nth-child(5) {
  animation-delay: 1.5s;
}

.hero-mobile-app .app-bubble:nth-child(6) {
  animation-delay: 2.0s;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .hero-mobile-app {
    height: 80vh;
    max-height: 700px;
    border-radius: 30px;
    box-shadow:
      0 0 0 4px rgba(0, 0, 0, 0.8),
      0 10px 30px -5px rgba(0, 0, 0, 0.5);
  }
}

/* ===== iOS Refinements ===== */

/* Header */
.mobile-app-header.ios-header {
  height: 54px;
  /* Slightly shorter standard iOS header */
  background: rgba(255, 255, 255, 0.08);
  /* More translucent */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 8px;
  align-items: flex-end;
  /* Align to bottom like real status bar padding */
  padding-bottom: 10px;
}

.header-left,
.header-right {
  min-width: 60px;
  /* Ensure balance */
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.header-right {
  justify-content: flex-end;
}

.header-back-text {
  font-size: 16px;
  color: var(--primary);
  margin-left: 4px;
  font-weight: 400;
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.header-avatar-group {
  margin-bottom: 2px;
}

.avatar-stack {
  width: 24px;
  height: 24px;
  background: #8b5cf6;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 2px solid var(--bg-surface);
}

.header-text-group {
  text-align: center;
  line-height: 1;
}

.header-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.header-subtitle {
  font-size: 10px;
  opacity: 0.6;
}

/* Input Bar - iOS Style */
.mobile-input-bar.ios-input-bar {
  height: auto;
  min-height: 50px;
  padding: 10px 12px 24px;
  /* Bottom padding for home indicator */
  background: rgba(20, 20, 20, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
  align-items: flex-end;
  /* Align inputs to bottom */
}

.input-action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.input-action-btn:active {
  opacity: 0.6;
}

.input-action-btn.send-btn-mobile {
  background: var(--primary);
  color: white;
  /* 始终为白色 (白天模式) */
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.mobile-input-wrapper {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  /* Dark grey pill */
  border-radius: 18px;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 2px 4px 2px 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#mobile-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 16px;
  line-height: 20px;
  padding: 4px 0;
  outline: none;
  font-family: inherit;
  min-width: 0;
}

.input-sticker-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
}

/* Adjustments for icons */
.mobile-app-header i.fa-chevron-left {
  font-size: 20px;
  color: var(--primary);
}

.mobile-app-header i.fa-video {
  font-size: 18px;
  color: var(--primary);
}

/* ===== Mobile Refinements (Round 2) ===== */

/* 1. Mobile App Background - Match PC Hero */
.hero-mobile-app {
  /* Ensure generic background is cleared or matched */
  background: url('assets/chat_bg.webp') center/cover no-repeat !important;
}

.mobile-chat-area {
  background: rgba(6, 24, 16, 0.4) !important;
  /* Semi-transparent overlay to match desktop glass feel */
  backdrop-filter: blur(10px);
}

/* 2. Glass Segmented Input Bar (Floating) */
.mobile-input-bar.glass-segmented {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent !important;
  border-top: none !important;
  backdrop-filter: none !important;
  padding: 12px 16px 24px;
  display: flex;
  align-items: flex-end;
  /* Align to bottom for varying heights if needed */
  gap: 8px;
  pointer-events: none;
  /* Let clicks pass through gaps */
}

/* Re-enable pointer events for buttons/inputs */
.mobile-input-bar.glass-segmented>* {
  pointer-events: auto;
}

/* Reuse or Mimic .glass-btn from desktop */
.mobile-input-bar.glass-segmented .glass-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  /* Slightly more opaque for visibility? */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s;
  cursor: pointer;
}

.mobile-input-bar.glass-segmented .glass-btn:active {
  transform: scale(0.95);
}

.glass-input-wrapper {
  flex: 1;
  height: 44px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 22px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 16px;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  margin-right: 8px;
}

.glass-input-wrapper i {
  color: var(--text-muted);
  cursor: pointer;
}

/* Send Button Special Style */
.mobile-input-bar.glass-segmented .send-btn-mobile {
  background: var(--primary) !important;
  color: #000 !important;
  border: none;
}

/* Adjust Header to remove stacking avatar and fix alignment */
.mobile-app-header.ios-header {
  height: 54px;
  padding: 0 12px;
  align-items: flex-end;
  padding-bottom: 12px;
}

.header-right .app-avatar {
  border: 2px solid rgba(255, 255, 255, 0.1) !important;
}

/* ===== FINAL MOBILE FIXES ===== */

/* 1. Scoped Theme Variables for Mobile (Locked to Light Mode) */
.hero-mobile-app {
  --theme-bg-gradient: linear-gradient(135deg, #95BDA5, #BEDA90, #D3D98F, #ABC688);
  --theme-msg-in-bg: #FFFFFF;
  --theme-msg-in-text: #000000;
  --theme-msg-out-bg: #5DB061;
  --theme-msg-out-text: #FFFFFF;
  --app-bg: #ffffff;
  --app-text: #000000;
  --chat-pattern-opacity: 0.5;
  --chat-pattern-color: #747474;
}

/* 2. MATCH PC BACKGROUND EXTACTLY */
.hero-mobile-app {
  position: relative;
  /* Apply Gradient */
  background: var(--theme-bg-gradient) !important;
  overflow: hidden;
  /* Contains the pseudo-element pattern */
}

/* Pattern Overlay using ::before */
.hero-mobile-app::before {
  content: "";
  position: absolute;
  inset: 0;

  /* Pattern Settings (Copied from PC) */
  background: var(--chat-pattern-color);
  -webkit-mask-image: var(--chat-pattern-url);
  mask-image: var(--chat-pattern-url);
  -webkit-mask-size: 500px auto;
  mask-size: 500px auto;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;

  mix-blend-mode: normal;
  filter: none;
  opacity: var(--chat-pattern-opacity);
  pointer-events: none;
  z-index: 0;
}

/* 3. Ensure Content Sits Above Pattern */
.mobile-app-header,
.mobile-chat-area,
.mobile-input-bar,
.mobile-home-indicator {
  position: relative;
  z-index: 2;
}

/* 4. Chat Area Transparency */
.mobile-chat-area {
  background: transparent !important;
  /* Allow pattern to show through */
  backdrop-filter: none !important;
  /* Remove muddy blur */
}

/* 5. Header Refinement */
.mobile-app-header.ios-header {
  background: rgba(255, 255, 255, 0.4) !important;
  /* Lighter glass */
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* 6. Message Bubble Colors (Match PC) */
.hero-mobile-app .app-bubble.incoming {
  background: var(--theme-msg-in-bg);
  color: var(--theme-msg-in-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-mobile-app .app-bubble.outgoing {
  background: var(--theme-msg-out-bg);
  color: var(--theme-msg-out-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 7. Input Bar Refinement */
.mobile-input-bar.glass-segmented {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  width: 100%;
}

.mobile-input-bar.glass-segmented .glass-btn,
.mobile-input-bar.glass-segmented .glass-input-wrapper {
  background: rgba(255, 255, 255, 0.6);
  /* 锁定时不需要 !important，除非有更高级别干扰 */
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.glass-input-wrapper {
  display: flex !important;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding-right: 8px;
  /* Add some padding for the icon area */
}

.glass-input-wrapper input {
  color: #000;
  /* Dark text on light glass */
}

.glass-input-wrapper input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.glass-input-wrapper i {
  color: rgba(0, 0, 0, 0.5);
}

.mobile-input-bar i {
  color: #333;
  /* Darker icons */
}

.mobile-input-bar.glass-segmented .send-btn-mobile {
  background: var(--primary) !important;
  color: white !important;
}

/* 8. Text Colors in Header */
.header-title {
  color: #000 !important;
}

.header-subtitle {
  color: rgba(0, 0, 0, 0.6) !important;
}

.header-left i {
  color: #000 !important;
}

/* 9. Avatar Border */
.header-right .app-avatar {
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
}

/* 10. Date Wrapper */
.app-chat-date-wrapper .app-chat-date {
  background: rgba(0, 0, 0, 0.2) !important;
  color: white !important;
  backdrop-filter: blur(10px);
}

/* ===== Mobile Header Glass Islands (User Request) ===== */

/* Remove Monolithic Header Background */
.mobile-app-header.glass-header {
  background: transparent !important;
  backdrop-filter: none !important;
  border-bottom: none !important;
  padding: 0 16px;
  height: 60px;
  /* Slightly taller to accommodate islands */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
  /* Let clicks pass through gaps */
}

/* Enable pointer events on islands */
.mobile-app-header.glass-header>* {
  pointer-events: auto;
}

/* Left & Right Islands (Circles) */
.glass-btn-header {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 18px;
}

/* Center Island (Pill) */
.glass-pill-header {
  flex: 1;
  /* Occupy remaining space */
  height: 44px;
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Content Adjustments */
.glass-btn-header i {
  color: #000;
  font-size: 16px;
}

.glass-pill-header .header-text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.glass-pill-header .header-title {
  font-size: 14px;
  font-weight: 600;
  color: #000;
}

.glass-pill-header .header-subtitle {
  font-size: 10px;
  color: rgba(0, 0, 0, 0.6);
}

/* Override previous specific target styles if they conflict */
.mobile-app-header .header-left,
.mobile-app-header .header-right {
  background: transparent;
  padding: 0;
  min-width: 0;
}

/* Adjust Avatar inside Glass Button */
.glass-btn-header .app-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  /* Remove border as it's inside a glass button now, or keep subtle */
  border: none !important;
}

/* ===== Mobile Input/Text Fixes ===== */

/* 1. Text Vertical Alignment & Centering */
.glass-input-wrapper {
  display: flex;
  align-items: center;
  /* Center children vertically */
  padding: 8px 16px;
  /* Explicit padding */
  height: auto;
  /* Allow growth */
  min-height: 44px;
}



#mobile-input {
  /* Textarea resets */
  margin: 0;
  padding: 0;
  line-height: 20px;
  /* Consistent line height */
  height: 20px;
  /* Start at one line */
  display: block;
  resize: none;
  overflow: hidden;

  /* 2. Day Mode Text Color Adaptation */
  color: #1f2937 !important;
  /* Deep dark gray (almost black) for readability on glass */
  font-weight: 500;
}

#mobile-input::placeholder {
  color: #6b7280;
  /* Neutral gray content placeholder */
}

/* Ensure sticky icon is centered */
.glass-input-wrapper i {
  align-self: center;
  margin-left: 8px;
  /* Spacing from textarea */
}

/* 3. Send Button Icon Adjustment */
.mobile-input-bar.glass-segmented .send-btn-mobile i {
  font-size: 16px;
  /* Adjust paper plane size */
  margin-left: -2px;
  /* Optical centering for paper plane often needed */
}

/* ===== Mobile Refinements Round 3 ===== */

/* 1. Header Island Width Fix */
.glass-pill-header {
  flex: 0 1 auto !important;
  /* Allow shrinking/growing but don't force full width */
  width: fit-content !important;
  /* Wrap content */
  padding: 0 20px !important;
  /* Add padding for content */
  min-width: 0;
  /* Allow shrinking */
}

/* Center the pill in the available space (optional but good) */
/* Since it's a flex child of .mobile-app-header which has space-between, 
   we might want to ensure the center part is actually centered. 
   Currently space-between pushes it to center if sides are equal.
   Left and right are 44px buttons, so it should be balanced. */

/* 2. Encryption Notice - Match PC Style */
.encryption-notice.small {
  /* Reset previous overrides */
  background: #fff5d0 !important;
  /* Pale Yellow */
  color: #606266 !important;
  /* Dark Gray Text */
  border: none !important;
  border-radius: 18px !important;
  padding: 6px 16px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;

  /* Ensure Icon Color */
  font-weight: 500;
}

.encryption-notice.small i {
  color: #606266 !important;
  font-size: 11px;
}

/* 3. Ensure Chat Area Scrolls with more messages */
.mobile-chat-area {
  /* Verify scroll behavior */
  overflow-y: auto;
}

/* ===== Mobile Scroll & Layout Fixes ===== */

/* 1. Header & Status Bar Overlay (Fixed/Absolute) */
.mobile-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  /* High z-index to stay on top */
  /* Background logic is handled in .hero-mobile-app::before pattern, 
       but for status bar text readability we might rely on the header glass or add subtle bg if needed.
       Existing style has rgba(255,255,255,0.02) which is fine for overlay. */
}

.mobile-app-header.glass-header {
  position: absolute;
  top: 44px;
  /* Below status bar */
  left: 0;
  right: 0;
  z-index: 40;
  /* Glass styles already applied */
}

/* 2. Chat Area Full Height & Padding */
.mobile-chat-area {
  /* Make it fill the entire container height */
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100% !important;
  /* Force full height */

  /* Add padding so top content isn't hidden behind header */
  /* Status Bar (44) + Header (60) + Buffer (10) */
  padding-top: 114px !important;

  /* Ensure scrolling happens here */
  overflow-y: auto !important;

  /* Ensure z-index is lower than header */
  z-index: 10;
}

/* 3. Disable Message Animations (Instant Show) */
.hero-mobile-app .app-bubble {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* 4. Fix Lottie Wrapper Alignment */
/* The wrapper is an inline style div in HTML: <div style="align-self: flex-end..."> */
/* If .mobile-chat-area is flex-direction: column, align-self: flex-end works IF width is not 100%. */
/* If the div is block, it takes 100% width. */

.mobile-chat-area>div[style*="align-self: flex-end"] {
  /* If the element has align-self: flex-end, it should shrink to fit content or display as valid flex child */
  width: fit-content;
  margin-left: auto;
  /* Push to right just in case */
  display: flex;
  /* Ensure internal relative positioning works */
  flex-direction: column;
  /* Stack Lottie and timestamp */
  align-items: flex-end;
  /* Align internal content to right */
}

/* ===== Mobile Z-Index & Scroll Fixes ===== */

/* 1. Ensure Input Bar is above Chat Area */
.mobile-input-bar.glass-segmented {
  z-index: 60 !important;
  /* Higher than header (40) and chat (10) */
  /* Ensure it stays at bottom even if content scrolls */
  position: absolute;
  bottom: 0;
}

/* 2. Chat Area Padding Bottom */
.mobile-chat-area {
  /* Top padding already handled (114px) */
  /* Add Bottom Padding to clear the input bar height */
  /* Input bar is ~80px tall including padding */
  padding-bottom: 90px !important;

  /* Ensure scroll behavior */
  overflow-y: auto !important;
}

/* 3. Hide spacer if present (CSS override is cleaner than editing HTML again) */
.mobile-chat-area>div[style*="height: 60px"] {
  display: none;
  /* We use padding-bottom instead for cleaner "behind" effect */
}

/* ===== Mobile Blur Gradient Overlay (Scrim) ===== */

/* Create a gradient blur zone at the top of the mobile app */
.hero-mobile-app::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  /* Covers Status Bar (44) + Header (60) + Fade area */

  /* The Blur Effect */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* The Gradient Mask - Strong blur at top, fades to nothing */
  /* top 60% is full blur, then fades out */
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);

  /* Layering */
  z-index: 35;
  /* Above Chat (10), Below Header (40) & Status Bar (50) */
  pointer-events: none;
  /* Let clicks pass through */

  /* Subtle darken for readability? Optional */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Darker shade overlay for iOS top - keeping it light/neutral as mobile doesn't have dark theme */
.hero-mobile-app::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

/* ===== Mobile Mic/Send Animation ===== */

/* Wrapper for the buttons */
.action-btn-wrapper {
  position: relative;
  width: 44px;
  /* Same as glass-btn */
  height: 44px;
}

/* Base styles for both buttons inside wrapper */
.action-btn-wrapper .glass-btn {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  /* Reset */
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Bouncy pop */
}

/* Mic Button Default (Visible) */
#mobile-mic-btn {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  pointer-events: auto;
}

/* Send Button Default (Hidden) */
#mobile-send-btn {
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
  pointer-events: none;
}

/* STATES when user types (Has Text) */
/* .has-text class will be added to .action-btn-wrapper via JS */

.action-btn-wrapper.has-text #mobile-mic-btn {
  opacity: 0;
  transform: scale(0.5) rotate(90deg);
  pointer-events: none;
}

.action-btn-wrapper.has-text #mobile-send-btn {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  pointer-events: auto;
}

/* Helper for Hero CTA Buttons */
.hero-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
  /* Align items to top to handle different heights */
  margin-bottom: 4rem;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-cta-buttons {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2.5rem;
    width: 100%;
    align-items: center;
  }

  .hero-cta-group,
  .hero-cta-buttons .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    text-align: center;
  }

  .other-platforms-link {
    text-align: center;
    width: 100%;
  }
}

/* =========================================
   Refactored Inline Styles
   ========================================= */

/* Logo */
.logo i {
  color: var(--primary);
}

.logo span {
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Language Dropdown */
.lang-dropdown-container {
  position: relative;
}

/* Mobile Menu Button */
#mobile-menu-btn {
  display: none;
}

@media (max-width: 768px) {
  #mobile-menu-btn {
    display: flex;
  }
}

/* Hero Section Utilities */
.hero-content {
  margin: 0 auto;
}

.hero-subtitle-container {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
}

.hero-subtitle-highlight {
  color: var(--primary);
  font-size: 0.9em;
  margin-top: 8px;
  display: inline-block;
}

/* Mobile App Header */
.glass-header .app-avatar {
  background-size: cover;
}

.app-avatar.xs {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.app-avatar.md {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.app-avatar.msg-avatar {
  width: 32px;
  height: 32px;
  position: absolute !important;
  left: -45px !important;
  bottom: 0;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Lottie & Messages */
.pizza-lottie-mobile {
  width: 120px;
  height: 120px;
}

.pizza-lottie-desktop {
  width: 200px;
  height: 200px;
}

.msg-wrapper {
  align-self: flex-end;
  position: relative;
  margin-right: 4px;
  margin-bottom: 8px;
}

.msg-wrapper.desktop {
  margin-right: 12px;
}

.msg-time-overlay {
  position: absolute;
  bottom: 15px;
  right: 5px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  font-weight: 600;
  font-size: 10px;
}

.msg-time-overlay.desktop {
  bottom: 20px;
  right: 10px;
  font-size: 1rem;
}

/* Sidebar */
.app-sidebar-item.pinned {
  background: rgba(16, 185, 129, 0.08);
}

/* Section Headers */
.section-header-center {
  text-align: center;
}

.section-subtitle {
  max-width: 600px;
  margin: 0 auto;
}

/* Download Section */
#download {
  padding: 6rem 0;
  text-align: center;
}

.download-title {
  margin-bottom: 2rem;
}

.download-subtitle {
  margin-bottom: 3rem;
  color: var(--text-muted);
}

.download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer-copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

/* Buttons */
.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.icon-gap {
  margin-right: 8px;
}

/* =========================================
   Download Page Styles
   ========================================= */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 4rem;
}

.download-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.platform-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.platform-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.platform-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.req-list {
  margin-bottom: 2rem;
  flex-grow: 1;
}

.req-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.req-item i {
  color: var(--primary);
  margin-right: 10px;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.web-card {
  border-left: 4px solid var(--primary);
}

/* ========================================= */
/* MIGRATED STYLES: Privacy, Terms, Download */
/* ========================================= */

/* --- Privacy Policy & Terms Base --- */
.pp-meta-info {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  margin-bottom: 40px;
  align-items: center;
}

.pp-meta-info h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.pp-meta-info img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .pp-meta-info {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pp-meta-info img {
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }
}

.pp-layout {
  display: grid;
  grid-template-columns: 280px 1px 1fr;
  gap: 32px;
  position: relative;
}

.split-line {
  background: var(--border-light);
  height: 100%;
  width: 1px;
}

@media (max-width: 900px) {
  .pp-layout {
    grid-template-columns: 1fr;
  }

  .split-line {
    display: none;
  }

  .nav {
    display: none;
  }

  /* Hide sidebar on mobile for now */
}

/* Sidebar Menus */
.menus {
  list-style: none;
  position: sticky;
  top: calc(var(--header-height) + 40px);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.menus li {
  margin-bottom: 12px;
}

.menus a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.95rem;
}

.menus a:hover,
.menus a.nav-active {
  color: var(--primary);
  font-weight: 500;
}

.menus ul {
  padding-left: 16px;
  margin-top: 8px;
  border-left: 1px solid var(--border-light);
}

/* User Agreement Container */
.ua {
  display: grid;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.ua h1 {
  text-align: center;
}

.md-container,
.md-container-ua {
  color: var(--text-main);
  font-size: 1.15rem;
  line-height: 1.7;
}

.md-container h2,
.md-container-ua h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  scroll-margin-top: 100px;
}

.md-container h3,
.md-container-ua h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.md-container p,
.md-container-ua p {
  margin-bottom: 1.5rem;
}

.md-container ul,
.md-container ol,
.md-container-ua ul,
.md-container-ua ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.md-container li,
.md-container-ua li {
  margin-bottom: 0.5rem;
}


/* --- Download Page Styles --- */

.section-download {
  padding-top: 120px;
  padding-bottom: 80px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.download-card {
  text-align: center;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
  border-color: var(--primary);
}

.platform-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 20px;
}

.platform-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.platform-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.req-list {
  margin-bottom: 32px;
  text-align: left;
  width: 100%;
  padding: 0 10px;
}

.req-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.req-item i {
  color: var(--primary);
  font-size: 0.8rem;
}

/* Feature Download Highlights */
.download-page-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.download-tabs-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 2rem;
  margin-top: 3rem;
}

/* Helper for dynamic rendering */
.hidden {
  display: none !important;
}

/* ===== Contact Us Page ===== */
/* =========================================
   Contact Page Redesign
   ========================================= */

.contact-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Contact Hero */
.contact-hero {
  text-align: center;
  margin-bottom: 64px;
}

.contact-hero-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(45, 212, 191, 0.1) 100%);
  border: 2px solid rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  animation: float 4s ease-in-out infinite;
}

.contact-hero-icon i {
  font-size: 2.5rem;
  color: var(--primary);
}

.contact-hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--primary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* Contact Cards Grid */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 40px;
}

/* Single Contact Card */
.contact-single-card {
  max-width: 420px;
  margin: 0 auto 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-single-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.contact-single-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.1);
}

.contact-single-card h3 {
  font-size: 1.35rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.contact-single-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.contact-response-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-response-time i {
  color: var(--primary);
}


.contact-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-card-item:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.1);
}

.contact-card-item:hover::before {
  opacity: 1;
}

.contact-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contact-card-icon i {
  font-size: 1.75rem;
  color: var(--primary);
}

.contact-card-icon.business {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
  border-color: rgba(99, 102, 241, 0.25);
}

.contact-card-icon.business i {
  color: #6366f1;
}

.contact-card-icon.security {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
  border-color: rgba(239, 68, 68, 0.25);
}

.contact-card-icon.security i {
  color: #ef4444;
}

.contact-card-item h3 {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.contact-card-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 99px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.contact-email-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Response Time Notice */
.contact-response-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 12px;
  max-width: 400px;
  margin: 0 auto 64px;
}

.contact-response-notice i {
  color: var(--primary);
}

.contact-response-notice span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* FAQ Section */
.contact-faq-section {
  max-width: 800px;
  margin: 0 auto;
}

.contact-faq-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--text-main);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 500;
  font-family: inherit;
}

.faq-question i {
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

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

/* Responsive */
@media (max-width: 900px) {
  .contact-cards-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

@media (max-width: 600px) {
  .contact-page {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .contact-hero {
    margin-bottom: 48px;
  }

  .contact-hero-icon {
    width: 80px;
    height: 80px;
  }

  .contact-hero-icon i {
    font-size: 2rem;
  }

  .contact-hero h1 {
    font-size: 2rem;
  }

  .contact-card-item {
    padding: 24px 20px;
  }

  .contact-faq-section h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }

  .faq-question {
    padding: 16px 20px;
    font-size: 1rem;
  }

  .faq-answer p {
    padding: 0 20px 16px;
  }
}

/* =========================================
   Security Architecture Page Styles
   ========================================= */

/* --- Security Hero Section --- */
.security-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

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

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(45, 212, 191, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
  }

  50% {
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.4);
  }
}

.security-hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, #a78bfa 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.security-hero-desc {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.security-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.security-stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Architecture Section --- */
.architecture-section {
  padding: 6rem 0;
}

.architecture-visual {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.arch-layer {
  position: relative;
  padding: 24px 32px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.3s ease;
}

.arch-layer:hover {
  transform: translateX(8px);
  border-color: var(--primary);
}

.arch-layer-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.arch-layer:hover .arch-layer-glow {
  opacity: 1;
}

.arch-layer-content {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.arch-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(45, 212, 191, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.arch-text {
  flex: 1;
  min-width: 200px;
}

.arch-text h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-main);
}

.arch-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.arch-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.arch-badge {
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--primary);
}

.arch-badge.quantum {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(139, 92, 246, 0.1));
  border-color: rgba(168, 85, 247, 0.3);
  color: #a78bfa;
}

.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 40px;
  position: relative;
}

.connector-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--primary), rgba(16, 185, 129, 0.3));
}

.connector-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* --- Protocol Section --- */
.protocol-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.02) 50%, transparent 100%);
}

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

.protocol-card {
  position: relative;
  padding: 32px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.protocol-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.protocol-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.protocol-card.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.protocol-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.protocol-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
}

.protocol-tag {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.protocol-tag.quantum {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(139, 92, 246, 0.1));
  color: #a78bfa;
  border-color: rgba(168, 85, 247, 0.3);
}

.protocol-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-main);
}

.protocol-card>p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.protocol-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}

.protocol-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.protocol-features li i {
  color: var(--primary);
  font-size: 0.75rem;
}

.protocol-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  margin-top: auto;
}

.protocol-link:hover {
  gap: 12px;
}

.protocol-link i {
  font-size: 0.75rem;
}

/* --- Zero-Knowledge Section --- */
.zero-knowledge-section {
  padding: 8rem 0;
  background: linear-gradient(180deg,
      rgba(16, 185, 129, 0.03) 0%,
      rgba(45, 212, 191, 0.05) 50%,
      rgba(16, 185, 129, 0.03) 100%);
  border-top: 1px solid rgba(16, 185, 129, 0.1);
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.zk-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 900px) {
  .zk-content {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
}

.zk-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.zk-shield {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  animation: shield-rotate 20s linear infinite;
}

.ring-1 {
  width: 100%;
  height: 100%;
  border-color: rgba(16, 185, 129, 0.3);
  animation-direction: normal;
}

.ring-2 {
  width: 75%;
  height: 75%;
  border-color: rgba(45, 212, 191, 0.4);
  animation-direction: reverse;
  animation-duration: 15s;
}

.ring-3 {
  width: 50%;
  height: 50%;
  border-color: rgba(16, 185, 129, 0.5);
  animation-duration: 10s;
}

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

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

.shield-core {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 0 60px rgba(16, 185, 129, 0.4);
  animation: core-pulse 3s ease-in-out infinite;
}

@keyframes core-pulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 60px rgba(16, 185, 129, 0.4);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 80px rgba(16, 185, 129, 0.6);
  }
}

.zk-text {
  max-width: 600px;
}

@media (max-width: 900px) {
  .zk-text {
    margin: 0 auto;
  }
}

.zk-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.zk-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.underline-accent {
  position: relative;
  display: inline-block;
}

.underline-accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.zk-text>p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.zk-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.zk-features li {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .zk-features li {
    text-align: left;
  }
}

.zk-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.zk-features h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.zk-features p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* --- Primitives Section --- */
.primitives-section {
  padding: 6rem 0;
}

.primitives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.primitive-card {
  padding: 28px 24px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all 0.3s ease;
}

.primitive-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--bg-surface), rgba(16, 185, 129, 0.05));
}

.primitive-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  margin: 0 auto 16px;
}

.primitive-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.primitive-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* --- Audit Section --- */
.audit-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.02) 100%);
}

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

.audit-card {
  padding: 36px 32px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.audit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.audit-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(45, 212, 191, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.audit-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.audit-card>p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.audit-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.audit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--text-muted);
}

.audit-badge i {
  color: var(--primary);
  font-size: 0.75rem;
}

.bounty-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(45, 212, 191, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.bounty-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.bounty-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

/* --- Security CTA --- */
.security-cta {
  padding: 6rem 0;
  text-align: center;
}

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

.cta-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Navigation active state */
.nav-links a.active {
  color: var(--primary);
}

.mobile-nav-links a.active {
  color: var(--primary);
}

/* Light mode adjustments for security page */
[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #059669 0%, #0d9488 50%, #7c3aed 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

[data-theme="light"] .security-badge {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(45, 212, 191, 0.08));
}

[data-theme="light"] .shield-core {
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.3);
}

@media (max-width: 600px) {
  .security-hero {
    padding: 120px 16px 60px;
  }

  .security-stats {
    gap: 24px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .zk-shield {
    width: 200px;
    height: 200px;
  }

  .shield-core {
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
  }
}

/* HERO DOWNLOAD SECTION (New) */
.hero-download-section {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
  animation: fadeUp 0.6s ease-out;
}

.hero-download-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 40px;
  border-radius: 24px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(16, 185, 129, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.hero-icon {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.hero-content {
  flex: 1;
}

.hero-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.hero-header h2 {
  font-size: 2rem;
  margin: 0;
  background: linear-gradient(to right, var(--text-main), var(--primary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.detected-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.hero-version {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.separator {
  color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .separator {
  color: rgba(0, 0, 0, 0.2);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-glow {
  background: linear-gradient(135deg, var(--primary) 0%, #34d399 50%, #10b981 100%);
  background-size: 200% auto;
  color: #000 !important;
  border: none;
  position: relative;
  z-index: 1;
}

/* Light Mode: Brighter, more vibrant glow button */
[data-theme="light"] .btn-glow {
  background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #4ade80 100%);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  color: #fff !important;
}

/* Mobile Hero Plus Icon */
.mobile-input-bar .glass-btn .fa-plus {
  color: #000 !important;
}

/* Desktop Hero Plus Icon */
.new-chat-icon {
  font-size: 20px;
  margin-left: auto;
  color: #000;
  /* Default (Light Mode) */
  transition: color 0.3s ease;
}

[data-theme="dark"] .new-chat-icon {
  color: var(--primary);
  /* Maintain primary color in dark mode */
}

.btn-glow::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary), #34d399, #10b981, var(--primary));
  background-size: 400% 400%;
  border-radius: 99px;
  z-index: -1;
  filter: blur(12px);
  opacity: 0.5;
  animation: glow-animation 8s linear infinite;
  transition: all 0.3s ease;
}

@keyframes glow-animation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.btn-glow:hover {
  background-position: right center;
  transform: translateY(-2px) scale(1.02);
}

.btn-glow:hover::after {
  opacity: 0.8;
  filter: blur(18px);
}

.hero-subplots {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

.changelog-link {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  transition: all 0.2s;
}

.changelog-link:hover {
  color: var(--text-main);
  border-bottom-style: solid;
}

/* Light Mode Adaptation */
[data-theme="light"] .changelog-link {
  border-bottom: 1px dashed rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .changelog-link:hover {
  border-bottom-color: rgba(0, 0, 0, 0.6);
}

/* Other Platforms Section */
.other-platforms-section {
  animation: fadeUp 0.6s ease-out 0.2s backwards;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
}

.section-divider::before,
.section-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.section-divider span {
  padding: 0 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsiveness for Hero */
@media (max-width: 768px) {
  .hero-download-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 24px;
  }

  .hero-header {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-version {
    justify-content: center;
  }

  .hero-actions {
    align-items: stretch;
    width: 100%;
  }

  .hero-subplots {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ===== Mobile Optimization Updates ===== */

@media (max-width: 768px) {

  /* Dynamic Grid Adjustments */
  .download-grid {
    grid-template-columns: 1fr;
    /* Force single column on mobile */
    gap: 16px;
    padding: 0 16px;
  }

  .download-card {
    padding: 24px;
  }

  /* Hero Section Mobile Refinements */
  .hero-download-section {
    margin-bottom: 2.5rem;
    padding: 0 16px;
  }

  .hero-download-card {
    padding: 24px 20px;
    /* Tighter padding */
    gap: 20px;
  }

  .hero-icon {
    width: 64px;
    /* Smaller icon */
    height: 64px;
    font-size: 2rem;
    border-radius: 16px;
  }

  .hero-header h2 {
    font-size: 1.5rem;
    /* Smaller title */
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-version {
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-direction: column;
    /* Stack version info */
    gap: 4px;
  }

  .hero-version .separator {
    display: none;
    /* Hide separator in stack mode */
  }

  .btn-lg {
    width: 100%;
    /* Full width button */
    justify-content: center;
    padding: 14px 24px;
    font-size: 1rem;
  }

  .detected-badge {
    font-size: 0.75rem;
    padding: 2px 10px;
  }

  .hero-subplots {
    font-size: 0.8rem;
    gap: 12px;
  }
}

@media (max-width: 480px) {

  /* Small Mobile Specifics */
  h1 {
    font-size: 2.5rem;
    /* Smaller H1 */
  }

  .section-subtitle-lg {
    font-size: 1rem;
  }

  .hero-download-card {
    border-radius: 20px;
  }

  /* Improve Touch Targets */
  .nav-links a,
  .mobile-nav-links a {
    padding: 12px;
    /* Larger hit area */
  }

  /* Ensure no overflow */
  .container {
    padding: 0 16px;
  }
}

/* HERO DOWNLOAD SECTION UPDATES */
.hero-download-section-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4rem;
  animation: fadeUp 0.6s ease-out;
}

/* Ensure visuals don't overflow */
.hero-download-section-column .hero-visual-wrapper,
.hero-download-section-column .hero-mobile-visual {
  max-width: 100%;
  margin-bottom: 2rem;
}

/* Override default hero visual margin if needed */
.hero-download-section-column .hero-visual {
  margin-top: 0;
}

.hero-download-section-column .hero-mobile-visual {
  width: 360px;
  /* Explicit width as requested */
  max-width: 100%;
  padding: 0;
}

.changelog-link {
  white-space: nowrap;
}

@media (max-width: 768px) {

  .hero-download-section-column .hero-visual-wrapper,
  .hero-download-section-column .hero-mobile-visual {
    display: none !important;
  }

  .hero-download-section-column {
    margin-bottom: 2rem;
  }
}

/* Mobile Input Bar Layout Fix */
.mobile-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Reduce gap on small screens if needed */
  padding: 8px 12px;
  width: 100%;
}

.mobile-input-bar .glass-input-wrapper {
  flex: 1;
  /* Dynamic width */
  min-width: 0;
  /* Allow shrinking */
}

.mobile-input-bar .action-btn-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.mobile-input-bar .glass-btn {
  flex-shrink: 0;
}

/* Decryption Animation Module */
.decryption-demo-container {
  width: 100%;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
}

.decryption-bubble {
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(45, 212, 191, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 99px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-main);
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.decryption-bubble.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(45, 212, 191, 0.15));
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.15);
}

.decryption-bubble.floating-out {
  opacity: 0;
  transform: translateY(-40px) scale(0.95);
  transition: all 0.5s ease-in;
}

.decryption-text {
  display: inline-block;
  min-width: 220px;
  text-align: center;
  letter-spacing: 1px;
}

.decryption-icon {
  color: var(--primary);
  font-size: 1.2rem;
}

.char-encrypted {
  color: var(--accent);
  text-shadow: 0 0 5px rgba(45, 212, 191, 0.5);
  display: inline-block;
}

.char-decrypted {
  color: var(--text-main);
  display: inline-block;
}

/* Hash Display Styles */
.hash-display {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 8px;
  margin: 0.5rem 0;
  max-width: 100%;
  transition: all 0.2s ease;
}

.hash-display:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--primary);
}

.hash-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.8;
}

.hash-value {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  word-break: break-all;
  text-align: center;
}

.btn-icon-sm {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--primary);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.btn-icon-sm:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--primary);
  transform: scale(1.1);
}

.btn-icon-sm i {
  font-size: 0.9rem;
}