:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #f9fbff;
  --ink: #172033;
  --muted: #5c6b7d;
  --line: #dce5f0;
  --blue: #1f6feb;
  --blue-dark: #174ea6;
  --green: #18864b;
  --amber: #9a5a00;
  --red: #b42318;
  --shadow: 0 14px 34px rgba(24, 39, 75, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 16px;
}
a { color: var(--blue); font-weight: 700; text-decoration: none; }
p { margin: 0 0 10px; color: var(--muted); line-height: 1.58; }
h1, h2, h3 { margin: 0; letter-spacing: 0; line-height: 1.15; }
h1 { font-size: 38px; max-width: 760px; }
h2 { font-size: 24px; margin-bottom: 12px; }
h3 { font-size: 17px; margin-bottom: 8px; }
code {
  display: inline-block;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 5px;
  background: #eef3fa;
  color: #23354c;
  overflow-wrap: anywhere;
}
main { max-width: 1120px; margin: 0 auto; padding: 18px 16px 44px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
}
.nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #334155;
  font-size: 14px;
}
.hero, section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
  padding: 28px;
  margin-bottom: 16px;
}
section { padding: 22px; margin-bottom: 14px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 9px;
  border-radius: 7px;
  background: #eaf2ff;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
}
.lead { margin: 12px 0 0; max-width: 720px; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
}
.button.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.button.green { background: var(--green); border-color: var(--green); color: #fff; }
.hero-panel {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.mini-title { color: var(--ink); font-weight: 800; margin-bottom: 10px; }
.flow-list { display: grid; gap: 10px; }
.flow-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
}
.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #eaf2ff;
  color: var(--blue-dark);
  font-weight: 800;
}
.grid { display: grid; gap: 12px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}
.card p:last-child { margin-bottom: 0; }
.platform-card { display: flex; flex-direction: column; min-height: 190px; }
.platform-card .button { margin-top: auto; width: 100%; }
.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf7f1;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}
.route {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.route:first-of-type { border-top: 0; }
.direct { color: var(--green); font-weight: 800; }
.proxy { color: var(--blue); font-weight: 800; }
.warn { color: var(--amber); font-weight: 800; }
.notice { background: #fffaf0; border-color: #f1d9aa; }
.danger { background: #fff5f4; border-color: #f2c2bd; }
.small { font-size: 13px; }
ol, ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.7; }
li + li { margin-top: 6px; }
.mockup {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.mockup-head {
  display: flex;
  gap: 6px;
  padding: 10px;
  background: #eef3fa;
  border-bottom: 1px solid var(--line);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #9aacbf; }
.mockup-body { padding: 14px; }
.mail-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.fake-button {
  display: block;
  padding: 11px 12px;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  text-align: center;
  font-weight: 800;
}
.fake-button.green { background: var(--green); }
.file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--ink);
  font-weight: 800;
}
.footer-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; }
  .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  main { padding: 14px 12px 34px; }
  h1 { font-size: 29px; }
  h2 { font-size: 21px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; width: 100%; }
  .nav a { flex: 1 1 auto; justify-content: center; }
  .hero, section { padding: 17px; }
  .actions, .button { width: 100%; }
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .route { grid-template-columns: 1fr; }
}
