:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #d9e1ea;
  --panel: #ffffff;
  --soft: #f5f8fb;
  --blue: #1d4ed8;
  --cyan: #0891b2;
  --green: #0f8a5f;
  --amber: #b45309;
  --red: #b91c1c;
  --shadow: 0 22px 70px rgba(17, 24, 39, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(8, 145, 178, 0.12), transparent 28rem),
    linear-gradient(180deg, #f9fbfd 0%, #eef4f7 44%, #ffffff 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  padding: 10px 0;
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.trust-row,
.file-details,
.result-header,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #2563eb 55%, #0891b2);
  font-size: 0.78rem;
}

.nav-links {
  gap: 24px;
  color: #344054;
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links a:hover,
.header-cta:hover {
  color: var(--blue);
}

.header-cta,
.primary-button {
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: #111827;
  font-weight: 750;
  cursor: pointer;
}

.header-cta {
  padding: 11px 16px;
  color: #ffffff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: 44px;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 52px 0 76px;
  align-items: center;
}

.hero-copy {
  max-width: 590px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 20px;
  font-size: clamp(3.5rem, 8vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero-text,
.content-grid p,
.seo-section p,
.faq-list p,
.site-footer p,
.upload-zone p,
.result-copy,
.disclaimer,
.loading-state p,
.steps p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 48ch;
  font-size: 1.14rem;
}

.trust-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-row span,
.keyword-cloud span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #344054;
  font-size: 0.86rem;
  font-weight: 700;
}

.trust-row span {
  padding: 9px 12px;
}

.detector-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.08), transparent 36%),
    var(--panel);
  box-shadow: var(--shadow);
  padding: 24px;
}

.detector-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 58%);
}

.upload-zone,
.workspace,
.privacy-label,
.loading-state,
.result-panel {
  position: relative;
  z-index: 1;
}

.privacy-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(15, 138, 95, 0.24);
  border-radius: 8px;
  background: #effaf5;
  color: #0b6b4b;
  font-size: 0.9rem;
  line-height: 1.35;
}

.privacy-label strong {
  white-space: nowrap;
}

.privacy-label span {
  color: #245f4b;
  text-align: right;
}

.upload-zone {
  display: grid;
  min-height: 212px;
  place-items: center;
  gap: 16px;
  padding: 28px;
  border: 1.5px dashed #9aa9bb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.upload-zone:hover,
.upload-zone.is-dragging,
.upload-zone:focus-visible {
  outline: none;
  border-color: var(--blue);
  background: #ffffff;
  transform: translateY(-1px);
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: #e9f8fb;
  color: var(--cyan);
}

.upload-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

.preview-frame {
  overflow: hidden;
  display: grid;
  aspect-ratio: 16 / 10;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1220;
}

.preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.file-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.file-details > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.detail-label {
  display: block;
  margin-bottom: 4px;
  color: #697586;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.file-details strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.primary-button {
  min-height: 52px;
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(135deg, #111827, #1d4ed8);
}

.primary-button:hover {
  filter: brightness(1.06);
}

.error-message {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(185, 28, 28, 0.22);
  border-radius: 8px;
  background: #fff1f2;
  color: var(--red);
  font-weight: 700;
}

.loading-state {
  overflow: hidden;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.scan-line {
  height: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #0891b2, #1d4ed8, transparent);
  animation: scan 1.2s ease-in-out infinite;
}

@keyframes scan {
  0% {
    transform: translateX(-60%);
  }
  100% {
    transform: translateX(60%);
  }
}

.result-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.result-header {
  justify-content: space-between;
  gap: 18px;
}

.result-label {
  display: block;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.1;
}

.result-score {
  font-size: clamp(2.25rem, 7vw, 4.2rem);
  font-weight: 850;
  letter-spacing: 0;
}

.meter {
  overflow: hidden;
  height: 12px;
  margin: 16px 0;
  border-radius: 999px;
  background: #e6edf5;
}

.meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--amber), var(--red));
  transition: width 420ms ease;
}

.signal-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.result-meta,
.model-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.result-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.result-meta div,
.model-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.result-meta span,
.model-card span {
  display: block;
  margin-bottom: 5px;
  color: #697586;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.result-meta strong,
.model-card strong {
  overflow-wrap: anywhere;
}

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

.model-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.signal-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid #edf1f5;
  color: #344054;
  font-size: 0.92rem;
}

.report-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 800;
}

.signal-list b {
  color: var(--ink);
}

.disclaimer {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff8eb;
  color: #7c4a03;
  font-size: 0.9rem;
}

.content-band,
.faq-section,
.seo-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.content-grid,
.seo-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 14px;
}

.steps article {
  padding: 18px 0 18px 24px;
  border-left: 3px solid var(--line);
}

.steps span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-weight: 850;
}

.seo-section {
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-cloud span {
  padding: 10px 13px;
}

.section-heading {
  max-width: 640px;
}

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

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 20px 18px;
}

.footer-links,
.site-footer {
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #344054;
  font-weight: 750;
}

.footer-links a:hover,
.legal-content a:hover {
  color: var(--blue);
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: #485467;
  font-size: 0.92rem;
}

.site-footer p {
  max-width: 430px;
  margin: 6px 0 0;
}

.legal-page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 88px;
}

.legal-content {
  padding: 34px 0;
}

.legal-content h1 {
  max-width: none;
  margin-bottom: 12px;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.legal-content h2 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.legal-content p,
.updated {
  color: var(--muted);
  line-height: 1.7;
}

.legal-content a {
  color: var(--blue);
  font-weight: 800;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 8px;
}

.contact-list > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.contact-list strong {
  display: block;
  overflow-wrap: anywhere;
}

[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  .site-header {
    min-height: auto;
    padding: 14px 0;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .content-grid,
  .seo-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .content-band,
  .faq-section,
  .seo-section,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 0.96rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .header-cta {
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .hero {
    gap: 26px;
    padding-bottom: 52px;
  }

  h1 {
    font-size: 3.35rem;
  }

  .detector-panel {
    padding: 16px;
  }

  .upload-zone {
    min-height: 180px;
    padding: 20px;
  }

  .privacy-label {
    align-items: flex-start;
    flex-direction: column;
  }

  .privacy-label span {
    text-align: left;
  }

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

  .result-meta,
  .model-grid {
    grid-template-columns: 1fr;
  }

  .result-header,
  .footer-links,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .content-band,
  .faq-section,
  .seo-section {
    padding: 52px 0;
  }
}
