:root {
  --navy: #06152b; --navy-2: #0a2241; --blue: #2563eb; --blue-soft: #eaf1ff;
  --green: #10b981; --green-dark: #087e5b; --green-soft: #e8fbf5;
  --red: #e34b5f; --red-soft: #fff0f2; --ink: #0d1b2e; --muted: #617087;
  --line: #dfe6ef; --surface: #fff; --canvas: #f4f7fb;
  --shadow: 0 20px 65px rgba(20,46,78,.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font-size: 16px; }
button, a { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(37,99,235,.25); outline-offset: 3px; }
.site-header { position: relative; z-index: 10; border-bottom: 1px solid rgba(255,255,255,.1); background: var(--navy); color: #fff; }
.header-inner { width: min(1180px,calc(100% - 40px)); height: 76px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.logo-mark { position: relative; display: block; width: 39px; height: 39px; border-radius: 12px; background: linear-gradient(145deg,#29e1ab,#17b98e); box-shadow: 0 8px 25px rgba(16,185,129,.25); overflow: hidden; }
.logo-mark i { position: absolute; width: 23px; height: 8px; border: 3px solid var(--navy); border-left: 0; border-right: 0; transform: rotate(-28deg); }
.logo-mark i:first-child { top: 9px; left: 7px; }
.logo-mark i:last-child { right: 7px; bottom: 9px; }
.logo-copy { display: flex; align-items: center; gap: 8px; }
.logo-copy strong { font-size: 1rem; letter-spacing: -.02em; }
.logo-copy small { padding: 3px 5px; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; color: #a8f0d9; font-size: .58rem; font-weight: 800; letter-spacing: .13em; }
nav { display: flex; align-items: center; gap: 27px; }
nav a { color: #aab8ca; text-decoration: none; font-size: .82rem; font-weight: 600; }
nav a:hover { color: #fff; }
.privacy { display: flex; align-items: center; gap: 8px; padding-left: 25px; border-left: 1px solid rgba(255,255,255,.14); color: #c6d2df; font-size: .75rem; }
.privacy i { width: 7px; height: 7px; border-radius: 50%; background: #31d6a6; box-shadow: 0 0 0 4px rgba(49,214,166,.1); }
main { width: min(1180px,calc(100% - 40px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(380px,.8fr); gap: 68px; align-items: center; min-height: 510px; padding: 64px 0 56px; }
.kicker { margin: 0 0 12px; color: var(--blue); font-size: .7rem; font-weight: 800; letter-spacing: .16em; }
.hero h1 { max-width: 680px; margin: 0; color: var(--navy); font-size: clamp(3rem,5.5vw,5.25rem); line-height: .98; letter-spacing: -.065em; }
.hero h1 span { color: var(--blue); }
.hero-text { max-width: 620px; margin: 24px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 19px; margin-top: 30px; }
.primary-button { display: flex; align-items: center; gap: 16px; min-width: 210px; padding: 8px 9px 8px 20px; border: 0; border-radius: 11px; background: var(--navy); color: #fff; box-shadow: 0 12px 30px rgba(6,21,43,.18); cursor: pointer; font-size: .84rem; font-weight: 750; transition: transform .2s,background .2s; }
.primary-button:hover { transform: translateY(-2px); background: var(--navy-2); }
.primary-button:disabled { cursor: wait; opacity: .78; transform: none; }
.button-arrow { display: grid; place-items: center; width: 35px; height: 35px; margin-left: auto; border-radius: 8px; background: var(--green); font-size: 1.05rem; }
.primary-button.running .button-arrow { animation: spin 1.2s linear infinite; }
.test-time { max-width: 150px; color: #8895a7; font-size: .7rem; line-height: 1.45; }
@keyframes spin { to { transform: rotate(360deg); } }
.score-panel { padding: 31px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.score-ring { --score: 0; display: grid; place-items: center; width: 246px; height: 246px; margin: 0 auto; padding: 12px; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--score)*10%),#e8edf3 0); transition: background .45s ease; }
.score-core { display: grid; place-content: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; text-align: center; box-shadow: inset 0 0 0 1px rgba(10,34,65,.04); }
.score-label { color: #8b98aa; font-size: .62rem; font-weight: 800; letter-spacing: .16em; }
.score-core strong { margin: 5px 0 3px; color: var(--navy); font-size: 4.2rem; line-height: 1; letter-spacing: -.07em; }
.score-core small { color: #8b98aa; font-size: 1.1rem; letter-spacing: -.02em; }
.score-status { color: var(--green-dark); font-size: .72rem; font-weight: 750; }
.score-summary { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; margin-top: 26px; padding-top: 23px; border-top: 1px solid var(--line); }
.status-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); font-weight: 900; }
.status-icon.loading { background: var(--blue-soft); color: var(--blue); }
.status-icon.error { background: var(--red-soft); color: var(--red); }
.score-summary strong { display: block; color: var(--navy); font-size: .92rem; }
.score-summary p { margin: 5px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.test-progress { margin-bottom: 18px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.progress-copy { display: flex; justify-content: space-between; margin-bottom: 11px; color: var(--muted); font-size: .75rem; }
.progress-copy strong { color: var(--navy); }
.progress-track { height: 5px; border-radius: 20px; background: #e6ebf2; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--blue),var(--green)); transition: width .35s ease; }
.steps { display: flex; justify-content: space-between; margin-top: 12px; color: #a3adba; font-size: .66rem; }
.steps span { position: relative; padding-left: 11px; }
.steps span::before { content: ""; position: absolute; top: 4px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #cbd3dd; }
.steps span.active { color: var(--blue); font-weight: 750; }
.steps span.active::before { background: var(--blue); }
.steps span.done { color: var(--green-dark); }
.steps span.done::before { background: var(--green); }
.protocol-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 17px; margin-bottom: 72px; }
.protocol-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: transform .25s,border-color .25s,box-shadow .25s; }
.protocol-card:hover { transform: translateY(-3px); box-shadow: 0 13px 35px rgba(20,46,78,.08); }
.protocol-card.accent { padding-top: 22px; border-top: 3px solid var(--blue); }
.protocol-card.ok { border-color: rgba(16,185,129,.42); }
.protocol-card.fail { border-color: rgba(227,75,95,.35); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.protocol-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: .8rem; font-weight: 900; }
.protocol-icon.v4 { background: var(--blue-soft); color: var(--blue); }
.protocol-icon.v6 { background: var(--green-soft); color: var(--green-dark); }
.protocol-icon.dual { background: #f1edff; color: #7955d9; }
.state { padding: 5px 8px; border-radius: 50px; font-size: .63rem; font-weight: 800; }
.state.testing { background: var(--blue-soft); color: var(--blue); }
.state.ok { background: var(--green-soft); color: var(--green-dark); }
.state.fail { background: var(--red-soft); color: var(--red); }
.card-label { margin: 24px 0 7px; color: #909bab; font-size: .62rem; font-weight: 800; letter-spacing: .14em; }
.protocol-card h2 { margin: 0 0 13px; color: var(--navy); font-size: 1.32rem; letter-spacing: -.03em; }
.protocol-card code { display: block; min-height: 21px; overflow: hidden; color: #34445a; font: 600 .76rem/1.5 "SFMono-Regular",Consolas,monospace; text-overflow: ellipsis; white-space: nowrap; }
.protocol-card > p:last-child { min-height: 40px; margin: 19px 0 0; padding-top: 16px; border-top: 1px solid #edf1f5; color: var(--muted); font-size: .73rem; line-height: 1.5; }
.quality,.technical { padding: 63px 0; border-top: 1px solid var(--line); }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 28px; }
.section-title h2 { margin: 0; color: var(--navy); font-size: 2rem; letter-spacing: -.045em; }
.section-title > p { max-width: 490px; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.quality-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 17px; }
.metrics { display: grid; grid-template-columns: 1fr; gap: 12px; }
.metric { padding: 18px 21px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.metric > span { color: var(--muted); font-size: .72rem; }
.metric > strong { display: block; margin: 8px 0 3px; color: var(--navy); font-size: 2rem; letter-spacing: -.05em; }
.metric small { color: #8895a7; font-size: .76rem; letter-spacing: 0; }
.metric p { margin: 0; color: #8995a6; font-size: .68rem; }
.chart-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.chart-head { display: flex; justify-content: space-between; gap: 20px; }
.chart-head > div { display: grid; gap: 4px; }
.chart-head span { color: #909bab; font-size: .62rem; font-weight: 800; letter-spacing: .12em; }
.chart-head strong { color: var(--navy); font-size: .85rem; }
.chart-legend { display: flex; align-items: center; gap: 7px; }
.chart-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.chart { height: 223px; display: flex; align-items: end; gap: 10px; padding-top: 27px; border-bottom: 1px solid #dfe5ed; background: repeating-linear-gradient(to bottom,transparent 0,transparent 49px,#eef2f6 50px); }
.chart span { flex: 1; min-height: 3px; height: 3px; border-radius: 5px 5px 1px 1px; background: linear-gradient(180deg,#2c72f0,#75a4f6); transition: height .4s ease; }
.chart span.fail { background: var(--red); }
.chart-axis { display: flex; justify-content: space-between; padding-top: 8px; color: #9ba5b2; font-size: .62rem; }
.section-title.compact { margin-bottom: 22px; }
.detail-list { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.detail-row { min-width: 0; display: flex; justify-content: space-between; gap: 25px; padding: 17px 21px; border-bottom: 1px solid #edf1f5; font-size: .77rem; }
.detail-row:last-child { border-bottom: 0; }
.detail-row span { color: var(--muted); }
.detail-row strong,.detail-row a { min-width: 0; overflow: hidden; color: var(--navy); font-weight: 700; text-align: right; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.detail-row a:hover { color: var(--blue); text-decoration: underline; }
.method-note { display: flex; gap: 13px; align-items: flex-start; margin-top: 16px; padding: 17px 20px; border-radius: 14px; background: #eaf1ff; color: #536782; }
.method-note > span { display: grid; place-items: center; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .74rem; font-weight: 900; }
.method-note p { margin: 1px 0 0; font-size: .74rem; line-height: 1.55; }
.method-note strong { color: var(--navy); }
footer { display: grid; grid-template-columns: 1fr auto auto; gap: 50px; align-items: center; padding: 32px max(20px,calc((100vw - 1180px)/2)); border-top: 1px solid #1b304a; background: var(--navy); color: #8ea0b7; font-size: .7rem; }
.footer-brand { display: grid; gap: 3px; }
.footer-brand strong { color: #fff; font-size: .86rem; }
.footer-brand span { color: #75d9bb; }
footer p { margin: 0; }
@media (max-width: 900px) {
  nav a { display: none; } .privacy { border: 0; padding: 0; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 52px 0; }
  .hero h1 { max-width: 750px; }
  .score-panel { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; }
  .score-ring { width: 210px; height: 210px; }
  .score-summary { margin: 0; padding: 0 0 0 28px; border-top: 0; border-left: 1px solid var(--line); }
  .protocol-grid { grid-template-columns: 1fr; }
  .protocol-card > p:last-child { min-height: 0; }
  .quality-layout { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(3,1fr); }
  footer { grid-template-columns: 1fr auto; } footer p { display: none; }
}
@media (max-width: 640px) {
  .header-inner,main { width: min(100% - 28px,1180px); }
  .header-inner { height: 68px; }
  .privacy { font-size: 0; } .privacy i { width: 8px; height: 8px; }
  .hero { min-height: 0; padding: 42px 0 36px; }
  .hero h1 { font-size: 3rem; }
  .hero-text { font-size: .94rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .test-time { max-width: none; }
  .score-panel { display: block; padding: 24px 20px; }
  .score-ring { width: 190px; height: 190px; }
  .score-core strong { font-size: 3.5rem; }
  .score-summary { margin-top: 22px; padding: 20px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .test-progress { padding: 18px; } .steps { display: none; }
  .protocol-grid { margin-bottom: 48px; }
  .section-title { display: block; } .section-title > p { margin-top: 12px; }
  .metrics { grid-template-columns: 1fr; }
  .chart { height: 180px; gap: 5px; }
  .quality,.technical { padding: 48px 0; }
  .detail-row { display: grid; gap: 6px; }
  .detail-row strong,.detail-row a { text-align: left; }
  footer { grid-template-columns: 1fr; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
