:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --line: #d9e1ea;
  --surface: #ffffff;
  --soft: #f5f8fb;
  --brand: #1262d6;
  --brand-dark: #0f3567;
  --accent: #f0a229;
  --green: #147a5a;
  --red: #bd3b3b;
  --shadow: 0 18px 50px rgba(24, 39, 75, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.7;
  background: var(--soft);
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
}

.topbar,
.section,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--brand-dark);
}

.topbar nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.topbar nav a {
  text-decoration: none;
}

.hero-band {
  background:
    radial-gradient(circle at 78% 18%, rgba(240, 162, 41, 0.2), transparent 28%),
    linear-gradient(145deg, #ffffff 0%, #ecf4ff 55%, #fff6e6 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 36px;
  align-items: center;
  padding: 54px 0 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.15;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  color: #344054;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  color: var(--brand-dark);
  background: #ffffff;
  border-color: var(--line);
}

.visual-panel {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(18, 98, 214, 0.18);
  border-radius: 8px;
  background: #101828;
  box-shadow: var(--shadow);
}

.visual-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}

.ai-window {
  position: absolute;
  inset: 24px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.query-bar {
  padding: 12px 14px;
  border-radius: 8px;
  color: #d6e6ff;
  background: rgba(255, 255, 255, 0.1);
}

.answer-card {
  padding: 14px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.answer-card strong {
  display: block;
  margin-bottom: 8px;
}

.meter {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #e4ebf3;
}

.meter span {
  display: block;
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.signal-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding: 58px 0;
}

.diagnosis-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.diagnosis-layout:has(.result-panel:not([hidden])) {
  grid-template-columns: 1fr;
}

.diagnosis-layout:has(.result-panel:not([hidden])) .section-copy {
  display: none;
}

.section-copy h2 {
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.3;
}

.section-copy p {
  color: var(--muted);
}

.form-panel,
.result-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-panel {
  padding: 24px;
  scroll-margin-top: 96px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label,
.check-group legend {
  font-weight: 800;
}

textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

textarea {
  min-height: 112px;
  padding: 12px;
  resize: vertical;
}

select {
  height: 46px;
  padding: 0 12px;
}

.help {
  color: var(--muted);
  font-size: 13px;
}

.check-group {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.check-item {
  display: flex;
  gap: 10px;
  min-height: 54px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.check-item input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.result-panel {
  margin-top: 28px;
  padding: 26px;
}

.score-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 20px;
}

.score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--brand-dark);
}

.score strong {
  font-size: 58px;
  line-height: 1;
}

.grade {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red);
  font-weight: 800;
}

.grade[data-tone="medium"] {
  background: #9a650d;
}

.grade[data-tone="good"] {
  background: var(--green);
}

.summary {
  margin: 18px 0 10px;
  color: #344054;
}

.warning {
  color: var(--red);
  font-size: 14px;
}

.roadmap {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.roadmap li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.roadmap span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand-dark);
  font-weight: 800;
}

.roadmap p {
  margin-bottom: 0;
  color: var(--muted);
}

.offers-band {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.offers-band[hidden] {
  display: none;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.offer-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--brand);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(24, 39, 75, 0.08);
}

.offer-banner {
  display: block;
  overflow: hidden;
  width: min(100%, 300px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.offer-banner img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.impression-pixel {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.offer-localgoat {
  border-top-color: var(--green);
}

.offer-unreap {
  border-top-color: var(--brand);
}

.offer-conoha-wing {
  border-top-color: var(--accent);
}

.offer-card > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.offer-card h3 {
  margin-bottom: 0;
  font-size: 22px;
}

.offer-card strong {
  color: var(--brand-dark);
}

.offer-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.offer-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: #344054;
}

.offer-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 4px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.offer-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.offer-rank {
  flex: 0 0 auto;
  color: var(--brand-dark);
  font-weight: 800;
}

.disclosure {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.ad-disclosure {
  display: inline-flex;
  margin: 12px 0 20px;
  padding: 8px 12px;
  border: 1px solid rgba(245, 185, 79, 0.38);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(245, 185, 79, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.knowledge-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.knowledge-grid h3 {
  font-size: 18px;
}

.knowledge-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

footer {
  background: #101828;
  color: #ffffff;
}

.footer-inner {
  padding: 28px 0;
  color: #cbd5e1;
  font-size: 14px;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .diagnosis-layout,
  .offers-grid,
  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .visual-panel {
    min-height: 310px;
  }

  .check-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .topbar,
  .section,
  .footer-inner {
    width: min(100% - 22px, 1120px);
  }

  h1 {
    font-size: 34px;
  }

  .form-panel,
  .result-panel {
    padding: 18px;
  }

  .topbar nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .score strong {
    font-size: 48px;
  }
}

/* Futuristic report layer */
:root {
  --ink: #eaf7ff;
  --muted: #9eb5c9;
  --line: rgba(132, 224, 255, 0.22);
  --surface: rgba(8, 19, 34, 0.78);
  --soft: #060a12;
  --brand: #62e7ff;
  --brand-dark: #8fffe1;
  --accent: #f5b94f;
  --magenta: #ff6bd6;
  --green: #3cddb3;
  --red: #ff6767;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

body {
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(6, 10, 18, 0.98), rgba(17, 28, 46, 0.98) 44%, rgba(18, 14, 34, 0.98)),
    #060a12;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  opacity: 0.42;
  background:
    linear-gradient(90deg, rgba(98, 231, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(143, 255, 225, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: grid-drift 18s linear infinite;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 107, 214, 0.18), transparent 24%),
    radial-gradient(circle at 80% 12%, rgba(98, 231, 255, 0.2), transparent 25%),
    radial-gradient(circle at 76% 80%, rgba(245, 185, 79, 0.16), transparent 24%);
  filter: blur(2px);
}

.motion-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.motion-field span {
  position: absolute;
  width: 42vw;
  max-width: 520px;
  aspect-ratio: 1;
  border: 1px solid rgba(98, 231, 255, 0.16);
  border-radius: 38% 62% 48% 52%;
  animation: float-node 16s ease-in-out infinite;
}

.motion-field span:nth-child(1) {
  left: -14%;
  top: 12%;
}

.motion-field span:nth-child(2) {
  right: -16%;
  top: 18%;
  border-color: rgba(255, 107, 214, 0.18);
  animation-delay: -4s;
}

.motion-field span:nth-child(3) {
  left: 16%;
  bottom: -20%;
  border-color: rgba(245, 185, 79, 0.16);
  animation-delay: -9s;
}

.motion-field span:nth-child(4) {
  right: 18%;
  bottom: 14%;
  width: 18vw;
  border-color: rgba(60, 221, 179, 0.2);
  animation-delay: -12s;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.brand-mark,
.button,
.roadmap span {
  background: linear-gradient(135deg, #1262d6, #3cddb3);
}

.brand,
.topbar nav a,
.lead,
.section-copy p,
.offer-card p,
.knowledge-grid p,
.summary,
.roadmap p {
  color: var(--muted);
}

.brand span:last-child,
h1,
h2,
h3,
.field label,
.check-group legend,
.check-item,
.offer-card h3,
.offer-card strong,
.roadmap strong {
  color: var(--ink);
}

.hero-band,
.offers-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(8, 19, 34, 0.82), rgba(18, 14, 34, 0.72)),
    radial-gradient(circle at 70% 18%, rgba(98, 231, 255, 0.18), transparent 34%);
}

.hero-band::after,
.offers-band::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--brand), var(--magenta), transparent);
  animation: scan-line 4s ease-in-out infinite;
}

.eyebrow {
  color: var(--brand-dark);
  text-shadow: 0 0 24px rgba(98, 231, 255, 0.35);
}

h1 {
  max-width: 760px;
  text-shadow: 0 0 36px rgba(98, 231, 255, 0.16);
}

.button {
  border-color: rgba(143, 255, 225, 0.36);
  box-shadow: 0 0 0 1px rgba(98, 231, 255, 0.12), 0 14px 36px rgba(18, 98, 214, 0.3);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.offer-card a:hover {
  transform: translateY(-2px);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.visual-panel,
.form-panel,
.result-panel,
.progress-panel,
.offer-card,
.knowledge-grid article,
.chart-card,
.opportunity-card,
.action-plan article {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(13, 31, 52, 0.82), rgba(8, 16, 28, 0.86));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.visual-panel {
  isolation: isolate;
}

.visual-panel::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: conic-gradient(from 180deg, rgba(98, 231, 255, 0.22), rgba(255, 107, 214, 0.18), rgba(245, 185, 79, 0.16), rgba(98, 231, 255, 0.22));
  animation: holo-spin 12s linear infinite;
  filter: blur(28px);
}

.ai-window {
  animation: panel-rise 700ms ease both;
}

.query-bar,
.signal-list li {
  color: #d7efff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.answer-card {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.meter span {
  width: 82%;
  background: linear-gradient(90deg, var(--brand), var(--green), var(--accent));
  animation: pulse-width 2.8s ease-in-out infinite;
}

.orbital-map {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto;
  border: 1px solid rgba(98, 231, 255, 0.24);
  border-radius: 50%;
  animation: holo-spin 14s linear infinite;
}

.orbital-map::before {
  position: absolute;
  inset: 42px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand), rgba(98, 231, 255, 0.04));
  box-shadow: 0 0 34px rgba(98, 231, 255, 0.8);
}

.orbital-map i {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.orbital-map i:nth-child(1) {
  left: 12px;
  top: 58px;
}

.orbital-map i:nth-child(2) {
  right: 18px;
  top: 28px;
  background: var(--magenta);
}

.orbital-map i:nth-child(3) {
  right: 42px;
  bottom: 14px;
  background: var(--green);
}

textarea,
select {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

textarea::placeholder {
  color: rgba(215, 239, 255, 0.48);
}

select option {
  color: #101828;
}

.check-item,
.roadmap li {
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.check-item:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 255, 225, 0.48);
  background: rgba(98, 231, 255, 0.08);
}

.progress-panel {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.progress-panel[hidden],
.result-panel[hidden] {
  display: none;
}

.scanner {
  position: relative;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(98, 231, 255, 0.28);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 231, 255, 0.16), transparent 62%);
}

.scanner::before,
.scanner::after {
  position: absolute;
  inset: 14px;
  content: "";
  border-radius: 50%;
  border: 1px dashed rgba(143, 255, 225, 0.4);
  animation: holo-spin 2.2s linear infinite;
}

.scanner::after {
  inset: 34px;
  border-color: rgba(255, 107, 214, 0.44);
  animation-direction: reverse;
}

.scanner span {
  position: absolute;
  inset: 53px 14px auto 56px;
  height: 2px;
  background: var(--brand);
  transform-origin: left center;
  animation: holo-spin 1.8s linear infinite;
  box-shadow: 0 0 18px var(--brand);
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(98, 231, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--green), var(--accent));
  transition: width 520ms ease;
  box-shadow: 0 0 18px rgba(98, 231, 255, 0.5);
}

.progress-panel small,
.report-meta,
.disclosure,
.help,
.warning {
  color: var(--muted);
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin: 22px 0;
}

.chart-card,
.opportunity-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chart-card canvas {
  display: block;
  width: 100%;
  height: 290px;
}

.opportunity-card {
  margin: 18px 0 24px;
}

.opportunity-card span {
  color: var(--brand-dark);
  font-weight: 800;
}

.opportunity-card strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: 28px;
}

.audit-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.analysis-scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}

.analysis-scope article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.analysis-scope span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.analysis-scope h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.analysis-scope p {
  margin-bottom: 0;
  color: var(--muted);
}

.audit-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.035);
}

.audit-table th,
.audit-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(132, 224, 255, 0.16);
  text-align: left;
  vertical-align: top;
}

.audit-table th {
  color: var(--brand-dark);
  font-size: 13px;
}

.audit-table td {
  color: var(--muted);
}

.audit-table a {
  color: var(--brand);
  overflow-wrap: anywhere;
}

.risk-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
}

.risk-list li {
  padding: 14px;
  border: 1px solid rgba(255, 103, 103, 0.26);
  border-radius: 8px;
  background: rgba(255, 103, 103, 0.07);
}

.risk-list li[data-severity="high"] {
  border-color: rgba(245, 185, 79, 0.32);
  background: rgba(245, 185, 79, 0.08);
}

.risk-list li[data-severity="medium"] {
  border-color: rgba(98, 231, 255, 0.26);
  background: rgba(98, 231, 255, 0.06);
}

.risk-list p {
  margin: 6px 0 0;
  color: var(--muted);
}

.action-plan {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.action-plan article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.action-plan span {
  color: var(--accent);
  font-weight: 800;
}

.action-plan ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.compact-report {
  padding: 20px;
}

.report-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: 16px;
  align-items: stretch;
}

.audit-count {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid rgba(98, 231, 255, 0.32);
  border-radius: 999px;
  color: var(--brand-dark);
  font-weight: 800;
}

.compact-report .summary {
  margin: 12px 0 0;
}

.compact-charts {
  margin: 16px 0;
}

.compact-charts .chart-card canvas {
  height: 220px;
}

.compact-block {
  margin-top: 16px;
}

.block-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.block-title h2,
.block-title p {
  margin-bottom: 0;
}

.finding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.finding-card {
  padding: 14px;
  border: 1px solid rgba(255, 103, 103, 0.26);
  border-radius: 8px;
  background: rgba(255, 103, 103, 0.07);
}

.finding-card[data-severity="high"] {
  border-color: rgba(245, 185, 79, 0.32);
  background: rgba(245, 185, 79, 0.08);
}

.finding-card[data-severity="medium"],
.finding-card[data-severity="low"] {
  border-color: rgba(98, 231, 255, 0.26);
  background: rgba(98, 231, 255, 0.06);
}

.finding-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.finding-card h3 {
  margin: 4px 0 8px;
  font-size: 17px;
}

.finding-card p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.finding-card p:last-child {
  margin-bottom: 0;
}

.audit-categories {
  display: block;
}

.audit-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 12px;
}

.audit-page-head h3 {
  margin: 0;
  font-size: 18px;
}

.audit-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.audit-pager button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-weight: 800;
}

.audit-pager button.is-active {
  color: #06131e;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.audit-page-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.audit-page-card header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.audit-page-card header span {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.audit-page-card header h3 {
  margin: 2px 0 0;
  font-size: 32px;
}

.audit-page-card header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.audit-page-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audit-page-card li {
  display: flex;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(132, 224, 255, 0.14);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
}

.audit-page-card li span {
  flex: 0 0 auto;
  min-width: 48px;
  color: var(--brand-dark);
  font-weight: 800;
}

.audit-page-card li[data-status="missing"] span {
  color: var(--red);
}

.audit-page-card li[data-status="partial"] span {
  color: var(--accent);
}

.audit-category {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.audit-category summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 6px 10px;
  align-items: center;
  padding: 12px;
  cursor: pointer;
}

.audit-category summary::-webkit-details-marker {
  display: none;
}

.audit-category summary span {
  color: var(--ink);
  font-weight: 800;
}

.audit-category summary strong {
  color: var(--brand-dark);
  font-size: 22px;
  text-align: right;
}

.audit-category summary small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.audit-category ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0 12px 12px;
  list-style: none;
}

.audit-category li {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.audit-category li span {
  flex: 0 0 auto;
  min-width: 48px;
  color: var(--brand-dark);
  font-weight: 800;
}

.audit-category li[data-status="missing"] span {
  color: var(--red);
}

.audit-category li[data-status="partial"] span {
  color: var(--accent);
}

.report-details {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.report-details > summary {
  padding: 14px 16px;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 800;
}

.details-grid {
  display: grid;
  gap: 18px;
  padding: 0 16px 16px;
}

.scenario-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scenario-list li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.articles-section {
  border-top: 1px solid var(--line);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.article-grid article {
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 31, 52, 0.82), rgba(8, 16, 28, 0.86));
  box-shadow: 0 12px 34px rgba(24, 39, 75, 0.08);
}

.article-grid span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.article-grid h3 {
  margin: 8px 0;
  font-size: 19px;
  line-height: 1.45;
}

.article-grid a {
  color: var(--ink);
  text-decoration: none;
}

.article-grid a:hover {
  color: var(--brand-dark);
}

.article-grid p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.article-grid .read-more {
  display: inline-flex;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.article-page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.article-back {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.article-body {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 31, 52, 0.88), rgba(8, 16, 28, 0.9));
  box-shadow: var(--shadow);
}

.article-body h1 {
  margin-bottom: 18px;
  font-size: clamp(30px, 5vw, 48px);
}

.article-body h2 {
  margin-top: 30px;
  font-size: 24px;
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 16px;
}

.post-meta {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.blog-post > p:not(.eyebrow):not(.post-meta) {
  margin-bottom: 18px;
}

.article-body ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.offer-card {
  animation: panel-rise 650ms ease both;
}

.offer-card:nth-child(2) {
  animation-delay: 90ms;
}

.offer-card:nth-child(3) {
  animation-delay: 180ms;
}

.offer-card a {
  background: linear-gradient(135deg, rgba(18, 98, 214, 0.95), rgba(60, 221, 179, 0.86));
}

footer {
  background: rgba(5, 8, 14, 0.92);
  border-top: 1px solid var(--line);
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 48px 48px;
  }
}

@keyframes float-node {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(28px, -22px, 0) rotate(18deg);
  }
}

@keyframes scan-line {
  0%,
  100% {
    transform: translateX(-34%);
    opacity: 0.25;
  }
  50% {
    transform: translateX(34%);
    opacity: 1;
  }
}

@keyframes holo-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-width {
  0%,
  100% {
    width: 72%;
  }
  50% {
    width: 92%;
  }
}

@keyframes panel-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .report-head,
  .report-grid,
  .analysis-scope,
  .risk-list,
  .action-plan,
  .finding-grid,
  .audit-categories,
  .audit-page-card ul,
  .scenario-list,
  .article-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .progress-panel {
    grid-template-columns: 1fr;
  }

  .scanner {
    margin: 0 auto;
  }

  .chart-card canvas {
    height: 250px;
  }

  .compact-charts .chart-card canvas {
    height: 210px;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .visual-panel {
    min-height: 360px;
  }

  .ai-window {
    inset: 14px;
    padding: 14px;
  }

  .orbital-map {
    width: 102px;
    height: 102px;
  }

  .chart-card canvas {
    height: 220px;
  }

  .compact-report {
    padding: 14px;
  }

  .compact-charts .chart-card canvas {
    height: 190px;
  }

  .finding-card p {
    font-size: 12px;
  }

  .audit-category summary {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .audit-page-head,
  .audit-page-card header {
    align-items: flex-start;
    flex-direction: column;
  }

  .audit-pager {
    justify-content: flex-start;
  }

  .article-body {
    padding: 22px;
  }

  .audit-table {
    min-width: 620px;
  }

  .opportunity-card strong {
    font-size: 22px;
  }
}

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