:root {
  --bg: #0b0d10;
  --panel: #12151a;
  --panel-2: #191d24;
  --line: #252b34;
  --text: #e9ebee;
  --muted: #96a0ab;
  --muted-2: #818b96;
  --accent: #2fbfa8;
  --accent-soft: rgba(47, 191, 168, 0.12);
  --max: 1120px;
}
[data-theme="light"] {
  --bg: #f4f5f2;
  --panel: #ffffff;
  --panel-2: #eef0ec;
  --line: #d9ddd7;
  --text: #171a1d;
  --muted: #626c75;
  --muted-2: #7b858e;
  --accent: #139d89;
  --accent-soft: rgba(19, 157, 137, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.site-shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; letter-spacing: -0.3px; text-decoration: none; }
.brand i { color: var(--accent); font-style: normal; }
.site-nav { display: flex; justify-content: center; align-items: center; gap: 22px; }
.site-nav a, .site-nav summary, .language-nav a { color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav summary:hover, .language-nav a:hover { color: var(--text); }
.nav-menu { position: relative; }
.nav-menu summary { cursor: pointer; list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: "⌄"; display: inline-block; margin-left: 6px; color: var(--muted-2); }
.nav-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 14px);
  left: 50%;
  width: 250px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%);
}
.nav-popover a { display: block; padding: 9px 11px; border-radius: 8px; }
.nav-popover a:hover { color: var(--text); background: var(--panel-2); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.language-picker { position: relative; }
.language-picker::after { content: "⌄"; position: absolute; right: 10px; top: 9px; color: var(--muted-2); pointer-events: none; }
.language-picker select {
  appearance: none;
  width: 144px;
  height: 42px;
  padding: 0 28px 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font: 600 13px/1 "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}
.language-picker select:hover, .language-picker select:focus-visible { border-color: var(--accent); }
.theme-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.header-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #071b17;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}
.header-cta:hover, .button:hover { background: #42cbb4; }
.header-cta:active, .button:active { transform: translateY(1px); }
.button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.button.secondary:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 72px;
  align-items: end;
  padding: 92px 0 50px;
}
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
h1 { max-width: 780px; margin: 0; font-size: clamp(38px, 7vw, 70px); line-height: 0.98; letter-spacing: -2.5px; }
.hero-copy { margin: 23px 0 0; max-width: 66ch; color: var(--muted); font-size: 18px; line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-aside { border-left: 1px solid var(--line); padding-left: 28px; }
.hero-aside strong { display: block; margin-bottom: 10px; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; }
.hero-aside p { margin: 0; color: var(--muted); font-size: 14px; }

.feature-visual { margin: 0; }
.feature-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}
.feature-visual figcaption {
  max-width: 74ch;
  margin-top: 13px;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.55;
}
.lead-visual { margin-bottom: 68px; }
.article-visual { margin: 42px 0 54px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 76px; padding: 68px 0 90px; border-top: 1px solid var(--line); }
.article { min-width: 0; }
.article section { max-width: 760px; margin-top: 54px; }
.article section:first-child { margin-top: 0; }
h2 { margin: 0 0 15px; font-size: clamp(25px, 3.5vw, 36px); line-height: 1.14; letter-spacing: -0.7px; }
h3 { margin: 28px 0 9px; font-size: 19px; line-height: 1.3; }
p { margin: 0 0 17px; }
.article p, .article li { color: var(--muted); }
.article ul, .article ol { padding-left: 21px; }
.article li { margin: 8px 0; }
.article strong { color: var(--text); }
.note { margin: 28px 0; padding: 20px 22px; border-left: 2px solid var(--accent); background: var(--accent-soft); color: var(--muted); }
.fact-list { display: grid; gap: 0; margin-top: 24px; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.fact dt { font-weight: 700; }
.fact dd { margin: 0; color: var(--muted); }
.comparison { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 14px; }
.comparison th, .comparison td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison th { color: var(--text); }
.comparison td { color: var(--muted); }
.comparison th:first-child, .comparison td:first-child { padding-left: 0; }

.side-nav { align-self: start; position: sticky; top: 24px; border-top: 1px solid var(--line); }
.side-nav h2 { margin: 0; padding: 19px 0 11px; font-size: 12px; color: var(--muted-2); letter-spacing: 0.1em; text-transform: uppercase; }
.side-nav a { display: block; padding: 11px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.side-nav a:hover { color: var(--accent); }

.faq-list details { padding: 18px 0; border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 700; }
.faq-list details p { margin: 10px 0 0; }

.language-nav { display: flex; flex-wrap: wrap; gap: 8px 17px; padding: 24px 0; border-top: 1px solid var(--line); }
.site-footer { padding: 38px 0 52px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 820px) {
  .site-header { position: relative; grid-template-columns: 1fr auto; gap: 10px 16px; padding: 12px 0; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; gap: 8px; padding: 4px 0 2px; }
  .site-nav > a, .site-nav > details { flex: 0 0 auto; }
  .site-nav > a, .site-nav > details > summary { display: inline-flex; align-items: center; min-height: 40px; }
  .nav-menu { position: static; }
  .nav-popover { position: absolute; top: calc(100% + 8px); left: 0; right: 0; width: auto; transform: none; }
  .header-tools { justify-content: flex-end; }
  .header-cta { display: none; }
  .hero { grid-template-columns: 1fr; gap: 38px; padding: 64px 0 52px; }
  .hero-aside { max-width: 560px; }
  .content-grid { grid-template-columns: 1fr; gap: 52px; padding-top: 52px; }
  .side-nav { position: static; }
}

@media (max-width: 560px) {
  .site-shell { width: min(calc(100% - 32px), var(--max)); }
  .site-header { min-height: 68px; }
  .language-picker select { width: 136px; height: 44px; }
  .language-picker::after { top: 10px; }
  .theme-toggle { width: 44px; height: 44px; }
  .header-cta { min-height: 44px; padding: 0 13px; }
  .hero { padding-top: 52px; }
  h1 { font-size: clamp(36px, 12vw, 44px); letter-spacing: -1.5px; }
  .hero-copy { font-size: 16px; }
  .hero-actions { align-items: stretch; }
  .button { width: 100%; min-height: 48px; }
  .hero-aside { padding-left: 20px; }
  .fact { grid-template-columns: 1fr; gap: 5px; }
  .comparison { display: block; overflow-x: auto; }
  .feature-visual img { border-radius: 15px; }
  .lead-visual { margin-bottom: 48px; }
  .article-visual { margin: 34px 0 44px; }
  .language-nav a, .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
