:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #0f1015;
  /* Sligthly lighter for cards */
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-color: #3b82f6;
  /* Tech Blue */
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --cta-color: #2563eb;
  --cta-hover: #1d4ed8;
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --font-en: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-cn: "Noto Sans SC", "PingFang SC", sans-serif;
  --container-width: 1200px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-en);
  /* Default to English font, generic names handle fallback */
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography for mixed content */
h1,
h2,
h3,
h4,
.subtitle,
.badge,
.nav-links a,
.btn {
  font-family: var(--font-cn), var(--font-en);
  /* Prioritize CN font for headings if needed, or rely on unicode-range */
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* Utility Classes */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--cta-color);
  color: white;
}

.btn-primary:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-block {
  display: block;
  width: 100%;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
}

.section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-color);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.15), transparent 50%);
  position: relative;
  overflow: hidden;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero h1 {
  font-size: 4.5rem;
  /* Increased size */
  line-height: 1.1;
  margin-bottom: 2rem;
  font-weight: 800;
}

.gradient-text {
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.2rem;
  /* Slight increase */
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

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

.cta-group {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  /* More gap */
  margin-bottom: 5rem;
  transform: scale(1.1);
  /* Scale up buttons slightly */
}

.tech-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3rem;
  /* More gap between items */
  max-width: 1100px;
  /* Wider container */
  margin: 0 auto;
  background: var(--glass-bg);
  padding: 3rem;
  /* More padding */
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 2.2rem;
  /* Larger numbers */
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  white-space: nowrap;
  /* Prevent wrapping */
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
}

.floating-toolbar {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
  font-weight: 500;
  z-index: 900;
  animation: float 3s ease-in-out infinite;
  cursor: pointer;
  font-size: 0.9rem;
}

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

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

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.feature-card p {
  color: var(--text-secondary);
}

/* Comparison */
.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
  min-width: 800px;
  /* Prevent crunching on small screens */
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
  color: var(--text-secondary);
}

.comparison-table td {
  color: var(--text-secondary);
}

.comparison-table .highlight {
  background: rgba(59, 130, 246, 0.05);
  /* Subtle highlight for our column */
  color: var(--text-primary);
  font-weight: 600;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.comparison-table th.highlight {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  font-size: 1.1rem;
}

/* Code Block */
.code-block-wrapper {
  background: #1e1e1e;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow-x: auto;
  position: relative;
}

.code-block-wrapper pre {
  margin: 0;
  font-family: "Fira Code", monospace;
  color: #d4d4d4;
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  margin: -2rem 0 3rem;
}

/* Pricing */
.pricing-card {
  max-width: 400px;
  margin: 0 auto;
  background: var(--bg-secondary);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid var(--accent-color);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.1);
  text-align: center;
}

.pricing-features {
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.pricing-features li::before {
  content: "✓";
  color: var(--accent-color);
  margin-right: 10px;
  font-weight: bold;
}

.price-tag {
  margin-bottom: 2rem;
}

.currency {
  font-size: 1.5rem;
  color: var(--text-secondary);
  vertical-align: top;
}

.amount {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.period {
  color: var(--text-secondary);
}

/* Enterprise Solution Section */
.enterprise-solution {
  background: #0b0c10;
  /* Dark background similar to ref */
  padding: 8rem 0 4rem;
  text-align: center;
}

.enterprise-solution .section-title {
  font-size: 3rem;
  margin-bottom: 2rem;
  text-align: center;
  /* Override left align from other sections if needed */
}

.enterprise-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.enterprise-solution .cta-group {
  margin-bottom: 1.5rem;
}

.cta-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.highlight-blue {
  color: #4facfe;
  /* Bright blue highlight */
  font-weight: 500;
}

/* Enterprise Stats Bar */
.enterprise-stats-bar {
  padding: 3rem 0 6rem;
  background: #0b0c10;
  /* Continue bg */
}

.enterprise-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3rem;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.ent-stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.ent-stat-label {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.4;
  max-width: 200px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .enterprise-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Performance Section */
.performance-content {
  background: transparent;
  /* Removed card background */
  border: none;
  /* Removed border */
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.performance-text {
  padding: 2rem 0;
  /* Reset vertical padding, remove horizontal padding on mobile */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.performance-text .section-title {
  margin-bottom: 2rem;
  font-size: 2.2rem;
  /* Larger */
}

/* Override default section title align for this specific layout if needed */
.performance-text .section-title {
  text-align: left;
}

.performance-desc {
  color: var(--text-secondary);
  font-size: 1.2rem;
  /* Increased */
  line-height: 1.8;
  margin-bottom: 3rem;
}

.performance-highlight {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 2rem;
  /* Initial padding, flex-wrap adjustments below */
  border-radius: 12px;
}

.performance-highlight h4 {
  color: #fff;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.highlight-badge {
  display: inline-block;
  background: #ffd700;
  /* Gold */
  color: #000;
  font-weight: 700;
  padding: 6px 16px;
  /* Larger badge */
  border-radius: 20px;
  font-size: 1rem;
}

.performance-image {
  background: transparent;
  /* No background */
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  /* No padding */
  position: relative;
  /* Removed fixed height constraint if image can handle it, 
       but keeping min-height prevents collapse */
  min-height: auto;
}

.performance-image img {
  width: 100%;
  height: auto;
  /* Let it grow naturally */
  object-fit: contain;
  padding: 0;
  /* No padding */
  border-radius: 20px;
  /* User requested radius on image */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  /* Enhanced depth */
}

.image-caption {
  position: absolute;
  bottom: -2rem;
  /* Move outside image */
  left: 0;
  width: 100%;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  padding: 0 1rem;
}

/* PC Side-by-Side Layout */
@media (min-width: 992px) {
  .performance-content {
    flex-direction: row-reverse;
    max-width: 1400px;
    /* Maximize width on large screens */
    margin: 0 auto;
    gap: 4rem;
    /* Add gap since no container */
  }

  .performance-text {
    flex: 3.5;
    /* 35% */
    padding: 2rem 0;
    /* Adjust padding */
  }

  .performance-image {
    flex: 6.5;
    padding: 0;
    /* Ensure no padding on desktop either */
  }
}

.performance-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.performance-highlight {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.performance-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-gradient);
}

.performance-highlight h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.performance-highlight p {
  color: var(--text-secondary);
}

.text-link {
  color: var(--accent-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: #60a5fa;
  text-decoration-thickness: 2px;
}

.highlight-badge {
  color: #ffd700;
  font-weight: 700;
  background: rgba(255, 215, 0, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin: 0 4px;
  display: inline-block;
}

.performance-image {
  width: 100%;
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

.performance-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.image-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  opacity: 0.7;
}

/* Feature Visual Card Styles (Migrated from Bento) */
.feature-visual-card {
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  padding: 0;
  /* Remove default padding for image container */
  height: 300px;
  /* Or min-height */
}

.feature-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.feature-visual-card:hover img {
  opacity: 0.4;
}

.card-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2rem;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  flex-direction: column;
}

.marker-line {
  width: 4px;
  height: 20px;
  background: #ff6a00;
  margin-bottom: 0.8rem;
}

.feature-visual-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  color: #fff;
  font-weight: 700;
}

.feature-visual-card p {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: auto;
  max-width: 95%;
}

.card-tag {
  margin-top: auto;
  color: #fff;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Interactive Features Section */
.interactive-features {
  position: relative;
  padding: 0;
  height: 1000px;
  /* Increased height by 100px */
  overflow: hidden;
  border-top: none;
  background: #000;
}

.features-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.feature-bg {
  position: absolute;
  top: 50%;
  /* Center vertical */
  left: 50%;
  /* Center horizontal */
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  background-size: contain;
  /* Don't stretch */
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.feature-bg.active {
  opacity: 1;
}

/* Gradient Mask for fading edges */
.features-bg-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Stronger fade for smoother blend */
  background: radial-gradient(circle at center, transparent 40%, #000 95%),
    linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.6) 80%, #000 100%);
  pointer-events: none;
  z-index: 1;
}

.bg-overlay {
  display: none;
  /* Replaced by pseudo-element mask */
}

/* Floating Toolbar */
.floating-toolbar {
  position: fixed;
  bottom: 2rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  /* transform: translateX(-50%); Removed to avoid sub-pixel issues */
  background: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.6rem 1rem;
  /* Symmetric horizontal padding */
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.95rem;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  width: fit-content;
  max-width: 90vw;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  /* Green */
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: breathing 2s infinite;
}

@keyframes breathing {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

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

.toolbar-text {
  font-weight: 500;
  color: #eee;
  font-size: 0.9rem;
}

.btn-contact {
  background: #fff;
  color: #000;
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-contact:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

/* Modal Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: #111;
  width: 90%;
  max-width: 400px;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #666;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  text-align: left;
}

.modal-subtitle {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  text-align: left;
}

.contact-card {
  background: #1a1b1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
  cursor: pointer;
}

.contact-card:hover {
  background: #25262a;
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon img,
.contact-icon svg {
  width: 24px;
  height: 24px;
}

/* Discord Specific */
.discord-card {
  background: rgba(88, 101, 242, 0.1);
  border-color: rgba(88, 101, 242, 0.2);
}

.discord-icon {
  background: #5865f2;
  color: white;
}

.contact-action-btn {
  margin-left: auto;
  background: rgba(88, 101, 242, 0.2);
  color: #5865f2;
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.contact-action-btn:hover {
  background: rgba(88, 101, 242, 0.3);
}

/* WeChat Specific */
.wechat-card {
  background: rgba(7, 193, 96, 0.1);
  border-color: rgba(7, 193, 96, 0.2);
  display: block;
  /* Different layout for QR */
}

.wechat-card .card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.wechat-icon {
  background: #07c160;
}

.wechat-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.qr-container {
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  width: 160px;
  margin: 0 auto;
}

.qr-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Email Specific */
.email-card {
  background: rgba(255, 255, 255, 0.05);
}

.email-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
}

.contact-info {
  text-align: left;
  flex: 1;
  /* Take up available space */
}

.contact-info h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.2rem;
  margin-top: 0;
}

.contact-info p {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}

.copy-icon {
  margin-left: auto;
  color: #666;
}

.email-card:hover .copy-icon {
  color: #fff;
}

/* Navigation Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.prev-arrow {
  left: 20px;
}

.next-arrow {
  right: 20px;
}

@media (max-width: 768px) {
  .nav-arrow {
    display: none;
    /* Hide arrows on mobile, swipe or tap cards instead */
  }
}

.features-container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 4rem;
  /* More space at bottom */
  pointer-events: none;
  /* Let clicks pass through container area to arrows/bgs if needed, but we need click on cards */
}

.features-container > * {
  pointer-events: auto;
  /* Re-enable clicks on children */
}

.features-container .section-title {
  position: relative;
  /* In flow */
  top: auto;
  left: auto;
  width: 100%;
  text-align: left;
  /* Align with grid */
  color: #fff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
  margin-bottom: 2rem;
}

.feature-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-nav-card {
  background: rgba(255, 255, 255, 0.05);
  /* Very transparent */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.feature-nav-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.feature-nav-card.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-nav-card.active h3 {
  color: var(--accent-color);
}

.feature-nav-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #fff;
  font-weight: 600;
}

.feature-nav-card p {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0;
  line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .feature-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mobile-feature-img {
  display: none;
  /* Desktop default */
}

@media (max-width: 768px) {
  .interactive-features {
    height: auto;
    padding: 4rem 0;
  }

  .features-bg-container {
    display: none;
    /* Hide background on mobile */
  }

  .features-container {
    justify-content: flex-start;
  }

  .features-container .section-title {
    position: relative;
    top: 0;
    margin-bottom: 2rem;
  }

  .feature-nav-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-nav-card {
    background: var(--bg-secondary);
    padding: 0;
    overflow: hidden;
    backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-feature-img {
    display: block;
    width: 100%;
    height: 200px;
    background: #000;
  }

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

  .feature-nav-card h3 {
    padding: 1.2rem 1.2rem 0.5rem;
    margin-bottom: 0;
  }

  .feature-nav-card p {
    padding: 0 1.2rem 1.2rem;
  }

  /* Adjust hint position */
  .feature-nav-card::after {
    padding: 0 1.2rem 1.2rem;
    margin-top: -0.5rem;
  }
}

/* Why Choose Us (Bento Grid) */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 992px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
  }

  .workflow-card {
    grid-column: 1 / -1;
    /* Full Width */
  }
}

.bento-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  /* Mimic the reference style */
  background: #000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.workflow-card {
  padding: 3rem;
  border: 1px solid #333;
}

.workflow-card .card-header {
  background: #111;
  border: 1px solid #333;
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  margin-bottom: 2rem;
}

.workflow-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.workflow-card .card-header p {
  color: #888;
  margin: 0;
  font-size: 0.9rem;
}

.workflow-card > .card-header {
  /* Reset from inline-block for the wrapper logic if needed, 
       but actually let's style the content differently based on reference */
  background: transparent;
  border: none;
  padding: 0;
  display: block;
  margin-bottom: 3rem;
}

.workflow-card > .card-header h3 {
  display: inline-block;
  background: #111;
  border: 1px solid #333;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.workflow-card > .card-header p {
  font-size: 1.2rem;
  color: #ccc;
  display: block;
}

.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 200px;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  color: #fff;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-content h4 {
  color: #fff;
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.step-content p {
  color: #888;
  font-size: 0.9rem;
}

.step-arrow {
  color: #333;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .steps-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .step-arrow {
    display: none;
    /* Hide arrows on mobile stack */
  }

  .step-item {
    width: 100%;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

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

  .cta-group {
    flex-direction: column;
    padding: 0 2rem;
  }

  .stat-item {
    margin-bottom: 1rem;
  }

  .tech-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem;
    gap: 1rem;
  }

  /* Fix overflow for large stats on mobile */
  .stat-value {
    font-size: 1.4rem;
    white-space: normal;
    word-break: break-word;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
  }

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

  .nav-container {
    /* Ensure flex alignment */
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-lang-btn {
    display: block;
    margin-left: auto;
    /* Push to right, next to burger */
  }

  .lang-dropdown {
    display: none;
    /* Hide old dropdown on mobile */
  }

  .nav-toggle {
    margin-left: 0;
    /* Removing padding between them if needed */
  }
}

/* Mobile Language Button (Global) */
.mobile-lang-btn {
  display: none;
  /* Hidden by default on desktop */
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-right: 15px;
  transition: all 0.3s;
}

.mobile-lang-btn:hover,
.mobile-lang-btn:active {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}

/* Footer Styles */
.footer {
  background: #0a0b0f;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 0 2rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  color: #888;
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  position: relative;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
  transition: width 0.3s ease;
}

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

.copyright {
  color: #666;
  font-size: 0.8rem;
  margin: 0;
}

.icp-info {
  color: #555;
  font-size: 0.75rem;
  margin: 0;
}

.icp-info a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

.icp-info a:hover {
  color: #888;
}

@media (max-width: 768px) {
  .footer {
    padding: 2rem 0 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Enterprise Guarantees Section */
.enterprise-guarantees {
  background: linear-gradient(180deg, #0b0c10 0%, #12141a 100%);
  padding: 6rem 0;
  position: relative;
}

.enterprise-guarantees .section-title {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 2.5rem;
}

.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.guarantee-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.guarantee-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.guarantee-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.guarantee-card:hover::before {
  transform: scaleX(1);
}

.guarantee-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(0, 242, 254, 0.1));
  border-radius: 50%;
  color: var(--accent-color);
}

.guarantee-icon svg {
  filter: drop-shadow(0 0 8px rgba(79, 172, 254, 0.3));
}

.guarantee-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.guarantee-desc {
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.6;
  margin: 0;
}

/* Quick Start CTA Section */
.quick-start-cta {
  background: linear-gradient(135deg, #1a1d29 0%, #0f1117 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.quick-start-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.05) 0%, transparent 70%);
  animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.quick-start-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 3rem 3rem;
  backdrop-filter: blur(10px);
}

.quick-start-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3rem;
  background: linear-gradient(90deg, #fff, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.steps-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(79, 172, 254, 0.1);
  border: 1px solid rgba(79, 172, 254, 0.3);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.step-item:hover {
  background: rgba(79, 172, 254, 0.15);
  transform: scale(1.05);
}

.step-number {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: #000;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
}

.step-text {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.step-arrow {
  color: var(--accent-color);
  font-size: 1.5rem;
  font-weight: 300;
}

.quick-start-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  min-width: 180px;
}

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

  .quick-start-content {
    padding: 2rem 1.5rem;
  }

  .steps-flow {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .quick-start-title {
    font-size: 1.5rem;
  }
}

/* Apifox Integration Section */
.apifox-integration {
  background: #0f1117;
  padding: 6rem 0;
}

.apifox-integration .section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  /* Increased spacing to prevent overlap */
}

.apifox-integration .section-desc {
  text-align: center;
  color: #888;
  margin-bottom: 5rem;
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.apifox-layout {
  display: flex;
  align-items: center;
  gap: 2rem;
  /* Reduced gap */
  max-width: 1600px;
  /* Increased max-width */
  margin: 0 auto;
  padding: 0 2rem;
}

.apifox-info {
  display: none;
}

.apifox-preview {
  width: 100%;
  max-width: 1200px;
  /* Optional cap */
  margin: 0 auto;
}

.apifox-btn-container {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.apifox-subtitle::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

.apifox-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem 0;
}

.apifox-steps li {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.step-badge {
  width: 32px;
  height: 32px;
  background: rgba(79, 172, 254, 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(79, 172, 254, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-details strong {
  display: block;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.step-details p {
  color: #888;
  margin: 0;
  font-size: 0.95rem;
}

.apifox-cta {
  display: flex;
  gap: 1rem;
}

.apifox-preview {
  flex: 2;
  /* Increased leverage for bigger image */
}

.p-window {
  background: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.p-bar {
  background: #2d2d2d;
  padding: 0.8rem 1rem;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.p-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.p-dot.red {
  background: #ff5f56;
}

.p-dot.yellow {
  background: #ffbd2e;
}

.p-dot.green {
  background: #27c93f;
}

.apifox-img {
  width: 100%;
  display: block;
  opacity: 0.9;
}

@media (max-width: 992px) {
  .apifox-layout {
    flex-direction: column;
    gap: 3rem;
  }

  .apifox-info,
  .apifox-preview {
    flex: auto;
    width: 100%;
  }

  .apifox-img {
    width: 100%;
  }
}

/* Merged Enterprise CTA Section */
.merged-enterprise-cta {
  background: #0b0c10;
  /* Dark background matching the theme */
  padding: 6rem 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  /* Separator from previous section */
}

/* Adjust child containers for seamless look */
.merged-enterprise-cta .quick-start-container {
  margin-top: 4rem;
  /* Gap between guarantees and CTA card */
}

/* Override original section specific styles to fit inside the merged section if needed */
/* Detailed Comparison Section */
.detail-comparison {
  padding: 6rem 0;
  background: #0f1015;
  /* Match secondary bg */
}

.comparison-card {
  background: #1e1e1e;
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
}

.detail-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 600px;
}

.detail-table th,
.detail-table td {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-table th {
  font-size: 1.1rem;
  color: #888;
  font-weight: 500;
}

.detail-table .feature-col {
  text-align: left;
  width: 25%;
  color: #fff;
  font-weight: 600;
}

.detail-table .highlight-col {
  background: rgba(59, 130, 246, 0.05);
  border-top-left-radius: 12px;
  border-bottom-left-radius: 0;
  border-top-right-radius: 12px;
}

.highlight-cell {
  background: rgba(59, 130, 246, 0.05);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Rounded corners for highlight column bottom */
.detail-table tbody tr:last-child .highlight-cell {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.th-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.brand-name {
  color: #3b82f6;
  font-weight: 700;
  font-size: 1.2rem;
}

.brand-tag {
  background: #3b82f6;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.badge-save {
  display: inline-block;
  background: #22c55e;
  color: #000;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: 700;
}

.cost-good,
.speed-good {
  color: #60a5fa;
  /* Light blue text */
}

/* Icon styles for comparison table */
.icon-y {
  color: #22c55e;
  font-weight: bold;
  font-size: 1.2rem;
}

.icon-n {
  color: #ef4444;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Ensure merged guarantees margin works with this new previous sibling */
.merged-enterprise-cta .guarantees-grid {
  margin-bottom: 0;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  color: #e0e0e0;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.arrow-down {
  font-size: 0.7rem;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.lang-dropdown:hover .arrow-down,
.lang-dropdown.active .arrow-down {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #1a1b1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px;
  min-width: 150px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}

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

.lang-menu li {
  width: 100%;
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #ccc;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s;
  font-size: 0.9rem;
}

.lang-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.lang-menu a.active {
  color: var(--accent-color);
  background: rgba(59, 130, 246, 0.1);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 95%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  object-fit: contain;
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 3001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Add pointer cursor to images that can be zoomed */
.performance-image img {
  cursor: zoom-in;
}

/* Feature card hint/interaction on mobile */
@media (max-width: 768px) {
  .feature-nav-card::after {
    content: "🔍 Tap to view image";
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.8rem;
  }

  .feature-nav-card.active::after {
    color: var(--accent-color);
    font-weight: 500;
  }
}

/* Mobile Header Language Dropdown */
.mobile-header-lang-dropdown {
  display: none;
  /* Hidden on desktop */
}

@media (max-width: 768px) {
  .mobile-lang-btn {
    display: none !important;
  }

  .mobile-header-lang-dropdown {
    display: block !important;
    margin-left: auto;
    margin-right: 0.8rem;
    position: relative;
    z-index: 2000;
  }

  /* Hide the original one inside the menu */
  .nav-links .lang-dropdown {
    display: none !important;
  }

  /* Adapt styles for header bar context */
  .mobile-header-lang-dropdown .lang-btn {
    padding: 6px 10px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    /* Subtle bg */
    white-space: nowrap;
  }

  .mobile-header-lang-dropdown .lang-menu {
    top: 120%;
    right: 0;
    min-width: 140px;
  }
}

/* Quick Start Note */
.quick-start-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 1rem;
  opacity: 0.8;
}

/* Mobile Table Conversion - Product Cards */
@media (max-width: 768px) {
  .table-wrapper {
    overflow-x: visible;
    border-radius: 0;
    border: none;
    padding: 0;
  }

  .comparison-table {
    min-width: 100%;
    display: block;
    background: transparent;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tbody {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .comparison-table tbody tr {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    margin: 0;
  }

  /* First td as card title */
  .comparison-table tbody tr td:first-child {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px 12px 0 0;
  }

  .comparison-table tbody tr td:first-child::before {
    content: none;
  }

  /* Other tds as product rows */
  .comparison-table tbody tr td:not(:first-child) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .comparison-table tbody tr td:last-child {
    border-bottom: none;
    padding-bottom: 1.25rem;
  }

  .comparison-table tbody tr td:not(:first-child)::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
  }

  .comparison-table tbody tr td.highlight {
    background: rgba(59, 130, 246, 0.08);
    border-left: 3px solid #3b82f6;
  }

  .comparison-table tbody tr td.highlight::before {
    color: #60a5fa;
  }

  /* Detail Table - Same mobile card layout */
  .comparison-card {
    overflow-x: visible;
    border-radius: 0;
    border: none;
    padding: 0;
  }

  .detail-table {
    min-width: 100%;
    display: block;
    background: transparent;
  }

  .detail-table thead {
    display: none;
  }

  .detail-table tbody {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .detail-table tbody tr {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    margin: 0;
  }

  /* First td as card title */
  .detail-table tbody tr td:first-child {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px 12px 0 0;
  }

  .detail-table tbody tr td:first-child::before {
    content: none;
  }

  /* Other tds as product rows */
  .detail-table tbody tr td:not(:first-child) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .detail-table tbody tr td:last-child {
    border-bottom: none;
    padding-bottom: 1.25rem;
  }

  .detail-table tbody tr td:not(:first-child)::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
  }

  .detail-table tbody tr td.highlight-cell {
    background: rgba(59, 130, 246, 0.08);
    border-left: 3px solid #3b82f6;
  }

  .detail-table tbody tr td.highlight-cell::before {
    color: #60a5fa;
  }
}
