:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --ink: #0c1120;
  --ink-soft: #1b2338;
  --muted: #667089;
  --line: #e4e7f1;
  --line-strong: #d3d8e8;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-soft: #eef0ff;
  --accent: #22d3ee;
  --ok: #0f9d72;
  --ok-soft: #e8f8f1;
  --warn: #b45309;
  --err: #d92d20;
  --err-soft: #fef2f2;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(12, 17, 32, 0.06), 0 8px 24px -16px rgba(12, 17, 32, 0.35);
  --shadow-lg: 0 30px 70px -28px rgba(12, 17, 32, 0.5);
  --max: 1120px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[dir='rtl'] body {
  font-family: 'Noto Kufi Arabic', 'Inter', system-ui, sans-serif;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

[dir='rtl'] h1,
[dir='rtl'] h2,
[dir='rtl'] h3 {
  letter-spacing: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 60;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228, 231, 241, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 22px -10px rgba(79, 70, 229, 0.8);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-actions a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  opacity: 0.8;
}

.header-actions a:hover {
  opacity: 1;
  color: var(--brand);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lang-toggle:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.lang-opt[data-lang].is-active {
  color: var(--brand);
}

.lang-sep {
  opacity: 0.4;
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 76px;
  color: #f6f7ff;
  background:
    radial-gradient(1200px 620px at 50% -18%, rgba(99, 102, 241, 0.42), transparent 62%),
    linear-gradient(165deg, #080c18 0%, #101531 46%, #171038 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 76%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-glow-a {
  width: 420px;
  height: 420px;
  background: #5b5bf5;
  inset-inline-start: -120px;
  top: 40px;
}

.hero-glow-b {
  width: 380px;
  height: 380px;
  background: #22d3ee;
  inset-inline-end: -110px;
  top: 180px;
  opacity: 0.32;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(238, 240, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  font-weight: 800;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.hero h1 .grad {
  background: linear-gradient(100deg, #a5b4fc 0%, #c4b5fd 42%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 660px;
  margin: 0 auto 34px;
  color: rgba(224, 227, 248, 0.76);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  color: rgba(214, 219, 243, 0.72);
  font-size: 0.86rem;
}

.hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-notes li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

/* ------------------------------------------------------------ tool card */

.tool-card {
  max-width: 780px;
  margin-inline: auto;
  padding: 22px;
  text-align: start;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lg);
}

[dir='rtl'] .tool-card {
  text-align: right;
}

.tool-form {
  display: flex;
  gap: 10px;
}

.input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.input-icon {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

#url {
  width: 100%;
  height: 54px;
  padding-inline: 42px 40px;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background: #fbfcff;
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#url::placeholder {
  color: #9aa2b8;
}

#url:hover {
  border-color: #c2c8dc;
}

#url:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
}

.clear-btn {
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: #eef0f7;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.clear-btn:hover {
  background: #e2e6f2;
  color: var(--ink);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding-inline: 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: 0 14px 28px -14px rgba(79, 70, 229, 0.9);
}

.btn-primary:hover {
  box-shadow: 0 18px 34px -14px rgba(79, 70, 229, 0.95);
  transform: translateY(-1px);
}

.btn-primary[disabled] {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.btn-success {
  color: #fff;
  background: linear-gradient(135deg, #0f9d72, #0ea5a4);
  box-shadow: 0 14px 26px -16px rgba(15, 157, 114, 0.9);
  height: 46px;
  padding-inline: 18px;
  font-size: 0.9rem;
  border-radius: 12px;
}

.btn-success svg {
  width: 17px;
  height: 17px;
}

.btn-success:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
  height: 40px;
  font-size: 0.86rem;
  padding-inline: 16px;
  border-radius: 10px;
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-text {
  background: none;
  border: 0;
  color: var(--muted);
  height: auto;
  padding: 0;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 6px;
}

.btn-text:hover {
  color: var(--err);
}

.btn-sm {
  height: 38px;
}

.btn[data-busy='true'] .btn-label {
  opacity: 0.85;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

.btn[data-busy='true'] .spinner {
  display: inline-block;
}

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

/* detection row */

.detect-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 14px;
}

.detect {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--muted);
  min-height: 22px;
}

.detect-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c3c9da;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.detect[data-state='ready'] {
  color: var(--ok);
}

.detect[data-state='ready'] .detect-dot {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(15, 157, 114, 0.14);
}

.detect[data-state='unsupported'] {
  color: var(--err);
}

.detect[data-state='unsupported'] .detect-dot {
  background: var(--err);
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.12);
}

.examples {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.example-link {
  border: 1px dashed var(--line-strong);
  background: #fbfcff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.example-link:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* platform badges */

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fbfcff;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.platform-badge .p-ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #eceffa;
  color: #5b6480;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.platform-badge[data-platform='slideshare'] .p-ico {
  background: #e7f6ef;
  color: #0b8a5e;
}

.platform-badge[data-platform='scribd'] .p-ico {
  background: #ffefec;
  color: #c2410c;
}

.platform-badge[data-platform='academia'] .p-ico {
  background: #eef1ff;
  color: #3843b8;
}

.platform-badge[data-platform='issuu'] .p-ico {
  background: #e9f5ff;
  color: #0369a1;
}

.platform-badge[data-platform='speakerdeck'] .p-ico {
  background: #f0edff;
  color: #5b21b6;
}

.platform-badge[data-platform='archive'] .p-ico {
  background: #eaf3ee;
  color: #2f6b4f;
}

.platform-badge.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  transform: translateY(-1px);
}

.platform-badge.is-active .p-ico {
  background: var(--brand);
  color: #fff;
}

/* alerts */

.alert {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #f7c9c4;
  background: var(--err-soft);
  animation: rise 0.25s ease;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.alert-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--err);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.alert-body strong {
  display: block;
  color: #8f1d16;
  font-size: 0.94rem;
  margin-bottom: 3px;
}

.alert-body p {
  font-size: 0.86rem;
  color: #8b3a33;
}

.alert-hint {
  margin-top: 6px;
  color: #a3544c;
  font-size: 0.82rem;
}

.alert .btn {
  margin-top: 12px;
}

/* progress */

.progress {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fafbff;
  animation: rise 0.25s ease;
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.progress-stage {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.progress-pct {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.bar {
  height: 9px;
  border-radius: 999px;
  background: #e8ebf5;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2) 55%, var(--accent));
  background-size: 200% 100%;
  transition: width 0.35s ease;
  animation: slide 2.2s linear infinite;
}

@keyframes slide {
  to {
    background-position: -200% 0;
  }
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
}

.progress-count {
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.progress-title {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.chip {
  width: 28px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 600;
  color: #8b93ab;
  background: #eef0f8;
  font-variant-numeric: tabular-nums;
  transition: background 0.2s ease, color 0.2s ease;
}

.chip.is-done {
  background: #dcf6ea;
  color: #0a7a58;
}

.chip.is-failed {
  background: #fde3e0;
  color: #b42318;
}

.chip-more {
  font-size: 0.72rem;
  color: var(--muted);
  align-self: center;
}

/* result */

.result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid #bcebd8;
  background: var(--ok-soft);
  animation: rise 0.3s ease;
}

.result-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
}

.result-check svg {
  width: 18px;
  height: 18px;
}

.result-body {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
}

.result-body strong {
  font-size: 0.93rem;
  color: #085c45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 46ch;
}

.result-meta {
  font-size: 0.8rem;
  color: #2b7a63;
}

/* --------------------------------------------------------------- layout */

.section {
  padding-block: 64px;
}

.section-head {
  max-width: 660px;
  margin-bottom: 30px;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

[dir='rtl'] .eyebrow {
  letter-spacing: 0;
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
}

.section-sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.97rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.9rem;
}

.steps h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.steps p {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -26px rgba(12, 17, 32, 0.45);
}

.card-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(140deg, #eef0ff, #e6f7ff);
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------------- ads */

.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1.5px dashed #ccd2e4;
  border-radius: 16px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.9) 0 12px,
      rgba(244, 246, 252, 0.9) 12px 24px
    );
  color: #9098b0;
  text-align: center;
  padding: 16px;
}

.ad-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

[dir='rtl'] .ad-label {
  letter-spacing: 0;
}

.ad-size {
  font-size: 0.68rem;
  color: #a9b0c4;
  font-variant-numeric: tabular-nums;
}

.ad-leaderboard {
  min-height: 100px;
  margin-top: 22px;
}

.ad-rectangle {
  min-height: 250px;
  width: 100%;
  position: sticky;
  top: 92px;
}

.ad-footer {
  min-height: 190px;
  margin-bottom: 64px;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: #080c18;
  color: rgba(226, 230, 248, 0.7);
  padding: 44px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.footer-brand {
  max-width: 560px;
}

.footer-brand strong {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.footer-brand p {
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(190, 197, 224, 0.7);
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(160, 169, 200, 0.7);
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .ad-rectangle {
    position: static;
    min-height: 220px;
    max-width: none;
  }

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

  .header-actions a {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 42px 0 54px;
  }

  .tool-card {
    padding: 16px;
    border-radius: 20px;
  }

  .tool-form {
    flex-direction: column;
  }

  .tool-form .btn {
    width: 100%;
  }

  .detect-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .platforms {
    gap: 6px;
  }

  .platform-badge {
    font-size: 0.74rem;
    padding: 5px 9px 5px 6px;
  }

  .section {
    padding-block: 44px;
  }

  .result {
    align-items: flex-start;
  }

  .result .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* -------------------------------------------------------------------- FAQ */

.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.18s ease;
}

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

.faq-item summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

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

.faq-item summary:hover {
  color: var(--brand);
}

.faq-item p {
  padding-bottom: 18px;
  margin-top: -4px;
  max-width: 76ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ----------------------------------------------------------- footer links */

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 26px 48px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.footer-link {
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: rgba(226, 230, 248, 0.82);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-link:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-note {
  font-size: 0.78rem;
  color: rgba(160, 169, 200, 0.62);
}

/* ----------------------------------------------------------------- modals */

body.modal-open {
  overflow: hidden;
}

.modal {
  width: min(720px, calc(100% - 28px));
  max-height: min(86vh, 880px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(8, 12, 24, 0.65);
  overflow: hidden;
}

.modal::backdrop {
  background: rgba(8, 12, 24, 0.62);
  backdrop-filter: blur(4px);
}

.modal[open] {
  display: flex;
  flex-direction: column;
  animation: modal-in 0.22s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
}

.modal-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: inherit;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.modal-head h2 {
  font-size: 1.25rem;
  font-weight: 800;
}

.modal-updated {
  margin-top: 5px;
  font-size: 0.76rem;
  color: var(--muted);
}

.modal-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #f7f8fd;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.modal-close svg {
  width: 15px;
  height: 15px;
}

.modal-close:hover {
  background: #eef0f8;
  border-color: var(--line-strong);
  color: var(--ink);
}

.modal-body {
  min-height: 0;
  overflow-y: auto;
  padding: 20px 26px 28px;
  overscroll-behavior: contain;
}

.legal-intro {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.legal-section h3 {
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 700;
}

.legal-section + .legal-section {
  margin-top: 20px;
}

.legal-section p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.legal-section p + p {
  margin-top: 8px;
}

.legal-email {
  margin-top: 22px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--ink-soft);
  font-size: 0.87rem;
}

.legal-email a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  word-break: break-word;
}

/* contact form inside the modal */

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--line-strong);
  background: #fbfcff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 400;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.13);
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.btn-form {
  height: 46px;
  padding-inline: 20px;
  border-radius: 12px;
  font-size: 0.88rem;
}

.contact-hint {
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-head {
    padding: 18px 18px 14px;
  }

  .modal-body {
    padding: 16px 18px 22px;
  }

  .contact-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
