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

:root {
  /* ── Dark Mode (default) — Navy + Mint ── */
  --bg0: #080e1d;
  --bg1: #0c1528;
  --bg2: #101e38;
  --bg3: #0e1930;
  --accent: #2dd4bf;
  --accent2: #5eead4;
  --accent-glow: rgba(45,212,191,0.2);
  --text: #e2e8f0;
  --text-muted: rgba(226,232,240,0.55);
  --border: rgba(148,163,184,0.12);
  --card-bg: rgba(148,163,184,0.06);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

/* ══════════════════════════ LIGHT MODE ══════════════════════════ */
[data-theme="light"] {
  --bg0: #f8fafc;
  --bg1: #f1f5f9;
  --bg2: #e2e8f0;
  --bg3: #cbd5e1;
  --accent: #0d9488;
  --accent2: #0f766e;
  --accent-glow: rgba(13,148,136,0.12);
  --text: #0f172a;
  --text-muted: rgba(15,23,42,0.6);
  --border: rgba(15,23,42,0.1);
  --card-bg: rgba(15,23,42,0.04);
}
[data-theme="light"] nav {
  background: rgba(248,250,252,0.88);
}
[data-theme="light"] .hero::before {
  background: var(--bg1);
}
[data-theme="light"] .hero-badge {
  background: rgba(13,148,136,0.1);
  border-color: rgba(13,148,136,0.3);
}
[data-theme="light"] .btn-secondary {
  background: rgba(0,0,0,0.06);
  color: var(--text);
}
[data-theme="light"] .btn-secondary:hover { background: rgba(0,0,0,0.1); }
[data-theme="light"] .hero-preview img {
  box-shadow: 0 40px 120px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.08);
}
[data-theme="light"] .screenshots-section {
  background: var(--bg1);
}
[data-theme="light"] .slide { box-shadow: 0 30px 80px rgba(0,0,0,0.15); }
[data-theme="light"] .arrow {
  background: rgba(0,0,0,0.07);
  border-color: rgba(0,0,0,0.12);
  color: var(--text);
}
[data-theme="light"] .arrow:hover { background: rgba(13,148,136,0.15); }
[data-theme="light"] .download-section {
  background: var(--bg1);
}
[data-theme="light"] .providers-section {
  background: var(--bg0);
}
[data-theme="light"] #features::before {
  background: var(--bg1);
}
[data-theme="light"] .lightbox { background: rgba(0,0,0,0.88); }
[data-theme="light"] .feature-card:hover {
  border-color: rgba(13,148,136,0.3);
  box-shadow: 0 20px 60px rgba(13,148,136,0.08);
}
[data-theme="light"] .download-card:hover {
  border-color: rgba(13,148,136,0.4);
  box-shadow: 0 20px 60px rgba(13,148,136,0.08);
}
[data-theme="light"] .dot { background: rgba(0,0,0,0.2); }

/* ══════════════════════════ THEME TOGGLE ══════════════════════════ */
.theme-toggle {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  flex-shrink: 0;
  font-family: var(--font);
}
.theme-toggle:hover { color: var(--accent); border-color: rgba(45,212,191,0.4); }
[data-theme="light"] .theme-toggle:hover { border-color: rgba(13,148,136,0.4); }

html { scroll-behavior: smooth; }

body {
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ══════════════════════════ NAV ══════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: rgba(8,14,29,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-logo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: contain;
}
.nav-logo .dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--card-bg); }

.nav-btn {
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  padding: 8px 18px !important;
  border-radius: 10px !important;
  transition: opacity 0.2s, transform 0.2s !important;
}
[data-theme="light"] .nav-btn { color: #fff !important; }
.nav-btn:hover { opacity: 0.88; transform: translateY(-1px) !important; }

/* ══════════════════════════ LANG SWITCHER ══════════════════════════ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  flex-shrink: 0;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.04em;
  font-family: var(--font);
}
.lang-btn:hover { color: var(--text); background: rgba(148,163,184,0.1); }
.lang-btn.active { background: var(--accent); color: #fff; }
[data-theme="light"] .lang-btn.active { color: #fff; }

/* ══════════════════════════ HERO ══════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg1);
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; max-width: 820px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45,212,191,0.1);
  border: 1px solid rgba(45,212,191,0.3);
  color: var(--accent2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}
.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
  animation: fadeUp 0.5s ease both;
}
.hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 8px 32px rgba(45,212,191,0.2);
  flex-shrink: 0;
}
.hero-badge .pulse {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero h1 .brand { color: var(--accent); }
.hero h1 .dim { color: var(--text-muted); }

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 48px;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(45,212,191,0.3);
}
.btn-primary:hover { box-shadow: 0 12px 40px rgba(45,212,191,0.45); }
[data-theme="light"] .btn-primary { color: #fff; box-shadow: 0 8px 32px rgba(13,148,136,0.3); }
[data-theme="light"] .btn-primary:hover { box-shadow: 0 12px 40px rgba(13,148,136,0.45); }

.btn-secondary {
  background: rgba(148,163,184,0.08);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { background: rgba(148,163,184,0.15); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 12px 22px;
  font-size: 0.9rem;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(148,163,184,0.3); }

.hero-platforms {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.82rem;
  animation: fadeUp 0.6s 0.4s ease both;
}
.hero-platforms .sep { opacity: 0.3; }
.platform-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 100px;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
}
a.platform-pill:hover {
  border-color: rgba(45,212,191,0.4);
  color: var(--text);
  transform: translateY(-1px);
}
[data-theme="light"] a.platform-pill:hover {
  border-color: rgba(13,148,136,0.4);
}

.hero-preview {
  position: relative;
  margin-top: 72px;
  animation: fadeUp 0.8s 0.5s ease both;
}
.hero-preview-glow {
  display: none;
}
.hero-preview img {
  position: relative;
  z-index: 1;
  width: min(900px, 92vw);
  border-radius: 18px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 0 1px rgba(148,163,184,0.1);
  display: block;
  margin: 0 auto;
}

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

/* ══════════════════════════ SECTION ══════════════════════════ */
section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 56px;
}

/* ══════════════════════════ FEATURES ══════════════════════════ */
#features { position: relative; }
#features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg1);
  z-index: -1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-glow);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  border-color: rgba(45,212,191,0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(45,212,191,0.08);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.feature-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(45,212,191,0.1);
  padding: 3px 10px;
  border-radius: 100px;
}
[data-theme="light"] .feature-tag { background: rgba(13,148,136,0.1); }

/* ══════════════════════════ PROVIDERS ══════════════════════════ */
.providers-section {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg0);
}
.providers-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.providers-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.provider-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: border-color 0.2s, transform 0.2s;
}
.provider-chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.provider-chip .emoji { font-size: 1.3rem; }

/* ══════════════════════════ SCREENSHOTS ══════════════════════════ */
.screenshots-section {
  padding: 100px 0;
  background: var(--bg1);
  overflow: hidden;
}
.screenshots-section .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  margin-bottom: 52px;
}

.slider-wrap {
  position: relative;
  width: 100vw;
  height: 460px;
  perspective: 1400px;
}
.slider {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.slide {
  position: absolute;
  top: 50%; left: 50%;
  width: 580px;
  height: 380px;
  margin-top: -190px;
  margin-left: -290px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(.25,.46,.45,.94),
              opacity  0.6s ease,
              filter   0.6s ease,
              box-shadow 0.6s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}
.dots { display: flex; gap: 8px; }
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(148,163,184,0.25);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.dot.active { background: var(--accent); transform: scale(1.5); }

.arrow {
  background: rgba(148,163,184,0.08);
  border: 1px solid rgba(148,163,184,0.15);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
}
.arrow:hover { background: rgba(45,212,191,0.2); transform: scale(1.1); }

/* ══════════════════════════ STORY ══════════════════════════ */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 768px) { .story-grid { grid-template-columns: 1fr; gap: 40px; } }

.story-text h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
}
.story-text p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: 0.975rem;
}
.story-text p strong { color: var(--text); }

.story-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}
.highlight-item .icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.highlight-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.highlight-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ══════════════════════════ DOWNLOAD ══════════════════════════ */
.download-section {
  background: var(--bg1);
  padding: 100px 24px;
  text-align: center;
}
.download-section .inner { max-width: 900px; margin: 0 auto; }

.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.download-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: var(--text);
}
.download-card:hover {
  border-color: rgba(45,212,191,0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(45,212,191,0.08);
}
.download-card .os-icon { font-size: 3rem; color: var(--accent); }
.download-card h3 { font-size: 1.1rem; font-weight: 700; }
.download-card .version {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
}
.download-card .dl-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.2s;
}
[data-theme="light"] .download-card .dl-btn { color: #fff; }
.download-card .dl-btn:hover { opacity: 0.85; }
.download-card.extension {
  border-style: dashed;
}

/* ══════════════════════════ SUPPORT ══════════════════════════ */
.support-section {
  padding: 80px 24px;
  text-align: center;
}
.support-section .inner { max-width: 600px; margin: 0 auto; }
.support-section p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.bmc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFDD00;
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 30px rgba(255,221,0,0.25);
}
.bmc-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,221,0,0.35); }
.bmc-emoji { font-size: 1.3rem; }

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* ══════════════════════════ FOOTER ══════════════════════════ */
footer {
  background: var(--bg0);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
}
.footer-links a { color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); text-decoration: none; }

/* ══════════════════════════ LIGHTBOX ══════════════════════════ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(8px);
  animation: lbFadeIn 0.2s ease;
}
.lightbox.open { display: flex; }
@keyframes lbFadeIn { from{opacity:0} to{opacity:1} }
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.8);
  animation: lbScaleIn 0.25s cubic-bezier(.25,.46,.45,.94);
  cursor: default;
}
@keyframes lbScaleIn { from{transform:scale(0.88);opacity:0} to{transform:scale(1);opacity:1} }
.lightbox-close {
  position: fixed;
  top: 20px; right: 24px;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  z-index: 1001;
}
.lightbox-close:hover { color: var(--accent); transform: scale(1.2); }
.lightbox-counter {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
}

/* ══════════════════════════ SCROLL REVEAL ══════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════ RESPONSIVE ══════════════════════════ */
@media (max-width: 640px) {
  nav { padding: 0 12px; gap: 8px; }
  .nav-links { display: none; }
  .lang-switcher { padding: 3px; }
  .lang-btn { padding: 3px 5px; font-size: 0.65rem; }
  .slide { width: 320px; height: 210px; margin-top: -105px; margin-left: -160px; }
  .slider-wrap { height: 260px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-platforms { gap: 8px; }
}
