:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --border: #e5e7eb;
  --text: #111827;
  --text-muted: #6b7280;
  --accent: #2e7d32;
  --accent-strong: #1b5e20;
  --accent-tint: #e8f5e9;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --radius: 14px;
  --radius-sm: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d10;
    --surface: #14171c;
    --surface-2: #1c2028;
    --border: #2a2f38;
    --text: #e7e9ee;
    --text-muted: #98a2af;
    --accent: #66bb6a;
    --accent-strong: #81c784;
    --accent-tint: #1f3a25;
    --shadow: 0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 1024px) {
  .container { padding: 0 40px; }
}

/* ---- Top bar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(6px);
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}
.topbar .brand img { width: 28px; height: 28px; border-radius: 6px; }
.lang-switch {
  display: flex;
  gap: 4px;
  font-size: 14px;
}
.lang-switch a {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text-muted);
}
.lang-switch a.active {
  background: var(--accent-tint);
  color: var(--accent-strong);
  font-weight: 600;
}

/* ---- Hero ---- */
.hero {
  padding: 56px 0 32px;
  text-align: center;
}
@media (min-width: 1024px) {
  .hero { padding: 96px 0 64px; }
}
.hero .icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin: 0 auto 18px;
}
@media (min-width: 1024px) {
  .hero .icon { width: 120px; height: 120px; border-radius: 28px; margin-bottom: 24px; }
}
.hero h1 {
  font-size: clamp(28px, 5vw, 56px);
  margin: 0 0 12px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero .tagline {
  font-size: clamp(15px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 22px;
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  text-align: center;
}
@media (min-width: 960px) {
  .hero-split {
    grid-template-columns: 1.1fr 0.9fr;
    text-align: start;
    gap: 48px;
  }
  .hero-split .icon, .hero-split .monument, .hero-split .cta-row { margin-left: 0; margin-right: 0; }
  .hero-split .cta-row { justify-content: flex-start; }
  .hero-split .tagline { margin-left: 0; }
}
.hero-split .preview {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-split .preview img {
  max-height: 480px;
  width: auto;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,.18), 0 6px 12px rgba(0,0,0,.10);
}
.monument {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface);
  margin-bottom: 22px;
}
.monument::before {
  content: "★";
  color: var(--accent);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  transition: background .15s;
}
.cta:hover { background: var(--accent-strong); text-decoration: none; }
.cta.secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---- Section ---- */
section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
@media (min-width: 1024px) {
  section { padding: 80px 0; }
}
section h2 {
  font-size: clamp(22px, 3vw, 34px);
  margin: 0 0 28px;
  letter-spacing: -0.015em;
}
@media (min-width: 1024px) {
  section h2 { margin-bottom: 40px; }
}

/* ---- Gallery ---- */
.gallery {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { height: 6px; }
.gallery::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.gallery a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  transition: transform .15s;
}
.gallery a:hover { transform: translateY(-2px); }
.gallery img {
  width: 200px;
  height: auto;
  display: block;
}
@media (min-width: 640px) {
  .gallery img { width: 240px; }
}
@media (min-width: 960px) {
  .gallery {
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    gap: 20px;
  }
  .gallery a { width: 100%; }
  .gallery img { width: 100%; max-width: none; }
}

/* ---- Features grid ---- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
@media (min-width: 1024px) {
  .features { gap: 22px; }
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.feature .ic {
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
}
.feature h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---- Comparison table ---- */
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
.compare th, .compare td {
  padding: 12px 14px;
  text-align: start;
  border-bottom: 1px solid var(--border);
}
.compare th {
  background: var(--surface-2);
  font-weight: 600;
}
.compare td.yes { color: var(--accent-strong); font-weight: 600; }
.compare td.no { color: var(--text-muted); }
.compare tr:last-child td { border-bottom: none; }

/* ---- FAQ accordion ---- */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--text-muted);
  font-size: 22px;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
[dir="rtl"] .faq summary::after { transform: rotate(180deg); }
[dir="rtl"] .faq details[open] summary::after { transform: rotate(225deg); }
.faq .answer {
  padding: 14px 18px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---- YouTube lazy ---- */
.yt {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  cursor: pointer;
}
.yt img, .yt iframe { width: 100%; height: 100%; display: block; border: 0; }
.yt .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 28px;
  pointer-events: none;
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 30px 0;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}
footer .links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
footer a { color: var(--text-muted); }

/* ---- Index hub ---- */
.hub {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 30px;
}
@media (min-width: 720px) {
  .hub { grid-template-columns: 1fr 1fr; }
}
.hub .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform .15s, box-shadow .15s;
}
.hub .card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hub .card img.icon {
  width: 72px; height: 72px;
  border-radius: 16px;
  margin: 0 auto 12px;
  box-shadow: var(--shadow);
}
.hub .card h2 { margin: 0 0 6px; font-size: 22px; }
.hub .card p { color: var(--text-muted); margin: 0 0 14px; font-size: 14px; }

/* ---- Util ---- */
.muted { color: var(--text-muted); }
.center { text-align: center; }
.mt { margin-top: 24px; }