:root {
  --bg: #07111f;
  --bg-soft: #0b1320;
  --panel: rgba(15, 27, 45, 0.88);
  --panel-strong: rgba(15, 27, 45, 0.96);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f7fa;
  --muted: #aab7c4;
  --blue: #2f80ed;
  --cyan: #26c6da;
  --teal: #2eccb0;
  --amber: #f2c94c;
  --rose: #eb5757;
  --safe: #2ecc71;
  --suspicious: #f2c94c;
  --scam: #eb5757;
  --shadow: 0 24px 70px rgba(0, 6, 15, 0.48);
  --shadow-soft: 0 14px 38px rgba(0, 7, 18, 0.3);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Bahnschrift", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -5%, rgba(47, 128, 237, 0.22), transparent 30rem),
    radial-gradient(circle at 90% 18%, rgba(38, 198, 218, 0.12), transparent 28rem),
    linear-gradient(180deg, #07111f 0%, #0b1320 44%, #060d17 100%);
  overflow-x: hidden;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(110, 231, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2), black 25%, black 75%, rgba(0, 0, 0, 0.1));
}

.page-glow {
  position: fixed;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.4;
}

.page-glow-left {
  background: rgba(47, 128, 237, 0.35);
  top: -8rem;
  left: -8rem;
}

.page-glow-right {
  background: rgba(38, 198, 218, 0.2);
  top: 16rem;
  right: -6rem;
}

.hero,
.dashboard {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(25rem, 0.92fr);
  gap: 1.5rem;
  padding: 3rem 0 1.25rem;
  position: relative;
  z-index: 1;
}

.hero-copy,
.hero-metric,
.panel {
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(12, 24, 39, 0.84), rgba(8, 18, 30, 0.9));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-copy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.4rem);
  animation: lift 720ms ease;
}

.hero-copy::before,
.hero-copy::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hero-copy::before {
  width: 18rem;
  height: 18rem;
  right: -7rem;
  top: -8rem;
  border: 1px solid rgba(38, 198, 218, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 2rem rgba(47, 128, 237, 0.035), 0 0 0 5rem rgba(38, 198, 218, 0.025);
}

.hero-copy::after {
  width: 11rem;
  height: 13rem;
  right: 2rem;
  bottom: -7rem;
  border: 1px solid rgba(47, 128, 237, 0.2);
  transform: rotate(45deg);
  border-radius: 36px;
}

.eyebrow,
.panel-kicker,
.result-label,
.metric-label {
  margin: 0 0 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--cyan);
}

h1,
h2,
h3 {
  font-family: "Bahnschrift", "Aptos Display", "Segoe UI", sans-serif;
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.8rem, 5.4vw, 5.15rem);
  max-width: 11ch;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h1 span {
  color: var(--cyan);
  background: linear-gradient(100deg, #7ce8f3, #4ea1ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

h3 {
  font-size: 1.15rem;
}

.lede,
.panel-note,
.metric-caption,
.result-summary,
.result-meta,
.status-text,
.architecture-grid p,
.field span,
.checkbox span {
  color: var(--muted);
}

.lede {
  max-width: 60ch;
  font-size: 1.08rem;
  line-height: 1.68;
  margin: 1.35rem 0 1.65rem;
}

.engine-list {
  display: grid;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 1rem;
}

.engine-list li {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  color: #d9e8f7;
  line-height: 1.4;
}

.engine-list span {
  color: var(--cyan);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.hero-pills,
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-pills span,
.chip-list li {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 255, 0.16);
  background: rgba(110, 231, 255, 0.08);
  color: #d9f7ff;
  font-size: 0.94rem;
}

.hero-pills span {
  position: relative;
  padding: 0.66rem 0.9rem 0.66rem 2rem;
  background: rgba(12, 31, 50, 0.68);
  border-color: rgba(94, 205, 230, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.hero-pills span::before {
  content: "";
  position: absolute;
  left: 0.82rem;
  top: 50%;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(38, 198, 218, 0.65);
  transform: translateY(-50%);
}

.hero-metric {
  position: relative;
  overflow: hidden;
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: lift 900ms ease;
}

.hero-metric::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 128, 237, 0.13), transparent 68%);
  pointer-events: none;
}

.hero-metric .metric-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
}

.hero-metric .metric-label::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--cyan);
  border-radius: 3px 3px 6px 6px;
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(38, 198, 218, 0.35);
}

.engine-list {
  gap: 0.72rem;
  margin: 1rem 0;
  counter-reset: engine;
}

.engine-list li {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  min-height: 5.4rem;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(47, 128, 237, 0.09), rgba(38, 198, 218, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.engine-list li:hover {
  transform: translateY(-2px);
  border-color: rgba(38, 198, 218, 0.26);
  background: linear-gradient(135deg, rgba(47, 128, 237, 0.14), rgba(38, 198, 218, 0.055));
}

.engine-list .engine-number {
  align-self: start;
  color: #78dce9;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.engine-list .engine-icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(38, 198, 218, 0.22);
  border-radius: 11px;
  background: rgba(38, 198, 218, 0.08);
}

.engine-icon::before {
  content: "";
  width: 0.82rem;
  height: 0.82rem;
  border: 2px solid var(--cyan);
}

.engine-icon-ml::before {
  border-radius: 50%;
  box-shadow: 0.44rem 0 0 -0.18rem var(--cyan), -0.44rem 0 0 -0.18rem var(--cyan);
}

.engine-icon-rules::before {
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translate(1px, -1px);
}

.engine-icon-behavior::before {
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.engine-list .engine-copy {
  display: grid;
  gap: 0.25rem;
  color: var(--text);
  letter-spacing: 0;
}

.engine-copy strong {
  font-size: 0.94rem;
}

.engine-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.metric-caption {
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.55;
}

.metric-ring,
.score-wheel {
  width: 7.8rem;
  height: 7.8rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(8, 18, 30, 1) 58%, transparent 59%),
    conic-gradient(var(--accent, var(--cyan)) var(--angle, 0deg), rgba(255, 255, 255, 0.08) 0deg);
  border: 1px solid rgba(110, 231, 255, 0.14);
}

.metric-ring {
  width: 8.6rem;
  height: 8.6rem;
  margin: 0.75rem 0 1rem;
  background:
    radial-gradient(circle at center, rgba(8, 18, 30, 1) 58%, transparent 59%),
    conic-gradient(from 110deg, var(--cyan), var(--amber), var(--teal), var(--cyan));
}

.metric-ring span,
.score-wheel span {
  font-family: "Rockwell", "Cambria", serif;
  font-size: 2rem;
  color: var(--text);
}

.dashboard {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  animation: lift 840ms ease;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(38, 198, 218, 0.5), transparent);
}

.panel-message .panel-kicker::before,
.panel-screen .panel-kicker::before {
  content: "";
  display: inline-block;
  width: 0.72rem;
  height: 0.72rem;
  margin-right: 0.55rem;
  border: 1px solid currentColor;
  vertical-align: -0.05rem;
}

.panel-message .panel-kicker::before {
  border-radius: 3px;
  box-shadow: inset 0 -3px 0 rgba(38, 198, 218, 0.25);
}

.panel-screen .panel-kicker {
  color: #75aaff;
}

.panel-screen .panel-kicker::before {
  border-radius: 2px;
  box-shadow: 0 3px 0 -1px currentColor;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.panel-note {
  max-width: 32ch;
  margin: 0;
  line-height: 1.6;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

.workflow-strip li {
  min-height: 6.2rem;
  padding: 0.9rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 36, 58, 0.88), rgba(11, 25, 42, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 180ms ease, border-color 180ms ease;
}

.workflow-strip li:hover {
  transform: translateY(-2px);
  border-color: rgba(38, 198, 218, 0.22);
}

.workflow-strip strong,
.workflow-strip span {
  display: block;
}

.workflow-strip strong {
  margin-bottom: 0.35rem;
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-strip span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.field span {
  font-size: 0.92rem;
}

textarea,
select,
.text-input {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 15, 27, 0.82);
  color: var(--text);
  padding: 1rem 1.05rem;
  font: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

textarea:hover,
select:hover,
.text-input:hover {
  border-color: rgba(255, 255, 255, 0.17);
}

textarea:focus,
select:focus,
.text-input:focus {
  border-color: rgba(110, 231, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.08);
}

.inline-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 20rem) 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.consent-box {
  border-radius: 22px;
  border: 1px solid rgba(242, 201, 76, 0.14);
  background: linear-gradient(135deg, rgba(242, 201, 76, 0.075), rgba(15, 27, 45, 0.5));
  padding: 1rem 1.05rem;
}

.consent-box-wide {
  margin-bottom: 1rem;
}

.consent-title {
  margin: 0 0 0.8rem;
  color: var(--amber);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}

.checkbox:last-child {
  margin-bottom: 0;
}

.checkbox input {
  width: 1.12rem;
  height: 1.12rem;
  margin-top: 0.2rem;
  accent-color: var(--teal);
}

.checkbox input:focus-visible {
  outline: 3px solid rgba(38, 198, 218, 0.3);
  outline-offset: 3px;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.1rem;
}

.action-row-wrap {
  flex-wrap: wrap;
}

.button-primary,
.button-secondary {
  border: 0;
  min-height: 3rem;
  border-radius: 13px;
  padding: 0.95rem 1.25rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button-primary {
  color: #f8fbff;
  background: linear-gradient(135deg, #2f80ed, #2269c8);
  box-shadow: 0 14px 30px rgba(47, 128, 237, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.button-secondary {
  color: var(--text);
  background: rgba(12, 28, 47, 0.68);
  border: 1px solid rgba(77, 157, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-2px);
}

.button-primary:hover {
  box-shadow: 0 17px 34px rgba(47, 128, 237, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.button-secondary:hover {
  border-color: rgba(38, 198, 218, 0.5);
  box-shadow: 0 10px 26px rgba(0, 8, 20, 0.3);
}

.button-primary:focus-visible,
.button-secondary:focus-visible {
  outline: 3px solid rgba(38, 198, 218, 0.3);
  outline-offset: 3px;
}

.button-primary:disabled,
.button-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.status-text {
  position: relative;
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

.status-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(38, 198, 218, 0.5);
}

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

.result-card {
  padding: 1.35rem;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(9, 23, 39, 0.98), rgba(12, 28, 46, 0.92));
  border: 1px solid rgba(38, 198, 218, 0.14);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.result-card:hover {
  transform: translateY(-2px);
  border-color: rgba(38, 198, 218, 0.25);
  box-shadow: 0 18px 42px rgba(0, 7, 18, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.result-card-accent {
  border-color: rgba(47, 128, 237, 0.2);
  background: linear-gradient(160deg, rgba(14, 31, 54, 0.98), rgba(9, 22, 38, 0.94));
}

.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.score-wheel {
  position: relative;
  width: 6.6rem;
  height: 6.6rem;
  --angle: 0deg;
  --accent: var(--cyan);
}

.score-wheel::after {
  content: "RISK";
  position: absolute;
  bottom: 1.15rem;
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.score-wheel span {
  padding-bottom: 0.55rem;
  font-size: 1.8rem;
  font-weight: 700;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1rem 0 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(157, 179, 203, 0.1);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.result-badge::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.result-meta {
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.insight-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  color: #c2cfda;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.insight-title::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid var(--cyan);
  border-radius: 2px;
  transform: rotate(45deg);
}

.signal-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.signal-list li {
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: rgba(157, 179, 203, 0.08);
  border: 1px solid rgba(157, 179, 203, 0.08);
  color: #d9e8f7;
  line-height: 1.5;
}

.result-card.is-empty .signal-list li,
.result-card.is-empty .chip-list li {
  position: relative;
  width: 100%;
  padding: 0.72rem 0.8rem 0.72rem 2.2rem;
  border: 1px dashed rgba(170, 183, 196, 0.13);
  border-radius: 13px;
  background: rgba(170, 183, 196, 0.035);
  color: #8293a4;
  font-size: 0.84rem;
}

.result-card.is-empty .signal-list li::before,
.result-card.is-empty .chip-list li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid #6f8498;
  border-radius: 50%;
  transform: translateY(-50%);
}

.signal-list-tight li {
  background: rgba(55, 196, 179, 0.08);
  border-color: rgba(55, 196, 179, 0.12);
}

.result-card.safe .result-badge,
.result-card.safe .score-wheel {
  --accent: var(--safe);
  color: var(--safe);
}

.result-card.safe {
  border-color: rgba(46, 204, 113, 0.24);
}

.result-card.suspicious {
  border-color: rgba(242, 201, 76, 0.26);
}

.result-card.scam {
  border-color: rgba(235, 87, 87, 0.28);
}

.result-card.suspicious .result-badge,
.result-card.suspicious .score-wheel {
  --accent: var(--suspicious);
  color: var(--suspicious);
}

.result-card.scam .result-badge,
.result-card.scam .score-wheel {
  --accent: var(--scam);
  color: var(--scam);
}

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

.architecture-grid article {
  position: relative;
  min-height: 12.5rem;
  padding: 1.35rem 1.35rem 1.35rem 4.4rem;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(20, 38, 60, 0.72), rgba(10, 24, 41, 0.66));
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.architecture-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(38, 198, 218, 0.22);
  box-shadow: var(--shadow-soft);
}

.architecture-grid article::before {
  content: "";
  position: absolute;
  left: 1.3rem;
  top: 1.35rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(38, 198, 218, 0.3);
  border-radius: 10px;
  background: rgba(38, 198, 218, 0.08);
  box-shadow: inset 0 0 0 0.55rem rgba(15, 27, 45, 0.92), inset 0 0 0 0.7rem var(--cyan);
}

.architecture-grid article[data-icon="lock"]::before {
  border-radius: 12px 12px 9px 9px;
  box-shadow: inset 0 0 0 0.6rem rgba(15, 27, 45, 0.92), inset 0 0 0 0.75rem #75aaff;
}

.architecture-grid article[data-icon="explain"]::before {
  border-radius: 50%;
}

.architecture-grid article[data-icon="extend"]::before {
  transform: rotate(45deg);
}

.architecture-grid p {
  margin: 0.75rem 0 0;
  line-height: 1.7;
}

.feedback-form {
  display: grid;
  grid-template-columns: minmax(18rem, 0.75fr) minmax(18rem, 1fr);
  gap: 1rem;
}

.feedback-rating,
.feedback-privacy {
  margin: 0;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(38, 198, 218, 0.14);
  border-radius: 18px;
  background: rgba(38, 198, 218, 0.045);
}

.feedback-rating legend {
  padding: 0 0.35rem;
  color: var(--text);
  font-weight: 700;
}

.rating-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.rating-options label {
  position: relative;
  cursor: pointer;
}

.rating-options input {
  position: absolute;
  opacity: 0;
}

.rating-options span {
  display: grid;
  min-height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(7, 17, 29, 0.72);
  color: var(--muted);
  font-weight: 800;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.rating-options input:checked + span {
  border-color: var(--cyan);
  background: rgba(38, 198, 218, 0.16);
  color: var(--text);
}

.rating-options input:focus-visible + span {
  outline: 3px solid rgba(38, 198, 218, 0.3);
  outline-offset: 3px;
}

.feedback-scale {
  display: flex;
  justify-content: space-between;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.feedback-comment {
  grid-column: 1 / -1;
}

.feedback-comment small {
  justify-self: end;
  color: var(--muted);
}

.feedback-privacy {
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
}

.feedback-privacy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.panel-feedback .action-row {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.hidden {
  display: none !important;
}

.admin-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  position: relative;
  z-index: 1;
}

.admin-hero {
  margin-bottom: 1.25rem;
}

.admin-panel {
  margin-bottom: 1.25rem;
}

.admin-form {
  display: grid;
  gap: 1rem;
}

.admin-callout {
  border-radius: 20px;
  border: 1px solid rgba(110, 231, 255, 0.14);
  background: rgba(110, 231, 255, 0.07);
  padding: 1rem 1.05rem;
}

.admin-callout-title {
  margin: 0 0 0.45rem;
  color: var(--cyan);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.admin-meta,
.admin-row-meta,
.admin-empty {
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-meta-grid {
  display: grid;
  gap: 0.85rem;
}

.admin-meta-grid p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(157, 179, 203, 0.08);
}

.admin-meta-grid strong {
  color: var(--text);
}

.admin-meta-grid span {
  color: var(--muted);
  text-align: right;
}

.admin-list,
.admin-log-grid {
  display: grid;
  gap: 0.9rem;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(157, 179, 203, 0.06);
  border: 1px solid rgba(157, 179, 203, 0.1);
}

.admin-row-title {
  margin: 0 0 0.3rem;
  font-weight: 700;
  color: var(--text);
}

.admin-row-meta {
  margin: 0;
}

.admin-empty {
  margin: 0;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(157, 179, 203, 0.06);
}

.admin-subhead {
  margin-top: 0.25rem;
}

.admin-actions-top {
  margin-top: 0;
}

.feedback-admin-head {
  margin-top: 2rem;
}

.feedback-metrics-grid,
.feedback-counts-grid,
.feedback-filter-row {
  display: grid;
  gap: 1rem;
}

.feedback-metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.feedback-metric {
  padding: 1rem;
  border: 1px solid rgba(110, 231, 255, 0.14);
  border-radius: 18px;
  background: rgba(16, 37, 59, 0.78);
}

.feedback-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.feedback-metric strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--cyan);
  font-size: 1.8rem;
}

.feedback-counts-grid,
.feedback-filter-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.feedback-count-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.feedback-count-list p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(157, 179, 203, 0.06);
}

.feedback-count-list strong {
  color: var(--text);
}

.feedback-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(157, 179, 203, 0.12);
  border-radius: 18px;
}

.feedback-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.feedback-table th,
.feedback-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(157, 179, 203, 0.1);
  text-align: left;
  vertical-align: top;
}

.feedback-table th {
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feedback-table td {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.feedback-table td:nth-child(3) {
  min-width: 250px;
  white-space: pre-wrap;
}

@keyframes lift {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero,
  .result-grid,
  .inline-grid,
  .architecture-grid,
  .workflow-strip,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .feedback-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feedback-form {
    grid-template-columns: 1fr;
  }

  .workflow-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rating-options {
    gap: 0.4rem;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .panel-head,
  .action-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-note {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .hero,
  .dashboard {
    width: min(100% - 1rem, 100%);
  }

  .admin-shell {
    width: min(100% - 1rem, 100%);
  }

  .hero-copy,
  .hero-metric,
  .panel {
    border-radius: 20px;
  }

  .hero-copy,
  .hero-metric,
  .panel,
  .result-card {
    padding: 1rem;
  }

  h1 {
    max-width: none;
  }

  .hero-pills span,
  .chip-list li {
    width: 100%;
  }

  .workflow-strip {
    grid-template-columns: 1fr;
  }

  .workflow-strip li {
    min-height: 0;
  }

  .admin-row,
  .admin-meta-grid p {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-meta-grid span {
    text-align: left;
  }

  .feedback-metrics-grid,
  .feedback-counts-grid,
  .feedback-filter-row {
    grid-template-columns: 1fr;
  }
}
