:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-alt: #eef2fb;
  --text: #182038;
  --muted: #5f6c8f;
  --line: #dde3f0;
  --navy: #111735;
  --navy-2: #1a2147;
  --accent: #ef4d5f;
  --accent-dark: #d73d50;
  --success: #267d5a;
  --warning: #9b6b00;
  --shadow: 0 16px 40px rgba(17, 23, 53, 0.08);
  --radius: 18px;
  --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 23, 53, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; color: #fff; }
.brand-logo { display: block; height: auto; width: auto; }
.brand-logo-header { height: 38px; }
.brand-logo-footer { height: 34px; }
.footer-brand { margin-bottom: 12px; }
.main-nav { display: flex; gap: 10px; margin-left: auto; }
.main-nav a {
  color: rgba(255,255,255,0.78);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
}
.main-nav a.active, .main-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.ghost-link { color: rgba(255,255,255,0.82); font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 18px; border-radius: 14px; border: 1px solid transparent;
  background: var(--accent); color: #fff; font-weight: 700; box-shadow: var(--shadow);
}
.btn:hover { background: var(--accent-dark); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: none; }
.btn-secondary:hover { background: #f6f8fc; }
.btn-small { padding: 10px 14px; border-radius: 12px; font-size: .95rem; }
.menu-toggle { display: none; margin-left: auto; color: #fff; background: transparent; border: 0; font-size: 1.6rem; }
.hero {
  padding: 52px 0 30px;
}
.hero-card {
  background: radial-gradient(circle at top right, rgba(239,77,95,0.18), transparent 28%), linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: 28px;
  padding: 44px;
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 32px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.09); color: rgba(255,255,255,0.88);
  font-size: .92rem; font-weight: 700; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1.05; margin: 0 0 18px; }
.hero p.lead { font-size: 1.12rem; color: rgba(255,255,255,0.82); margin: 0 0 26px; max-width: 50rem; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px; font-size: .86rem; font-weight: 700;
  background: #eef2fb; color: var(--navy);
}
.badge.dark { background: rgba(255,255,255,0.09); color: rgba(255,255,255,0.92); }
.badge.success { background: rgba(38,125,90,0.14); color: var(--success); }
.badge.warning { background: rgba(155,107,0,0.12); color: var(--warning); }
.badge.neutral { background: #eef2fb; color: var(--navy); }
.hero-shot {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  padding: 16px; border-radius: 24px;
}
.hero-shot img { border-radius: 16px; }
.section { padding: 34px 0; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
.section-subtitle, .muted { color: var(--muted); }
.grid-3, .grid-4, .grid-2 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; margin-bottom: 10px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 12px 0 0 18px; color: var(--muted); }
.kpi { font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li { padding-left: 22px; position: relative; }
.feature-list li::before { content: '•'; position: absolute; left: 0; top: 0; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.callout {
  background: linear-gradient(180deg, #fff, #f8f9fd);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 20px;
  padding: 22px 24px;
}
.screenshot-card { padding: 14px; }
.screenshot-card img { border-radius: 16px; border: 1px solid var(--line); }
.timeline { display: grid; gap: 16px; }
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start; }
.timeline-item .version { font-weight: 800; color: var(--navy); }
.table-wrap { overflow-x: auto; }
.release-table { width: 100%; border-collapse: collapse; }
.release-table th, .release-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.release-table code { font-size: .88rem; color: var(--navy); background: #f6f8fc; border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px; display: inline-block; word-break: break-all; }
.release-table th { font-size: .92rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.doc-list li { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: #fff; }
.doc-list strong { display: block; margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-group { display: grid; gap: 8px; margin-bottom: 16px; }
label { font-weight: 700; }
input[type="text"], input[type="email"], textarea, select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 14px; background: #fff; font: inherit; color: var(--text);
}
textarea { min-height: 170px; resize: vertical; }
.helper { color: var(--muted); font-size: .92rem; }
.alert { padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; }
.alert-success { background: rgba(38,125,90,0.12); color: var(--success); border: 1px solid rgba(38,125,90,0.16); }
.alert-error { background: rgba(239,77,95,0.12); color: #9c2d3d; border: 1px solid rgba(239,77,95,0.18); }
.hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }
.site-footer { margin-top: 42px; background: var(--navy); color: rgba(255,255,255,0.8); padding-top: 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.footer-grid h3 { margin-top: 0; color: #fff; font-size: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.78); }
.footer-links a:hover { color: #fff; }
.footer-note { max-width: 32rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,255,255,0.08); padding: 16px 0 22px; margin-top: 26px; font-size: .92rem; }
.page-hero { padding: 44px 0 16px; }
.page-hero .card { background: linear-gradient(135deg, #fff, #f8f9fd); }
.page-hero h1 { margin: 0 0 8px; font-size: clamp(2rem, 3vw, 2.8rem); }
.links-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 980px) {
  .brand-logo-header { height: 32px; }
  .hero-grid, .grid-2, .grid-3, .grid-4, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .main-nav, .header-actions { display: none; }
  .main-nav.open { display: grid; position: absolute; top: 76px; left: 16px; right: 16px; background: var(--navy); border: 1px solid rgba(255,255,255,0.08); padding: 10px; border-radius: 18px; box-shadow: var(--shadow); }
  .main-nav.open a { padding: 12px 14px; }
  .header-actions.open { display: flex; margin-left: 0; padding-bottom: 12px; }
  .menu-toggle { display: inline-flex; }
  .topbar { flex-wrap: wrap; align-items: center; }
  .hero-card { padding: 28px; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
}

.screenshot-gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.screenshot-card h3 { margin-top: 14px; margin-bottom: 0; font-size: 1rem; }
.form-group-compact { max-width: 320px; }
@media (max-width: 980px) {
  .screenshot-gallery { grid-template-columns: 1fr; }
}


.code-window {
  margin-top: 16px;
  border: 1px solid #1d2446;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(10, 15, 30, 0.16);
}
.code-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #161d3f, #111735);
  color: rgba(255,255,255,0.88);
  font-size: .92rem;
}
.code-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.26);
}
.code-window-bar strong {
  margin-left: 4px;
  font-weight: 700;
}
.code-window pre {
  margin: 0;
  padding: 18px 20px;
  background: #0d132b;
  color: #eaf0ff;
  overflow-x: auto;
}
.code-window code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: .94rem;
  line-height: 1.7;
  white-space: pre;
}
.terminal-window pre {
  background: linear-gradient(180deg, #0f1630, #0a1125);
}
.mt-16 { margin-top: 16px; }
.card ol { margin: 12px 0 0 20px; color: var(--muted); }
.card li + li { margin-top: 6px; }


.small-text { font-size: .92rem; }
.release-table-compact { table-layout: fixed; width: 100%; }
.release-table-compact th:nth-child(1) { width: 12%; }
.release-table-compact th:nth-child(2) { width: 16%; }
.release-table-compact th:nth-child(3) { width: 14%; }
.release-table-compact th:nth-child(4) { width: 34%; }
.release-table-compact th:nth-child(5) { width: 24%; }
.release-table-compact td, .release-table-compact th { word-break: break-word; }
.release-table-simple { overflow: visible; }
.verify-cell { min-width: 0; }
.verify-details { display: block; margin-bottom: 8px; }
.verify-details summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 700;
  list-style: none;
}
.verify-details summary::-webkit-details-marker { display: none; }
.verify-details summary::after { content: ' ▾'; color: var(--muted); }
.verify-details[open] summary::after { content: ' ▴'; }
.verify-details code {
  margin-top: 10px;
  display: block;
  white-space: normal;
  word-break: break-all;
}
.verify-link { font-weight: 700; color: var(--navy); }
@media (max-width: 980px) {
  .release-table-compact, .release-table-compact thead, .release-table-compact tbody, .release-table-compact th, .release-table-compact td, .release-table-compact tr {
    display: block;
  }
  .release-table-compact thead { display: none; }
  .release-table-compact tr {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
  }
  .release-table-compact td {
    border: 0;
    padding: 8px 0;
  }
}


.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  color: rgba(255,255,255,0.9);
}
.lang-current {
  font-weight: 700;
  color: #fff;
}
.lang-alt {
  color: rgba(255,255,255,0.72);
  font-weight: 700;
}
.lang-alt:hover { color: #fff; }
.form-note-list { margin: 14px 0 0 18px; color: var(--muted); }
.form-note-list li + li { margin-top: 6px; }


:root[data-theme="dark"] {
  --bg: #0b1120;
  --surface: #111827;
  --surface-alt: #162033;
  --text: #e7edf9;
  --muted: #aab7d3;
  --line: #24314a;
  --navy: #0f172a;
  --navy-2: #15223d;
  --success: #55c693;
  --warning: #e7b44c;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}
:root[data-theme="dark"] body { background: var(--bg); color: var(--text); }
:root[data-theme="dark"] .site-header {
  background: rgba(8, 13, 28, 0.92);
  border-bottom-color: rgba(255,255,255,0.06);
}
:root[data-theme="dark"] .ghost-link,
:root[data-theme="dark"] .lang-switch,
:root[data-theme="dark"] .release-table code,
:root[data-theme="dark"] .doc-list li,
:root[data-theme="dark"] input[type="text"],
:root[data-theme="dark"] input[type="email"],
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select,
:root[data-theme="dark"] .page-hero .card,
:root[data-theme="dark"] .callout {
  background: #0f172a;
}
:root[data-theme="dark"] .ghost-link,
:root[data-theme="dark"] .lang-switch,
:root[data-theme="dark"] .release-table code,
:root[data-theme="dark"] .doc-list li,
:root[data-theme="dark"] input[type="text"],
:root[data-theme="dark"] input[type="email"],
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select,
:root[data-theme="dark"] .page-hero .card,
:root[data-theme="dark"] .callout,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .screenshot-card img {
  border-color: var(--line);
}
:root[data-theme="dark"] .btn-secondary {
  background: #0f172a;
  color: var(--text);
  border-color: var(--line);
}
:root[data-theme="dark"] .btn-secondary:hover,
:root[data-theme="dark"] .ghost-link:hover {
  background: #111f36;
}
:root[data-theme="dark"] .badge.neutral { background: #1a2439; color: var(--text); }
:root[data-theme="dark"] .badge.success { background: rgba(85,198,147,0.14); color: var(--success); }
:root[data-theme="dark"] .badge.warning { background: rgba(231,180,76,0.14); color: var(--warning); }
:root[data-theme="dark"] .kpi,
:root[data-theme="dark"] .verify-details summary,
:root[data-theme="dark"] .verify-link,
:root[data-theme="dark"] .timeline-item .version { color: #fff; }
:root[data-theme="dark"] .theme-toggle {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.88);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  font: inherit;
}
.theme-toggle-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
}
.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .22s ease;
}
:root[data-theme="dark"] .theme-toggle-thumb { transform: translateX(20px); }
.theme-toggle-label { font-size: .84rem; font-weight: 700; }
.theme-toggle-label-dark { opacity: .72; }
:root[data-theme="dark"] .theme-toggle-label-dark { opacity: 1; }
:root[data-theme="dark"] .theme-toggle-label-light { opacity: .72; }
.kct-steps { counter-reset: kct-step; display: grid; gap: 16px; }
.kct-step {
  position: relative;
  padding-left: 72px;
}
.kct-step::before {
  counter-increment: kct-step;
  content: counter(kct-step);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-alt);
  color: var(--navy);
  font-weight: 800;
}
:root[data-theme="dark"] .kct-step::before { color: var(--text); }
.kct-meta { display: grid; gap: 8px; }
.kct-meta strong { display: inline-block; min-width: 180px; }
.kct-note { margin-top: 12px; }
.report-shell {
  margin-top: 16px;
  border: 1px solid #1d2446;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(3, 8, 20, 0.3);
}
.report-shell .code-window-bar { background: linear-gradient(180deg, #1a2348, #111735); }
.report-shell pre {
  margin: 0;
  padding: 22px;
  background: linear-gradient(180deg, #0d132b, #091121);
  color: #eaf0ff;
  overflow-x: auto;
}
.report-shell code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: .92rem;
  line-height: 1.65;
  white-space: pre;
}
.inline-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
@media (max-width: 980px) {
  .theme-toggle { order: 3; }
  .kct-step { padding-left: 24px; padding-top: 58px; }
  .kct-step::before { left: 24px; top: 20px; }
}
