:root {
  color-scheme: dark;
  --bg: #07110f;
  --panel: rgba(13, 28, 24, 0.82);
  --panel-solid: #0d1c18;
  --line: rgba(174, 255, 218, 0.13);
  --line-strong: rgba(174, 255, 218, 0.24);
  --text: #f1f8f5;
  --muted: #91a9a0;
  --accent: #79f2b5;
  --accent-strong: #34d98b;
  --warn: #f7c96b;
  --danger: #ff7f77;
  --radius: 22px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 68% 13%, rgba(51, 217, 139, 0.08), transparent 28rem),
    linear-gradient(180deg, #07110f 0%, #081411 54%, #07110f 100%);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(90px);
  opacity: .12;
  pointer-events: none;
}

.ambient-one { width: 420px; height: 420px; top: 120px; right: -210px; background: var(--accent-strong); }
.ambient-two { width: 320px; height: 320px; top: 720px; left: -200px; background: #47a9ff; }

.site-header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(121, 242, 181, .07);
  color: var(--accent);
}

.brand-mark svg { width: 24px; height: 24px; }
.brand-mark.mini { width: 28px; height: 28px; border-radius: 8px; font: 600 20px/1 var(--mono); }

.header-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font: 12px/1 var(--mono);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(121, 242, 181, .08), 0 0 15px rgba(121, 242, 181, .5);
}

.version {
  margin-left: 5px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
  padding-block: 86px 104px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font: 700 11px/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow span { margin-right: 8px; font-size: 8px; }

h1, h2, h3, p { text-wrap: pretty; }

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(48px, 6.7vw, 86px);
  line-height: .96;
  letter-spacing: -.068em;
  font-weight: 760;
}

h1 em { color: var(--accent); font-style: normal; font-weight: 520; }

.hero-text {
  max-width: 600px;
  margin: 29px 0 34px;
  color: #aec0b9;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
}

.scan-form { max-width: 660px; }
.scan-form > label {
  display: block;
  margin-bottom: 10px;
  color: #c9d9d3;
  font: 650 12px/1.4 var(--mono);
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: rgba(3, 11, 9, .62);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .2);
  transition: border-color .2s, box-shadow .2s;
}

.input-row:focus-within {
  border-color: rgba(121, 242, 181, .62);
  box-shadow: 0 0 0 4px rgba(121, 242, 181, .06), 0 18px 60px rgba(0, 0, 0, .22);
}

.input-row input {
  width: 100%;
  min-width: 0;
  padding: 15px 17px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 15px/1.2 var(--mono);
}

.input-row input::placeholder { color: #587068; }

.input-row button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .18s, background .18s, opacity .18s;
}

.input-row button {
  padding: 0 20px;
  background: var(--accent);
  color: #052217;
  font-size: 13px;
  font-weight: 800;
}

.input-row button:hover { background: #96f8c8; transform: translateY(-1px); }
.input-row button:disabled { cursor: wait; opacity: .62; transform: none; }
.input-row button svg { width: 18px; height: 18px; }

.form-hint { margin: 10px 4px 0; color: #668077; font-size: 12px; }
.example-link { padding: 0; border: 0; background: none; color: #9acbb7; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(154, 203, 183, .3); text-underline-offset: 3px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 29px; color: #7f978e; font-size: 11px; }
.trust-row span { display: inline-flex; align-items: center; gap: 5px; }
.trust-row svg { width: 14px; height: 14px; fill: none; stroke: var(--accent); stroke-width: 1.8; }

.console-card {
  position: relative;
  min-height: 490px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17, 37, 31, .94), rgba(6, 17, 14, .96));
  box-shadow: 0 44px 100px rgba(0, 0, 0, .32), inset 0 1px rgba(255,255,255,.025);
}

.console-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(121,242,181,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(121,242,181,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
  pointer-events: none;
}

.console-bar {
  position: relative;
  z-index: 1;
  height: 51px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: 17px;
  border-bottom: 1px solid var(--line);
  color: #6f887f;
  font: 10px/1 var(--mono);
}

.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #264039; }
.window-dots i:first-child { background: #5b3a39; }
.window-dots i:nth-child(2) { background: #5a5331; }
.console-lock { justify-self: end; color: #557067; }

.console-state {
  position: relative;
  z-index: 1;
  min-height: 438px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.console-state strong { margin-top: 25px; font-size: 17px; }
.console-state p { max-width: 270px; margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.radar { position: relative; width: 142px; height: 142px; border: 1px solid var(--line-strong); border-radius: 50%; }
.radar span { position: absolute; inset: 18%; border: 1px solid var(--line); border-radius: inherit; }
.radar span:nth-child(2) { inset: 35%; }
.radar span:nth-child(3) { inset: 49%; background: var(--accent); border: 0; box-shadow: 0 0 18px var(--accent); }
.radar::before, .radar::after { content: ""; position: absolute; background: var(--line); }
.radar::before { width: 1px; height: 100%; left: 50%; }
.radar::after { width: 100%; height: 1px; top: 50%; left: 0; }
.radar i { position: absolute; inset: 49% 49% 0; width: 50%; height: 50%; border-top: 1px solid rgba(121,242,181,.55); transform-origin: 0 0; transform: rotate(-28deg); }

.scan-orbit { width: 116px; height: 116px; border: 1px solid var(--line-strong); border-radius: 50%; animation: spin 1.8s linear infinite; }
.scan-orbit { position: relative; }
.scan-orbit::before, .scan-orbit::after { content: ""; position: absolute; inset: 14px; border: 1px solid var(--line); border-radius: 50%; }
.scan-orbit::after { inset: 40px; background: rgba(121, 242, 181, .13); }
.scan-orbit span { position: absolute; top: 5px; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 22px var(--accent); }
.progress-track { width: 190px; height: 3px; margin-top: 28px; overflow: hidden; background: #173029; border-radius: 999px; }
.progress-track i { display: block; width: 45%; height: 100%; background: var(--accent); border-radius: inherit; animation: progress 1.5s ease-in-out infinite alternate; }

.error-icon { width: 76px; height: 76px; display: grid; place-items: center; border: 1px solid rgba(255,127,119,.35); border-radius: 50%; background: rgba(255,127,119,.08); color: var(--danger); font: 600 30px/1 var(--mono); }

.console-result {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 145px 1fr;
  align-content: center;
  gap: 28px 25px;
  min-height: 438px;
  padding: 44px 38px;
}

.score-ring {
  --score-angle: 0deg;
  position: relative;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color, var(--accent)) var(--score-angle), rgba(255,255,255,.055) 0);
  box-shadow: 0 0 40px rgba(121, 242, 181, .06);
}

.score-ring::before { content: ""; position: absolute; width: 118px; height: 118px; border-radius: 50%; background: #0b1c17; border: 1px solid var(--line); }
.score-ring div { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.score-ring strong { margin: 0; font: 700 40px/.95 var(--mono); letter-spacing: -.07em; }
.score-ring span { margin-top: 6px; color: var(--muted); font: 9px/1 var(--mono); text-transform: uppercase; }

.result-summary { align-self: center; min-width: 0; }
.summary-label { margin: 0 0 8px; color: var(--muted); font: 10px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.result-summary h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.05; letter-spacing: -.045em; }
.summary-target { overflow: hidden; margin: 10px 0 0; color: var(--accent); font: 12px/1.4 var(--mono); text-overflow: ellipsis; white-space: nowrap; }

.quick-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 13px; background: rgba(3, 11, 9, .35); }
.quick-grid div { min-width: 0; padding: 18px; border-right: 1px solid var(--line); }
.quick-grid div:last-child { border-right: 0; }
.quick-grid span { display: block; margin-bottom: 8px; color: #708a80; font: 9px/1.3 var(--mono); text-transform: uppercase; }
.quick-grid strong { display: block; overflow: hidden; font: 650 14px/1.2 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.status-ok { color: var(--accent) !important; }
.status-warn { color: var(--warn) !important; }
.status-error { color: var(--danger) !important; }

.report { padding-block: 24px 112px; scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading h2, .features-intro h2 { margin: 0; font-size: clamp(34px, 5vw, 55px); line-height: 1.03; letter-spacing: -.05em; }
.section-heading #report-time,
.section-heading #report-expiry { margin: 11px 0 0; color: var(--muted); font: 11px/1.4 var(--mono); }
.section-heading #report-expiry { margin-top: 5px; color: #668077; }

.report-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.secondary-button { min-height: 42px; padding: 0 15px; border: 1px solid var(--line-strong); background: rgba(13,28,24,.72); color: #c8dad3; font-size: 12px; }
.secondary-button:hover { background: rgba(25, 52, 43, .9); transform: translateY(-1px); }
.secondary-button svg { width: 17px; height: 17px; }

.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.report-card { min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); box-shadow: inset 0 1px rgba(255,255,255,.02); }
.insights-card { grid-column: 1 / -1; }
.web-card { grid-column: 1 / -1; }
.card-title { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.card-title h3 { margin: 0; font-size: 15px; }
.card-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); font: 9px/1 var(--mono); }

.insights-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.insight { display: grid; grid-template-columns: 9px 1fr; gap: 11px; align-items: start; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(2,10,8,.28); }
.insight i { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #7d958b; box-shadow: 0 0 10px currentColor; }
.insight[data-level="ok"] i { background: var(--accent); }
.insight[data-level="warning"] i { background: var(--warn); }
.insight[data-level="error"] i { background: var(--danger); }
.insight p { margin: 0; color: #aec0b9; font-size: 12px; line-height: 1.5; }
.insight p strong { display: block; color: #d5e2dd; font-size: 12px; font-weight: 650; }
.insight p span { display: block; margin-top: 5px; color: #7f978e; font-size: 11px; }

.web-probes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.web-probe { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: rgba(2,10,8,.28); }
.web-probe-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.web-probe-heading > strong { color: #d9e7e1; font: 700 12px/1 var(--mono); letter-spacing: .08em; }
.probe-status { padding: 5px 8px; border: 1px solid currentColor; border-radius: 999px; font: 650 9px/1 var(--mono); }
.probe-status.ok { color: var(--accent); }
.probe-status.warn { color: var(--warn); }
.probe-status.error { color: var(--danger); }
.detail-list.compact .detail-row { grid-template-columns: 72px minmax(0, 1fr); padding-block: 8px; }
.subheading { margin: 24px 0 12px; color: #7d958b; font: 650 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.security-headers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.header-check { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(2,10,8,.22); }
.header-check span { flex: 0 0 auto; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; font: 700 11px/1 var(--mono); }
.header-check strong { overflow: hidden; color: #8fa69d; font: 550 9px/1.3 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.header-check.present span { background: rgba(121,242,181,.12); color: var(--accent); }
.header-check.missing span { background: rgba(255,127,119,.1); color: var(--danger); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font: 11px/1.4 var(--mono); }
th { padding: 0 9px 10px; color: #617a70; font-weight: 500; text-align: left; text-transform: uppercase; }
td { padding: 11px 9px; border-top: 1px solid var(--line); color: #afc2ba; }
.port-state { display: inline-flex; align-items: center; gap: 6px; }
.port-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #637970; }
.port-state.open::before { background: var(--accent); }
.port-state.filtered::before { background: var(--warn); }

.dns-list, .detail-list { margin: 0; }
.dns-row, .detail-row { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 15px; padding: 12px 0; border-top: 1px solid var(--line); }
.dns-row:first-child, .detail-row:first-child { padding-top: 0; border-top: 0; }
.dns-row dt, .detail-row dt { color: #617a70; font: 10px/1.5 var(--mono); text-transform: uppercase; }
.dns-row dd, .detail-row dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #b7c9c1; font: 11px/1.5 var(--mono); }
.record-value { display: block; margin-bottom: 5px; }
.empty-value { color: #52675f; }

.pricing { padding-block: 106px; border-top: 1px solid var(--line); }
.pricing-heading { max-width: 680px; margin-bottom: 42px; }
.pricing-heading h2 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -.052em; }
.pricing-heading > p:last-child { max-width: 590px; margin: 20px 0 0; color: var(--muted); line-height: 1.65; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.price-card { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: rgba(12, 27, 23, .58); }
.price-card.featured { border-color: rgba(121, 242, 181, .4); background: linear-gradient(145deg, rgba(25, 60, 48, .76), rgba(9, 25, 20, .88)); box-shadow: 0 26px 70px rgba(0, 0, 0, .22); }
.price-name { color: var(--accent); font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.popular { position: absolute; top: 22px; right: 22px; padding: 6px 8px; border-radius: 999px; color: #062116; background: var(--accent); font: 750 9px/1 var(--mono); }
.price-card h3 { margin: 28px 0 24px; font-size: 30px; letter-spacing: -.04em; }
.price-card h3 small { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.price-card h3 b { font-weight: 750; }
.price-card ul { display: grid; gap: 12px; margin: 0; padding: 0; color: #a8bcb4; font-size: 13px; list-style: none; }
.price-card li::before { margin-right: 8px; color: var(--accent); content: "✓"; }
.telegram-cta { display: block; margin-top: 26px; padding: 13px 15px; border-radius: 10px; color: #062116; background: var(--accent); font-size: 12px; font-weight: 800; text-align: center; text-decoration: none; }
.telegram-cta:hover { background: #96f8c8; }

.features { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(50px, 8vw, 110px); padding-block: 106px; border-top: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feature-grid article { min-height: 235px; padding: 25px 21px; border: 1px solid var(--line); border-radius: 16px; background: rgba(12, 27, 23, .58); }
.feature-grid span { color: var(--accent); font: 700 10px/1 var(--mono); letter-spacing: .11em; }
.feature-grid h3 { margin: 48px 0 11px; font-size: 16px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.site-footer { min-height: 110px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; border-top: 1px solid var(--line); color: #5f776e; font-size: 10px; }
.site-footer > p:nth-child(2) { max-width: 500px; justify-self: center; text-align: center; line-height: 1.5; }
.footer-brand { color: #8ba198; font-size: 13px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes progress { from { transform: translateX(-30%); } to { transform: translateX(150%); } }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 64px; padding-top: 70px; }
  .hero-copy { max-width: 720px; }
  .console-card { width: min(100%, 620px); }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 24px, 1160px); }
  .site-header { height: 70px; }
  .header-meta > span:not(.live-dot):not(.version) { display: none; }
  .hero { min-height: auto; padding-block: 55px 80px; gap: 50px; }
  h1 { font-size: clamp(46px, 15vw, 64px); }
  .hero-text { margin-block: 24px 29px; }
  .input-row { grid-template-columns: 1fr; gap: 4px; }
  .input-row button { min-height: 48px; }
  .trust-row { gap: 10px 16px; }
  .console-card { min-height: 470px; }
  .console-result { grid-template-columns: 112px 1fr; padding-inline: 22px; }
  .score-ring { width: 108px; height: 108px; }
  .score-ring::before { width: 90px; height: 90px; }
  .score-ring strong { font-size: 31px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-grid div:last-child { border-bottom: 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .report-actions { width: 100%; justify-content: flex-start; }
  .report-grid, .insights-list { grid-template-columns: 1fr; }
  .insights-card, .web-card { grid-column: auto; }
  .web-probes, .security-headers { grid-template-columns: 1fr; }
  .report-card { padding: 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 190px; }
  .feature-grid h3 { margin-top: 34px; }
  .site-footer { grid-template-columns: 1fr; gap: 14px; padding-block: 30px; text-align: center; }
  .site-footer > * { justify-self: center !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  :root { color-scheme: light; --text: #13251f; --muted: #53645e; --line: #d9e1de; --panel: #fff; --accent: #087a4c; --warn: #9a6500; --danger: #b52b24; }
  body { background: #fff; color: var(--text); }
  .ambient, .site-header, .hero, .features, .site-footer, .report-actions { display: none !important; }
  .shell { width: 100%; }
  .report { display: block !important; padding: 0; }
  .section-heading { margin-bottom: 18px; }
  .section-heading h2 { font-size: 30px; }
  .report-grid { display: block; }
  .report-card { margin-bottom: 12px; break-inside: avoid; background: #fff; box-shadow: none; }
  .insight, .web-probe, .header-check { background: #fff; }
  .insight p strong, .detail-row dd, .dns-row dd, td { color: #253832; }
  .insight p span, .insight p, .header-check strong { color: #53645e; }
}
