/* ton-s.app landing — self-contained: no external requests, no inline styles (CSP: style-src 'self').
   Typeface: Google Sans (SIL OFL 1.1), Latin subset, served from /gs.woff2. */
@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/gs.woff2) format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #10161f;
  --fill: #131c25;
  --fill-d: #0b1016;
  --line: #2a3644;
  --sub: #d6e8f3;
  --mut: #8fa2b1;
  --ph: #8696a4;
  --blue: #25adf7;
  --blue-h: #5fbdf8;
  --ink: #07111a;
  --font: "Google Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --g: clamp(16px, 4vw, 40px);
  --ind: clamp(0px, 2.6vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: #fff;
  font: 400 16px/1.5 var(--font);
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(37, 173, 247, .35); }
a { color: inherit; }
button, input { font-family: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: absolute; left: 16px; top: -64px; z-index: 20;
  padding: 10px 16px; border-radius: 10px; background: var(--blue); color: var(--ink);
  font-weight: 600; text-decoration: none; transition: top .15s;
}
.skip:focus { top: 12px; }

.hwrap { width: min(1573px, calc(100% - 2 * var(--g))); margin: 0 auto; }
.mwrap { width: min(1493px, calc(100% - 2 * var(--g) - 2 * var(--ind))); margin: 0 auto; }

/* ───────── header ───────── */
.hdr .hwrap { display: flex; align-items: center; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; color: #fff; text-decoration: none; }
.logo { display: block; width: 35px; height: 35px; flex: none; }
.wm { font-size: 26px; line-height: 1; font-weight: 400; letter-spacing: -.01em; color: var(--mut); }
.wm b { font-weight: 700; color: #fff; }
.nav { display: flex; gap: 36px; margin-right: 36px; }
.nav a { color: var(--sub); font-size: 19.2px; font-weight: 500; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: #fff; }
.mini input {
  display: block; width: 238px; height: 48px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--fill-d);
  color: #fff; font: 400 17.6px var(--font); letter-spacing: -.005em; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.mini input::placeholder { color: var(--ph); opacity: 1; }
.mini input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 173, 247, .22); }

/* ───────── hero ───────── */
.hero { padding-top: 74px; }
h1 { margin: 0; font-size: 64px; line-height: 1.09; font-weight: 400; letter-spacing: -.01em; }
.lead { max-width: 820px; margin: 15px 0 0; color: var(--sub); font-size: 25.6px; line-height: 39px; letter-spacing: -.015em; }
.meta { margin: 9px 0 0; color: var(--mut); font-size: 18.4px; line-height: 27.6px; letter-spacing: -.005em; }

.search { display: flex; gap: 13px; max-width: 800px; margin-top: 37px; }
.search input {
  flex: 1; min-width: 0; height: 65px; padding: 0 24px;
  border: 1px solid var(--line); border-radius: 33px; background: var(--fill);
  color: #fff; font: 500 20px var(--font); letter-spacing: -.015em; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--ph); opacity: 1; }
.search input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 173, 247, .22); }
.btn {
  flex: none; height: 65px; padding: 0 28.5px; border: 0; border-radius: 33px;
  background: var(--blue); color: var(--ink); cursor: pointer;
  font: 500 20px var(--font); letter-spacing: -.01em;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--blue-h); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .75; cursor: progress; }

.notice {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  max-width: 800px; margin-top: 14px; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--fill);
}
.notice .nt { flex: 1 1 300px; min-width: 0; }
.notice strong { display: block; font-size: 17px; font-weight: 600; }
.notice span { color: var(--mut); font-size: 15.5px; line-height: 1.45; }
.notice a {
  flex: none; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  color: #fff; font-size: 15.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.notice a:hover { border-color: var(--blue); color: var(--blue-h); }
.notice.warn { border-color: #604b30; }

.stats {
  display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 32px 0 0; padding: 0; list-style: none;
  color: var(--mut); font-size: 17.6px; line-height: 26.4px; letter-spacing: -.005em;
}
.stats b { color: #fff; font-weight: 700; }
.stats .push { margin-left: auto; }
.stats a { color: var(--blue); text-decoration: none; }
.stats a:hover { color: var(--blue-h); text-decoration: underline; }

/* ───────── sections ───────── */
.sec { margin-top: 143px; }
.sec + .sec { margin-top: 112px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; margin-bottom: 20px; }
h2 { margin: 0; font-size: 25.6px; line-height: 32px; font-weight: 700; letter-spacing: -.01em; }
.sec-head p { margin: 0; color: var(--mut); font-size: 15.2px; font-weight: 500; }

/* ───────── cards ───────── */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 27px; margin: 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--fill); }
.art {
  border-bottom: 1px solid var(--line);
  background: radial-gradient(110% 80% at 50% 0%, rgba(37, 173, 247, .13), transparent 62%), var(--fill-d);
}
.art svg { display: block; width: 100%; height: auto; }
.txt { flex: 1; padding: 22px 24px 26px; }
.kicker { margin: 0 0 8px; color: var(--blue); font-size: 13.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.txt h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.txt p:last-child { margin: 0; color: var(--mut); font-size: 16.5px; line-height: 1.5; }

/* illustration parts */
.s-field, .s-chip, .s-panel, .s-node { fill: var(--fill); stroke: var(--line); stroke-width: 1; }
.s-txt { fill: #fff; font: 500 19px var(--font); letter-spacing: -.01em; }
.s-caret { fill: var(--blue); }
.s-btn { fill: var(--blue); }
.s-btxt { fill: var(--ink); font: 500 16px var(--font); }
.s-arrow { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.s-lock rect, .s-lock path { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.s-url { fill: var(--sub); font: 400 15px var(--font); letter-spacing: -.005em; }
.s-url.sm { font-size: 13.5px; }
.s-cap { fill: var(--mut); font: 600 13px var(--font); letter-spacing: .12em; }
.s-sep { fill: none; stroke: var(--line); stroke-width: 1; }
.s-key { fill: var(--ph); font: 400 16px var(--font); }
.s-key.hl { fill: var(--blue); font-weight: 600; }
.s-val { fill: #fff; font: 500 16px var(--font); }
.s-val.mono { font-family: var(--mono); font-size: 15.5px; font-weight: 400; }
.s-hl { fill: rgba(37, 173, 247, .13); }
.s-dot { fill: var(--blue); }
.s-wire { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 3 6; stroke-linecap: round; opacity: .85; }
.s-note { fill: var(--mut); font: 600 13px var(--font); letter-spacing: .12em; }
.s-node.hot { fill: var(--blue); stroke: none; }
.s-glyph { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
.s-gdot { fill: var(--ink); }
.s-net path { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; opacity: .8; }
.s-net circle { fill: var(--blue); }
.s-site rect, .s-site path { fill: none; stroke: var(--sub); stroke-width: 1.8; stroke-linejoin: round; }
.s-lab { fill: var(--mut); font: 500 15.5px var(--font); }
.s-bdot { fill: var(--line); }
.s-bar { fill: var(--line); }
.s-bar.hot { fill: var(--blue); }

/* ───────── faq ───────── */
.faq { max-width: 960px; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  position: relative; padding: 22px 52px 22px 2px; cursor: pointer; list-style: none;
  font-size: 20px; font-weight: 500; letter-spacing: -.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--mut); border-bottom: 2px solid var(--mut);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.qa[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.qa summary:hover { color: var(--blue-h); }
.qa p { max-width: 780px; margin: 0 0 24px; color: var(--mut); font-size: 17.6px; line-height: 1.6; }

/* ───────── footer ───────── */
.foot { margin-top: 128px; border-top: 1px solid var(--line); text-align: center; letter-spacing: -.015em; }
.foot-in { display: flex; flex-direction: column; align-items: center; width: min(1000px, calc(100% - 2 * var(--g))); margin: 0 auto; padding: 75px 0 64px; }
:where(.foot) :where(p, nav) { margin: 0; }
.foot a { text-decoration: none; }
.foot-brand { display: inline-flex; align-items: center; gap: 12px; height: 28px; color: #fff; }
.foot-brand .logo { width: 28px; height: 28px; }
.foot-brand .wm { font-size: 24px; }
.foot-tag { margin-top: 24px; color: var(--mut); font-size: 19.2px; line-height: 27px; text-wrap: balance; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 30px; margin-top: 43px; font-size: 19.4px; line-height: 27px; font-weight: 500; }
.foot-nav a { color: var(--sub); }
.foot-nav a:hover { color: var(--blue-h); }
.foot-ext { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin-top: 40px; font-size: 18.2px; line-height: 25px; }
.foot-ext a { color: var(--ph); }
.foot-ext a:hover { color: var(--sub); }
.foot-notes { margin-top: 35px; }
.foot-note { color: var(--ph); font-size: 17.6px; line-height: 25px; text-wrap: balance; }
.foot-note a { color: var(--mut); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.foot-note a:hover { color: var(--sub); }
.foot-note code { font: 400 .92em var(--mono); letter-spacing: 0; }

/* ───────── responsive ───────── */
@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec { margin-top: 112px; }
}
@media (max-width: 900px) {
  .mini { display: none; }
  .hero { padding-top: 48px; }
}
@media (max-width: 640px) {
  .hdr .hwrap { height: 68px; }
  .nav { gap: 22px; margin-right: 0; }
  .nav a { font-size: 17px; }
  .wm { font-size: 23px; }
  h1 { font-size: clamp(36px, 10.4vw, 64px); }
  .lead { font-size: 20px; line-height: 1.5; }
  .meta { font-size: 16px; line-height: 1.5; }
  .search { flex-direction: column; gap: 12px; margin-top: 28px; }
  .search input { flex: none; width: 100%; }
  .search input, .btn { height: 58px; }
  .btn { width: 100%; }
  .stats { gap: 6px 20px; font-size: 16px; margin-top: 28px; }
  .stats .push { flex-basis: 100%; margin-left: 0; }
  .sec, .sec + .sec { margin-top: 80px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .qa summary { font-size: 18px; }
  .qa p { font-size: 16.5px; }
  .foot { margin-top: 88px; }
  .foot-in { padding: 52px 0 48px; }
  .foot-tag { margin-top: 20px; font-size: 17px; line-height: 25px; }
  .foot-nav { gap: 6px 22px; margin-top: 30px; font-size: 17.5px; }
  .foot-ext { gap: 4px 20px; margin-top: 26px; font-size: 16.5px; }
  .foot-notes { margin-top: 28px; }
  .foot-note { font-size: 15.5px; line-height: 23px; }
  .foot-note + .foot-note { margin-top: 6px; }
}
@media (max-width: 380px) {
  .nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
