:root {
  color-scheme: light;
  --ink: #15223b;
  --muted: #5e6d87;
  --blue: #2462ee;
  --blue-dark: #174dcc;
  --blue-pale: #f7faff;
  --line: #dce5f1;
  --lime: #eaffad;
  --warning: #a35e08;
  --warning-bg: #fff3df;
  font-family: Inter, "Noto Sans CJK SC", "Noto Sans", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.ph { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.page-width { width: min(100% - 96px, 1290px); margin-inline: auto; }
.skip-link { position: absolute; inset-block-start: -100px; inset-inline-start: 24px; z-index: 50; padding: 12px 18px; background: var(--ink); color: #fff; }
.skip-link:focus { inset-block-start: 12px; }
:focus-visible { outline: 3px solid #83a9ff; outline-offset: 3px; }

.site-header { border-bottom: 1px solid transparent; }
.header-inner { width: min(100% - 96px, 1390px); min-height: 70px; margin-inline: auto; display: flex; align-items: center; gap: 60px; }
.brand { display: inline-flex; align-items: center; gap: 15px; font-size: 25px; font-weight: 750; letter-spacing: -.06em; text-decoration: none; white-space: nowrap; }
.brand .ph { color: var(--blue); font-size: 36px; font-weight: normal; }
.main-nav { display: flex; align-items: center; gap: 43px; align-self: stretch; }
.main-nav a { display: inline-flex; align-items: center; gap: 5px; padding-top: 2px; border-bottom: 2px solid transparent; color: #44536e; text-decoration: none; white-space: nowrap; font-size: 16px; font-weight: 550; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); }
.main-nav a.active { border-bottom-color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 18px; margin-inline-start: auto; }
.offline-badge { display: inline-flex; align-items: center; gap: 7px; padding: 11px 17px; background: var(--lime); border-radius: 999px; color: #263810; font-size: 14px; font-weight: 700; white-space: nowrap; }
.offline-badge[data-ready="false"] { background: #f0f4f8; color: #576680; }
.offline-badge .ph { font-size: 17px; }
.language-menu { position: relative; z-index: 20; }
.language-menu summary { display: flex; align-items: center; gap: 6px; list-style: none; color: #44536e; font-size: 14px; cursor: pointer; white-space: nowrap; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary .ph { font-size: 17px; }
.language-popover { position: absolute; inset-block-start: calc(100% + 17px); inset-inline-end: 0; width: 216px; max-height: min(60vh, 470px); padding: 8px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 35px #17376822; }
.language-popover a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.language-popover a:hover, .language-popover a[aria-current="page"] { background: #eff4ff; color: var(--blue); }

.hero { padding-block-start: 45px; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(34px, 3.7vw, 54px); line-height: 1.18; font-weight: 790; letter-spacing: -.055em; }
.hero-subtitle { margin: 16px 0 25px; color: var(--muted); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; }
.drop-zone { width: min(100%, 685px); min-height: 280px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px; border: 2px dashed #87abff; border-radius: 18px; background: var(--blue-pale); transition: border-color .2s, background .2s, transform .2s; }
.drop-zone.is-dragging { border-color: var(--blue); background: #edf4ff; transform: scale(1.006); }
.upload-icon { color: var(--blue); font-size: 70px; line-height: 1; }
.drop-title { margin: 18px 0 16px; font-size: 25px; font-weight: 720; }
.primary-button { min-width: 186px; min-height: 44px; padding: 9px 25px; background: var(--blue); border: 1px solid var(--blue); border-radius: 999px; color: #fff; font-size: 17px; font-weight: 680; box-shadow: none; transition: background .2s, transform .2s; }
.primary-button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.primary-button:disabled { opacity: .55; cursor: progress; transform: none; }
.drop-hint { margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.model-status { min-height: 20px; margin: 11px 0 0; color: var(--muted); font-size: 13px; }
.model-status[data-error="true"] { color: #ad3434; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 12px; padding: 13px 0 30px; text-align: start; }
.benefit { display: flex; align-items: center; gap: 17px; min-width: 0; padding-inline: 31px; border-inline-end: 1px solid var(--line); }
.benefit:first-child { padding-inline-start: 8px; }
.benefit:last-child { border: 0; padding-inline-end: 0; }
.benefit-icon { flex: 0 0 54px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #f0f5ff; color: var(--blue); font-size: 28px; }
.benefit h3 { margin: 0 0 4px; color: #1c3d86; font-size: 17px; line-height: 1.3; font-weight: 740; }
.benefit p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.accuracy { padding-block: 27px 12px; border-top: 1px solid var(--line); text-align: center; }
.accuracy p { margin: 0; font-size: clamp(19px, 2vw, 26px); font-weight: 720; letter-spacing: -.025em; }
.accuracy strong { color: var(--blue); font-size: 1.28em; }
.accuracy-note { display: block; margin-top: 9px; color: var(--muted); font-size: 13px; }

h2 { letter-spacing: -.04em; }
.results-section { margin-block: 8px 28px; padding: 24px; border: 1px solid #bfd2ff; border-radius: 18px; background: #f5f8ff; box-shadow: 0 12px 30px #1d54c014; scroll-margin-top: 18px; }
.results-section[hidden] { display: none; }
.results-section h2 { margin: 0 0 12px; font-size: 24px; }
.result-spotlight { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; padding: 22px 25px; border: 1px solid #dce6ff; border-radius: 14px; background: #fff; }
.spotlight-icon { flex: 0 0 62px; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 16px; background: #eaf1ff; color: var(--blue); font-size: 35px; }
.spotlight-content { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 3px; }
.spotlight-label { color: var(--muted); font-size: 13px; font-weight: 650; }
.spotlight-content strong { color: var(--blue-dark); font-size: clamp(27px, 3vw, 38px); line-height: 1.15; overflow-wrap: anywhere; }
.spotlight-file { overflow: hidden; color: var(--muted); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.spotlight-meta { display: flex; align-items: flex-end; flex-direction: column; gap: 8px; }
.spotlight-score { color: var(--muted); font-size: 14px; white-space: nowrap; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; text-align: start; font-size: 15px; }
th { padding: 13px 21px; background: #f9fbff; color: var(--muted); font-size: 13px; font-weight: 620; text-align: start; }
td { padding: 16px 21px; border-top: 1px solid var(--line); font-weight: 550; }
td:first-child { display: flex; align-items: center; gap: 15px; font-weight: 620; }
td:first-child .ph { color: var(--muted); font-size: 23px; }
.detected-type { color: var(--blue-dark); font-weight: 760; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; }
.status.mismatch { color: var(--warning); background: var(--warning-bg); }
.status.match { color: #247447; background: #e6f8ee; }
.status.unknown { color: #53637b; background: #eef2f7; }
.status.error { color: #a13535; background: #ffeded; }
.status .ph { font-size: 16px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.section-heading p { margin: -10px 0 15px; color: var(--muted); font-size: 14px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 8px; border: 0; background: transparent; color: var(--blue); font-size: 14px; }
.text-button:hover { text-decoration: underline; }
.explanation { padding-block: 23px 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.explanation h2 { margin: 0 0 16px; font-size: clamp(23px, 2.3vw, 31px); }
.explanation p { max-width: 940px; margin: 6px 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.faq { padding-block: 27px 40px; }
.faq h2 { margin: 0 0 14px; font-size: clamp(24px, 2.3vw, 31px); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; gap: 20px; padding: 14px 0; list-style: none; font-size: 17px; font-weight: 670; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-number { flex: 0 0 31px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #e9eef6; color: #34425c; font-size: 14px; }
.faq-item[open] .faq-number { background: var(--blue); color: #fff; }
.faq-chevron { margin-inline-start: auto; color: var(--blue); transition: transform .2s; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { max-width: 1020px; margin: -7px 0 12px 51px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.site-footer { display: flex; align-items: center; gap: 21px; min-height: 86px; margin-block-start: 4px; padding-block: 20px; color: var(--muted); font-size: 14px; }
.site-footer span:first-child { font-weight: 720; }
.footer-separator { width: 1px; height: 15px; background: #9daac0; }
.noscript { margin: 20px auto; color: #a13535; text-align: center; }

[dir="rtl"] .faq-item p { margin-inline-start: 51px; margin-inline-end: 0; }
[dir="rtl"] .brand { letter-spacing: 0; }
[dir="rtl"] .faq-chevron { margin-inline-start: auto; }

@media (max-width: 1050px) {
  .header-inner { gap: 28px; }
  .main-nav { gap: 20px; }
  .language-current { display: none; }
  .benefit { padding-inline: 15px; }
  .benefit-icon { flex-basis: 54px; width: 54px; height: 54px; font-size: 28px; }
}

@media (max-width: 740px) {
  .page-width, .header-inner { width: min(100% - 36px, 580px); }
  .header-inner { min-height: 70px; flex-wrap: wrap; justify-content: space-between; gap: 0; padding-top: 13px; }
  .brand { font-size: 21px; gap: 9px; }
  .brand .ph { font-size: 30px; }
  .header-actions { gap: 10px; }
  .offline-badge { padding: 8px 10px; font-size: 11px; }
  .offline-badge .ph { font-size: 14px; }
  .main-nav { order: 3; width: 100%; gap: 25px; overflow-x: auto; min-height: 47px; }
  .main-nav a { font-size: 13px; }
  .hero { padding-block-start: 48px; }
  .hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .hero-subtitle { margin: 13px 0 28px; font-size: 15px; }
  .drop-zone { min-height: 300px; padding: 24px 17px; }
  .upload-icon { font-size: 55px; }
  .drop-title { margin: 17px 0; font-size: 20px; }
  .primary-button { min-height: 49px; min-width: 190px; font-size: 15px; }
  .drop-hint { margin-top: 18px; font-size: 13px; }
  .benefits { grid-template-columns: 1fr; gap: 15px; margin-top: 20px; padding-bottom: 23px; }
  .benefit, .benefit:first-child, .benefit:last-child { padding-inline: 0; border: 0; }
  .accuracy { padding-block: 24px; }
  .results-section { padding: 17px; }
  .results-section h2 { font-size: 21px; }
  .result-spotlight { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .spotlight-icon { flex-basis: 48px; width: 48px; height: 48px; font-size: 28px; }
  .spotlight-content strong { font-size: 27px; }
  .spotlight-meta { width: 100%; align-items: center; flex-direction: row; justify-content: space-between; }
  table { min-width: 710px; }
  .explanation { padding-block: 26px; }
  .explanation p { font-size: 14px; }
  .faq { padding-block: 29px; }
  .faq-item summary { gap: 11px; font-size: 15px; }
  .faq-item p { margin-inline-start: 42px; font-size: 14px; }
  [dir="rtl"] .faq-item p { margin-inline-start: 42px; }
  .site-footer { flex-wrap: wrap; gap: 10px; font-size: 12px; }
}
