/* ── FLAG EMOJI FONT (fix for Windows Chrome) ── */
@font-face {
  font-family: 'Twemoji Country Flags';
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
  src: url('https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1.8/dist/TwemojiCountryFlags.woff2') format('woff2');
  font-display: swap;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #2563EB;
  --blue-light: #3B82F6;
  --blue-dark:  #1D4ED8;
  --green:      #22C55E;
  --green-dark: #15803D;
  --bg:         #F8FAFF;
  --surface:    #FFFFFF;
  --text:       #111827;
  --muted:      #6B7280;
  --border:     #E5E7EB;
  --radius:     14px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(37,99,235,.10), 0 1px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 12px 40px rgba(37,99,235,.15), 0 2px 8px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}
.btn-lg { padding: 15px 32px; font-size: 16px; border-radius: 16px; }

/* ── NAV ── */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav-wrapper.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
  flex-shrink: 0;
}
.nav-icon { width: 32px; height: 32px; border-radius: 8px; }
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: all .15s;
}
.nav-links a:hover { color: var(--blue); background: #EFF6FF; }
.nav-cta { flex-shrink: 0; padding: 10px 20px; }
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  font-family: 'Twemoji Country Flags', 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  padding: 6px 28px 6px 11px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all .15s;
  max-width: 160px;
}
.lang-select:hover { color: var(--blue); border-color: var(--blue); }
.lang-select:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.lang-select option { color: #0F172A; background: #fff; }
.lang-switcher-mobile {
  margin: 8px 0 4px;
}
.lang-switcher-mobile .lang-select { width: 100%; max-width: none; padding-top: 9px; padding-bottom: 9px; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text);
  transition: .15s;
}
.nav-mobile a:hover { background: var(--bg); }
.nav-mobile .btn { text-align: center; justify-content: center; margin-top: 4px; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 45%, #3B82F6 100%);
  color: #fff;
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 70% 30%, rgba(255,255,255,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 64px;
  min-height: 540px;
}
.hero-text { flex: 1; padding-bottom: 60px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.95);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.gradient-text {
  background: linear-gradient(90deg, #BBF7D0, #4ADE80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,.85);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-actions .btn-primary {
  background: #fff;
  color: var(--blue);
}
.hero-actions .btn-primary:hover {
  background: #F0F9FF;
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
}
.hero-actions .btn-outline {
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.hero-actions .btn-outline:hover {
  background: rgba(255,255,255,.15);
}
.hero-langs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lang-label { font-size: 13px; color: rgba(255,255,255,.7); font-weight: 500; }
.lang-chip {
  font-family: 'Twemoji Country Flags', 'Outfit', sans-serif;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Phone mockups */
.hero-phones {
  flex-shrink: 0;
  width: 340px;
  position: relative;
  height: 520px;
  padding-bottom: 60px;
}
.phone {
  position: absolute;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.2);
  border: 6px solid rgba(255,255,255,.2);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone-front {
  width: 220px;
  height: 420px;
  left: 80px;
  top: 40px;
  z-index: 2;
}
.phone-back {
  width: 200px;
  height: 380px;
  left: 0;
  top: 80px;
  z-index: 1;
  opacity: .85;
  transform: rotate(-6deg);
}
.hero-wave { line-height: 0; margin-top: -1px; }
.hero-wave svg { width: 100%; height: 80px; }

/* ── SECTIONS ── */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  background: #EFF6FF;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,.2);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: color-mix(in srgb, var(--c) 12%, white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--c);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── MODES ── */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.mode-card {
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform .2s, box-shadow .2s;
}
.mode-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mode-test  { border-top: 3px solid #2563EB; }
.mode-practice { border-top: 3px solid #16A34A; }
.mode-sr    { border-top: 3px solid #7C3AED; }
.mode-flash { border-top: 3px solid #0891B2; }
.mode-number {
  font-size: 56px;
  font-weight: 900;
  opacity: .06;
  position: absolute;
  top: 8px;
  right: 20px;
  line-height: 1;
  letter-spacing: -.05em;
}
.mode-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #EFF6FF;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.mode-test .mode-icon   { background: #EFF6FF; color: #2563EB; }
.mode-practice .mode-icon { background: #F0FDF4; color: #16A34A; }
.mode-sr .mode-icon     { background: #FAF5FF; color: #7C3AED; }
.mode-flash .mode-icon  { background: #ECFEFF; color: #0891B2; }
.mode-icon svg { width: 20px; height: 20px; }
.mode-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.mode-card > p { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.mode-bullets { display: flex; flex-direction: column; gap: 6px; }
.mode-bullets li {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mode-bullets li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.mode-practice .mode-bullets li::before { background: #16A34A; }
.mode-sr .mode-bullets li::before      { background: #7C3AED; }
.mode-flash .mode-bullets li::before   { background: #0891B2; }

/* ── IMPORT & AI ── */
.import-ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.import-option {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.import-option:last-child { margin-bottom: 0; }
.import-option-icon {
  width: 44px;
  height: 44px;
  background: color-mix(in srgb, var(--c) 10%, white);
  border: 1px solid color-mix(in srgb, var(--c) 20%, white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c);
}
.import-option-icon svg { width: 20px; height: 20px; }
.import-option h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.import-option p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* XLSX mockup */
.xlsx-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.xlsx-header {
  background: #F9FAFB;
  border-bottom: 1px solid var(--border);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.xlsx-title { font-size: 13px; font-weight: 600; color: var(--muted); }
.xlsx-winbtns { display: flex; align-items: center; gap: 16px; color: var(--muted); }
.xlsx-winbtn { width: 12px; height: 12px; display: block; }
.xlsx-close { color: #EF4444; }
.xlsx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.xlsx-table th, .xlsx-table td {
  padding: 8px 10px;
  border: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.xlsx-table th {
  background: #F3F4F6;
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.xlsx-header-row td {
  background: #EFF6FF;
  font-weight: 600;
  font-size: 12px;
  color: #1E40AF;
}
.xlsx-correct { color: #15803D; font-weight: 700; }
.xlsx-note {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--muted);
  background: #FAFAFA;
  border-top: 1px solid var(--border);
}

/* ── STEPS ── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 56px; }
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.step-num {
  width: 52px;
  height: 52px;
  background: var(--blue);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px rgba(37,99,235,.1);
}
.step-line {
  position: absolute;
  top: 26px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: linear-gradient(to right, var(--blue), rgba(37,99,235,.2));
}
.step-line.last { display: none; }
.step-content { padding: 0 20px; }
.step-content h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step-content p  { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* Question types */
.qtypes { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 32px; }
.qtypes-title { font-size: 18px; font-weight: 700; margin-bottom: 24px; text-align: center; }
.qtypes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.qtype-card {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform .2s;
}
.qtype-card:hover { transform: translateY(-2px); }
.qtype-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 20px;
  font-weight: 800;
}
.qtype-icon--blue   { background: #EFF6FF; color: #2563EB; }
.qtype-icon--green  { background: #F0FDF4; color: #16A34A; }
.qtype-icon--purple { background: #FDF4FF; color: #9333EA; }
.qtype-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.qtype-card p  { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ── NOTIF / STATS / LANGS ── */
.notif-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.notif-card, .stats-card, .langs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg { width: 22px; height: 22px; }
.notif-icon { background: #FFF7ED; color: #D97706; }
.stats-icon { background: #F0FDF4; color: #16A34A; }
.langs-icon { background: #EFF6FF; color: var(--blue); }
.notif-card h3, .stats-card h3, .langs-card h3 { font-size: 17px; font-weight: 700; margin: 0; }
.notif-card p, .stats-card p, .langs-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }
/* ── DOWNLOAD ── */
.section-download {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 60%, #3B82F6 100%);
  color: #fff;
  text-align: center;
}
.download-inner { max-width: 560px; margin: 0 auto; }
.download-icon { width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 22px; box-shadow: 0 8px 32px rgba(0,0,0,.3); }
.download-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin-bottom: 14px; letter-spacing: -.02em; }
.download-sub { font-size: 17px; color: rgba(255,255,255,.8); margin-bottom: 36px; line-height: 1.6; }
.download-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 14px 24px;
  border-radius: 16px;
  transition: all .2s;
  min-width: 180px;
}
.store-btn:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.5);
  transform: translateY(-2px);
}
.store-sub { font-size: 11px; opacity: .75; font-weight: 500; }
.store-name { font-size: 17px; font-weight: 700; line-height: 1.2; }
.store-google svg { fill: #fff; }
.store-apple  svg { fill: #fff; }
.hero-actions .store-btn {
  background: #1E293B;
  border-color: #1E293B;
  color: #fff;
}
.hero-actions .store-btn:hover {
  background: #0F172A;
  border-color: #0F172A;
}
.hero-actions .store-google svg,
.hero-actions .store-apple  svg { fill: #fff; }
.download-privacy { font-size: 13px; color: rgba(255,255,255,.55); }

/* ── FOOTER ── */
.footer { background: #0F172A; color: rgba(255,255,255,.75); }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 48px 0;
}
.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}
.footer-mail svg {
  width: 18px;
  height: 18px;
  color: var(--blue-light);
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,.4);
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── DARK MODE ── */
body { transition: background-color .2s, color .2s; }

[data-theme="dark"] {
  --bg:        #0F172A;
  --surface:   #1E293B;
  --text:      #F1F5F9;
  --muted:     #94A3B8;
  --border:    #334155;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,.5), 0 1px 4px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.4);
}
[data-theme="dark"] .nav-wrapper { background: rgba(15,23,42,.92); }
[data-theme="dark"] .nav-links a:hover { background: rgba(37,99,235,.2); }
[data-theme="dark"] .lang-select option { color: #F1F5F9; background: #1E293B; }
[data-theme="dark"] .section-label { background: rgba(37,99,235,.2); }
[data-theme="dark"] .feature-icon { background: color-mix(in srgb, var(--c) 20%, #1E293B); }
[data-theme="dark"] .import-option-icon {
  background: color-mix(in srgb, var(--c) 15%, #1E293B);
  border-color: color-mix(in srgb, var(--c) 25%, #1E293B);
}
[data-theme="dark"] .mode-test .mode-icon     { background: rgba(37,99,235,.2); }
[data-theme="dark"] .mode-practice .mode-icon { background: rgba(22,163,74,.2); }
[data-theme="dark"] .mode-sr .mode-icon       { background: rgba(124,58,237,.2); }
[data-theme="dark"] .mode-flash .mode-icon    { background: rgba(8,145,178,.2); }
[data-theme="dark"] .qtype-icon--blue   { background: rgba(37,99,235,.2) !important; }
[data-theme="dark"] .qtype-icon--green  { background: rgba(22,163,74,.2) !important; }
[data-theme="dark"] .qtype-icon--purple { background: rgba(147,51,234,.2) !important; }
[data-theme="dark"] .xlsx-header,
[data-theme="dark"] .xlsx-table th { background: #0d1b2e; }
[data-theme="dark"] .xlsx-header-row td { background: rgba(37,99,235,.15); color: #93C5FD; }
[data-theme="dark"] .xlsx-note { background: #0d1b2e; }
[data-theme="dark"] .xlsx-correct { color: #4ADE80; }
[data-theme="dark"] .notif-icon { background: rgba(217,119,6,.2); }
[data-theme="dark"] .stats-icon { background: rgba(22,163,74,.2); }
[data-theme="dark"] .langs-icon { background: rgba(37,99,235,.2); }
[data-theme="dark"] .hero-wave path { fill: var(--bg); }
[data-theme="dark"] .theme-toggle:hover { background: rgba(37,99,235,.2); }
[data-theme="dark"] .nav-mobile a:hover { background: rgba(37,99,235,.1); }

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}
.theme-toggle:hover { color: var(--blue); border-color: var(--blue); background: #EFF6FF; }
.theme-toggle svg { width: 18px; height: 18px; pointer-events: none; }

/* ── BETA BAR ── */
.beta-bar {
  background: linear-gradient(90deg, #15803D, #22C55E);
  color: #fff;
}
.beta-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}
.beta-tag {
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  flex-shrink: 0;
}
.beta-msg { opacity: .97; }

/* ── HERO SECONDARY BUTTON ── */
.hero-secondary.btn-ghost-light {
  border: 2px solid rgba(255,255,255,.5);
  color: #fff;
  background: transparent;
}
.hero-secondary.btn-ghost-light:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-1px);
}

/* ── GALLERY / SHOTS ── */
.shots-wrap { position: relative; }
.shots {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 24px;
  -webkit-overflow-scrolling: touch;
}
.shots-arrow {
  position: absolute;
  top: 238px;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--blue);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all .15s;
}
.shots-arrow:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.shots-arrow:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.3); }
.shots-arrow svg { width: 22px; height: 22px; pointer-events: none; }
.shots-prev { left: -10px; }
.shots-next { right: -10px; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.shot {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: center;
  text-align: center;
}
.shot-phone {
  width: 220px;
  height: 460px;
  border-radius: 30px;
  overflow: hidden;
  background: #0F172A;
  border: 7px solid #0F172A;
  box-shadow: var(--shadow-lg);
}
.shot-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 23px;
}
.shot figcaption {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.shots-hint {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── DOWNLOAD BETA NOTE ── */
.download-beta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto 28px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.92);
  text-align: left;
}
.download-beta strong {
  flex-shrink: 0;
  background: #22C55E;
  color: #06311a;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

/* ── INŠTALÁCIA / SIDELOAD ── */
.install-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.install-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.install-num {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 16px;
}
.install-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.install-step p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.install-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 820px;
  margin: 32px auto 0;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
  font-size: 14px;
  line-height: 1.6;
}
.install-note svg { flex-shrink: 0; margin-top: 2px; }
[data-theme="dark"] .install-note {
  background: rgba(37,99,235,.12);
  border-color: rgba(37,99,235,.3);
  color: #93C5FD;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .install-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { flex-direction: column; gap: 48px; padding-bottom: 0; }
  .hero-text { padding-bottom: 0; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-langs { justify-content: center; }
  .hero-phones { width: 100%; height: 340px; }
  .phone-front { left: 50%; transform: translateX(-50%); top: 0; }
  .phone-back  { left: 50%; transform: translateX(-110%) rotate(-6deg); top: 30px; }
  .import-ai-grid { grid-template-columns: 1fr; }
  .modes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav { gap: 12px; }
  .nav-links, .nav-cta { display: none; }
  .lang-switcher-desk { display: none; }
  .theme-toggle { margin-left: auto; }
  .nav-burger { display: flex; }
  .section { padding: 60px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .step-line { display: none; }
  .qtypes-grid { grid-template-columns: 1fr; }
  .install-grid { grid-template-columns: 1fr; }
  .notif-stats-grid { grid-template-columns: 1fr; }
  .hero-phones { display: none; }
  .beta-bar-inner { font-size: 12px; padding: 8px 14px; }
  .shot, .shot-phone { width: 200px; }
  .shot-phone { height: 420px; }
  .shots-arrow { top: 218px; width: 40px; height: 40px; }
  .shots-prev { left: -4px; }
  .shots-next { right: -4px; }
}
