@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap");

:root {
  --bg-ink: #09101a;
  --bg-deep: #04070e;
  --paper: #f6f8fa;
  --paper-strong: #ffffff;
  --ink: #111624;
  --muted: #5b6475;
  --line: #d6ddea;
  --accent: #14d3c1;
  --accent-strong: #07b8a6;
  --good: #0d7d60;
  --warn: #935b00;
  --danger: #b6384b;
  --radius: 18px;
  --shadow-lg: 0 26px 60px rgba(4, 7, 14, 0.35);
  --shadow-sm: 0 14px 34px rgba(19, 34, 63, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

.tool-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: clamp(1.1rem, 2.7vw, 3rem);
  padding-right: clamp(1.1rem, 2.7vw, 3rem);
}

.tool-hero {
  background:
    radial-gradient(1200px 600px at 88% -5%, rgba(20, 211, 193, 0.24), transparent 50%),
    radial-gradient(760px 460px at 8% 8%, rgba(81, 105, 255, 0.18), transparent 52%),
    linear-gradient(148deg, #0c1726 0%, #060b14 50%, #090d19 100%);
  color: #f7fbff;
  padding: 1.25rem 0 2rem;
}

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

.tool-topbar-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-link,
.back-link {
  text-decoration: none;
  font-weight: 800;
}

.brand-link {
  color: #eef5ff;
}

.back-link {
  color: #c6d8f5;
}

.tool-hero-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  padding: 3rem 0 1rem;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b9cdf2;
  font-weight: 800;
  font-size: 0.76rem;
}

.section-kicker {
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #47607e;
  font-weight: 800;
  font-size: 0.76rem;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0.55rem 0 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.03;
  max-width: 12.5ch;
}

.hero-copy,
.section-copy {
  margin: 1rem 0 0;
  color: #d8e3f8;
  line-height: 1.6;
  max-width: 60ch;
}

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

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.primary-cta {
  color: #041119;
  background: linear-gradient(115deg, #14d3c1 0%, #66f4cf 100%);
  box-shadow: 0 16px 38px rgba(20, 211, 193, 0.28);
}

.secondary-cta {
  color: #e2edff;
  border: 1px solid rgba(170, 192, 230, 0.42);
  background: rgba(255, 255, 255, 0.04);
}

.primary-cta:hover,
.secondary-cta:hover,
.checker-form button:hover {
  transform: translateY(-1px);
}

.hero-points {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  color: #bfd0ed;
}

.hero-points li {
  display: flex;
  gap: 0.55rem;
  line-height: 1.5;
}

.hero-points li::before,
.side-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #66f4cf 0%, #14d3c1 100%);
  flex: 0 0 auto;
}

.hero-card,
.tool-form-card,
.tool-side-card,
.result-panel,
.cta-banner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow-sm);
}

.hero-card {
  padding: 1.2rem;
  background:
    radial-gradient(circle at 84% 10%, rgba(20, 211, 193, 0.12), transparent 54%),
    rgba(9, 14, 24, 0.74);
  border-color: rgba(159, 180, 214, 0.28);
  color: #f2f7ff;
  box-shadow: var(--shadow-lg);
}

.card-label {
  margin: 0;
  color: #b9cdf2;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.hero-kpis {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.hero-kpis div {
  border: 1px solid rgba(177, 197, 230, 0.2);
  border-radius: 14px;
  padding: 0.8rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
}

.hero-kpis span {
  display: block;
  color: #9fb4d7;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-kpis strong {
  display: block;
  margin-top: 0.3rem;
  line-height: 1.35;
}

.hero-note {
  margin: 0.9rem 0 0;
  color: #d4e2fb;
  line-height: 1.55;
}

.tool-form-section,
.tool-faq-section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.tool-form-grid,
.results-grid,
.faq-shell,
.footer-grid {
  display: grid;
  gap: 1rem;
}

.tool-form-grid {
  grid-template-columns: 1.02fr 0.98fr;
}

.tool-form-card,
.tool-side-card,
.result-panel,
.cta-banner {
  padding: 1.15rem;
}

.cta-banner {
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.98), rgba(227, 247, 244, 0.94));
}

.cta-banner .secondary-cta {
  color: #19324c;
  border-color: #bdd0e2;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(88, 113, 147, 0.12);
}

.cta-banner .secondary-cta:hover {
  border-color: #97b3cf;
  background: #ffffff;
}

.tool-form-card h2,
.tool-side-card h2,
.result-panel h2,
.cta-banner h2,
.faq-copy h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.checker-form {
  margin-top: 1rem;
}

.checker-form label {
  display: block;
  font-weight: 800;
  color: #172132;
  margin-bottom: 0.45rem;
}

.checker-input-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.checker-form input {
  min-width: 0;
  border: 1px solid #cdd8e8;
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  font: inherit;
}

.checker-form input:focus,
.checker-form button:focus-visible,
.faq-item summary:focus-visible,
.primary-cta:focus-visible,
.secondary-cta:focus-visible {
  outline: 2px solid #66f4cf;
  outline-offset: 3px;
}

.checker-form button {
  border: none;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  color: #041119;
  background: linear-gradient(115deg, #14d3c1 0%, #66f4cf 100%);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(20, 211, 193, 0.22);
}

.checker-form button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.tool-scope,
.form-message {
  margin: 0.85rem 0 0;
  line-height: 1.55;
}

.tool-scope {
  color: var(--muted);
}

.form-message {
  min-height: 1.5rem;
  font-weight: 700;
}

.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: var(--good);
}

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

.side-list li {
  display: flex;
  gap: 0.6rem;
  color: var(--muted);
  line-height: 1.55;
}

.results-section {
  padding-bottom: 4.5rem;
}

.status-card {
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.status-card.healthy {
  border-color: rgba(13, 125, 96, 0.22);
  background: linear-gradient(160deg, rgba(13, 125, 96, 0.07), rgba(255, 255, 255, 0.98));
}

.status-card.attention {
  border-color: rgba(147, 91, 0, 0.24);
  background: linear-gradient(160deg, rgba(255, 196, 110, 0.12), rgba(255, 255, 255, 0.98));
}

.status-card.critical {
  border-color: rgba(182, 56, 75, 0.24);
  background: linear-gradient(160deg, rgba(255, 90, 103, 0.1), rgba(255, 255, 255, 0.98));
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.36rem 0.8rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.status-pill.healthy {
  color: var(--good);
  background: rgba(13, 125, 96, 0.12);
}

.status-pill.attention {
  color: var(--warn);
  background: rgba(255, 196, 110, 0.2);
}

.status-pill.critical {
  color: var(--danger);
  background: rgba(255, 90, 103, 0.14);
}

.status-card h2 {
  margin: 0.6rem 0 0;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
}

.status-card p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.results-grid {
  margin-top: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-stack {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.result-row,
.signal-row {
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  background: #fbfdff;
}

.result-row-head,
.signal-row-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.result-row strong,
.signal-row strong {
  font-size: 1rem;
}

.row-subtitle,
.signal-detail,
.rule-preview {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.rule-preview {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  color: #334255;
}

.bot-badge,
.hint-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  white-space: nowrap;
}

.bot-badge.allowed,
.hint-badge.present {
  color: var(--good);
  background: rgba(13, 125, 96, 0.12);
}

.bot-badge.restricted {
  color: var(--warn);
  background: rgba(255, 196, 110, 0.2);
}

.bot-badge.blocked,
.hint-badge.missing {
  color: var(--danger);
  background: rgba(255, 90, 103, 0.14);
}

.bot-badge.unverifiable,
.hint-badge.unverifiable {
  color: #49566b;
  background: rgba(73, 86, 107, 0.12);
}

.suggestions-list {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
}

.suggestions-list li {
  margin-bottom: 0.7rem;
  line-height: 1.55;
  color: #293446;
}

.cta-banner {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr auto;
  align-items: center;
  background:
    radial-gradient(circle at 85% 10%, rgba(20, 211, 193, 0.12), transparent 52%),
    linear-gradient(180deg, #fbfeff 0%, #f4f9ff 100%);
}

.cta-banner p {
  color: var(--muted);
  line-height: 1.6;
}

.faq-shell {
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  border-radius: 16px;
  border: 1px solid #d7e1ef;
  background: #fbfdff;
  padding: 0.2rem 1rem 0.95rem;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  color: #182131;
  padding: 0.95rem 1.8rem 0.95rem 0;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.8rem;
  color: #0b7d72;
  font-size: 1.3rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.tool-footer {
  background: var(--bg-deep);
  color: #d1dbf1;
  border-top: 1px solid #1b263a;
  padding: 2.3rem 0;
}

.footer-grid {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.tool-footer p,
.tool-footer a {
  color: #adbbd8;
  margin: 0.35rem 0 0;
  text-decoration: none;
}

.tool-footer a {
  display: block;
}

.tool-footer a:hover {
  color: #d8e7ff;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 980px) {
  .tool-hero-grid,
  .tool-form-grid,
  .results-grid,
  .faq-shell,
  .cta-banner,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .checker-input-row {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .cta-actions {
    align-items: stretch;
  }

  .primary-cta,
  .secondary-cta,
  .checker-form button {
    width: 100%;
  }
}
