/* ═══════════════════════════════════════════════════════════════════════════
   BOTNAME — GLOBAL STYLES
   Thème : Noir & Blanc — Minimalisme éditorial avec des touches graphiques
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── VARIABLES ─────────────────────────────────────────────────────────────── */
:root {
  --black:    #0a0a0a;
  --white:    #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-300: #d0d0d0;
  --gray-400: #a0a0a0;
  --gray-500: #707070;
  --gray-600: #4a4a4a;
  --gray-700: #2a2a2a;
  --gray-800: #1a1a1a;
  --gray-900: #111111;
  --accent:   #ffffff;
  --success:  #22c55e;
  --error:    #ef4444;
  --warning:  #f59e0b;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.3);
  --shadow-md:  0 4px 20px rgba(0,0,0,.4);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.5);

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ─── FORM ELEMENTS ──────────────────────────────────────────────────────────── */
select {
  appearance: none;
  -webkit-appearance: none;
  background: #111827;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23707070' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: #f9fafb;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 9px 36px 9px 12px;
  cursor: pointer;
  outline: none;
}
select option { background: #0f1117; color: #f9fafb; }
html[data-theme="light"] select {
  background: #f9fafb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border-color: rgba(0,0,0,.12);
  color: #111827;
}
html[data-theme="light"] select option { background: #fff; color: #111827; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-primary:hover { background: var(--gray-100); border-color: var(--gray-100); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--gray-600);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.05); }
.btn-ghost {
  background: transparent;
  color: var(--gray-400);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--white); background: rgba(255,255,255,.06); }
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: var(--gray-100); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius-md); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ─── CONTAINER ──────────────────────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo-mark {
    width: 33px;
    height: 33px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}
.nav-links {
  flex: 1;
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  justify-content: center;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--gray-400);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); }
.nav-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.nav-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  padding-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
  gap: 80px;
  position: relative;
}
.hero-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 28px;
  background: rgba(255,255,255,.03);
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50% { opacity: .4; }
}
.hero-title {
  font-size: clamp(48px, 6vw, 80px);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 24px;
  animation: fadeUp .6s ease both;
}
.hero-accent {
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 17px;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
  animation: fadeUp .6s .1s ease both;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeUp .6s .2s ease both;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fadeUp .6s .3s ease both;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}
.stat-label { font-size: 12px; color: var(--gray-500); }
.stat-sep {
  width: 1px; height: 36px;
  background: var(--gray-700);
}

/* Bot preview card */
.hero-visual { position: relative; z-index: 1; animation: fadeUp .6s .15s ease both; }
.bot-card {
  background: var(--gray-900);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  margin-left: auto;
}
.bot-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.bot-avatar {
  width: 44px;
  height: 44px;
  background: var(--white);
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;

  animation: spin 15s linear infinite;
  transform-origin: center;
  will-change: transform;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.bot-name { font-weight: 700; font-size: 15px; }
.bot-status {
  font-size: 12px;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulse-dot 2s infinite;
}
.bot-messages { display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; }
.msg-in { justify-content: flex-start; }
.msg-out { justify-content: flex-end; }
.msg-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.5;
}
.msg-in .msg-bubble { background: rgba(255,255,255,.07); }
.msg-out .msg-bubble { background: rgba(255,255,255,.12); }
.msg-meta { font-size: 11px; color: var(--gray-400); }
.xp-bar {
  height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 99px;
  margin-top: 8px;
  overflow: hidden;
}
.xp-fill {
  height: 100%;
  background: var(--white);
  border-radius: 99px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */
.section { padding: 120px 0; }
.section-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -1.5px;
  margin-bottom: 64px;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--gray-900);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: rgba(255,255,255,.18);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-card--large { grid-column: span 2; }
.feature-icon { font-size: 28px; margin-bottom: 16px; }
.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 16px;
}
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-tags span {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-family: monospace;
  color: var(--gray-300);
}

/* Commands grid */
.commands-section { background: var(--gray-900); }
.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.cmd-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.cmd-card:hover { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.06); }
.cmd-name {
  font-family: monospace;
  font-size: 13px;
  color: var(--white);
  white-space: nowrap;
}
.cmd-desc {
  font-size: 13px;
  color: var(--gray-400);
  flex: 1;
}
.cmd-cat {
  font-size: 11px;
  color: var(--gray-600);
  white-space: nowrap;
}

/* CTA Section */
.cta-box {
  position: relative;
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius-xl);
  padding: 80px;
  text-align: center;
  overflow: hidden;
}
.cta-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-box h2 {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.cta-box p {
  font-size: 17px;
  color: var(--gray-600);
  margin-bottom: 40px;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-white:hover { background: var(--gray-800); border-color: var(--gray-800); }
.btn-outline-white {
  background: transparent;
  color: var(--black);
  border: 1.5px solid rgba(0,0,0,.25);
}
.btn-outline-white:hover { border-color: var(--black); }

/* Footer */
.footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
}
.footer-copy { font-size: 13px; color: var(--gray-600); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--gray-500); transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }

/* Toast */
.toast {
  position: fixed;
  top: 80px; right: 24px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  z-index: 200;
  animation: slideIn .3s ease;
}
.toast-error { background: var(--error); color: var(--white); }
.toast-success { background: var(--success); color: var(--white); }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Error page */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.error-container { text-align: center; }
.error-code {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 700;
  color: rgba(255,255,255,.06);
  line-height: 1;
  letter-spacing: -4px;
  margin-bottom: -20px;
}
.error-title { font-size: 48px; letter-spacing: -2px; margin-bottom: 16px; }
.error-msg { color: var(--gray-400); font-size: 16px; margin-bottom: 32px; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; gap: 48px; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: 1; }
  .nav-links { display: none; }
  .cta-box { padding: 48px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR MOBILE — HAMBURGER MENU
   ═══════════════════════════════════════════════════════════════════════════ */

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 99px;
  transition: all .25s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: rgba(10,10,10,.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 20px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  transition: all .2s ease;
}
.nav-mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}
.nav-mobile-menu a {
  display: block;
  padding: 12px 8px;
  font-size: 16px;
  color: var(--gray-300);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color var(--transition);
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { color: var(--white); }

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none !important; }
  .nav-hamburger { display: flex; }
  .nav-mobile-menu { display: flex; }
  .hero { padding-top: 80px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION SEO — Texte riche pour Google
   ═══════════════════════════════════════════════════════════════════════════ */
.seo-section {
  padding: 80px 0 60px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
  margin-bottom: 40px;
}

.seo-block h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  color: var(--gray-200);
}

.seo-block p {
  font-size: 13.5px;
  color: var(--gray-500);
  line-height: 1.75;
}

.seo-block p code {
  background: rgba(255,255,255,.07);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  color: var(--gray-300);
}

.seo-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12.5px;
  color: var(--gray-700);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.05);
}

.seo-links span { color: var(--gray-700); font-weight: 600; }
.seo-links a    { color: var(--gray-600); transition: color var(--transition); }
.seo-links a:hover { color: var(--gray-300); }

@media (max-width: 700px) {
  .seo-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION "COMMENT ÇA MARCHE"
   ═══════════════════════════════════════════════════════════════════════════ */
.steps-landing-section { background: var(--gray-900); }

.steps-landing {
  display: flex;
  align-items: center;
  gap: 0;
}

.step-landing {
  flex: 1;
  background: var(--black);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.step-landing:hover {
  border-color: rgba(255,255,255,.18);
  transform: translateY(-2px);
}

.step-landing-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gray-700);
  margin-bottom: 16px;
}

.step-landing-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.step-landing h3 {
  font-size: 17px;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.step-landing p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 16px;
}

.step-landing-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  transition: color var(--transition);
}
.step-landing-link:hover { color: var(--white); }

.step-landing-arrow {
  color: var(--gray-700);
  padding: 0 16px;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .steps-landing { flex-direction: column; gap: 12px; }
  .step-landing-arrow { transform: rotate(90deg); padding: 8px 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   EASTER EGG — KONAMI CODE
   ═══════════════════════════════════════════════════════════════════════════ */
.konami-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  animation: konamiFadeIn .4s ease;
  cursor: pointer;
}
@keyframes konamiFadeIn { from { opacity: 0; } to { opacity: 1; } }
.konami-logo {
  font-size: 80px;
  animation: konamispin 2s linear infinite;
}
@keyframes konamispin { to { transform: rotate(360deg); } }
.konami-text {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -2px;
  text-align: center;
}
.konami-sub {
  font-size: 14px;
  color: var(--gray-500);
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR — LANGUE + THÈME
   ═══════════════════════════════════════════════════════════════════════════ */
.nav-icon-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04); color: var(--gray-300);
  font-size: 13px; font-family: var(--font-body);
  cursor: pointer; transition: all var(--transition);
  line-height: 1; white-space: nowrap;
}
.nav-icon-btn:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.2);
  color: var(--white);
}
.nav-lang-code { font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.nav-flag-img { border-radius: 2px; display: block; object-fit: cover; }

.nav-lang-wrap { position: relative; }

.nav-lang-dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #1a1a1a; border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md); padding: 6px;
  min-width: 162px; z-index: 200;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  animation: fadeUp .15s ease both;
}
.nav-lang-wrap.open .nav-lang-dropdown { display: block; }
.nav-lang-wrap.open .nav-lang-btn { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); }

.nav-lang-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 12px; border-radius: 7px;
  border: none; background: transparent;
  color: var(--gray-400); font-size: 13.5px; font-family: var(--font-body);
  cursor: pointer; transition: all var(--transition); text-align: left;
}
.nav-lang-opt:hover { background: rgba(255,255,255,.07); color: var(--white); }
.nav-lang-opt.active { color: var(--white); font-weight: 600; }
.lang-check { margin-left: auto; font-size: 12px; color: var(--success); }

/* Mobile controls */
.mobile-controls {
  padding: 12px 8px 4px;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 4px;
  display: flex; flex-direction: column; gap: 10px;
}
.mobile-ctrl-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 8px; border-radius: 8px;
  border: none; background: rgba(255,255,255,.05);
  color: var(--gray-300); font-size: 14px; font-family: var(--font-body);
  cursor: pointer; transition: all var(--transition); text-align: left;
}
.mobile-ctrl-btn:hover { background: rgba(255,255,255,.09); color: var(--white); }
.mobile-lang-row {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.mobile-lang-flag {
  padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04); font-size: 18px;
  cursor: pointer; transition: all var(--transition);
}
.mobile-lang-flag:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.mobile-lang-flag.active {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
  box-shadow: 0 0 0 2px rgba(255,255,255,.1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHT MODE — html[data-theme="light"]
   ═══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] {
  --black:    #f5f5f5;
  --white:    #0d0d0d;
  --gray-100: #141414;
  --gray-200: #1e1e1e;
  --gray-300: #333;
  --gray-400: #555;
  --gray-500: #777;
  --gray-600: #aaa;
  --gray-700: #c8c8c8;
  --gray-800: #e4e4e4;
  --gray-900: #ebebeb;
}
html[data-theme="light"] body { background: #f5f5f5; }
html[data-theme="light"] .navbar {
  background: rgba(245,245,245,.92);
  border-bottom-color: rgba(0,0,0,.08);
}
html[data-theme="light"] .nav-mobile-menu {
  background: rgba(245,245,245,.98);
  border-bottom-color: rgba(0,0,0,.06);
}
html[data-theme="light"] .nav-mobile-menu a { border-bottom-color: rgba(0,0,0,.05); color: #333; }
html[data-theme="light"] .nav-mobile-menu a:hover { color: #0d0d0d; }
html[data-theme="light"] .nav-hamburger span { background: #0d0d0d; }
html[data-theme="light"] .nav-icon-btn {
  border-color: rgba(0,0,0,.12);
  background: rgba(0,0,0,.04); color: #555;
}
html[data-theme="light"] .nav-icon-btn:hover {
  background: rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.2); color: #0d0d0d;
}
html[data-theme="light"] .nav-lang-wrap.open .nav-lang-btn {
  background: rgba(0,0,0,.08); border-color: rgba(0,0,0,.2);
}
html[data-theme="light"] .nav-lang-dropdown {
  background: #fff; border-color: rgba(0,0,0,.1);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
html[data-theme="light"] .nav-lang-opt:hover { background: rgba(0,0,0,.05); }
html[data-theme="light"] .mobile-controls { border-top-color: rgba(0,0,0,.07); }
html[data-theme="light"] .mobile-ctrl-btn { background: rgba(0,0,0,.05); color: #333; }
html[data-theme="light"] .mobile-ctrl-btn:hover { background: rgba(0,0,0,.09); color: #0d0d0d; }
html[data-theme="light"] .mobile-lang-flag {
  border-color: rgba(0,0,0,.1); background: rgba(0,0,0,.03);
}
html[data-theme="light"] .mobile-lang-flag:hover { background: rgba(0,0,0,.08); }
html[data-theme="light"] .mobile-lang-flag.active {
  background: rgba(0,0,0,.1); border-color: rgba(0,0,0,.25);
  box-shadow: 0 0 0 2px rgba(0,0,0,.08);
}
html[data-theme="light"] .hero-bg-grid {
  background-image:
    linear-gradient(rgba(0,0,0,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.025) 1px, transparent 1px);
}
html[data-theme="light"] .hero-accent {
  background: linear-gradient(135deg, #0d0d0d 0%, #606060 100%);
  -webkit-background-clip: text; background-clip: text;
}
html[data-theme="light"] .bot-card {
  background: #fff; border-color: rgba(0,0,0,.08);
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
}
html[data-theme="light"] .bot-card-header { border-bottom-color: rgba(0,0,0,.06); }
html[data-theme="light"] .msg-in  .msg-bubble { background: rgba(0,0,0,.05); }
html[data-theme="light"] .msg-out .msg-bubble { background: rgba(0,0,0,.09); }
html[data-theme="light"] .xp-bar  { background: rgba(0,0,0,.1); }
html[data-theme="light"] .xp-fill { background: #0d0d0d; }
html[data-theme="light"] .stat-sep { background: #c8c8c8; }
html[data-theme="light"] .feature-card { border-color: rgba(0,0,0,.07); }
html[data-theme="light"] .feature-card:hover { border-color: rgba(0,0,0,.18); box-shadow: 0 4px 20px rgba(0,0,0,.07); }
html[data-theme="light"] .feature-tags span { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.1); color: #333; }
html[data-theme="light"] .commands-section { background: #ebebeb; }
html[data-theme="light"] .cmd-card { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.07); }
html[data-theme="light"] .cmd-card:hover { background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.15); }
html[data-theme="light"] .footer { border-top-color: rgba(0,0,0,.08); }
html[data-theme="light"] .footer-links a:hover { color: #0d0d0d; }
html[data-theme="light"] .seo-section { border-top-color: rgba(0,0,0,.08); }
html[data-theme="light"] .seo-links { border-top-color: rgba(0,0,0,.07); }
html[data-theme="light"] .seo-block p code { background: rgba(0,0,0,.07); color: #333; }
html[data-theme="light"] .step-landing { border-color: rgba(0,0,0,.07); }
html[data-theme="light"] .step-landing:hover { border-color: rgba(0,0,0,.18); }