:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --success: #047857;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); }
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(226, 232, 240, .9); background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px); }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; font-style: italic; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--primary); color: #fff; font-style: normal; font-size: 16px; }
.brand strong { color: var(--primary); }
.site-nav { display: flex; min-width: 0; max-width: 100%; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 24px; }
.site-nav a { overflow-wrap: anywhere; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--primary); }
.language-dropdown { position: relative; flex: 0 0 auto; }
.language-dropdown summary { display: flex; min-width: 142px; height: 42px; align-items: center; gap: 9px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 850; cursor: pointer; list-style: none; box-shadow: 0 7px 18px rgba(15, 23, 42, .05); transition: border-color .18s ease, box-shadow .18s ease; }
.language-dropdown summary::-webkit-details-marker { display: none; }
.language-dropdown summary:hover,
.language-dropdown[open] summary { border-color: rgba(79, 70, 229, .35); box-shadow: 0 9px 24px rgba(79, 70, 229, .10); }
.language-icon { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: var(--soft); color: var(--primary); font-size: 13px; }
.language-current { flex: 1; white-space: nowrap; }
.language-chevron { color: var(--muted); font-size: 14px; transition: transform .18s ease; }
.language-dropdown[open] .language-chevron { transform: rotate(180deg); }
.language-menu { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; display: grid; width: 184px; box-sizing: border-box; padding: 6px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .98); box-shadow: 0 18px 44px rgba(15, 23, 42, .14); }
.language-menu a { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 9px; padding: 10px 11px; color: var(--ink); font-size: 12px; font-weight: 800; text-decoration: none; }
.language-menu a:hover { background: var(--soft); color: var(--primary); }
.language-menu a[aria-current="true"] { background: var(--soft); color: var(--primary); }
.language-menu small { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.hero { position: relative; overflow: hidden; padding: 92px 0 72px; text-align: center; background: radial-gradient(circle at 50% 10%, rgba(79, 70, 229, .11), transparent 34%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; background-image: radial-gradient(#c7d2fe 1px, transparent 1px); background-size: 24px 24px; }
.hero-content { position: relative; }
.eyebrow { margin: 0 0 18px; color: var(--primary); font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
h1 { max-width: 900px; margin: 0 auto; overflow-wrap: anywhere; font-size: clamp(40px, 7vw, 72px); font-weight: 250; letter-spacing: -.055em; line-height: 1.02; }
.lede { max-width: 760px; margin: 24px auto 0; overflow-wrap: anywhere; color: var(--muted); font-size: 16px; font-weight: 550; line-height: 1.85; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 850; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(15, 23, 42, .08); }
.button.primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.section { padding: 72px 0; }
.section.soft { border-block: 1px solid var(--line); background: var(--soft); }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-head h2, .prose h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); font-weight: 350; letter-spacing: -.035em; }
.section-head p { margin: 14px 0 0; color: var(--muted); line-height: 1.75; }
.grid { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; min-width: 0; flex-direction: column; min-height: 300px; padding: 28px; border: 1px solid var(--line); background: #fff; box-shadow: 0 16px 38px rgba(15, 23, 42, .035); }
.card-top { display: flex; min-width: 0; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.platform { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.version { margin: 7px 0 0; color: var(--primary); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 800; }
.badge { display: inline-flex; max-width: 100%; overflow-wrap: anywhere; border: 1px solid #c7d2fe; border-radius: 999px; padding: 6px 10px; background: #eef2ff; color: var(--primary-dark); font-size: 10px; font-weight: 900; text-align: center; }
.badge.warning { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.card .button { width: 100%; margin-top: auto; }
.note { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line); background: var(--soft); color: #475569; font-size: 13px; line-height: 1.75; }
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { margin-top: 52px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 34px 0 10px; font-size: 19px; }
.prose p, .prose li { overflow-wrap: anywhere; color: #475569; font-size: 15px; line-height: 1.9; }
.prose ul, .prose ol { padding-left: 22px; }
.prose strong { color: var(--ink); }
.steps { counter-reset: steps; display: grid; gap: 16px; margin: 28px 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 20px 22px 20px 66px; border: 1px solid var(--line); background: #fff; }
.steps li::before { counter-increment: steps; content: counter(steps); position: absolute; top: 18px; left: 20px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #eef2ff; color: var(--primary); font-weight: 900; }
.site-footer { border-top: 1px solid #1e293b; padding: 36px 0; background: #0f172a; color: #94a3b8; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }

@media (max-width: 700px) {
  .shell { width: min(100% - 28px, 1120px); }
  .header-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .site-nav { justify-content: flex-start; gap: 14px 18px; }
  .language-dropdown { align-self: flex-start; }
  .language-menu { right: auto; left: 0; }
  .hero { padding: 68px 0 56px; }
  .grid { grid-template-columns: 1fr; }
  .card { min-height: 280px; padding: 22px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
