:root {
  --bg: #090a0f;
  --card: #14161f;
  --card-b: #1f2231;
  --text: #f1f5f9;
  --sub: #94a3b8;
  --btn: #00adef;
  --btn-h: #009bd7;
  --ok-text: #22c55e;
  --warning: #f59e0b;
  --brand-gradient: linear-gradient(135deg, #33c2f5, #00adef);
  --hero-bg: radial-gradient(ellipse at top, rgba(0, 173, 239, 0.15), transparent 60%);
  --header-bg: rgba(20, 22, 31, 0.92);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --card: #ffffff;
  --card-b: #e2e8f0;
  --text: #0f172a;
  --sub: #64748b;
  --hero-bg: radial-gradient(ellipse at top, rgba(0, 173, 239, 0.08), transparent 60%);
  --header-bg: rgba(255, 255, 255, 0.92);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
  width: 100%;
}

/* Accessibility Modes */
html.a11y-font-lg { font-size: 112.5%; }
html.a11y-font-xl { font-size: 125%; }
html.a11y-contrast {
  --bg: #000000 !important;
  --card: #121212 !important;
  --card-b: #ffffff !important;
  --text: #ffffff !important;
  --sub: #f1f5f9 !important;
  --header-bg: #000000 !important;
}
html.a11y-highlight-links a {
  text-decoration: underline !important;
  font-weight: bold !important;
  background-color: rgba(0, 173, 239, 0.25) !important;
}
html.a11y-readable-font body, html.a11y-readable-font * {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.04em !important;
  word-spacing: 0.08em !important;
  line-height: 1.8 !important;
}
html.a11y-stop-motion *, html.a11y-stop-motion *::before, html.a11y-stop-motion *::after {
  animation: none !important;
  transition: none !important;
}

/* Scroll Animations */
/* Scroll Animations with failsafe defaults */
.reveal { opacity: 1; transform: translateY(0); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
html.js-ready .reveal:not(.active) { opacity: 0; transform: translateY(30px); }
html.js-ready .reveal.active { opacity: 1; transform: translateY(0); }

header {
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--card-b);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s, border-color 0.3s;
}

.logo { font-size: 1.4rem; font-weight: 700; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.logo span { background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo svg { width: 28px; height: 28px; color: var(--btn); }

/* Desktop Nav */
.desktop-nav { display: flex; gap: 1.5rem; align-items: center; }
.desktop-nav a { color: var(--sub); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--text); }

/* Header Actions Bar (Lang, Theme, A11y, Hamburger) */
.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.action-btn, .theme-toggle, .a11y-toggle-btn {
  background: none; border: 1px solid transparent; color: var(--sub); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.action-btn:hover, .theme-toggle:hover, .a11y-toggle-btn:hover {
  background: rgba(148, 163, 184, 0.1); color: var(--text); border-color: var(--card-b);
}
.theme-toggle svg, .a11y-toggle-btn svg { width: 20px; height: 20px; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
html:not([data-theme]) .icon-moon { display: none; }

/* Language Switcher */
.lang-switcher { position: relative; display: inline-block; }
.lang-btn {
  background: none; border: 1px solid transparent; color: var(--sub); cursor: pointer;
  display: flex; align-items: center; gap: 0.35rem; font-weight: 500; font-size: 0.9rem;
  padding: 0.45rem 0.65rem; border-radius: 8px; transition: color 0.2s, background-color 0.2s;
  -webkit-tap-highlight-color: transparent; height: 40px;
}
.lang-btn:hover { color: var(--text); background: rgba(148, 163, 184, 0.1); }
.lang-btn svg { opacity: 0.8; }
.lang-dropdown {
  position: absolute; top: 100%; right: 0; margin-top: 0.5rem;
  background: var(--card); border: 1px solid var(--card-b); border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3); display: none; flex-direction: column;
  min-width: 130px; z-index: 1010; overflow: hidden;
}
.lang-dropdown.show { display: flex; }
.lang-dropdown a {
  color: var(--sub); padding: 0.75rem 1rem; text-decoration: none; font-size: 0.95rem;
  transition: background-color 0.2s, color 0.2s; text-align: left;
}
.lang-dropdown a:hover { background: rgba(0, 173, 239, 0.1); color: var(--text); }

/* Mobile Navigation Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--card-b);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu-toggle:hover {
  background: rgba(148, 163, 184, 0.1);
  border-color: var(--btn);
}
.mobile-menu-toggle svg { width: 22px; height: 22px; }
.mobile-menu-toggle .icon-close { display: none; }
.mobile-menu-toggle.active .icon-menu { display: none; }
.mobile-menu-toggle.active .icon-close { display: block; }

/* Mobile Navigation Drawer (100% SOLID Non-Transparent Background) */
.mobile-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card);
  border-bottom: 1px solid var(--card-b);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  padding: 1.25rem 5%;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1005;
}
.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}
.mobile-drawer nav a {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.06);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  font-size: 1.05rem;
  transition: background 0.2s;
}
.mobile-drawer nav a:hover, .mobile-drawer nav a.active {
  background: rgba(0, 173, 239, 0.18);
  color: var(--btn);
}

/* Accessibility Modal Widget */
.a11y-modal {
  position: fixed;
  top: 75px;
  right: 2rem;
  width: 320px;
  max-width: 90vw;
  background: var(--card);
  border: 1px solid var(--card-b);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  z-index: 9995;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}
.a11y-modal.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.a11y-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.25rem; border-bottom: 1px solid var(--card-b); padding-bottom: 0.75rem;
}
.a11y-header h3 { font-size: 1.15rem; font-weight: 600; color: var(--text); }
.a11y-close { background: none; border: none; color: var(--sub); cursor: pointer; font-size: 1.25rem; }
.a11y-group { margin-bottom: 1rem; }
.a11y-group label { display: block; font-size: 0.85rem; color: var(--sub); margin-bottom: 0.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.a11y-btn-grid { display: flex; gap: 0.5rem; }
.a11y-opt-btn {
  flex: 1; padding: 0.5rem; border-radius: 8px; border: 1px solid var(--card-b);
  background: rgba(148, 163, 184, 0.05); color: var(--text); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; text-align: center;
}
.a11y-opt-btn:hover, .a11y-opt-btn.active {
  background: var(--btn); color: #fff; border-color: var(--btn);
}
.a11y-toggle-row {
  display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.75rem;
  background: rgba(148, 163, 184, 0.05); border: 1px solid var(--card-b); border-radius: 10px; margin-bottom: 0.6rem; cursor: pointer;
}
.a11y-toggle-row span { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.a11y-switch {
  width: 36px; height: 20px; background: rgba(148, 163, 184, 0.3); border-radius: 20px;
  position: relative; transition: background 0.2s;
}
.a11y-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  background: #fff; border-radius: 50%; transition: transform 0.2s;
}
.a11y-toggle-row.active .a11y-switch { background: var(--btn); }
.a11y-toggle-row.active .a11y-switch::after { transform: translateX(16px); }
.a11y-reset-btn {
  width: 100%; padding: 0.65rem; border-radius: 10px; border: 1px solid var(--card-b);
  background: rgba(239, 68, 68, 0.1); color: #ef4444; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; margin-top: 0.5rem; text-align: center;
}
.a11y-reset-btn:hover { background: rgba(239, 68, 68, 0.2); }

/* Hero Section */
.hero {
  text-align: center;
  padding: 5rem 5% 4rem;
  background: var(--hero-bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 173, 239, 0.05) 0%, transparent 50%);
  z-index: -1; animation: rotate 30s linear infinite;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }

.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 1.2rem; font-weight: 800; letter-spacing: -1px; line-height: 1.2; }
.hero h1 span { background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--sub); max-width: 650px; margin: 0 auto 2.5rem; line-height: 1.7; }

.cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.9rem 2rem; font-size: 1.05rem; font-weight: 600;
  background: var(--btn); color: #fff; text-decoration: none; border-radius: 12px;
  transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(0, 173, 239, 0.3);
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
}
.cta-btn:hover { background: var(--btn-h); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 173, 239, 0.4); }

.cta-btn.secondary-btn {
  background: rgba(0, 173, 239, 0.1);
  color: var(--btn);
  border: 1px solid rgba(0, 173, 239, 0.35);
  box-shadow: none;
}
.cta-btn.secondary-btn:hover {
  background: rgba(0, 173, 239, 0.2);
  border-color: var(--btn);
  color: var(--text);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 173, 239, 0.25);
}

.features-title { text-align: center; font-size: clamp(1.75rem, 4vw, 2.2rem); margin: 4rem 0 1rem; color: var(--text); padding: 0 5%; }
.features-subtitle { text-align: center; color: var(--sub); font-size: clamp(0.95rem, 2vw, 1.1rem); margin-bottom: 3rem; padding: 0 5%; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; padding: 0 5% 6rem; max-width: 1200px; margin: 0 auto; }
.feature-card {
  background: var(--card); border: 1px solid var(--card-b); border-radius: 20px;
  padding: 2.5rem 2rem; text-align: left;
  transition: all 0.4s ease;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.4); border-color: rgba(0, 173, 239, 0.3); background: var(--card); }
.feature-icon { width: 50px; height: 50px; background: rgba(0, 173, 239, 0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; color: var(--btn); }
.feature-icon svg { width: 26px; height: 26px; }
.feature-title { font-size: 1.3rem; margin-bottom: 0.75rem; font-weight: 600; }
.feature-desc { color: var(--sub); font-size: 0.95rem; line-height: 1.6; }

.screenshot-section {
  max-width: 1200px; margin: 6rem auto 6rem; padding: 0 5%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.screenshot-text h2 { font-size: clamp(1.75rem, 4vw, 2.2rem); margin-bottom: 1rem; color: var(--text); }
.screenshot-text p { color: var(--sub); font-size: clamp(0.95rem, 2vw, 1.1rem); line-height: 1.8; margin-bottom: 1.5rem; }
.screenshot-text ul { list-style: none; color: var(--text); }
.screenshot-text li { margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.5rem; }
.screenshot-text li::before { content: '✓'; color: var(--ok-text); font-weight: bold; }

.screenshot-image {
  background: var(--card); border: 1px solid var(--card-b); border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15); overflow: hidden; max-width: 100%;
}
.screenshot-image img {
  width: 100%; height: auto; display: block; border-radius: 12px;
  transition: opacity 0.3s ease;
}

/* Quick Start / Installation Section */
.steps-title { text-align: center; font-size: clamp(1.75rem, 4vw, 2.2rem); margin: 6rem 0 1rem; color: var(--text); padding: 0 5%; }
.steps-subtitle { text-align: center; color: var(--sub); font-size: clamp(0.95rem, 2vw, 1.1rem); margin-bottom: 4rem; padding: 0 5%; }

.steps-container {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem;
  max-width: 1200px; margin: 0 auto 6rem; padding: 0 5%;
}
.step-card {
  background: var(--card); border: 1px solid var(--card-b); border-radius: 20px;
  padding: 3rem 2rem; position: relative; text-align: center;
}
.step-number {
  position: absolute; top: -25px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 50px; background: var(--btn); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 1.25rem; box-shadow: 0 5px 15px rgba(0, 173, 239, 0.4);
}
.step-title { font-size: 1.25rem; margin-top: 0.5rem; margin-bottom: 0.75rem; font-weight: 600; }
.step-desc { color: var(--sub); font-size: 0.95rem; line-height: 1.6; }

/* FAQ Section */
.faq-title { text-align: center; font-size: clamp(1.75rem, 4vw, 2.2rem); margin: 6rem 0 1rem; color: var(--text); padding: 0 5%; }
.faq-subtitle { text-align: center; color: var(--sub); font-size: clamp(0.95rem, 2vw, 1.1rem); margin-bottom: 4rem; padding: 0 5%; }

.faq-container {
  max-width: 800px; margin: 0 auto 6rem; padding: 0 5%;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.faq-item {
  background: var(--card); border: 1px solid var(--card-b); border-radius: 16px;
  padding: 1.5rem 2rem; cursor: pointer; transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.faq-item:hover { border-color: rgba(0, 173, 239, 0.3); }
.faq-question {
  font-weight: 600; font-size: 1.1rem; display: flex; justify-content: space-between;
  align-items: center; color: var(--text); gap: 1rem;
}
.faq-question svg {
  width: 20px; height: 20px; flex-shrink: 0; color: var(--sub); transition: transform 0.3s ease;
}
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, margin-top 0.3s ease;
  color: var(--sub); font-size: 0.95rem; line-height: 1.6; margin-top: 0;
}
.faq-item.active .faq-answer {
  max-height: 300px; margin-top: 1rem;
}
.faq-item.active .faq-question svg {
  transform: rotate(180deg); color: var(--btn);
}

.free-banner {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.1));
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--text); padding: 4rem 5%; text-align: center; border-radius: 24px;
  margin: 0 auto 5rem; box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  max-width: 1100px; width: 90%;
}
.free-banner h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; color: var(--ok-text); }
.free-banner p { font-size: clamp(1rem, 2.2vw, 1.15rem); max-width: 700px; margin: 0 auto; color: var(--sub); }

footer {
  margin-top: auto; padding: 2.5rem 5%; border-top: 1px solid var(--card-b);
  display: flex; justify-content: space-between; align-items: center; color: var(--sub); font-size: 0.9rem;
  background: var(--card);
}
.footer-links a { color: var(--sub); text-decoration: none; margin-left: 1.5rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--btn); }

/* Prominent Back to top floating button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--btn);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
  -webkit-tap-highlight-color: transparent;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--btn-h);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}
.back-to-top svg { width: 22px; height: 22px; stroke-width: 2.5px; }

/* Cookie Notice Banner */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  visibility: hidden;
  width: 90%;
  max-width: 650px;
  background: var(--card);
  border: 1px solid var(--card-b);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  z-index: 9990;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}
.cookie-content { display: flex; align-items: center; gap: 1rem; }
.cookie-icon { width: 26px; height: 26px; color: var(--btn); flex-shrink: 0; }
.cookie-content p { font-size: 0.9rem; color: var(--sub); line-height: 1.5; }
.cookie-btn {
  background: var(--btn); color: #ffffff; border: none;
  padding: 0.65rem 1.4rem; border-radius: 10px; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; white-space: nowrap; transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.cookie-btn:hover { background: var(--btn-h); transform: translateY(-2px); }

/* Legal Page */
.legal-container { max-width: 800px; margin: 3rem auto; padding: 0 5%; width: 100%; }
.legal-card { background: var(--card); border: 1px solid var(--card-b); border-radius: 20px; padding: 3rem; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.legal-card h1 { font-size: clamp(2rem, 5vw, 2.5rem); margin-bottom: 2rem; background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.legal-card h2 { margin-top: 2.5rem; margin-bottom: 1.2rem; font-size: 1.6rem; border-bottom: 1px solid var(--card-b); padding-bottom: 0.75rem; color: var(--text); }
.legal-card h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; font-size: 1.25rem; color: var(--text); }
.legal-card h4 { margin-top: 1.2rem; margin-bottom: 0.5rem; font-size: 1.1rem; color: #cbd5e1; }
.legal-card p { margin-bottom: 1.2rem; color: var(--sub); line-height: 1.7; word-break: break-word; }
.legal-card a { color: var(--btn); text-decoration: none; transition: color 0.2s; }
.legal-card a:hover { color: var(--btn-h); text-decoration: underline; }

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .screenshot-section { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; margin: 4rem auto; }
  .screenshot-text ul { text-align: left; display: inline-block; }
}

@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}

@media (max-width: 768px) {
  footer { flex-direction: column; gap: 1.25rem; text-align: center; padding: 2rem 5%; }
  .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.5rem; }
  .footer-links a { margin-left: 0; }
  .back-to-top { bottom: 1.25rem; right: 1.25rem; width: 44px; height: 44px; }
  .cookie-banner { flex-direction: column; text-align: center; width: 92%; bottom: 1rem; }
  .cookie-content { flex-direction: column; }
  .a11y-modal { right: 5%; width: 90%; top: 70px; }
}

@media (max-width: 576px) {
  .hero { padding: 3.5rem 4% 3rem; }
  .hero div[style*="flex"] { flex-direction: column; width: 100%; }
  .cta-btn { width: 100%; max-width: 100%; }
  .features { grid-template-columns: 1fr; padding: 0 4% 4rem; gap: 1.5rem; }
  .feature-card { padding: 1.75rem 1.25rem; }
  .steps-container { grid-template-columns: 1fr; gap: 2rem; padding: 0 4% 4rem; }
  .step-card { padding: 2.5rem 1.25rem 1.75rem; }
  .faq-container { padding: 0 4% 4rem; }
  .faq-item { padding: 1.25rem 1.25rem; }
  .free-banner { padding: 2.5rem 1.25rem; width: 92%; margin-bottom: 3rem; border-radius: 18px; }
  .legal-container { margin: 2rem auto; padding: 0 4%; }
  .legal-card { padding: 1.5rem 1.25rem; border-radius: 16px; }
}

/* Semi-Transparent Collapsible Scripts Sidebar */
.scripts-sidebar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  z-index: 9980;
  display: flex;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.scripts-sidebar.collapsed {
  transform: translateY(-50%) translateX(-100%);
}

.scripts-sidebar-panel {
  background: rgba(20, 22, 31, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-b);
  border-left: none;
  border-radius: 0 16px 16px 0;
  padding: 0.5rem 0.35rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scripts-sidebar-panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

[data-theme="light"] .scripts-sidebar-panel {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(226, 232, 240, 0.9);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.sidebar-toggle-btn {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 22, 31, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-b);
  border-left: none;
  border-radius: 0 12px 12px 0;
  color: var(--sub);
  width: 22px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.25);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

[data-theme="light"] .sidebar-toggle-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(226, 232, 240, 0.9);
  color: var(--sub);
}

.sidebar-toggle-btn:hover {
  background: var(--btn);
  border-color: var(--btn);
  color: #ffffff;
}

.sidebar-toggle-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.scripts-sidebar.collapsed .sidebar-toggle-btn svg {
  transform: rotate(180deg);
}

.sidebar-script-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.35rem 0.3rem;
  border-radius: 10px;
  transition: background 0.2s, transform 0.2s;
  min-width: 58px;
  cursor: pointer;
  box-sizing: border-box;
}

.sidebar-script-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

[data-theme="light"] .sidebar-script-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.sidebar-script-item.active-current {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.sidebar-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.sidebar-script-item:hover .sidebar-icon {
  transform: scale(1.08);
}

.sidebar-icon svg {
  width: 17px;
  height: 17px;
}

.sidebar-name {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.15rem;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}

.sidebar-status-tag {
  font-size: 0.48rem;
  font-weight: 700;
  padding: 0.05rem 0.25rem;
  border-radius: 3px;
  margin-top: 0.12rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}

.status-tag-active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.status-tag-coming {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

/* Sidebar Tooltip */
.sidebar-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  background: var(--card);
  border: 1px solid var(--card-b);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 9999;
}

.sidebar-tooltip::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: var(--card-b);
}

.sidebar-script-item:hover .sidebar-tooltip,
.sidebar-script-item:focus .sidebar-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.tooltip-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tooltip-desc {
  font-size: 0.7rem;
  color: var(--sub);
  margin-top: 0.2rem;
}

@media (max-width: 768px) {
  .scripts-sidebar {
    top: auto;
    bottom: 5.5rem;
    transform: none;
  }
  .scripts-sidebar.collapsed {
    transform: translateX(-100%);
  }
}

/* Sidebar Toast Notification Hint */
.sidebar-toast-hint {
  position: absolute;
  left: calc(100% + 14px);
  top: -10px;
  background: var(--card);
  border: 1px solid var(--btn);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: max-content;
  max-width: 270px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px) translateY(-5px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
  z-index: 9999;
}

.sidebar-toast-hint.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) translateY(0);
}

.sidebar-toast-hint::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 18px;
  border: 6px solid transparent;
  border-right-color: var(--btn);
}

.sidebar-toast-text {
  font-size: 0.76rem;
  color: var(--text);
  line-height: 1.35;
  font-weight: 500;
}

.sidebar-toast-close {
  background: transparent;
  border: none;
  color: var(--sub);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.15rem;
  transition: color 0.2s;
  flex-shrink: 0;
}

.sidebar-toast-close:hover {
  color: var(--btn);
}

@media (max-width: 768px) {
  .sidebar-toast-hint {
    display: none !important;
  }
}

/* Green Pulse animation for active badges */
.status-tag-active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.status-tag-active::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.sidebar-request-item {
  margin-top: 0.2rem;
  border-top: 1px dashed var(--card-b);
  padding-top: 0.45rem;
}


/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.preloader-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: var(--btn);
  border-radius: 50%;
  animation: spin-preloader 0.8s linear infinite;
}
.preloader-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
@keyframes spin-preloader {
  to { transform: rotate(360deg); }
}

/* Section Titles */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  text-align: center;
  margin-top: 5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.section-subtitle {
  text-align: center;
  color: var(--sub);
  margin-bottom: 2.5rem;
  padding: 0 5%;
}

/* Comparison Table */
.comparison-container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto 5rem;
}
.comparison-table-wrapper {
  background: var(--card);
  border: 1px solid var(--card-b);
  border-radius: 18px;
  overflow-x: auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}
.comparison-table th, .comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--card-b);
}
.comparison-table th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
  color: var(--text);
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table .highlight-col {
  background: rgba(59, 130, 246, 0.06);
}
.winner-cell { color: #22c55e; font-weight: 600; }
.loser-cell { color: #ef4444; }

/* Use Cases */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto 5rem;
}
.usecase-card {
  background: var(--card);
  border: 1px solid var(--card-b);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.usecase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.usecase-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.usecase-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--text); }
.usecase-card p { font-size: 0.88rem; color: var(--sub); line-height: 1.6; }

/* Support Channels */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto 5rem;
}
.support-card {
  background: var(--card);
  border: 1px solid var(--card-b);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.support-card:hover {
  transform: translateY(-4px);
  border-color: var(--btn);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.support-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.support-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text); }
.support-card p { font-size: 0.9rem; color: var(--sub); line-height: 1.6; flex-grow: 1; margin-bottom: 1.25rem; }
.support-link-btn { font-size: 0.85rem; font-weight: 700; color: var(--btn); }

/* Print Media Styles */
@media print {
  header, footer, .scripts-sidebar, .cookie-banner, .back-to-top, .a11y-modal, .theme-toggle, .mobile-menu-toggle, #printBtn, .preloader {
    display: none !important;
  }
  body { background: #ffffff !important; color: #1e293b !important; }
  .hero { padding: 1rem 0 !important; text-align: left !important; }
  .hero h1 { font-size: 24pt !important; color: #0f172a !important; }
  .cta-btn { display: none !important; }
  .comparison-table-wrapper, .feature-card, .usecase-card, .support-card {
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    page-break-inside: avoid;
  }
}


/* Portal Overview Grid Styling */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

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

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

.portal-card {
  background: var(--card);
  border: 1px solid var(--card-b);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
  border-color: var(--card-border-hover, var(--btn));
}

.portal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.portal-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-card-icon svg {
  width: 24px;
  height: 24px;
}

.portal-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portal-card-tag.live {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.portal-card-tag.beta {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.portal-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.portal-card-panel {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sub);
  margin-bottom: 0.85rem;
}

.portal-card-desc {
  font-size: 0.9rem;
  color: var(--sub);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.portal-card-actions {
  display: flex;
  gap: 0.75rem;
}

.portal-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
}

.portal-btn-primary {
  background: var(--btn);
  color: #ffffff;
}

.portal-btn-primary:hover {
  background: var(--btn-h);
}

.portal-btn-secondary {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text);
  border: 1px solid var(--card-b);
}

.portal-btn-secondary:hover {
  background: rgba(148, 163, 184, 0.2);
}

.status-tag-beta {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.nav-soon-badge {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-left: 5px;
  vertical-align: middle;
  display: inline-block;
}
