:root {
  --bg: #07111f;
  --bg-2: #0c1728;
  --surface: rgba(12, 23, 40, 0.84);
  --surface-strong: #111f34;
  --line: rgba(140, 179, 255, 0.18);
  --text: #f5f9ff;
  --muted: #9db0d0;
  --teal: #59f0d0;
  --green: #69ff95;
  --cyan: #57b9ff;
  --amber: #ffc857;
  --red: #ff6f7d;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(87, 185, 255, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(89, 240, 208, 0.16), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

button,
input {
  font: inherit;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.015));
  background-size: 100% 100%, 3px 3px;
}

.site-shell {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar,
.overview-header,
.meta-stack,
.scan-row,
.prompt-top,
.agent-summary-top,
.comparison-cell-top,
.reason-grid {
  display: flex;
}

.topbar,
.overview-header {
  justify-content: space-between;
}

.topbar,
.overview-header,
.meta-stack,
.scan-row,
.prompt-top,
.agent-summary-top,
.comparison-cell-top {
  align-items: center;
}

.topbar {
  gap: 20px;
}

.brand {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(89, 240, 208, 0.22), rgba(87, 185, 255, 0.14));
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.topbar-copy,
.hero-copy,
.scan-note,
.agent-user-agent,
.agent-summary,
.check-one-line,
.faq-body,
.subheading,
.meta-pill.subtle {
  color: var(--muted);
}

.main-layout {
  padding-top: 52px;
}

.hero-block,
.overview-section,
.faq-item,
.prompt-section,
.agent-summary-card,
.comparison-row,
.comparison-cell,
.error-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-block,
.overview-section {
  border-radius: 32px;
  padding: 32px;
}

.hero-block {
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-copy {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 1.1rem;
  line-height: 1.75;
}

.scan-form {
  margin-top: 28px;
}

.scan-row {
  gap: 12px;
}

input[type="url"] {
  width: 100%;
  min-height: 62px;
  padding: 0 20px;
  border-radius: 18px;
  border: 1px solid rgba(140, 179, 255, 0.24);
  background: rgba(5, 13, 24, 0.86);
  color: var(--text);
}

input[type="url"]::placeholder {
  color: #6f83a7;
}

.scan-button,
.secondary-button {
  border: none;
  cursor: pointer;
  border-radius: 18px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.scan-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.scan-button {
  min-width: 152px;
  min-height: 62px;
  color: #08111f;
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.scan-note {
  margin: 12px 0 0;
  text-align: left;
}

.hidden {
  display: none !important;
}

.overview-section {
  margin-top: 28px;
}

.redirect-notice {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(87, 185, 255, 0.18);
  background: rgba(87, 185, 255, 0.08);
  color: #9fd7ff;
  line-height: 1.65;
}

.environment-notice {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(89, 240, 208, 0.16);
  background: rgba(89, 240, 208, 0.06);
}

.share-link {
  color: var(--teal);
  text-decoration: none;
  word-break: break-all;
}

.share-link:hover {
  text-decoration: underline;
}

.share-button {
  white-space: nowrap;
}

.access-warning {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 200, 87, 0.24);
  background: rgba(255, 200, 87, 0.08);
}

.access-warning-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 200, 87, 0.18);
  color: var(--amber);
  font-weight: 800;
  flex: 0 0 auto;
}

.access-warning h3 {
  margin: 0;
  font-size: 1rem;
}

.access-warning p {
  margin: 6px 0 0;
  color: #ffdca0;
  line-height: 1.7;
}

.redirect-chain {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(89, 240, 208, 0.16);
  background: rgba(89, 240, 208, 0.05);
  list-style: none;
}

.redirect-chain li {
  color: var(--text);
  line-height: 1.6;
}

.redirect-chain .redirect-arrow {
  color: var(--teal);
  padding: 4px 0;
}

.blocked-state {
  display: flex;
  gap: 18px;
  margin-top: 22px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 111, 125, 0.28);
  background: rgba(48, 12, 16, 0.78);
}

.blocked-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 111, 125, 0.16);
  color: var(--amber);
  font-size: 1.4rem;
  font-weight: 800;
}

.blocked-copy h3 {
  margin: 0;
  font-size: 2rem;
}

.blocked-copy p {
  margin: 8px 0 0;
}

.blocked-snippet {
  margin: 18px 0 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 200, 87, 0.18);
  background: rgba(20, 8, 5, 0.62);
  color: #ffd7a6;
  white-space: pre-wrap;
  line-height: 1.6;
  max-height: 220px;
  overflow: auto;
}

.blocked-kind {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.blocked-403_blocked {
  background: rgba(255, 111, 125, 0.16);
  color: #ff9ca5;
}

.blocked-429_rate_limited {
  background: rgba(255, 200, 87, 0.18);
  color: #ffd27a;
}

.blocked-401_unauthorized {
  background: rgba(87, 185, 255, 0.18);
  color: #8fd0ff;
}

.blocked-other_blocked {
  background: rgba(189, 160, 255, 0.18);
  color: #cab0ff;
}

.blocked-network_unavailable {
  background: rgba(87, 185, 255, 0.18);
  color: #8fd0ff;
}

.blocked-dns_failure,
.blocked-tls_failure {
  background: rgba(87, 185, 255, 0.18);
  color: #8fd0ff;
}

.blocked-connection_timeout {
  background: rgba(255, 200, 87, 0.18);
  color: #ffd27a;
}

.blocked-connection_refused {
  background: rgba(255, 111, 125, 0.16);
  color: #ff9ca5;
}

.blocked-reason {
  color: #f3c4c7;
  line-height: 1.7;
}

.diagnostics-panel {
  margin-top: 22px;
  border: 1px solid rgba(140, 179, 255, 0.18);
  border-radius: 24px;
  background: rgba(6, 15, 27, 0.48);
  overflow: hidden;
}

.diagnostics-panel summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
}

.diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 22px 22px;
}

.diagnostics-block {
  border-radius: 18px;
  border: 1px solid rgba(140, 179, 255, 0.12);
  background: rgba(12, 23, 40, 0.72);
  padding: 16px;
}

.diagnostics-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}

.diagnostics-list li {
  margin-bottom: 10px;
}

.diagnostics-list strong,
.diagnostics-list span,
.diagnostics-list code,
.diagnostics-list a {
  display: block;
}

.diagnostics-list span {
  color: var(--muted);
}

.diagnostics-list a {
  color: var(--teal);
  text-decoration: none;
}

.diagnostics-list a:hover {
  text-decoration: underline;
}

.meta-stack {
  gap: 10px;
  flex-wrap: wrap;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(89, 240, 208, 0.14);
  color: var(--teal);
  font-weight: 700;
}

.meta-pill.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(89, 240, 208, 0.28);
  border-top-color: var(--teal);
  animation: scan-spin 0.8s linear infinite;
}

.meta-pill.subtle {
  background: rgba(87, 185, 255, 0.12);
}

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

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

.agent-summary-card {
  border-radius: 28px;
  padding: 22px;
}

.agent-summary-card[data-agent="gemini"] {
  border-color: rgba(89, 240, 208, 0.28);
}

.agent-summary-card[data-agent="chatgpt"] {
  border-color: rgba(105, 255, 149, 0.28);
}

.agent-summary-card[data-agent="perplexity"] {
  border-color: rgba(87, 185, 255, 0.28);
}

.agent-summary-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.agent-identity,
.cell-agent {
  display: inline-flex;
  align-items: center;
}

.agent-copy {
  min-width: 0;
}

.agent-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.agent-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.agent-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(140, 179, 255, 0.18);
  background: rgba(12, 23, 40, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.agent-icon-image {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.agent-icon-gemini {
  box-shadow: inset 0 0 0 1px rgba(89, 240, 208, 0.18);
}

.agent-icon-chatgpt {
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px rgba(105, 255, 149, 0.24);
}

.agent-icon-perplexity {
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px rgba(87, 185, 255, 0.24);
}

.agent-score-ring {
  --score: 0deg;
  width: 84px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(17, 31, 52, 1) 58%, transparent 59%),
    conic-gradient(var(--cyan) var(--score), rgba(87, 185, 255, 0.12) var(--score));
  box-shadow: inset 0 0 0 1px rgba(140, 179, 255, 0.18);
}

.agent-score {
  font-size: 1.35rem;
  font-weight: 800;
}

.agent-user-agent {
  margin: 16px 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  word-break: break-word;
}

.agent-summary {
  margin: 12px 0 0;
  line-height: 1.7;
}

.comparison-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.comparison-row {
  border-radius: 28px;
  padding: 22px;
}

.merged-row {
  border-color: rgba(89, 240, 208, 0.22);
}

.comparison-intro {
  margin-bottom: 18px;
}

.comparison-kicker {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
}

.comparison-title {
  margin: 6px 0 8px;
  font-size: 1.45rem;
}

.comparison-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.merged-card {
  border-radius: 22px;
  padding: 18px;
  background: rgba(6, 15, 27, 0.62);
  border: 1px solid rgba(89, 240, 208, 0.16);
}

.merged-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.merged-agents {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agent-mini-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.comparison-cell {
  border-radius: 22px;
  padding: 16px;
  background: rgba(6, 15, 27, 0.62);
}

.comparison-cell[data-agent="gemini"] {
  border-color: rgba(89, 240, 208, 0.2);
}

.comparison-cell[data-agent="chatgpt"] {
  border-color: rgba(105, 255, 149, 0.2);
}

.comparison-cell[data-agent="perplexity"] {
  border-color: rgba(87, 185, 255, 0.2);
}

.cell-summary {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.cell-block {
  margin-top: 14px;
}

.status-pill {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pass {
  background: rgba(105, 255, 149, 0.16);
  color: var(--green);
}

.status-partial {
  background: rgba(255, 200, 87, 0.18);
  color: var(--amber);
}

.status-missing {
  background: rgba(255, 111, 125, 0.16);
  color: var(--red);
}

.reason-grid {
  gap: 14px;
  align-items: flex-start;
}

.reason-grid > div,
.url-block {
  flex: 1;
}

.subheading {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.worked-list,
.missing-list,
.url-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.65;
}

.url-block {
  margin-top: 14px;
}

.url-list li {
  margin-bottom: 8px;
}

.url-list a {
  color: var(--teal);
  text-decoration: none;
}

.url-list a:hover {
  text-decoration: underline;
}

.url-list span {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
}

.prompt-section {
  margin-top: 28px;
  border-radius: 28px;
  padding: 24px;
}

.prompt-top {
  justify-content: space-between;
  gap: 16px;
}

.prompt-top h3 {
  margin: 6px 0 0;
  font-size: 1.5rem;
}

.secondary-button {
  padding: 14px 16px;
  color: #08111f;
  font-weight: 800;
  background: linear-gradient(135deg, var(--amber), #ffd98f);
}

.prompt-output {
  margin: 18px 0 0;
  padding: 18px;
  border-radius: 22px;
  background: rgba(5, 13, 24, 0.82);
  border: 1px solid rgba(140, 179, 255, 0.14);
  white-space: pre-wrap;
  line-height: 1.7;
}

.prompt-groups {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.prompt-group-card {
  border-radius: 22px;
  padding: 18px;
  background: rgba(5, 13, 24, 0.72);
  border: 1px solid rgba(140, 179, 255, 0.14);
}

.prompt-group-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.prompt-group-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.prompt-group-meta {
  min-width: 0;
}

.prompt-group-title {
  margin: 0;
  font-weight: 800;
}

.prompt-group-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
}

.prompt-group-list {
  margin: 14px 0 0;
  padding-left: 18px;
  line-height: 1.7;
}

.schema-summary {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.schema-signals {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.65;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.faq-item {
  border-radius: 24px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 700;
}

.faq-body {
  padding: 0 22px 20px;
  line-height: 1.7;
}

.error-card {
  padding: 18px;
  border-radius: 22px;
  color: var(--red);
}

@media (max-width: 1180px) {
  .agent-summary-grid,
  .comparison-columns,
  .diagnostics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 20px, 1280px);
  }

  .hero-block,
  .overview-section,
  .prompt-section,
  .agent-summary-card,
  .comparison-row {
    padding: 20px;
  }

  .scan-row,
  .prompt-top,
  .overview-header,
  .reason-grid,
  .topbar,
  .merged-top,
  .blocked-state,
  .share-row {
    flex-direction: column;
    align-items: stretch;
  }

  .scan-button,
  .secondary-button {
    width: 100%;
  }
}
