:root {
  --bg: #050807;
  --panel: #0b1210;
  --panel-strong: #101c18;
  --text: #f1f7f2;
  --muted: #a9b8ae;
  --soft: #d7e4da;
  --green: #7cff5b;
  --green-strong: #4ee036;
  --cyan: #70d8ff;
  --amber: #f0c567;
  --border: rgba(124, 255, 91, 0.22);
  --border-soft: rgba(241, 247, 242, 0.12);
  --shadow: rgba(0, 0, 0, 0.38);
  --max: 1160px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 7, 0.92), rgba(5, 8, 7, 1)),
    radial-gradient(circle at 80% 0%, rgba(112, 216, 255, 0.08), transparent 36%),
    #050807;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--header-height);
  padding: 13px clamp(18px, 4vw, 46px);
  border-bottom: 1px solid rgba(124, 255, 91, 0.16);
  background: rgba(5, 8, 7, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(124, 255, 91, 0.1);
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 13px;
  box-shadow: 0 0 22px rgba(124, 255, 91, 0.1);
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a {
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--green);
}

.nav-links a:hover {
  border-color: rgba(124, 255, 91, 0.22);
  background: rgba(124, 255, 91, 0.06);
}

main {
  display: grid;
  gap: 22px;
  padding: clamp(28px, 5vw, 46px) clamp(16px, 4vw, 46px) 56px;
}

.section-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(11, 18, 16, 0.82);
  box-shadow: 0 20px 50px var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(330px, 1.04fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  min-height: auto;
  padding-top: clamp(28px, 4vw, 42px);
  padding-bottom: clamp(24px, 4vw, 38px);
  border-color: rgba(124, 255, 91, 0.18);
  background:
    linear-gradient(135deg, rgba(16, 28, 24, 0.92), rgba(7, 12, 11, 0.94)),
    linear-gradient(90deg, rgba(124, 255, 91, 0.08), transparent 55%);
}

.eyebrow,
.panel-kicker,
.result-label {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 16px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.3;
}

.hero-lede,
.section-intro p,
.split-section > div:first-child p,
.limitations p,
.news-strip p {
  color: var(--soft);
  font-size: 17px;
}

.hero-lede {
  max-width: 650px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.trust-row span {
  padding: 7px 10px;
  border: 1px solid rgba(241, 247, 242, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.button-primary {
  background: var(--green);
  color: #061006;
  border-color: var(--green);
}

.button-primary:hover {
  background: #a8ff92;
  border-color: #a8ff92;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--soft);
}

.button-secondary:hover {
  color: var(--green);
  border-color: rgba(124, 255, 91, 0.45);
}

.scanner-panel {
  display: grid;
  gap: 13px;
  position: relative;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(124, 255, 91, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(17, 31, 26, 0.98), rgba(7, 12, 10, 0.98)),
    repeating-linear-gradient(0deg, rgba(124, 255, 91, 0.04), rgba(124, 255, 91, 0.04) 1px, transparent 1px, transparent 9px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(124, 255, 91, 0.05) inset;
}

.scanner-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--green), rgba(112, 216, 255, 0.74), transparent);
}

.panel-heading h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 3vw, 30px);
}

.panel-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.scanner-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(241, 247, 242, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.tab-button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.tab-button:hover,
.tab-button.active {
  border-color: rgba(124, 255, 91, 0.3);
  background: rgba(124, 255, 91, 0.1);
  color: var(--text);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  gap: 16px;
}

.checker-form {
  display: grid;
  gap: 12px;
}

.field-label {
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

textarea,
input[type="url"],
input[type="file"] {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(241, 247, 242, 0.16);
  border-radius: 8px;
  background: #040706;
  color: var(--text);
  font: inherit;
  line-height: 1.55;
  outline: none;
}

textarea {
  min-height: 184px;
  resize: vertical;
}

input[type="url"] {
  min-height: 50px;
}

input[type="file"] {
  color: var(--muted);
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(124, 255, 91, 0.35);
  border-radius: 8px;
  background: rgba(124, 255, 91, 0.1);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

textarea:focus,
input[type="url"]:focus,
input[type="file"]:focus {
  border-color: rgba(124, 255, 91, 0.58);
  box-shadow: 0 0 0 3px rgba(124, 255, 91, 0.12);
}

.privacy-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.analyze-button {
  justify-self: start;
}

.checker-result {
  max-width: 100%;
  min-height: 190px;
  max-height: min(54vh, 520px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid rgba(112, 216, 255, 0.26);
  border-radius: 8px;
  background: rgba(112, 216, 255, 0.075);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  scrollbar-color: rgba(124, 255, 91, 0.5) rgba(255, 255, 255, 0.06);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.checker-result.signal-low {
  border-color: rgba(124, 255, 91, 0.3);
  background: rgba(124, 255, 91, 0.06);
}

.checker-result.signal-medium {
  border-color: rgba(240, 197, 103, 0.34);
  background: rgba(240, 197, 103, 0.08);
}

.checker-result.signal-high {
  border-color: rgba(112, 216, 255, 0.38);
  background: rgba(112, 216, 255, 0.09);
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.checker-result h3 {
  max-width: 100%;
  margin-bottom: 10px;
  font-size: 20px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.checker-result h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-caution {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(241, 247, 242, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.signal-meter {
  flex: 0 0 auto;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid rgba(241, 247, 242, 0.13);
  border-radius: 8px;
  color: var(--soft);
  background: rgba(0, 0, 0, 0.22);
  font-size: 12px;
  font-weight: 800;
  white-space: normal;
}

.result-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.result-columns > div {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(241, 247, 242, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.checker-result ul {
  display: grid;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.checker-result li {
  min-width: 0;
  max-width: 100%;
  padding-left: 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.scan-state {
  display: grid;
  align-content: center;
  gap: 12px;
  overflow: hidden;
  border-color: rgba(124, 255, 91, 0.34);
  background:
    linear-gradient(180deg, rgba(124, 255, 91, 0.08), rgba(112, 216, 255, 0.055)),
    rgba(4, 7, 6, 0.96);
}

.scan-state h3 {
  margin-bottom: 2px;
}

.scan-track {
  position: relative;
  height: 9px;
  overflow: hidden;
  border: 1px solid rgba(124, 255, 91, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.scan-bar {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(124, 255, 91, 0.32), var(--green), rgba(112, 216, 255, 0.8));
  box-shadow: 0 0 18px rgba(124, 255, 91, 0.42);
  animation: scan-progress 1.78s ease-in-out forwards, scan-pulse 900ms ease-in-out infinite;
}

.scan-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 18px;
}

.section-intro.compact {
  margin-bottom: 0;
}

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

.use-case-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.result-card,
.guidance-card,
.use-case-grid article,
.check-item {
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.result-card p,
.guidance-card p,
.use-case-grid p,
.check-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.status-dot {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 12px;
  border-radius: 999px;
}

.status-dot.human {
  background: var(--green);
}

.status-dot.mixed {
  background: var(--amber);
}

.status-dot.ai {
  background: var(--cyan);
}

.split-section,
.limitations,
.news-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}

.check-list {
  display: grid;
  gap: 12px;
}

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

.limitations li {
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.035);
}

.news-strip {
  align-items: center;
  border-color: rgba(112, 216, 255, 0.24);
  background: linear-gradient(90deg, rgba(16, 28, 24, 0.92), rgba(9, 21, 25, 0.92));
}

.news-strip .button {
  justify-self: end;
  white-space: nowrap;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

summary {
  padding: 14px 16px;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
}

.site-footer {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 34px 18px 44px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
}

.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;
}

@keyframes scan-progress {
  0% {
    transform: translateX(-105%);
  }
  100% {
    transform: translateX(230%);
  }
}

@keyframes scan-pulse {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero,
  .split-section,
  .limitations,
  .news-strip {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .result-grid,
  .guidance-grid,
  .use-case-grid,
  .result-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-strip .button {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav-links,
  .footer-links {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  main {
    gap: 18px;
    padding-top: 18px;
    padding-bottom: 38px;
  }

  .section-shell {
    padding: 17px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  h2 {
    font-size: 25px;
  }

  .hero {
    padding-top: 22px;
    padding-bottom: 20px;
  }

  .result-grid,
  .guidance-grid,
  .use-case-grid,
  .result-columns {
    grid-template-columns: 1fr;
  }

  .scanner-tabs {
    grid-template-columns: 1fr;
  }

  .result-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .checker-result {
    max-height: 58vh;
  }

  textarea {
    min-height: 166px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button,
  .analyze-button {
    width: 100%;
  }
}
