:root {
  color-scheme: dark;
  --bg: #05070d;
  --surface: #0b101a;
  --surface-soft: #101827;
  --surface-raised: #121b2a;
  --ink: #e8edf6;
  --muted: #8b96ab;
  --border: rgba(148, 163, 184, .22);
  --border-strong: rgba(191, 219, 254, .32);
  --primary: #3f8de0;
  --primary-dark: #75aaf0;
  --accent: #7c6cf0;
  --pass: #35d79a;
  --warning: #f3b542;
  --fail: #ff6b6b;
  --gradient-accent: linear-gradient(135deg, #3f8de0 0%, #7c6cf0 100%);
  --shadow: 0 22px 60px rgba(0, 0, 0, .34);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, .24);
  --score-background: url("/assets/backgrounds/score-7.jpg");
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(63, 141, 224, .24), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(238, 117, 43, .18), transparent 28%),
    linear-gradient(rgba(148, 163, 184, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .045) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
  background-position: center, center, center, center, center;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  color: var(--ink);
  line-height: 1.5;
}
body.score-bg-1 { --score-background: url("/assets/backgrounds/score-1.jpg"); }
body.score-bg-2 { --score-background: url("/assets/backgrounds/score-2.jpg"); }
body.score-bg-3 { --score-background: url("/assets/backgrounds/score-3.jpg"); }
body.score-bg-4 { --score-background: url("/assets/backgrounds/score-4.jpg"); }
body.score-bg-5 { --score-background: url("/assets/backgrounds/score-5.jpg"); }
body.score-bg-6 { --score-background: url("/assets/backgrounds/score-6.jpg"); }
body.score-bg-7 { --score-background: url("/assets/backgrounds/score-7.jpg"); }
body.score-bg-8 { --score-background: url("/assets/backgrounds/score-8.jpg"); }
body.score-bg-9 { --score-background: url("/assets/backgrounds/score-9.jpg"); }
body.score-bg-10 { --score-background: url("/assets/backgrounds/score-10.jpg"); }
a { color: inherit; }
button, input { font: inherit; }

.site-shell { min-height: 100vh; overflow-x: hidden; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 7, 13, .82);
  backdrop-filter: blur(14px);
}
.nav-wrap {
  width: min(1180px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
}
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--gradient-accent);
  color: white;
  box-shadow: inset 0 -6px 0 rgba(255,255,255,.14), 0 10px 24px rgba(63, 141, 224, .28);
}
.brand-ball {
  position: relative;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 50%;
  overflow: hidden;
}
.brand-ball::before,
.brand-ball::after {
  content: "";
  position: absolute;
  inset: -4px 9px;
  border-left: 2px solid rgba(255,255,255,.82);
  transform: rotate(28deg);
}
.brand-ball::after {
  inset: 9px -4px;
  border-left: 0;
  border-top: 2px solid rgba(255,255,255,.82);
  transform: rotate(-18deg);
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}
.nav-links a:hover { background: rgba(255,255,255,.06); color: var(--ink); }
.session-state {
  display: grid;
  gap: 1px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.session-state a, .session-state button { color: var(--ink); font-weight: 800; }
.link-button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  text-align: right;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .92fr);
  align-items: center;
  gap: 52px;
  min-height: calc(100vh - 74px);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}
h3 { letter-spacing: 0; }
.lead {
  max-width: 690px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}
.lead-small {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.eyebrow, .section-kicker, .mini-label {
  color: #9dc5ff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(63, 141, 224, .13);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pass);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,.04);
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}
.button.primary {
  border-color: transparent;
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(63, 141, 224, .28);
}
.button.primary:hover { filter: brightness(1.08); }
.button.secondary:hover { border-color: var(--border-strong); background: rgba(255,255,255,.07); }
.button:disabled { cursor: wait; opacity: .72; }
.hero-actions, .center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.center-actions { justify-content: center; margin-top: 24px; }
.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.proof-row span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,.045);
}
.address-panel {
  display: grid;
  gap: 8px;
  max-width: 680px;
  margin: 0 0 20px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 16px;
  background: rgba(63, 141, 224, .10);
}
.quota-state { margin: 0; color: #9dc5ff; font-size: 14px; font-weight: 800; }
.quota-state a { color: var(--ink); }
.login-page { min-height: calc(100vh - 74px); display: grid; place-items: center; }
.login-card {
  width: min(520px, 100%);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.login-card h1 { margin-top: 8px; font-size: clamp(36px, 5vw, 52px); }
.login-card form { display: grid; gap: 16px; margin: 26px 0 20px; }
.login-card label { display: grid; gap: 7px; font-weight: 800; }
.login-card input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface-soft);
  color: var(--ink);
}
.form-message { min-height: 24px; margin: 0; color: var(--warning); }
.account-link { color: #9dc5ff; }
.address-panel strong { font-size: 20px; overflow-wrap: anywhere; }
.address-panel p { margin-bottom: 0; color: var(--muted); }
.address-panel .report-link { width: fit-content; margin-top: 4px; }

.jury-mockup {
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 27, 42, .96) 0%, rgba(11, 16, 26, .96) 100%);
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mockup-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding: 18px;
  background: rgba(255,255,255,.035);
}
.mockup-head strong { display: block; font-size: 34px; line-height: 1; }
.judge-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
}
.judge {
  display: grid;
  align-content: start;
  justify-items: center;
  min-width: 0;
  min-height: 178px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 8px;
  background: rgba(255,255,255,.035);
}
.judge-face {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(148, 163, 184, .13);
  font-weight: 900;
}
.judge strong {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.score-card {
  display: grid;
  place-items: center;
  width: 76px;
  height: 82px;
  margin-top: 10px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #080b12;
  color: var(--ink);
  font-size: 34px;
  font-weight: 950;
  box-shadow: 0 8px 0 rgba(17,36,45,.12);
}
.score-fail { border-color: var(--fail); color: var(--fail); }
.score-warning { border-color: var(--warning); color: var(--warning); }
.score-pass { border-color: var(--pass); color: var(--pass); }
.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
}
.status-pill.pass { background: rgba(53, 215, 154, .12); color: var(--pass); }
.status-pill.warning { background: rgba(243, 181, 66, .14); color: var(--warning); }
.status-pill.fail { background: rgba(255, 107, 107, .13); color: var(--fail); }
.status-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 950;
  flex: none;
}
.status-icon.pass { background: rgba(53, 215, 154, .12); color: var(--pass); }
.status-icon.warning { background: rgba(243, 181, 66, .14); color: var(--warning); }
.status-icon.fail { background: rgba(255, 107, 107, .13); color: var(--fail); }

.section-head {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 30px;
}
.section-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr);
  gap: 36px;
  align-items: start;
}
.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.steps li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(steps);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: white;
  font-weight: 900;
}
.steps strong { display: block; margin-bottom: 3px; }
.steps span { color: var(--muted); }

.category-grid, .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.category-card, .pricing-card, .overall-card, .judge-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.category-card, .pricing-card { padding: 20px; }
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.score-mini {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.category-card h3, .pricing-card h3 { margin-bottom: 8px; font-size: 18px; }
.category-card p, .pricing-card p { color: var(--muted); }
.category-card ul, .pricing-card ul, .trust-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.category-card li, .pricing-card li, .trust-list li {
  color: var(--muted);
  font-size: 14px;
}
.band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.025);
}
.report-preview {
  display: grid;
  grid-template-columns: minmax(260px, .38fr) minmax(0, .62fr);
  gap: 18px;
  align-items: stretch;
}
.overall-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
}
.overall-card strong {
  font-size: 56px;
  line-height: 1;
}
.overall-card small { color: var(--muted); font-size: 24px; }
.overall-card p { color: var(--muted); margin-bottom: 0; }
.score-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .18);
  overflow: hidden;
}
.score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient-accent);
}
.preview-list {
  display: grid;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.preview-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.preview-row:last-child { border-bottom: 0; }
.preview-row p { margin: 3px 0 0; color: var(--muted); }
.eu-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(340px, 1fr);
  gap: 42px;
  align-items: start;
}
.trust-list {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 20px;
  background: var(--surface-soft);
}
.trust-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  font-size: 15px;
}
.trust-list li::before {
  content: "OK";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(53, 215, 154, .12);
  color: var(--pass);
  font-size: 10px;
  font-weight: 950;
}
.pricing-card {
  display: grid;
  gap: 12px;
  align-content: start;
}
.pricing-card strong { font-size: 36px; }
.pricing-card p { margin-bottom: 0; }

.report-score-hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  place-items: center;
  padding: 64px 20px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(5, 7, 13, .28) 0%, rgba(5, 7, 13, .18) 42%, rgba(5, 7, 13, .76) 100%),
    radial-gradient(circle at 50% 42%, rgba(63, 141, 224, .18), transparent 38%),
    var(--score-background);
  background-size: auto, auto, cover;
  background-position: center;
}
.report-score-hero .overall-card {
  width: min(430px, calc(100vw - 40px));
  padding: 30px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(5, 7, 13, .68);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .46);
  backdrop-filter: blur(14px);
}
.report-score-hero .overall-card strong {
  font-size: clamp(74px, 12vw, 132px);
}
.report-score-hero .overall-card small {
  font-size: clamp(28px, 4vw, 44px);
}
.report-score-hero .overall-card p {
  font-size: 17px;
  color: #c7d4e8;
}
.report-summary {
  padding-top: 54px;
}
.report-summary h1 {
  font-size: clamp(38px, 5vw, 64px);
}
.report-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}
.report-meta div {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px;
  background: var(--surface);
}
.report-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.report-meta dd { margin: 4px 0 0; font-weight: 800; overflow-wrap: anywhere; }
.report-detail {
  display: grid;
  gap: 18px;
  padding-top: 0;
}
.report-note {
  padding-top: 0;
  padding-bottom: 28px;
}
.judge-card { overflow: hidden; }
.judge-card-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.035);
}
.judge-card-head h2 { margin: 8px 0; font-size: 28px; }
.judge-card-head p { margin-bottom: 0; color: var(--muted); }
.check-table { display: grid; }
.check-row { border-bottom: 1px solid var(--border); }
.check-row:last-child { border-bottom: 0; }
.check-row summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 22px;
  cursor: pointer;
}
.check-row summary::-webkit-details-marker { display: none; }
.check-row summary small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}
.check-row summary em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}
.check-extra {
  display: grid;
  gap: 8px;
  padding: 0 22px 18px 62px;
  color: var(--muted);
}
.check-extra p { margin: 0; }
.check-extra code {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 5px;
  background: rgba(255,255,255,.05);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 42px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}
.site-footer div, .site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .hero, .split, .eu-section, .report-preview {
    grid-template-columns: 1fr;
  }
  .category-grid, .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .judge-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-meta { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .nav-wrap, .section, .site-footer { width: min(100% - 28px, 1180px); }
  .nav-wrap .button { display: none; }
  .session-state { margin-left: 0; }
  .section { padding: 54px 0; }
  .hero { gap: 30px; min-height: auto; padding-top: 48px; }
  .report-score-hero { min-height: 72vh; padding: 44px 14px; }
  h1 { font-size: 40px; }
  .category-grid, .pricing-grid, .judge-row {
    grid-template-columns: 1fr;
  }
  .judge { min-height: auto; }
  .preview-row, .check-row summary {
    grid-template-columns: auto 1fr;
  }
  .preview-row .score-mini, .check-row summary em { grid-column: 2; width: fit-content; }
  .judge-card-head { grid-template-columns: 1fr; }
  .site-footer { display: grid; }
}
