:root {
  color-scheme: dark;
  --bg: #06111a;
  --bg-deep: #040b11;
  --panel: #0b1a25;
  --panel-soft: #0e2130;
  --line: rgba(151, 187, 205, .16);
  --line-strong: rgba(151, 187, 205, .27);
  --text: #f1f8fa;
  --muted: #8fa8b4;
  --green: #65e5a5;
  --green-dark: #123c32;
  --cyan: #56d6e8;
  --yellow: #f5c85b;
  --red: #ff6b74;
  --radius: 22px;
  --radius-small: 13px;
  --shadow: 0 30px 80px rgba(0, 0, 0, .28);
  --shell: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg-deep);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.shell { width: var(--shell); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #042119;
  background: var(--green);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(151, 187, 205, .12);
  background: rgba(4, 11, 17, .88);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 42px;
  display: grid;
  place-items: center;
}

.brand-mark svg { width: 100%; height: 100%; fill: rgba(101, 229, 165, .1); stroke: var(--green); stroke-width: 2.5; }
.brand-mark .brand-check { fill: none; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.brand strong, .footer-brand strong { display: block; font-size: 17px; letter-spacing: .09em; line-height: 1.1; }
.brand strong span, .footer-brand strong span { color: var(--green); }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .08em; }

.back-link {
  color: #b8cbd3;
  font-size: 14px;
  text-decoration: none;
  transition: color .2s ease;
}

.back-link span { margin-right: 7px; color: var(--green); }
.back-link:hover { color: var(--text); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 180px;
  background:
    radial-gradient(circle at 75% 28%, rgba(86, 214, 232, .09), transparent 34%),
    radial-gradient(circle at 25% 18%, rgba(101, 229, 165, .08), transparent 33%),
    linear-gradient(180deg, #07131d 0%, #07131d 68%, #06111a 100%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -200px;
  bottom: -340px;
  border: 1px solid rgba(101, 229, 165, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(101, 229, 165, .015), 0 0 0 140px rgba(101, 229, 165, .012);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(121, 181, 200, .2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 181, 200, .2) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.hero-content { position: relative; z-index: 1; }

.hero-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 941;
  margin: 24px 0 0;
  overflow: hidden;
  background: #020912;
  border: 1px solid rgba(122, 195, 215, .24);
  border-radius: 24px;
  box-shadow: 0 38px 90px rgba(0, 0, 0, .42), 0 0 45px rgba(86, 214, 232, .055);
}

.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .045);
  border-radius: inherit;
  pointer-events: none;
}

.hero-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow, .section-kicker {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 16px var(--green); }

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #f6fbfc;
  font-size: clamp(42px, 6.1vw, 75px);
  font-weight: 760;
  letter-spacing: -.052em;
  line-height: 1.02;
}

.hero h1 em { color: var(--green); font-style: normal; font-weight: inherit; }

.hero-copy {
  max-width: 680px;
  margin: 26px 0 0;
  color: #aac0c9;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 34px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #b9ced5;
  background: rgba(255, 255, 255, .028);
  border: 1px solid rgba(151, 187, 205, .15);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.trust-row svg, .privacy-note svg, .advice-card > svg { width: 17px; height: 17px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.checker-section {
  position: relative;
  padding: 0 0 92px;
  background: var(--bg);
}

.checker-shell { position: relative; top: -94px; margin-bottom: -94px; }

.checker-card, .results, .initial-panel {
  background: rgba(11, 26, 37, .97);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.checker-card { padding: 34px; }

.card-heading, .result-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.card-heading { margin-bottom: 28px; }
.section-kicker { margin-bottom: 5px; font-size: 10px; }
.card-heading h2, .result-topline h2, .explanation-section h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.025em; }

.local-badge, .valid-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  color: #a4dbc3;
  background: rgba(101, 229, 165, .07);
  border: 1px solid rgba(101, 229, 165, .18);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.local-badge i { width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 10px var(--green); }
.valid-badge svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.input-grid { display: grid; grid-template-columns: minmax(190px, .34fr) minmax(280px, 1fr); gap: 15px; }
.country-field > label, .phone-field > label { display: block; margin-bottom: 8px; color: #b9cbd2; font-size: 12px; font-weight: 700; }

select, input {
  width: 100%;
  height: 55px;
  color: var(--text);
  background: #07141d;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

select { padding: 0 42px 0 15px; cursor: pointer; }
input { padding: 0 48px 0 49px; font-size: 17px; letter-spacing: .01em; }
input::placeholder { color: #5f7b88; }
select:focus, input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(101, 229, 165, .08); background: #091923; }

.phone-input-wrap { position: relative; }
.phone-input-wrap > svg { position: absolute; z-index: 2; top: 17px; left: 17px; width: 21px; height: 21px; fill: none; stroke: #7b98a5; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.clear-button { position: absolute; top: 8px; right: 8px; width: 39px; height: 39px; color: #809aa5; background: transparent; border: 0; border-radius: 9px; font-size: 24px; cursor: pointer; }
.clear-button:hover { color: var(--text); background: rgba(255, 255, 255, .04); }

.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; }
.form-footer p { margin: 0; color: #758f9b; font-size: 12px; }
.form-footer strong { color: #b6cbd4; }

.primary-button {
  min-width: 218px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  color: #05241a;
  background: var(--green);
  border: 0;
  border-radius: 11px;
  box-shadow: 0 10px 26px rgba(57, 190, 126, .18);
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.primary-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.primary-button:hover { background: #7aefb6; box-shadow: 0 14px 32px rgba(57, 190, 126, .25); transform: translateY(-1px); }
.primary-button:active { transform: translateY(0); }

.form-error { min-height: 0; margin: 0; color: #ff99a0; font-size: 13px; font-weight: 650; }
.form-error:not(:empty) { margin-top: 12px; }
.has-error input { border-color: var(--red); box-shadow: 0 0 0 4px rgba(255, 107, 116, .08); }

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.privacy-note svg { flex: 0 0 auto; margin-top: 2px; }
.privacy-note p { margin: 0; color: #819ba7; font-size: 11px; }
.privacy-note strong { color: #a8bec7; }

.initial-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 250px;
  margin-top: 20px;
  padding: 38px;
  box-shadow: none;
}

.initial-panel > div:last-child { max-width: 540px; }
.initial-panel h2 { margin: 0 0 8px; font-size: 24px; }
.initial-panel p { margin: 0; color: var(--muted); }

.radar-visual { position: relative; flex: 0 0 auto; width: 112px; height: 112px; border: 1px solid rgba(101, 229, 165, .19); border-radius: 50%; overflow: hidden; background: radial-gradient(circle, rgba(101, 229, 165, .12), transparent 61%); }
.radar-visual i { position: absolute; border: 1px solid rgba(101, 229, 165, .15); border-radius: 50%; }
.radar-visual i:nth-child(1) { inset: 20px; }
.radar-visual i:nth-child(2) { inset: 39px; }
.radar-visual i:nth-child(3) { top: 55px; left: 0; right: 0; border-radius: 0; border-width: 1px 0 0; }
.radar-visual i:nth-child(4) { top: 0; bottom: 0; left: 55px; border-radius: 0; border-width: 0 0 0 1px; }
.radar-visual span { position: absolute; inset: 50% 50% 0; width: 50%; height: 50%; background: linear-gradient(35deg, rgba(101, 229, 165, .26), transparent 60%); transform-origin: 0 0; animation: radar 3.4s linear infinite; }

@keyframes radar { to { transform: rotate(360deg); } }

.results { margin-top: 20px; padding: 34px; box-shadow: none; }
.results[hidden] { display: none; }
.result-topline { padding-bottom: 26px; border-bottom: 1px solid var(--line); }

.result-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 18px; margin-top: 22px; }
.risk-card, .metadata-card, .community-card, .json-card { background: #081721; border: 1px solid var(--line); border-radius: 16px; }
.risk-card { display: grid; grid-template-columns: 114px 1fr; align-content: start; gap: 21px; padding: 25px; }

.score-ring {
  --score: 1;
  --risk-color: #65e5a5;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--risk-color) calc(var(--score) * 10%), rgba(134, 166, 179, .11) 0);
  box-shadow: 0 0 26px color-mix(in srgb, var(--risk-color) 18%, transparent);
}

.score-ring::before { content: ""; position: absolute; width: 92px; height: 92px; background: #081721; border-radius: 50%; }
.score-ring div { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 3px; }
.score-ring strong { font-size: 36px; letter-spacing: -.05em; }
.score-ring span { color: var(--muted); font-size: 12px; }
.risk-copy { align-self: center; }
.risk-copy > p, .article-heading p { margin: 0 0 4px; color: #718e9a; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.risk-copy h3, .article-heading h3 { margin: 0; font-size: 19px; }
.status-pill { display: inline-flex; margin-top: 9px; padding: 4px 8px; color: var(--green); background: rgba(101, 229, 165, .08); border: 1px solid rgba(101, 229, 165, .18); border-radius: 999px; font-size: 10px; font-weight: 800; }
.risk-explanation { grid-column: 1 / -1; margin: 4px 0 0; color: #90a9b4; font-size: 13px; }
.report-counter { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; padding-top: 15px; border-top: 1px solid var(--line); }
.report-counter strong { color: var(--green); font-size: 24px; }
.report-counter span { color: #79939f; font-size: 11px; }

.metadata-card, .community-card { padding: 25px; }
.article-heading { display: flex; align-items: center; gap: 12px; }
.icon-box { width: 40px; height: 40px; display: grid; place-items: center; color: var(--green); background: rgba(101, 229, 165, .07); border: 1px solid rgba(101, 229, 165, .13); border-radius: 11px; }
.icon-box svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.metadata-list { margin: 20px 0 0; }
.metadata-list div { display: grid; grid-template-columns: minmax(140px, .75fr) 1.25fr; gap: 15px; padding: 10px 0; border-top: 1px solid rgba(151, 187, 205, .1); }
.metadata-list dt { color: #718d99; font-size: 11px; }
.metadata-list dd { margin: 0; color: #d6e3e8; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.portability-note { margin: 12px 0 0; color: #6f8994; font-size: 10px; }

.community-card { margin-top: 18px; }
.community-body { display: grid; grid-template-columns: .36fr 1fr; gap: 25px; margin-top: 20px; padding-top: 19px; border-top: 1px solid var(--line); }
.caller-kind span { display: block; color: #718d99; font-size: 10px; }
.caller-kind strong { display: block; margin-top: 5px; color: var(--green); font-size: 14px; }
.community-body > p { margin: 0; color: #9bb0ba; font-size: 13px; }

.advice-card { display: flex; gap: 14px; margin-top: 18px; padding: 18px 20px; background: rgba(86, 214, 232, .055); border: 1px solid rgba(86, 214, 232, .14); border-radius: 14px; }
.advice-card > svg { flex: 0 0 auto; width: 23px; height: 23px; stroke: var(--cyan); }
.advice-card strong { color: #bcebf1; font-size: 12px; }
.advice-card p { margin: 3px 0 0; color: #84aab3; font-size: 11px; }

.json-card { margin-top: 18px; overflow: hidden; }
.json-card summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; color: #bdd0d7; cursor: pointer; list-style: none; font-size: 12px; font-weight: 700; }
.json-card summary::-webkit-details-marker { display: none; }
.json-card summary span { display: flex; align-items: center; gap: 10px; }
.json-card summary svg { width: 19px; height: 19px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.json-card summary i { width: 8px; height: 8px; border-right: 2px solid #6f8d99; border-bottom: 2px solid #6f8d99; transform: rotate(45deg); transition: transform .2s ease; }
.json-card[open] summary i { transform: rotate(225deg); }
.json-content { padding: 0 20px 20px; border-top: 1px solid var(--line); }
.json-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 0; }
.json-actions button { padding: 7px 10px; color: #a9c2cc; background: #0b202d; border: 1px solid var(--line); border-radius: 8px; font-size: 10px; cursor: pointer; }
.json-actions button:hover { color: var(--text); border-color: rgba(101, 229, 165, .35); }
pre { max-height: 410px; margin: 0; overflow: auto; padding: 18px; color: #a9e6c9; background: #040e15; border: 1px solid rgba(151, 187, 205, .1); border-radius: 11px; font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

.explanation-section { padding: 85px 0 96px; background: #07131d; border-top: 1px solid rgba(151, 187, 205, .1); }
.explanation-section h2 { max-width: 620px; }
.explanation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-top: 34px; }
.explanation-grid article { position: relative; min-height: 198px; padding: 24px; overflow: hidden; background: rgba(11, 28, 40, .7); border: 1px solid var(--line); border-radius: 16px; }
.explanation-grid span { color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.explanation-grid h3 { margin: 32px 0 8px; font-size: 17px; }
.explanation-grid p { margin: 0; color: #829aa5; font-size: 12px; }
.explanation-grid article::after { content: ""; position: absolute; width: 90px; height: 90px; right: -35px; top: -35px; border: 1px solid rgba(101, 229, 165, .1); border-radius: 50%; }

.site-footer { padding: 40px 0; background: #03090e; border-top: 1px solid rgba(151, 187, 205, .1); }
.footer-inner { display: grid; grid-template-columns: .8fr 1fr; gap: 24px 80px; }
.footer-brand p { margin: 7px 0 0; color: #657f8a; font-size: 11px; }
.footer-inner nav { display: flex; justify-content: flex-end; align-items: flex-start; gap: 23px; }
.footer-inner nav a { color: #8299a3; font-size: 11px; text-decoration: none; }
.footer-inner nav a:hover { color: var(--green); }
.legal-copy { grid-column: 1 / -1; margin: 0; padding-top: 22px; color: #526873; border-top: 1px solid rgba(151, 187, 205, .08); font-size: 10px; }

.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: calc(100% - 44px); padding: 11px 15px; color: #052219; background: var(--green); border-radius: 10px; box-shadow: 0 18px 45px rgba(0,0,0,.3); font-size: 12px; font-weight: 800; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  :root { --shell: min(100% - 28px, 720px); }
  .hero { padding: 44px 0 145px; }
  .checker-shell { top: -78px; margin-bottom: -78px; }
  .result-grid { grid-template-columns: 1fr; }
  .input-grid { grid-template-columns: 1fr; }
  .form-footer { align-items: flex-end; }
  .explanation-grid { grid-template-columns: 1fr; }
  .explanation-grid article { min-height: 150px; }
  .explanation-grid h3 { margin-top: 22px; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 22px); --radius: 17px; }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 30px; height: 35px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 9px; }
  .back-link { font-size: 0; }
  .back-link span { margin: 0; font-size: 22px; }
  .hero { padding: 34px 0 120px; }
  .hero-cover { margin-top: 17px; border-radius: 13px; }
  .hero-copy { margin-top: 20px; }
  .trust-row { margin-top: 26px; }
  .trust-row li { font-size: 10px; }
  .checker-shell { top: -68px; margin-bottom: -68px; }
  .checker-card, .results { padding: 20px 16px; }
  .card-heading, .result-topline { align-items: flex-start; }
  .local-badge { display: none; }
  .valid-badge { padding: 6px 9px; font-size: 9px; }
  .form-footer { display: block; }
  .form-footer p { margin-bottom: 14px; }
  .primary-button { width: 100%; }
  .initial-panel { display: block; padding: 28px 20px; text-align: center; }
  .radar-visual { margin: 0 auto 20px; }
  .risk-card { grid-template-columns: 96px 1fr; padding: 20px 17px; gap: 16px; }
  .score-ring { width: 94px; height: 94px; }
  .score-ring::before { width: 77px; height: 77px; }
  .score-ring strong { font-size: 30px; }
  .metadata-card, .community-card { padding: 20px 17px; }
  .metadata-list div { grid-template-columns: 1fr; gap: 3px; }
  .community-body { grid-template-columns: 1fr; gap: 14px; }
  .json-actions { justify-content: stretch; }
  .json-actions button { flex: 1; }
  .explanation-section { padding: 66px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 25px; }
  .footer-inner nav { justify-content: flex-start; flex-wrap: wrap; }
  .legal-copy { grid-column: 1; }
}

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

@supports not (color: color-mix(in srgb, black 50%, white)) {
  .score-ring { box-shadow: 0 0 26px rgba(101, 229, 165, .15); }
}
