/* =========================
   Core variables & base
   ========================= */
:root {
  --header-height: 72px;
  --bg: #f6f8fb;
  --text: #0f172a;
  --muted: #6b7280;
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --accent: #60a5fa;
  --card: #ffffff;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 14px 38px rgba(15, 23, 42, 0.12);
  --transition: 200ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.google-translation-active {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 20%, #eaf2ff, transparent 35%),
    radial-gradient(circle at 80% 0%, #f9f1ff, transparent 35%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 1000;
  transition: top var(--transition);
}
.skip-link:focus {
  top: 16px;
}

/* =========================
   Global header + navigation
   (??????? ??? ???????)
   ========================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  z-index: 1200;
}
@media (max-width: 768px) {
  .site-header {
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.98);
  }
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--header-height);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, #0f172a 0%, #143a7b 56%, #2563eb 100%);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 18px rgba(15, 23, 42, 0.16);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%3E%3Crect%20x%3D'4'%20y%3D'5'%20width%3D'13'%20height%3D'11'%20rx%3D'3'%20stroke%3D'%23ffffff'%20stroke-width%3D'1.9'/%3E%3Cpath%20d%3D'M7%209h5M7%2012h7'%20stroke%3D'%23ffffff'%20stroke-width%3D'1.9'%20stroke-linecap%3D'round'/%3E%3Cpath%20d%3D'M14.5%208.5%2018.5%2011%2014.5%2013.5Z'%20fill%3D'%23ffb703'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}
.brand-text {
  font-size: 1.03rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

/* Desktop links (.nav-links ? .nav__links ??? ?????) */
.nav-links,
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links > li,
.nav__links > li {
  position: relative;
}

.nav-links > li.dropdown:nth-child(1),
.nav__links > li.dropdown:nth-child(1) {
  --nav-cat-accent: #2563eb;
  --nav-cat-accent-2: #60a5fa;
  --nav-cat-surface: #eff6ff;
  --nav-cat-surface-2: #dbeafe;
  --nav-trigger-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%231d4ed8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M4.75 6.25h9.5m-7.5 3.5h5.5m-6.5 7h5m6.5-8.5 2.25 7.5m-4.5 0 2.25-7.5m-3 5.25h5.5M16.5 3.75a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5Z'/%3E%3C/svg%3E");
}
.nav-links > li.dropdown:nth-child(2),
.nav__links > li.dropdown:nth-child(2) {
  --nav-cat-accent: #4f46e5;
  --nav-cat-accent-2: #818cf8;
  --nav-cat-surface: #eef2ff;
  --nav-cat-surface-2: #e0e7ff;
  --nav-trigger-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%234f46e5' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M5.75 6.25h7.5m-7.5 4h6m-6 4h4.5m7.68-7.43 1.5 1.5a1.6 1.6 0 0 1 0 2.26l-4.93 4.92-3.33.38.38-3.33 4.92-4.93a1.6 1.6 0 0 1 2.26 0Z'/%3E%3C/svg%3E");
}
.nav-links > li.dropdown:nth-child(3),
.nav__links > li.dropdown:nth-child(3) {
  --nav-cat-accent: #ea580c;
  --nav-cat-accent-2: #fb923c;
  --nav-cat-surface: #fff7ed;
  --nav-cat-surface-2: #fed7aa;
  --nav-trigger-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23ea580c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M7.25 5h4.5a2 2 0 0 1 2 2v4.5a2 2 0 0 1-2 2h-4.5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Zm5 5.5h6.5m0 0-2.25-2.25m2.25 2.25-2.25 2.25M11.75 18.75h-6.5m0 0 2.25-2.25m-2.25 2.25 2.25 2.25'/%3E%3C/svg%3E");
}
.nav-links > li.dropdown:nth-child(4),
.nav__links > li.dropdown:nth-child(4) {
  --nav-cat-accent: #475569;
  --nav-cat-accent-2: #94a3b8;
  --nav-cat-surface: #f8fafc;
  --nav-cat-surface-2: #e2e8f0;
  --nav-trigger-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M6 12h.01M12 12h.01M18 12h.01M7 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z'/%3E%3C/svg%3E");
}

.nav-links a,
.nav-links button,
.nav__links a,
.nav__links button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #344054;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  position: relative;
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.nav-links button,
.nav__links button {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links button:hover,
.nav-links button:focus-visible,
.nav__links a:hover,
.nav__links a:focus-visible,
.nav__links button:hover,
.nav__links button:focus-visible {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.045);
  border-color: rgba(37, 99, 235, 0.08);
}

/* Active link */
.nav-links > li > .nav-link--active,
.nav__links > li > .nav-link--active {
  color: #12327a;
  background: rgba(255, 255, 255, 0.88);
  border-color: transparent;
  box-shadow: none;
}
.nav-links > li > .nav-link--active:not(.dropdown__trigger)::before,
.nav__links > li > .nav-link--active:not(.dropdown__trigger)::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 18px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 999px;
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.16);
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
  transform: translateX(-50%);
}
.dropdown-menu .nav-link--active::before,
.mobile-nav__link.nav-link--active::before {
  content: none;
}

/* “Multi Subtitles Translator” ??? ???? */
.nav-links .nav-link--cta,
.nav__links .nav-link--cta {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 70, 229, 0.75);
  background: rgba(255, 255, 255, 0.98);
  color: #1d4ed8;
}
.nav-links .nav-link--cta:hover,
.nav__links .nav-link--cta:hover {
  background: #1d4ed8;
  color: #ffffff;
}

/* Desktop dropdown (More…) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 248px;
  margin: 0;
  padding: 0.65rem 0.4rem 0.4rem;
  list-style: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(248, 250, 252, 0.985));
  backdrop-filter: blur(18px);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow:
    0 24px 46px rgba(15, 23, 42, 0.14),
    0 8px 18px rgba(37, 99, 235, 0.08);
  display: none;
  z-index: 30;
}
.dropdown-menu::before {
  content: "";
  position: absolute;
  inset: 0.5rem 0.5rem auto;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nav-cat-accent, #2563eb), var(--nav-cat-accent-2, #60a5fa));
  opacity: 0.95;
}
.dropdown-menu a,
.mobile-nav__link {
  --nav-link-accent: #2563eb;
  --nav-link-accent-2: #60a5fa;
  --nav-link-surface: #eff6ff;
  --nav-link-surface-2: #dbeafe;
  --nav-link-icon-size: 16px;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%231d4ed8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M4.75 6.25h9.5m-7.5 3.5h5.5m-6.5 7h5m6.5-8.5 2.25 7.5m-4.5 0 2.25-7.5m-3 5.25h5.5M16.5 3.75a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5Z'/%3E%3C/svg%3E");
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  width: 100%;
  padding: 0.7rem 0.82rem;
  border-radius: 14px;
  color: #0f172a;
  position: relative;
  border: 1px solid transparent;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}
.dropdown-menu a::before {
  content: "";
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 12px;
  background:
    center / var(--nav-link-icon-size) var(--nav-link-icon-size) no-repeat var(--nav-link-icon),
    linear-gradient(145deg, var(--nav-link-surface-2), var(--nav-link-surface));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 20px color-mix(in srgb, var(--nav-link-accent) 14%, transparent);
}
.dropdown-menu .nav-link--active {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--nav-link-surface) 88%, #ffffff),
    color-mix(in srgb, var(--nav-link-surface-2) 45%, #ffffff)
  );
  border: 1px solid color-mix(in srgb, var(--nav-link-accent) 14%, #ffffff);
  color: color-mix(in srgb, var(--nav-link-accent) 72%, #0f172a);
  font-weight: 700;
  box-shadow:
    inset 3px 0 0 var(--nav-link-accent),
    0 10px 18px color-mix(in srgb, var(--nav-link-accent) 10%, transparent);
}
.dropdown-menu .nav-link--active::after {
  content: "";
  margin-left: auto;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--nav-link-accent), var(--nav-link-accent-2));
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  border-radius: 2px;
}
.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--nav-link-surface) 82%, #ffffff),
    color-mix(in srgb, var(--nav-link-surface-2) 28%, #ffffff)
  );
  border-color: color-mix(in srgb, var(--nav-link-accent) 12%, #ffffff);
  color: color-mix(in srgb, var(--nav-link-accent) 70%, #0f172a);
  transform: translateX(2px);
}
.dropdown.dropdown--active > .dropdown__trigger {
  color: var(--nav-cat-accent, #12327a);
  background: color-mix(in srgb, var(--nav-cat-surface, #eff6ff) 78%, #ffffff);
  border-color: color-mix(in srgb, var(--nav-cat-accent, #2563eb) 12%, #ffffff);
  box-shadow: inset 0 -3px 0 var(--nav-cat-accent, #2563eb);
}
.dropdown__trigger {
  position: relative;
  padding-left: 2.95rem !important;
  padding-right: 1.2rem !important;
}
.dropdown__trigger::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  transform: translateY(-50%);
  background:
    center / 14px 14px no-repeat var(--nav-trigger-icon),
    linear-gradient(145deg, var(--nav-cat-surface-2, #dbeafe), var(--nav-cat-surface, #eff6ff));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 18px color-mix(in srgb, var(--nav-cat-accent, #2563eb) 14%, transparent);
}
.dropdown__trigger::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.18s ease;
}
.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu,
.dropdown.dropdown--open > .dropdown-menu,
.dropdown-menu:hover {
  display: block;
}
.dropdown:hover > .dropdown__trigger,
.dropdown:focus-within > .dropdown__trigger,
.dropdown.dropdown--open > .dropdown__trigger {
  color: var(--nav-cat-accent, #1d4ed8);
  background: color-mix(in srgb, var(--nav-cat-surface, rgba(37, 99, 235, 0.045)) 82%, #ffffff);
  border-color: color-mix(in srgb, var(--nav-cat-accent, #2563eb) 10%, #ffffff);
}
.dropdown:hover > .dropdown__trigger::after,
.dropdown:focus-within > .dropdown__trigger::after,
.dropdown.dropdown--open > .dropdown__trigger::after {
  transform: translateY(-35%) rotate(225deg);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
}
.nav__toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.2);
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: #0f172a;
  border-radius: 999px;
}

/* Mobile nav overlay (full screen) */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  background: #ffffff;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  padding-top: calc(var(--header-height) + 12px);
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-nav__inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-nav__section {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}
.mobile-nav__section:nth-child(1) .mobile-nav__heading .mobile-nav__badge {
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
  color: #1d4ed8;
}
.mobile-nav__section:nth-child(2) .mobile-nav__heading .mobile-nav__badge {
  background: linear-gradient(145deg, #e0e7ff, #eef2ff);
  color: #4f46e5;
}
.mobile-nav__section:nth-child(3) .mobile-nav__heading .mobile-nav__badge {
  background: linear-gradient(145deg, #fed7aa, #fff7ed);
  color: #ea580c;
}
.mobile-nav__section:nth-child(4) .mobile-nav__heading .mobile-nav__badge {
  background: linear-gradient(145deg, #e2e8f0, #f8fafc);
  color: #475569;
}
.mobile-nav__heading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.35rem;
}
.mobile-nav__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  margin: 0.25rem 0;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--nav-link-accent) 10%, #cbd5e1);
  background: linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--nav-link-surface) 24%, #ffffff));
  text-decoration: none;
  color: #0f172a;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}
.mobile-nav__link:hover,
.mobile-nav__link:focus-visible {
  border-color: color-mix(in srgb, var(--nav-link-accent) 18%, #cbd5e1);
  background: linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--nav-link-surface-2) 46%, #ffffff));
  color: color-mix(in srgb, var(--nav-link-accent) 72%, #0f172a);
  transform: translateX(2px);
}
.mobile-nav__link.nav-link--active {
  border-color: color-mix(in srgb, var(--nav-link-accent) 24%, #ffffff);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--nav-link-surface) 84%, #ffffff),
    color-mix(in srgb, var(--nav-link-surface-2) 42%, #ffffff)
  );
  box-shadow:
    inset 3px 0 0 var(--nav-link-accent),
    0 12px 20px color-mix(in srgb, var(--nav-link-accent) 8%, transparent);
  font-weight: 700;
}
.mobile-nav__link.nav-link--active::after {
  content: "";
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--nav-link-accent);
  border-right: 2px solid var(--nav-link-accent);
  transform: rotate(45deg);
}
.mobile-nav__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.8rem;
  background: linear-gradient(145deg, var(--nav-link-surface-2, #dbeafe), var(--nav-link-surface, #eff6ff));
  color: var(--nav-link-accent, #0f172a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}
.mobile-nav__link .mobile-nav__badge {
  font-size: 0;
}
.mobile-nav__link .mobile-nav__badge::before {
  content: "";
   width: var(--nav-link-icon-size);
   height: var(--nav-link-icon-size);
   background: center / var(--nav-link-icon-size) var(--nav-link-icon-size) no-repeat var(--nav-link-icon);
}

:is(.dropdown-menu a, .mobile-nav__link)[href$="subtitle-translator.html"] {
  --nav-link-accent: #2563eb;
  --nav-link-accent-2: #60a5fa;
  --nav-link-surface: #eff6ff;
  --nav-link-surface-2: #dbeafe;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%231d4ed8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M4.75 6.25h9.5m-7.5 3.5h5.5m-6.5 7h5m6.5-8.5 2.25 7.5m-4.5 0 2.25-7.5m-3 5.25h5.5M16.5 3.75a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5Z'/%3E%3C/svg%3E");
}
:is(.dropdown-menu a, .mobile-nav__link)[href$="multi-translator.html"] {
  --nav-link-accent: #7c3aed;
  --nav-link-accent-2: #a78bfa;
  --nav-link-surface: #f5f3ff;
  --nav-link-surface-2: #ede9fe;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%236d28d9' stroke-linejoin='round' stroke-width='1.8' d='M7.25 4.75h9.5a2 2 0 0 1 2 2v9.5a2 2 0 0 1-2 2h-9.5a2 2 0 0 1-2-2v-9.5a2 2 0 0 1 2-2Z'/%3E%3Cpath stroke='%236d28d9' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M9.5 8h5m-5 3.25h5m-5 3.25h3.25M4.75 8.75V17a2 2 0 0 0 2 2h8.25'/%3E%3C/svg%3E");
}
:is(.dropdown-menu a, .mobile-nav__link)[href$="subtitles-editor.html"] {
  --nav-link-accent: #4f46e5;
  --nav-link-accent-2: #818cf8;
  --nav-link-surface: #eef2ff;
  --nav-link-surface-2: #e0e7ff;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%234f46e5' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M5.75 6.25h7.5m-7.5 4h6m-6 4h4.5m7.68-7.43 1.5 1.5a1.6 1.6 0 0 1 0 2.26l-4.93 4.92-3.33.38.38-3.33 4.92-4.93a1.6 1.6 0 0 1 2.26 0Z'/%3E%3C/svg%3E");
}
:is(.dropdown-menu a, .mobile-nav__link)[href$="subtitle-shifter.html"] {
  --nav-link-accent: #d97706;
  --nav-link-accent-2: #fbbf24;
  --nav-link-surface: #fffbeb;
  --nav-link-surface-2: #fef3c7;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23b45309' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M12 5.25a6.75 6.75 0 1 0 6.75 6.75'/%3E%3Cpath stroke='%23b45309' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m14.75 3.75 4 1-1 4M12 8.75v3.25l2 1.5M4.75 18.25h14.5'/%3E%3C/svg%3E");
}
:is(.dropdown-menu a, .mobile-nav__link)[href$="subtitle-cleaner.html"] {
  --nav-link-accent: #059669;
  --nav-link-accent-2: #34d399;
  --nav-link-surface: #ecfdf5;
  --nav-link-surface-2: #d1fae5;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23047857' stroke-linejoin='round' stroke-width='1.8' d='M5 16.75h10.25a2.5 2.5 0 0 0 2.13-1.19l1.87-3.06a1.5 1.5 0 0 0-.5-2.06l-3.77-2.31a1.5 1.5 0 0 0-1.92.25L5 16.75Z'/%3E%3Cpath stroke='%23047857' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m14.25 7.5 2.25-3.25M5.75 19.25h8.5M18.25 5.25v2m-1-1h2M19.75 9.25v1.5m-.75-.75h1.5'/%3E%3C/svg%3E");
}
:is(.dropdown-menu a, .mobile-nav__link)[href$="subtitle-splitter.html"] {
  --nav-link-accent: #e11d48;
  --nav-link-accent-2: #fb7185;
  --nav-link-surface: #fff1f2;
  --nav-link-surface-2: #ffe4e6;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23be123c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M8.25 5.25h7.5m-7.5 13.5h7.5M12 5.25v13.5'/%3E%3Ccircle cx='12' cy='5.25' r='1.75' stroke='%23be123c' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='18.75' r='1.75' stroke='%23be123c' stroke-width='1.8'/%3E%3Cpath stroke='%23be123c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m7.25 10.25 3 3m0-3-3 3m6.5-3 3 3m0-3-3 3'/%3E%3C/svg%3E");
}
:is(.dropdown-menu a, .mobile-nav__link)[href$="merge-subtitles.html"] {
  --nav-link-accent: #0891b2;
  --nav-link-accent-2: #22d3ee;
  --nav-link-surface: #ecfeff;
  --nav-link-surface-2: #cffafe;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%230e7490' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M7 5.25v5.25a4 4 0 0 0 4 4h6.25M7 18.75v-5.25a4 4 0 0 1 4-4h6.25'/%3E%3Cpath stroke='%230e7490' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m14.75 8.25 3.5-3 3.5 3m-7 7.5 3.5 3 3.5-3'/%3E%3C/svg%3E");
}
:is(.dropdown-menu a, .mobile-nav__link)[href$="format-converter.html"] {
  --nav-link-accent: #ea580c;
  --nav-link-accent-2: #fb923c;
  --nav-link-surface: #fff7ed;
  --nav-link-surface-2: #ffedd5;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'none'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20stroke%3D'%23ea580c'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20stroke-width%3D'1.8'%20d%3D'M7.75%204.75h6.5L18.5%209v9.25A1.75%201.75%200%200%201%2016.75%2020H7.75A1.75%201.75%200%200%201%206%2018.25V6.5A1.75%201.75%200%200%201%207.75%204.75Z'%2F%3E%3Cpath%20stroke%3D'%23ea580c'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20stroke-width%3D'1.8'%20d%3D'M14.25%204.75V9h4.25'%2F%3E%3Cpath%20stroke%3D'%23ea580c'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20stroke-width%3D'1.8'%20d%3D'M9%2011.25h6m0%200-1.75-1.75m1.75%201.75-1.75%201.75M15%2015.25H9m0%200%201.75-1.75M9%2015.25%2010.75%2017'%2F%3E%3C%2Fsvg%3E");
}
:is(.dropdown-menu a, .mobile-nav__link)[href$="srt-to-vtt.html"] {
  --nav-link-accent: #0284c7;
  --nav-link-accent-2: #38bdf8;
  --nav-link-surface: #f0f9ff;
  --nav-link-surface-2: #e0f2fe;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'none'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20stroke%3D'%230369a1'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20stroke-width%3D'1.8'%20d%3D'M7.75%204.75h6.5L18.5%209v9.25A1.75%201.75%200%200%201%2016.75%2020H7.75A1.75%201.75%200%200%201%206%2018.25V6.5A1.75%201.75%200%200%201%207.75%204.75Z'%2F%3E%3Cpath%20stroke%3D'%230369a1'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20stroke-width%3D'1.8'%20d%3D'M14.25%204.75V9h4.25'%2F%3E%3Cpath%20stroke%3D'%230369a1'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20stroke-width%3D'1.8'%20d%3D'M9%2010.75h4.5M9%2013.75h3.25M12.25%2015.75h4.25m0%200-1.75-1.75m1.75%201.75-1.75%201.75'%2F%3E%3C%2Fsvg%3E");
}
:is(.dropdown-menu a, .mobile-nav__link)[href$="vtt-to-srt.html"] {
  --nav-link-accent: #0f766e;
  --nav-link-accent-2: #2dd4bf;
  --nav-link-surface: #f0fdfa;
  --nav-link-surface-2: #ccfbf1;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'none'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20stroke%3D'%230f766e'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20stroke-width%3D'1.8'%20d%3D'M7.75%204.75h6.5L18.5%209v9.25A1.75%201.75%200%200%201%2016.75%2020H7.75A1.75%201.75%200%200%201%206%2018.25V6.5A1.75%201.75%200%200%201%207.75%204.75Z'%2F%3E%3Cpath%20stroke%3D'%230f766e'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20stroke-width%3D'1.8'%20d%3D'M14.25%204.75V9h4.25'%2F%3E%3Cpath%20stroke%3D'%230f766e'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20stroke-width%3D'1.8'%20d%3D'M10.75%2010.75H15M11.75%2013.75H15M11.75%2015.75H7.5m0%200%201.75-1.75M7.5%2015.75%209.25%2017.5'%2F%3E%3C%2Fsvg%3E");
}
:is(.dropdown-menu a, .mobile-nav__link)[href$="txt-to-srt.html"] {
  --nav-link-accent: #475569;
  --nav-link-accent-2: #94a3b8;
  --nav-link-surface: #f8fafc;
  --nav-link-surface-2: #e2e8f0;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'none'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20stroke%3D'%23475569'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20stroke-width%3D'1.8'%20d%3D'M7.75%204.75h6.5L18.5%209v9.25A1.75%201.75%200%200%201%2016.75%2020H7.75A1.75%201.75%200%200%201%206%2018.25V6.5A1.75%201.75%200%200%201%207.75%204.75Z'%2F%3E%3Cpath%20stroke%3D'%23475569'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20stroke-width%3D'1.8'%20d%3D'M14.25%204.75V9h4.25'%2F%3E%3Cpath%20stroke%3D'%23475569'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20stroke-width%3D'1.8'%20d%3D'M9%2010.75h6M9%2013.75h6M9%2016.75h4.5'%2F%3E%3C%2Fsvg%3E");
}
:is(.dropdown-menu a, .mobile-nav__link)[href$="ass-to-srt.html"] {
  --nav-link-accent: #a21caf;
  --nav-link-accent-2: #e879f9;
  --nav-link-surface: #fdf4ff;
  --nav-link-surface-2: #fae8ff;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'none'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20stroke%3D'%23a21caf'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20stroke-width%3D'1.8'%20d%3D'M7.75%204.75h6.5L18.5%209v9.25A1.75%201.75%200%200%201%2016.75%2020H7.75A1.75%201.75%200%200%201%206%2018.25V6.5A1.75%201.75%200%200%201%207.75%204.75Z'%2F%3E%3Cpath%20stroke%3D'%23a21caf'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20stroke-width%3D'1.8'%20d%3D'M14.25%204.75V9h4.25'%2F%3E%3Cpath%20stroke%3D'%23a21caf'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20stroke-width%3D'1.8'%20d%3D'M10.5%2016.75%2012%2011.25l1.5%205.5M11%2014.75h2'%2F%3E%3C%2Fsvg%3E");
}
:is(.dropdown-menu a, .mobile-nav__link)[href$="sbv-to-srt.html"] {
  --nav-link-accent: #4d7c0f;
  --nav-link-accent-2: #84cc16;
  --nav-link-surface: #f7fee7;
  --nav-link-surface-2: #ecfccb;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'none'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20stroke%3D'%234d7c0f'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20stroke-width%3D'1.8'%20d%3D'M7.75%204.75h6.5L18.5%209v9.25A1.75%201.75%200%200%201%2016.75%2020H7.75A1.75%201.75%200%200%201%206%2018.25V6.5A1.75%201.75%200%200%201%207.75%204.75Z'%2F%3E%3Cpath%20stroke%3D'%234d7c0f'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20stroke-width%3D'1.8'%20d%3D'M14.25%204.75V9h4.25'%2F%3E%3Cpath%20stroke%3D'%234d7c0f'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20stroke-width%3D'1.8'%20d%3D'M10%2011.25%2014%2013.75%2010%2016.25Z'%2F%3E%3Cpath%20stroke%3D'%234d7c0f'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20stroke-width%3D'1.8'%20d%3D'M9%2017.25h6'%2F%3E%3C%2Fsvg%3E");
}
:is(.dropdown-menu a, .mobile-nav__link)[href$="guides.html"] {
  --nav-link-accent: #2563eb;
  --nav-link-accent-2: #60a5fa;
  --nav-link-surface: #eff6ff;
  --nav-link-surface-2: #dbeafe;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%231d4ed8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M6.75 5.75h8.5a2 2 0 0 1 2 2v10.5a1 1 0 0 1-1.5.86l-3.75-2.15-3.75 2.15a1 1 0 0 1-1.5-.86V7.75a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E");
}
:is(.dropdown-menu a, .mobile-nav__link)[href$="about.html"] {
  --nav-link-accent: #475569;
  --nav-link-accent-2: #94a3b8;
  --nav-link-surface: #f8fafc;
  --nav-link-surface-2: #e2e8f0;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M12 16v-4m0-4h.01M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z'/%3E%3C/svg%3E");
}
:is(.dropdown-menu a, .mobile-nav__link)[href$="contact.html"] {
  --nav-link-accent: #0f766e;
  --nav-link-accent-2: #2dd4bf;
  --nav-link-surface: #f0fdfa;
  --nav-link-surface-2: #ccfbf1;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%230f766e' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M5.75 7.25h12.5a1.5 1.5 0 0 1 1.5 1.5v6.5a1.5 1.5 0 0 1-1.5 1.5H5.75a1.5 1.5 0 0 1-1.5-1.5v-6.5a1.5 1.5 0 0 1 1.5-1.5Zm0 1.75 6.25 4.5L18.25 9'/%3E%3C/svg%3E");
}
:is(.dropdown-menu a, .mobile-nav__link)[href$="privacy.html"] {
  --nav-link-accent: #b91c1c;
  --nav-link-accent-2: #f87171;
  --nav-link-surface: #fef2f2;
  --nav-link-surface-2: #fee2e2;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23b91c1c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M12 4.75 6.5 7v4.75c0 4.08 2.44 6.57 5.5 7.5 3.06-.93 5.5-3.42 5.5-7.5V7L12 4.75Z'/%3E%3C/svg%3E");
}
:is(.dropdown-menu a, .mobile-nav__link)[href$="terms.html"] {
  --nav-link-accent: #475569;
  --nav-link-accent-2: #94a3b8;
  --nav-link-surface: #f8fafc;
  --nav-link-surface-2: #e2e8f0;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M8 5.5h5.5l3.5 3.5v9a1.75 1.75 0 0 1-1.75 1.75H8A1.75 1.75 0 0 1 6.25 18V7.25A1.75 1.75 0 0 1 8 5.5Zm5.25 0v4h4'/%3E%3C/svg%3E");
}
:is(.dropdown-menu a, .mobile-nav__link)[href$="dmca.html"] {
  --nav-link-accent: #c2410c;
  --nav-link-accent-2: #fb923c;
  --nav-link-surface: #fff7ed;
  --nav-link-surface-2: #ffedd5;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23c2410c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M6 18.5V6.75a1 1 0 0 1 1-1h7.25l3.75 3.75v9a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1Zm8.25-12.75v4h4'/%3E%3C/svg%3E");
}
:is(.dropdown-menu a, .mobile-nav__link)[href*="#faq"] {
  --nav-link-accent: #2563eb;
  --nav-link-accent-2: #60a5fa;
  --nav-link-surface: #eff6ff;
  --nav-link-surface-2: #dbeafe;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%231d4ed8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M9.25 9a2.75 2.75 0 1 1 4.8 1.82c-.82.88-1.8 1.46-1.8 2.68m-.02 3.25h.02M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z'/%3E%3C/svg%3E");
}
:is(.dropdown-menu a, .mobile-nav__link)[href*="#how-it-works"] {
  --nav-link-accent: #0284c7;
  --nav-link-accent-2: #38bdf8;
  --nav-link-surface: #f0f9ff;
  --nav-link-surface-2: #e0f2fe;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%230369a1' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M6.75 12h10.5m0 0-3.5-3.5m3.5 3.5-3.5 3.5M6.5 5.5h11a1.5 1.5 0 0 1 1.5 1.5v10a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 5 17V7a1.5 1.5 0 0 1 1.5-1.5Z'/%3E%3C/svg%3E");
}
:is(.dropdown-menu a, .mobile-nav__link)[href*="#features"] {
  --nav-link-accent: #ca8a04;
  --nav-link-accent-2: #fbbf24;
  --nav-link-surface: #fefce8;
  --nav-link-surface-2: #fde68a;
  --nav-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23ca8a04' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M8 8h3v3H8V8Zm5 0h3v3h-3V8ZM8 13h3v3H8v-3Zm5 0h3v3h-3v-3Z'/%3E%3C/svg%3E");
}

/* Lock scroll when menu open */
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* Mobile icons = ???? ?????? (TR, MT…) */
@media (max-width: 768px) {
  .nav-links,
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav-links a::before,
  .nav__links a::before {
    content: "";
  }

  .mobile-nav__badge--translator { background: #e0f2fe; color: #0369a1; }
  .mobile-nav__badge--multi      { background: #f5f3ff; color: #6d28d9; }
  .mobile-nav__badge--editor     { background: #eef2ff; color: #4338ca; }
  .mobile-nav__badge--shifter    { background: #fffbeb; color: #b45309; }
  .mobile-nav__badge--cleaner    { background: #ecfdf3; color: #047857; }
  .mobile-nav__badge--splitter   { background: #fff1f2; color: #be123c; }
  .mobile-nav__badge--merge      { background: #ecfeff; color: #0e7490; }
  .mobile-nav__badge--format     { background: #ecfdf3; color: #047857; }
  .mobile-nav__badge--srtvtt     { background: #f0f9ff; color: #0369a1; }
  .mobile-nav__badge--vttsrt     { background: #f0fdfa; color: #0f766e; }
  .mobile-nav__badge--txtsrt     { background: #f8fafc; color: #475569; }
  .mobile-nav__badge--asssrt     { background: #fdf4ff; color: #a21caf; }
  .mobile-nav__badge--sbvsrt     { background: #f7fee7; color: #4d7c0f; }
  .mobile-nav__badge--about      { background: #f3f4f6; color: #0f172a; }
  .mobile-nav__badge--contact    { background: #e2e8f0; color: #0f172a; }
  .mobile-nav__badge--privacy    { background: #fee2e2; color: #b91c1c; }
  .mobile-nav__badge--terms      { background: #f8fafc; color: #0f172a; }
  .mobile-nav__badge--dmca       { background: #ffedd5; color: #c2410c; }
  .mobile-nav__badge--faq        { background: #e0e7ff; color: #1d4ed8; }
  .mobile-nav__badge--how        { background: #cffafe; color: #0ea5e9; }
  .mobile-nav__badge--features   { background: #fde68a; color: #ca8a04; }
}

/* Tablet: show desktop links, hide overlay */
@media (min-width: 769px) and (max-width: 900px) {
  .nav {
    padding: 0 1rem;
  }
}

/* =========================
   Hero (main / utility)
   ========================= */
.hero {
  padding: 110px 0 120px;
  background: linear-gradient(145deg, #0b4dd8 0%, #1d5bf5 40%, #5da5ff 100%);
  color: #fff;
}
.hero__content {
  text-align: center;
}
.hero h1 {
  margin: 12px 0 10px;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
}
.hero__subtitle {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}
.hero__trust {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.85);
}
.hero__seo {
  max-width: 860px;
  margin: 0 auto 28px;
  padding: 18px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  box-shadow: 0 22px 48px rgba(5, 25, 82, 0.18);
  backdrop-filter: blur(12px);
}
.hero__seo p {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  line-height: 1.75;
}
.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Utility hero (for tools pages) */
.utility-hero {
  text-align: center;
  padding: 110px 0 120px;
  background: linear-gradient(145deg, #0b4dd8 0%, #1d5bf5 40%, #5da5ff 100%);
  color: #fff;
}
.utility-hero h1 {
  margin: 12px 0 10px;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
}
.utility-hero p {
  margin: 0 auto;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.6px;
  font-size: 12px;
  text-transform: uppercase;
}
@media (max-width: 768px) {
  .hero {
    padding: 90px 0 100px;
  }
  .utility-hero {
    padding: 72px 18px 82px;
  }
  .hero h1,
  .utility-hero h1 {
    font-size: 28px;
  }
  .hero__subtitle,
  .utility-hero p {
    font-size: 16px;
  }
}

/* =========================
   Pills, buttons, sections
   ========================= */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #dce7ff;
  color: #0f2f8a;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.pill--muted {
  background: #cfd6e4;
  color: #0b172a;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
.btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.35);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: #f8fbff;
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.btn-ghost {
  background: #f3f6fb;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-soft {
  background: #eef2f7;
  color: var(--text);
  border: 1px solid #e5e7eb;
}

section {
  padding: 80px 0;
  animation: fadeIn 400ms ease-out both;
}
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}
.section-header--centered {
  max-width: 820px;
}
.section-header--centered .pill {
  margin-inline: auto;
}
.section-header h2 {
  margin: 8px 0 10px;
  font-size: 28px;
  font-weight: 800;
}
.section-header p {
  margin: 0;
  color: var(--muted);
}

.section--platform-intro {
  padding-top: 38px;
  padding-bottom: 34px;
}
.section--tool-hub {
  padding-top: 34px;
}
.section--all-tools {
  background: linear-gradient(180deg, rgba(235, 243, 255, 0.52) 0%, rgba(255, 255, 255, 0) 100%);
}
.platform-band {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.platform-band__copy {
  padding: 30px 32px;
  border-radius: 28px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 255, 0.94));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}
.platform-band__copy h2 {
  margin: 14px 0 14px;
  font-size: 32px;
  line-height: 1.12;
}
.platform-band__copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.platform-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.platform-proof {
  padding: 22px 20px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}
.platform-proof__label {
  display: inline-flex;
  margin-bottom: 12px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.platform-proof h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}
.platform-proof p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.tool-tone--blue {
  --tool-accent: #2563eb;
  --tool-accent-2: #60a5fa;
  --tool-surface: #eff6ff;
  --tool-surface-2: #dbeafe;
  --tool-border: #bfdbfe;
}
.tool-tone--violet {
  --tool-accent: #7c3aed;
  --tool-accent-2: #a78bfa;
  --tool-surface: #f5f3ff;
  --tool-surface-2: #ede9fe;
  --tool-border: #ddd6fe;
}
.tool-tone--indigo {
  --tool-accent: #4f46e5;
  --tool-accent-2: #818cf8;
  --tool-surface: #eef2ff;
  --tool-surface-2: #e0e7ff;
  --tool-border: #c7d2fe;
}
.tool-tone--amber {
  --tool-accent: #d97706;
  --tool-accent-2: #f59e0b;
  --tool-surface: #fffbeb;
  --tool-surface-2: #fef3c7;
  --tool-border: #fcd34d;
}
.tool-tone--emerald {
  --tool-accent: #059669;
  --tool-accent-2: #34d399;
  --tool-surface: #ecfdf5;
  --tool-surface-2: #d1fae5;
  --tool-border: #a7f3d0;
}
.tool-tone--orange {
  --tool-accent: #ea580c;
  --tool-accent-2: #fb923c;
  --tool-surface: #fff7ed;
  --tool-surface-2: #fed7aa;
  --tool-border: #fdba74;
}
.tool-tone--rose {
  --tool-accent: #e11d48;
  --tool-accent-2: #fb7185;
  --tool-surface: #fff1f2;
  --tool-surface-2: #ffe4e6;
  --tool-border: #fecdd3;
}
.tool-tone--cyan {
  --tool-accent: #0891b2;
  --tool-accent-2: #22d3ee;
  --tool-surface: #ecfeff;
  --tool-surface-2: #cffafe;
  --tool-border: #a5f3fc;
}
.tool-tone--sky {
  --tool-accent: #0284c7;
  --tool-accent-2: #38bdf8;
  --tool-surface: #f0f9ff;
  --tool-surface-2: #e0f2fe;
  --tool-border: #7dd3fc;
}
.tool-tone--teal {
  --tool-accent: #0f766e;
  --tool-accent-2: #2dd4bf;
  --tool-surface: #f0fdfa;
  --tool-surface-2: #ccfbf1;
  --tool-border: #99f6e4;
}
.tool-tone--slate {
  --tool-accent: #475569;
  --tool-accent-2: #94a3b8;
  --tool-surface: #f8fafc;
  --tool-surface-2: #e2e8f0;
  --tool-border: #cbd5e1;
}
.tool-tone--fuchsia {
  --tool-accent: #c026d3;
  --tool-accent-2: #e879f9;
  --tool-surface: #fdf4ff;
  --tool-surface-2: #fae8ff;
  --tool-border: #f0abfc;
}
.tool-tone--lime {
  --tool-accent: #65a30d;
  --tool-accent-2: #a3e635;
  --tool-surface: #f7fee7;
  --tool-surface-2: #ecfccb;
  --tool-border: #bef264;
}
.tool-glyph {
  width: 24px;
  height: 24px;
  display: block;
}
.tool-glyph--sm {
  width: 18px;
  height: 18px;
}
.tool-glyph--xs {
  width: 15px;
  height: 15px;
}
.home-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.home-tool-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 100%;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition), background var(--transition);
}
.home-tool-card:hover,
.home-tool-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--tool-border, rgba(37, 99, 235, 0.28));
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
}
.home-tool-card:focus-visible {
  outline: none;
}
.home-tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--tool-accent, #2563eb), var(--tool-accent-2, #60a5fa));
  opacity: 0.9;
}
.home-tool-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.home-tool-badge {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--tool-surface-2, #dbeafe), var(--tool-surface, #eff6ff));
  color: var(--tool-accent, #1d4ed8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 24px rgba(15, 23, 42, 0.06);
}
.home-tool-card__arrow {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(203, 213, 225, 0.88);
  background: #ffffff;
  color: #64748b;
  transition: transform var(--transition), color var(--transition), border-color var(--transition);
}
.home-tool-card:hover .home-tool-card__arrow,
.home-tool-card:focus-visible .home-tool-card__arrow {
  transform: translateX(2px);
  color: var(--tool-accent, #1d4ed8);
  border-color: var(--tool-border, #bfdbfe);
}
.home-tool-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home-tool-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--tool-surface, #eff6ff);
  color: var(--tool-accent, #1d4ed8);
  font-size: 12px;
  font-weight: 700;
}
.home-tool-card__tag--soft {
  background: #f8fafc;
  color: #475569;
}
.home-tool-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
}
.home-tool-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.home-tool-card__visual {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 128px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--tool-border, #bfdbfe);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.96), transparent 42%),
    linear-gradient(180deg, var(--tool-surface, #eff6ff) 0%, #ffffff 100%);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.home-tool-card__visual::after {
  content: "";
  position: absolute;
  inset: auto -16px -28px auto;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}
.tool-visual__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tool-visual__dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tool-visual__dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.55);
}
.tool-visual__dots span:first-child {
  background: var(--tool-accent, #2563eb);
}
.tool-visual__toolbar-pill,
.tool-visual__row,
.tool-visual__editor-line,
.tool-visual__compare-line {
  display: block;
  border-radius: 999px;
}
.tool-visual__toolbar-pill {
  width: 56px;
  height: 10px;
  background: rgba(255, 255, 255, 0.82);
}
.tool-visual__toolbar-pill--short {
  width: 42px;
}
.tool-visual__row {
  height: 10px;
  width: 76%;
  background: rgba(255, 255, 255, 0.88);
}
.tool-visual__row--metric {
  width: 46%;
  height: 26px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--tool-accent, #2563eb), var(--tool-accent-2, #60a5fa));
  opacity: 0.96;
}
.tool-visual__row--wide {
  width: 100%;
}
.tool-visual__row--short {
  width: 58%;
}
.tool-visual__progress {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}
.tool-visual__progress::after {
  content: "";
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tool-accent, #2563eb), var(--tool-accent-2, #60a5fa));
  transition: width var(--transition);
}
.home-tool-card__visual--batch {
  display: block;
}
.tool-visual__stack {
  position: absolute;
  left: 16px;
  right: 16px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform var(--transition), opacity var(--transition);
}
.tool-visual__stack::before,
.tool-visual__stack::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.14);
}
.tool-visual__stack::before {
  top: 10px;
  height: 7px;
}
.tool-visual__stack::after {
  top: 22px;
  width: 44%;
  height: 7px;
}
.tool-visual__stack--one {
  top: 18px;
}
.tool-visual__stack--two {
  top: 46px;
  left: 28px;
  right: 28px;
  opacity: 0.92;
}
.tool-visual__stack--three {
  top: 74px;
  left: 40px;
  right: 40px;
  opacity: 0.84;
}
.tool-visual__zip {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tool-accent, #7c3aed), var(--tool-accent-2, #a78bfa));
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.home-tool-card__visual--editor {
  align-content: start;
}
.tool-visual__editor-line {
  position: relative;
  height: 16px;
  background: rgba(255, 255, 255, 0.9);
}
.tool-visual__editor-line::after {
  content: "";
  position: absolute;
  inset: 4px 10px 4px auto;
  width: 42%;
  border-radius: inherit;
  background: rgba(203, 213, 225, 0.7);
}
.tool-visual__editor-line--active {
  height: 24px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(129, 140, 248, 0.45);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}
.tool-visual__editor-line--active::after {
  inset: 6px 12px 6px auto;
  width: 56%;
  background: linear-gradient(90deg, var(--tool-accent, #4f46e5), rgba(129, 140, 248, 0.4));
}
.tool-visual__editor-line--short {
  width: 66%;
}
.home-tool-card__visual--shifter {
  align-content: center;
  gap: 14px;
}
.tool-visual__timeline {
  position: relative;
  height: 34px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}
.tool-visual__timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 14px;
  width: 52%;
  height: 8px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--tool-accent, #d97706), rgba(245, 158, 11, 0.55));
  transition: left var(--transition);
}
.tool-visual__timeline::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(14px + 52%);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border: 3px solid var(--tool-accent, #d97706);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  transition: left var(--transition);
}
.tool-visual__timeline--after::before {
  left: 36px;
}
.tool-visual__timeline--after::after {
  left: calc(36px + 52%);
}
.tool-visual__timeline-key {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tool-visual__timeline-key span {
  position: relative;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}
.tool-visual__timeline-key span::after {
  content: "";
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tool-accent, #d97706), rgba(245, 158, 11, 0.5));
}
.tool-visual__timeline-key span:first-child::after {
  width: 36%;
}
.tool-visual__timeline-key span:last-child::after {
  width: 64%;
}
.home-tool-card__visual--cleaner {
  align-content: stretch;
}
.tool-visual__compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  height: 100%;
}
.tool-visual__compare-column {
  display: grid;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}
.tool-visual__compare-column--clean {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.08);
}
.tool-visual__compare-divider {
  width: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.18), rgba(5, 150, 105, 0.18));
}
.tool-visual__compare-line {
  height: 9px;
  background: rgba(203, 213, 225, 0.9);
}
.tool-visual__compare-line--muted {
  width: 74%;
  opacity: 0.65;
}
.tool-visual__compare-line--clean {
  background: linear-gradient(90deg, var(--tool-accent, #059669), rgba(52, 211, 153, 0.46));
}
.tool-visual__compare-line--short {
  width: 68%;
}
.home-tool-card__visual--converter {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}
.tool-visual__format {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.tool-visual__format--accent {
  background: linear-gradient(135deg, var(--tool-accent, #ea580c), rgba(251, 146, 60, 0.82));
  color: #ffffff;
}
.tool-visual__convert-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--tool-accent, #ea580c);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}
.home-tool-card__visual--converter .tool-visual__format:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}
.home-tool-card__visual--converter .tool-visual__format:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}
.home-tool-card__visual--converter .tool-visual__format:nth-child(4) {
  grid-column: 1;
  grid-row: 2;
}
.home-tool-card__visual--converter .tool-visual__format:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
}
.home-tool-card:hover .home-tool-card__visual,
.home-tool-card:focus-visible .home-tool-card__visual {
  border-color: var(--tool-border, #bfdbfe);
  transform: translateY(-1px);
}
.home-tool-card:hover .tool-visual__stack--one,
.home-tool-card:focus-visible .tool-visual__stack--one {
  transform: translateY(-2px);
}
.home-tool-card:hover .tool-visual__progress::after,
.home-tool-card:focus-visible .tool-visual__progress::after {
  width: 80%;
}
.home-tool-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tool-accent, var(--primary));
  font-weight: 700;
}
.home-tool-card__cta::after {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m9 6.75 5.25 5.25L9 17.25'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m9 6.75 5.25 5.25L9 17.25'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tool-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.tool-category-panel {
  position: relative;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--tool-border, var(--border)) 70%, #ffffff);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tool-category-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tool-accent, #2563eb), var(--tool-accent-2, #60a5fa));
}
.tool-category-panel--translation {
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--tool-surface, #eff6ff) 66%, #ffffff) 100%);
}
.tool-category-panel--editing {
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--tool-surface, #eef2ff) 60%, #ffffff) 100%);
}
.tool-category-panel--format {
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--tool-surface, #fff7ed) 64%, #ffffff) 100%);
}
.tool-category-panel__header {
  margin-bottom: 18px;
}
.tool-category-panel__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.tool-category-panel__icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--tool-surface-2, #dbeafe), var(--tool-surface, #eff6ff));
  color: var(--tool-accent, #2563eb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}
.tool-category-eyebrow {
  margin: 0;
  color: var(--tool-accent, #1d4ed8);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tool-category-panel__header h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
  color: color-mix(in srgb, var(--tool-accent, #2563eb) 62%, #0f172a);
}
.tool-category-panel__header p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.tool-category-list {
  display: grid;
  gap: 12px;
}
.tool-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition),
    box-shadow var(--transition), background var(--transition);
}
.tool-category-item:hover,
.tool-category-item:focus-visible {
  transform: translateY(-2px);
  border-color: var(--tool-border, rgba(37, 99, 235, 0.28));
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}
.tool-category-item:focus-visible {
  outline: none;
}
.tool-category-item__main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}
.tool-category-item__badge {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--tool-surface-2, #dbeafe), var(--tool-surface, #eff6ff));
  color: var(--tool-accent, #1d4ed8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}
.tool-category-item__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.tool-category-item__body strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
}
.tool-category-item__body span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.tool-category-item__chevron {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(203, 213, 225, 0.88);
  background: #ffffff;
  color: #64748b;
  transition: transform var(--transition), color var(--transition), border-color var(--transition);
}
.tool-category-item:hover .tool-category-item__chevron,
.tool-category-item:focus-visible .tool-category-item__chevron {
  transform: translateX(2px);
  color: var(--tool-accent, #1d4ed8);
  border-color: var(--tool-border, #bfdbfe);
}
.launch-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}
.launch-card__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 20px;
  align-items: center;
}
.launch-card__layout h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}
.launch-card__facts {
  margin-top: 16px;
}
.launch-card__actions {
  display: grid;
  gap: 12px;
}
.launch-card__primary,
.launch-card__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), border-color var(--transition), color var(--transition);
}
.launch-card__primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #60a5fa 100%);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.24);
}
.launch-card__primary:hover,
.launch-card__primary:focus-visible {
  transform: translateY(-1px);
  color: #ffffff;
  box-shadow: 0 20px 36px rgba(37, 99, 235, 0.28);
}
.launch-card__secondary {
  border: 1px solid #dbe4f1;
  background: #f8fbff;
  color: #0f172a;
}
.launch-card__secondary:hover,
.launch-card__secondary:focus-visible {
  transform: translateY(-1px);
  color: #0f172a;
  border-color: #bfdbfe;
  background: #eef4ff;
}
.launch-card__primary:focus-visible,
.launch-card__secondary:focus-visible {
  outline: none;
}
.translator-spotlight {
  border-color: var(--tool-border, #bfdbfe);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.94), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, color-mix(in srgb, var(--tool-surface, #eff6ff) 74%, #ffffff) 100%);
}
.translator-spotlight::before {
  content: "";
  position: absolute;
  inset: -60px auto auto -40px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--tool-surface-2, #dbeafe) 78%, #ffffff) 0%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}
.translator-spotlight__layout {
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 24px;
}
.translator-spotlight__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}
.translator-spotlight__eyebrow {
  margin: 0;
  color: var(--tool-accent, #1d4ed8);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.translator-spotlight__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #334155;
}
.translator-spotlight__list li::marker {
  color: var(--tool-accent, #2563eb);
}
.translator-spotlight__actions {
  max-width: 320px;
}
.translator-spotlight .translator-highlight {
  background: rgba(255, 255, 255, 0.92);
  border-color: color-mix(in srgb, var(--tool-border, #bfdbfe) 72%, #ffffff);
  color: #334155;
}
.translator-spotlight .translator-highlight::before {
  background: var(--tool-accent, #60a5fa);
}
.translator-spotlight .launch-card__primary {
  background: linear-gradient(135deg, var(--tool-accent, #1d4ed8) 0%, #2563eb 56%, var(--tool-accent-2, #60a5fa) 100%);
  box-shadow: 0 16px 32px color-mix(in srgb, var(--tool-accent, #2563eb) 22%, transparent);
}
.translator-preview {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--tool-border, #bfdbfe) 70%, #ffffff);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.96), transparent 36%),
    linear-gradient(180deg, color-mix(in srgb, var(--tool-surface, #eff6ff) 78%, #ffffff) 0%, #ffffff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 36px rgba(15, 23, 42, 0.08);
}
.translator-preview__top,
.translator-preview__language-row,
.translator-preview__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.translator-preview__badge,
.translator-preview__status,
.translator-preview__field,
.translator-preview__swap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.translator-preview__badge {
  background: color-mix(in srgb, var(--tool-surface-2, #dbeafe) 82%, #ffffff);
  color: var(--tool-accent, #1d4ed8);
}
.translator-preview__status {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid color-mix(in srgb, var(--tool-border, #bfdbfe) 70%, #ffffff);
  color: #475569;
}
.translator-preview__dropzone {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px 18px;
  border-radius: 22px;
  border: 1px dashed color-mix(in srgb, var(--tool-border, #bfdbfe) 78%, #ffffff);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tool-surface, #eff6ff) 82%, #ffffff) 0%, rgba(255, 255, 255, 0.96) 100%);
  text-align: center;
}
.translator-preview__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--tool-accent, #2563eb), var(--tool-accent-2, #60a5fa));
  color: #ffffff;
  box-shadow: 0 18px 34px color-mix(in srgb, var(--tool-accent, #2563eb) 24%, transparent);
}
.translator-preview__dropzone strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}
.translator-preview__dropzone span:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.translator-preview__field {
  flex: 1 1 0;
  border: 1px solid rgba(203, 213, 225, 0.85);
  background: #ffffff;
  color: #334155;
}
.translator-preview__field--accent {
  border-color: color-mix(in srgb, var(--tool-border, #bfdbfe) 70%, #ffffff);
  background: color-mix(in srgb, var(--tool-surface, #eff6ff) 72%, #ffffff);
  color: var(--tool-accent, #1d4ed8);
}
.translator-preview__swap {
  flex: 0 0 auto;
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.88);
  color: #475569;
}
.translator-preview__button {
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--tool-accent, #1d4ed8) 0%, #2563eb 56%, var(--tool-accent-2, #60a5fa) 100%);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 18px 34px color-mix(in srgb, var(--tool-accent, #2563eb) 24%, transparent);
}
.translator-preview__progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.4);
  overflow: hidden;
}
.translator-preview__progress span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tool-accent, #2563eb), var(--tool-accent-2, #60a5fa));
}
.translator-preview__meta {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.platform-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.platform-flow-card {
  position: relative;
  padding: 24px 22px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--tool-border, var(--border)) 68%, #ffffff);
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--tool-surface, #eff6ff) 60%, #ffffff) 100%);
  box-shadow: var(--shadow);
}
.platform-flow-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--tool-accent, #2563eb), var(--tool-accent-2, #60a5fa));
}
.platform-flow-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.platform-flow-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--tool-surface-2, #dbeafe), var(--tool-surface, #eff6ff));
  color: var(--tool-accent, #2563eb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}
.platform-flow-card__kicker {
  display: inline-flex;
  color: var(--tool-accent, #1d4ed8);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.platform-flow-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}
.platform-flow-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
@supports (content-visibility: auto) {
  .section--deferred {
    content-visibility: auto;
    contain-intrinsic-size: 900px;
  }
}

/* =========================
   Translator main card
   ========================= */
.translator {
  background: transparent;
}
.translator__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}
.card__header h3 {
  margin: 4px 0 6px;
  font-size: 20px;
  font-weight: 800;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-label {
  font-weight: 700;
  font-size: 15px;
  display: block;
  margin-bottom: 8px;
}
label {
  font-weight: 700;
  font-size: 15px;
}
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
  outline: none;
}
textarea {
  resize: vertical;
  min-height: 140px;
}
.hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Dropzone */
.dropzone {
  border: 2px dashed var(--tool-panel-border, var(--border));
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  color: var(--muted);
  background: var(--tool-panel-bg, #f8fbff);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 30px color-mix(in srgb, var(--tool-panel-shadow, transparent) 32%, transparent);
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.dropzone:hover,
.dropzone:focus-visible,
.dropzone.drag-over {
  border-color: var(--tool-panel-border-strong, var(--primary));
  background: var(--tool-panel-bg-hover, #eef3ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 34px color-mix(in srgb, var(--tool-panel-shadow, transparent) 42%, transparent);
  transform: translateY(-1px);
}
.dropzone.is-disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}
.dropzone__icon {
  font-size: 34px;
  margin-bottom: 6px;
  color: var(--primary);
}
.dropzone__title {
  margin: 0;
  font-weight: 800;
  color: var(--text);
}
.dropzone__hint {
  margin: 4px 0 0;
  color: var(--muted);
}

/* Language inline grid */
.inline-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: end;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.split-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.actions-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #eef2f7;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.segmented-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}
.segmented-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segmented-option.is-active {
  background: #ffffff;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.segmented-option:not(.is-active):hover {
  color: var(--text);
}
.input-with-unit {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.input-with-unit input {
  border: none;
  width: 100%;
  padding: 12px;
  font-size: 15px;
}
.input-with-unit input:focus {
  outline: none;
  box-shadow: none;
}
.input-unit {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: #eef2f7;
  border-left: 1px solid var(--border);
  font-weight: 700;
  color: #475569;
}
.input-with-unit.is-disabled {
  opacity: 0.6;
  background: #f5f6f8;
}
.input-with-unit.is-disabled input {
  background: transparent;
}
.swap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.actions-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}
.actions-shell {
  display: grid;
  gap: 12px;
  margin: 14px 0 8px;
}
.btn-translate {
  position: relative;
  flex: 1 1 380px;
  min-height: 76px;
  padding: 14px 18px;
  justify-content: flex-start;
  border-radius: 18px;
  border: 1px solid rgba(191, 219, 254, 0.75);
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 52%, #60a5fa 100%);
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(29, 78, 216, 0.26);
  overflow: hidden;
}
.btn-translate:hover,
.btn-translate:focus-visible {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 55%, #60a5fa 100%);
  transform: translateY(-1px);
  box-shadow: 0 24px 44px rgba(29, 78, 216, 0.3);
}
.btn-translate:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-translate[aria-busy="true"]:disabled {
  opacity: 1;
  cursor: progress;
}
.btn-translate.is-busy {
  box-shadow: 0 24px 46px rgba(29, 78, 216, 0.32);
}
.btn-translate::after {
  content: "";
  position: absolute;
  inset: -35% auto -35% 58%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-22deg);
  opacity: 0;
}
.btn-translate:hover::after,
.btn-translate:focus-visible::after,
.btn-translate.is-busy::after {
  opacity: 1;
  animation: buttonSweep 1.8s linear infinite;
}
.btn-translate__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-translate__icon-svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.btn-translate__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 3px;
}
.btn-translate__title {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}
.btn-translate__sub {
  position: relative;
  z-index: 1;
  max-width: 34ch;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(239, 246, 255, 0.94);
}
.btn-reset {
  min-width: 88px;
  padding: 12px 14px;
  background: #f8fafc;
  border-color: #dbe2ec;
  box-shadow: none;
}
.status-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.converter-preview-jump {
  align-self: flex-start;
  font-weight: 700;
  border-color: #cfe0ff;
  color: var(--primary);
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
}
.converter-preview-jump:hover,
.converter-preview-jump:focus-visible {
  transform: translateY(-1px);
  border-color: #93c5fd;
  color: #1d4ed8;
}
.status {
  width: fit-content;
  max-width: 100%;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  background: #edf3ff;
  border: 1px solid #cfddf6;
  border-radius: 999px;
  padding: 8px 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.status-sub {
  font-size: 13px;
  color: #64748b;
  max-width: 68ch;
}

.translation-floating-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: grid;
  gap: 4px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(147, 197, 253, 0.9);
  background: rgba(15, 23, 42, 0.92);
  color: #eff6ff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

.translation-floating-notice strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.translation-floating-notice span {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.96);
}
.translator-insights {
  display: grid;
  gap: 10px;
  margin: 8px 0 12px;
}
.translator-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.translator-highlight {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #f8fbff;
  border: 1px solid #dce6f5;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}
.translator-highlight::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
}
.run-summary-card {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f7ff 100%);
  border: 1px solid #dce6f5;
}
.run-summary-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.run-summary-value {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

/* Progress */
.progress-card {
  border: 1px solid #d9e3f3;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  margin: 12px 0 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}
.progress-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.progress-card__top strong {
  display: block;
  margin-top: 2px;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.progress-summary {
  display: inline-flex;
  align-items: center;
}
.progress-chip {
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 7px 11px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.progress-chip.is-success {
  background: #dcfce7;
  color: #166534;
}
.progress-chip.is-error {
  background: #fee2e2;
  color: #b91c1c;
}
.progress-chip.is-warning {
  background: #fef3c7;
  color: #92400e;
}
.progress-chip.is-active {
  background: #dbeafe;
  color: #1d4ed8;
}
.progress-chip.is-pending {
  background: #e2e8f0;
  color: #475569;
}
.progress-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 12px;
}
.progress-stage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #dbe4f1;
  background: rgba(255, 255, 255, 0.84);
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.progress-stage::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
}
.progress-stage.is-active {
  border-color: #bfdbfe;
  background: #e8f0ff;
  color: #1e3a8a;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.12);
}
.progress-stage.is-active::before {
  background: #2563eb;
}
.progress-stage.is-complete {
  border-color: #cfe0ff;
  background: #f4f8ff;
  color: #1d4ed8;
}
.progress-stage.is-complete::before {
  background: #1d4ed8;
}
.progress-bar {
  width: 100%;
  height: 12px;
  background: #dbe3ef;
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}
.progress-bar span {
  display: block;
  position: relative;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  transition: width 260ms ease;
}
.progress-bar span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: progressSweep 1.8s linear infinite;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.multi-progress-card {
  position: relative;
  overflow: hidden;
}
.multi-progress-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 18px 0 0 18px;
  background: #cbd5e1;
}
.multi-progress-card.is-success::before {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}
.multi-progress-card.is-error::before {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}
.multi-progress-card.is-warning::before {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}
.multi-progress-card.is-active::before {
  background: linear-gradient(180deg, #2563eb 0%, #60a5fa 100%);
}
.multi-progress-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.multi-progress-card__file {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.multi-progress-card__format {
  flex: 0 0 auto;
  min-width: 52px;
  padding: 7px 10px;
  border-radius: 12px;
  background: #eff5ff;
  color: #1e3a8a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
}
.multi-progress-card__copy {
  min-width: 0;
}
.multi-progress-card__name {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  word-break: break-word;
}
.multi-progress-card__note {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}
.multi-progress-card__metrics {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 10px;
}
.multi-progress-card__percent {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  margin: 0;
  color: #0f172a;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.multi-progress-card__percent span {
  font-size: 18px;
  color: #64748b;
  letter-spacing: 0;
}
.multi-progress-card__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.multi-progress-fact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #f8fbff;
  border: 1px solid #dce6f5;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}
.multi-progress-fact::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #93c5fd;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.form-actions.end {
  justify-content: flex-end;
}

/* Results table */
.results__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.results__table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.table__row {
  display: grid;
  grid-template-columns: 80px 140px 140px 1fr 1fr;
  gap: 10px;
  padding: 10px 12px;
  align-items: center;
}
.table__row:nth-child(even) {
  background: #f9fbff;
}
.table__head {
  background: #eef2f7;
  font-weight: 800;
  color: var(--text);
}
.table__row span {
  color: var(--text);
  font-size: 14px;
}
.table__row span[dir="auto"] {
  unicode-bidi: plaintext;
}
.table__row span:last-child {
  color: var(--primary);
  font-weight: 700;
}
.table__cell--rtl {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}
#resultsTableBody {
  max-height: 380px;
  overflow-y: auto;
}

/* Cards & badges */
.cards {
  display: grid;
  gap: 16px;
}
.card__badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 16%, #ffffff);
  color: color-mix(in srgb, var(--primary) 76%, #0f172a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 10px;
}
.card h3 {
  margin: 0 0 8px;
  font-weight: 800;
}
.card p {
  margin: 0;
  color: var(--muted);
}

/* FAQ */
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.faq summary {
  font-weight: 800;
  cursor: pointer;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--muted);
  font-weight: 700;
  transition: transform var(--transition), color var(--transition);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--primary);
}
.faq details[open] {
  background: #f9fbff;
  border-color: var(--primary);
  box-shadow: 0 10px 26px rgba(59, 130, 246, 0.12);
}
.faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Footer */
.footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 0%, rgba(59, 130, 246, 0.16), transparent 30%),
    radial-gradient(circle at 85% 0%, rgba(96, 165, 250, 0.12), transparent 32%),
    linear-gradient(180deg, #09111d 0%, #0f172a 40%, #111c34 100%);
  color: #e2e8f0;
  padding: 52px 0 54px;
  border-top: 1px solid rgba(96, 165, 250, 0.18);
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 12%);
}
.footer__content {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 30px 42px;
  align-items: start;
  padding: 0 20px;
}
.footer__brand {
  max-width: 360px;
  line-height: 1.6;
}
.footer__brand strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.footer__brand p {
  margin: 6px 0;
  color: #cbd5e1;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: flex-start;
  align-content: flex-start;
  max-width: 760px;
}
.footer__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.055);
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.footer__links a:hover,
.footer__links a:focus-visible {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(96, 165, 250, 0.34);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(2, 8, 23, 0.18);
}
@media (min-width: 900px) {
  .footer__content {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  }
  .footer__links {
    justify-content: flex-start;
  }
}
@media (max-width: 899.98px) {
  .footer__content {
    grid-template-columns: 1fr;
  }
  .footer__brand {
    max-width: none;
  }
}

/* Loader under translate button */
.translator-loader {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #d9e4f5;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}
.translator-loader.is-visible {
  display: flex;
}
.loader-signal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 36px;
}
.loader-signal span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #93c5fd;
  animation: loaderPulse 1.2s ease-in-out infinite;
}
.loader-signal span:nth-child(2) {
  animation-delay: 0.16s;
}
.loader-signal span:nth-child(3) {
  animation-delay: 0.32s;
}
.loader-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.loader-heading {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}
.loader-text,
.status-text {
  font-size: 13px;
  color: #64748b;
}
.status-text {
  margin-top: 0.4rem;
}
@keyframes loaderPulse {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}
@keyframes buttonSweep {
  0% {
    transform: translateX(-180%) skewX(-22deg);
  }
  100% {
    transform: translateX(190%) skewX(-22deg);
  }
}
@keyframes progressSweep {
  0% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(130%);
  }
}

/* Export bar (download .srt) */
.export-bar {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}
.export-main {
  display: flex;
  align-items: center;
  width: 100%;
}
.export-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
}
.export-button.is-disabled {
  cursor: default;
  opacity: 0.6;
  box-shadow: none;
  background: rgba(148, 163, 184, 0.6);
}
.export-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.export-meta {
  font-size: 0.78rem;
  color: var(--muted);
}
@media (max-width: 640px) {
  .export-bar { align-items: stretch; }
  .export-button {
    width: 100%;
    justify-content: center;
  }
}

/* =========================
   Tool shells (merge, converter, editor…)
   ========================= */
.page {
  padding-top: 2rem;
}
:where(.page, #translator-workspace, #multi-translator) {
  --tool-panel-bg: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 10%, #ffffff) 0%,
    color-mix(in srgb, var(--accent) 18%, #ffffff) 100%
  );
  --tool-panel-bg-hover: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 14%, #ffffff) 0%,
    color-mix(in srgb, var(--accent) 26%, #ffffff) 100%
  );
  --tool-panel-bg-active: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 18%, #ffffff) 0%,
    color-mix(in srgb, var(--accent) 32%, #ffffff) 100%
  );
  --tool-panel-border: color-mix(in srgb, var(--primary) 26%, #cbd5e1);
  --tool-panel-border-strong: color-mix(in srgb, var(--primary) 42%, #cbd5e1);
  --tool-panel-shadow: color-mix(in srgb, var(--primary) 16%, transparent);
  --tool-panel-text: color-mix(in srgb, var(--primary) 38%, #334155);
}
#translator-workspace {
  --primary: #2563eb;
  --accent: #60a5fa;
}
#multi-translator {
  --primary: #7c3aed;
  --accent: #a78bfa;
}
.page#editor {
  --primary: #4f46e5;
  --accent: #818cf8;
}
.page#subtitle-shifter {
  --primary: #d97706;
  --accent: #fbbf24;
}
.page#subtitle-cleaner {
  --primary: #059669;
  --accent: #34d399;
}
.page#subtitle-splitter {
  --primary: #e11d48;
  --accent: #fb7185;
}
.page#merge {
  --primary: #0891b2;
  --accent: #22d3ee;
}
.page#converter[data-default-source="auto"] {
  --primary: #ea580c;
  --accent: #fb923c;
}
.page#converter[data-locked-source="srt"][data-locked-output="vtt"] {
  --primary: #0284c7;
  --accent: #38bdf8;
}
.page#converter[data-locked-source="vtt"][data-locked-output="srt"] {
  --primary: #0f766e;
  --accent: #2dd4bf;
}
.page#converter[data-locked-source="txt"][data-locked-output="srt"] {
  --primary: #475569;
  --accent: #94a3b8;
}
.page#converter[data-locked-source="ass"][data-locked-output="srt"] {
  --primary: #a21caf;
  --accent: #e879f9;
}
.page#converter[data-locked-source="sbv"][data-locked-output="srt"] {
  --primary: #4d7c0f;
  --accent: #84cc16;
}
.hero-section {
  text-align: center;
  padding: 3rem 1rem 4rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6366f1;
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}
.hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.8rem;
}
.hero-subtitle {
  font-size: 1rem;
  color: #475569;
  max-width: 540px;
  margin: 0 auto;
}

.tool-section {
  padding: 2.5rem 1rem 4rem;
  display: flex;
  justify-content: center;
}
.tool-shell {
  width: 100%;
  max-width: 900px;
  display: grid;
  gap: 2rem;
}
.converter-shell {
  max-width: 1120px;
}
.tool-card {
  background: #ffffff;
  padding: 1.8rem;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
}
.tool-card.is-preview-ready {
  border-color: color-mix(in srgb, var(--primary) 34%, #ffffff);
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.12),
    0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}
.tool-card h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}
.tool-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.tool-hint {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

/* Upload box + textarea (tools) */
.upload-box {
  width: 100%;
  border: 2px dashed var(--tool-panel-border, #94a3b8);
  background: var(--tool-panel-bg, #f8fafc);
  padding: 1.5rem;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 30px color-mix(in srgb, var(--tool-panel-shadow, transparent) 32%, transparent);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.upload-box:hover {
  border-color: var(--tool-panel-border-strong, #6366f1);
  background: var(--tool-panel-bg-hover, #f1f5ff);
  transform: translateY(-1px);
}
.upload-box.drag-over {
  border-color: var(--tool-panel-border-strong, #2563eb);
  background: var(--tool-panel-bg-active, #eaf2ff);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--primary) 16%, transparent),
    0 18px 34px color-mix(in srgb, var(--tool-panel-shadow, transparent) 42%, transparent);
}
.upload-box-inner {
  text-align: center;
}
.upload-box-inner p {
  font-size: 0.95rem;
  color: var(--tool-panel-text, #475569);
  margin: 0;
}
.upload-box-inner small {
  color: color-mix(in srgb, var(--primary) 26%, #64748b);
}
.text-area {
  margin-top: 1rem;
  width: 100%;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  padding: 1rem;
  font-size: 0.95rem;
  resize: vertical;
}
.converter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 22px;
  align-items: start;
}
.converter-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.converter-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.converter-route-lock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.converter-route-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #eff5ff;
  border: 1px solid #d6e5ff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.converter-route-arrow {
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}
.converter-output {
  margin-top: 0;
  min-height: 280px;
  background: #f8fbff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.converter-route-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.converter-route-card {
  display: grid;
  gap: 7px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #dce6f5;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.converter-route-card:hover,
.converter-route-card:focus-visible {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.12);
}
.converter-route-card__eyebrow {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.converter-route-card strong {
  color: #0f172a;
  font-size: 17px;
  font-weight: 800;
}
.converter-route-card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

/* Buttons (tools) */
.primary-btn {
  margin-top: 1rem;
  width: 100%;
  padding: 0.9rem;
  border-radius: 12px;
  background: #6366f1;
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.primary-btn:hover {
  background: #4f46e5;
}
.secondary-btn {
  margin-top: 1rem;
  width: 100%;
  padding: 0.85rem;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  cursor: pointer;
}
.secondary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.secondary-btn:hover:not(:disabled) {
  background: #e2e8f0;
}

.result-section {
  margin-top: 1rem;
  padding: 0;
}

@media (max-width: 1024px) {
  .hero h1 { font-size: 30px; }
  .platform-band {
    grid-template-columns: 1fr;
  }
  .home-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tool-directory-grid {
    grid-template-columns: 1fr;
  }
  .platform-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .launch-card__layout {
    grid-template-columns: 1fr;
  }
  .translator__grid { grid-template-columns: 1fr; }
  .table__row { grid-template-columns: 70px 120px 120px 1fr 1fr; }
  .cleaner-shell {
    max-width: 940px;
    grid-template-columns: 1fr;
  }
  .cleaner-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shifter-shell {
    max-width: 940px;
    grid-template-columns: 1fr;
  }
  .shifter-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .hero__seo {
    padding: 16px 18px;
    border-radius: 20px;
  }
  .section--platform-intro {
    padding-top: 28px;
  }
  .platform-band__copy {
    padding: 24px 22px;
  }
  .platform-band__copy h2 {
    font-size: 28px;
  }
  .platform-trust-grid,
  .home-tools-grid {
    grid-template-columns: 1fr;
  }
  .tool-category-panel,
  .home-tool-card {
    padding: 20px;
  }
  .platform-flow-grid {
    grid-template-columns: 1fr;
  }
  .platform-flow-card,
  .translator-preview {
    padding: 18px;
  }
  .home-tool-card__visual {
    min-height: 116px;
    padding: 14px;
  }
  .tool-visual__stack--one {
    top: 16px;
  }
  .tool-visual__stack--two {
    top: 42px;
    left: 24px;
    right: 24px;
  }
  .tool-visual__stack--three {
    top: 68px;
    left: 34px;
    right: 34px;
  }
  .launch-card__layout h3 {
    font-size: 22px;
  }
  .translator-preview__top,
  .translator-preview__language-row,
  .translator-preview__meta {
    flex-wrap: wrap;
  }
  .translator-preview__swap {
    width: 100%;
  }
  .tool-category-item {
    padding: 14px;
  }
  .translator__grid { grid-template-columns: 1fr; }
  .inline-grid { grid-template-columns: 1fr; }
  .progress-meta { flex-direction: column; }
  .progress-card__top {
    flex-direction: column;
    align-items: flex-start;
  }
  .progress-summary {
    width: 100%;
    justify-content: space-between;
  }
  .progress-stages {
    grid-template-columns: 1fr;
  }
  .multi-progress-card__header,
  .multi-progress-card__metrics {
    flex-direction: column;
    align-items: flex-start;
  }
  .multi-progress-card__facts {
    justify-content: flex-start;
  }
  .results__header { align-items: flex-start; }
  .actions-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-translate,
  .btn-reset {
    width: 100%;
  }
  .translator-highlights {
    flex-direction: column;
  }
  .status {
    width: 100%;
  }
  .table__row {
    grid-template-columns: 60px 100px 100px 1fr;
  }
  .table__row span:last-child {
    grid-column: span 2;
  }
  .tool-shell { gap: 1.5rem; }
  .converter-grid,
  .converter-select-grid {
    grid-template-columns: 1fr;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
  .actions-column {
    flex-direction: column;
  }
  .cleaner-overview {
    grid-template-columns: 1fr;
  }
  .cleaner-card-head,
  .cleaner-output-head,
  .cleaner-dropzone--saas {
    flex-direction: column;
    align-items: flex-start;
  }
  .cleaner-card-chip,
  .cleaner-output-meta {
    width: 100%;
  }
  .cleaner-blueprint__stats,
  .cleaner-actions--saas,
  .cleaner-controls--saas {
    grid-template-columns: 1fr;
  }
  .cleaner-textarea,
  .cleaner-output-area {
    min-height: 260px;
  }
  .shifter-overview {
    grid-template-columns: 1fr;
  }
  .shifter-card-head,
  .shifter-output-head,
  .shifter-dropzone {
    flex-direction: column;
    align-items: flex-start;
  }
  .shifter-card-chip,
  .shifter-output-meta {
    width: 100%;
  }
  .shifter-blueprint__stats,
  .shifter-actions {
    grid-template-columns: 1fr;
  }
  .shifter-textarea,
  .shifter-output-area {
    min-height: 260px;
  }
}

/* =========================
   Subtitles editor table
   ========================= */
.editor-table-wrapper {
  width: 100%;
  overflow-x: auto;
}
#editor-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-top: 0.75rem;
}
#editor-table th,
#editor-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}
#editor-table th {
  color: #475569;
  font-weight: 700;
  background: #f8fafc;
}
#editor-table tr:nth-child(even) {
  background: #fafbfd;
}
#editor-table input,
#editor-table textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  background: #f8fafc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#editor-table input:focus,
#editor-table textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: #fff;
}
#editor-table input {
  height: 38px;
}
#editor-table textarea {
  min-height: 90px;
  max-height: 200px;
  resize: vertical;
}
@media (max-width: 768px) {
  #editor-table {
    table-layout: auto;
  }
  #editor-table thead {
    display: none;
  }
  #editor-table tr {
    display: block;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
  }
  #editor-table td {
    display: block;
    width: 100%;
    padding: 6px 0;
  }
  #editor-table td:not(:last-child) {
    margin-bottom: 6px;
  }
  #editor-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
  }
  #editor-table textarea {
    min-height: 140px;
  }
}

/* Simple fades */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Subtitle cleaner layout */
.cleaner-dropzone {
  cursor: pointer;
}
.cleaner-dropzone.is-dragging {
  border-color: var(--primary);
  background: #eef2ff;
}
.cleaner-controls {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 12px 0;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
}
.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.cleaner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
}
.cleaner-shell {
  max-width: 1180px;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: start;
}
.cleaner-overview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.cleaner-overview__card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid #dce6f5;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.94) 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}
.cleaner-overview__label {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cleaner-overview__card strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}
.cleaner-overview__card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}
.cleaner-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid #dce6f5;
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.09);
}
.cleaner-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0), rgba(96, 165, 250, 0.72), rgba(96, 165, 250, 0));
}
.cleaner-card--input {
  background:
    radial-gradient(circle at top left, rgba(219, 234, 254, 0.8), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.cleaner-card--output {
  background:
    radial-gradient(circle at top right, rgba(191, 219, 254, 0.72), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}
.cleaner-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.cleaner-card-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e9f1ff;
  border: 1px solid #d6e5ff;
  color: #1e3a8a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cleaner-card-head h2 {
  margin-top: 10px;
}
.cleaner-card-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid #dbe4f1;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.cleaner-card-chip--accent {
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.cleaner-highlights {
  margin: 14px 0 0;
}
.cleaner-dropzone {
  cursor: pointer;
}
.cleaner-dropzone.is-dragging {
  border-color: var(--primary);
  background: var(--tool-panel-bg-active, #eef2ff);
}
.cleaner-dropzone--saas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 22px 24px;
  text-align: left;
  background: var(--tool-panel-bg, linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(238, 244, 255, 0.96) 100%));
  border-color: var(--tool-panel-border, #d6e5ff);
}
.cleaner-dropzone--saas:hover,
.cleaner-dropzone--saas:focus-visible,
.cleaner-dropzone--saas.drag-over,
.cleaner-dropzone--saas.is-dragging {
  background: var(--tool-panel-bg-hover, #eef2ff);
  border-color: var(--tool-panel-border-strong, var(--primary));
}
.cleaner-dropzone__signal {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    color-mix(in srgb, var(--primary) 72%, var(--accent)) 56%,
    var(--accent) 100%
  );
  color: #ffffff;
  box-shadow: 0 16px 30px color-mix(in srgb, var(--primary) 24%, transparent);
}
.cleaner-dropzone__signal svg {
  width: 26px;
  height: 26px;
}
.cleaner-dropzone__copy {
  display: grid;
  gap: 4px;
}
.cleaner-source-summary {
  margin-top: 18px;
}
.cleaner-textarea {
  min-height: 320px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.98);
}
.cleaner-blueprint {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid #dce6f5;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}
.cleaner-blueprint__copy {
  display: grid;
  gap: 6px;
}
.cleaner-blueprint__copy strong {
  color: #0f172a;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.cleaner-blueprint__copy p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}
.cleaner-blueprint__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cleaner-stat {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #dce6f5;
  background: rgba(255, 255, 255, 0.9);
}
.cleaner-stat span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cleaner-stat strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}
.cleaner-controls--saas {
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}
.cleaner-option-card {
  align-items: flex-start;
  gap: 12px;
  min-height: 110px;
  padding: 16px;
  border-radius: 18px;
  border-color: #dce6f5;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.cleaner-option-card:hover,
.cleaner-option-card:focus-within {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.1);
}
.cleaner-option-card input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
}
.cleaner-option__copy {
  display: grid;
  gap: 6px;
}
.cleaner-option__copy strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}
.cleaner-option__copy small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}
.cleaner-actions--saas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}
.cleaner-primary-btn {
  grid-column: 1 / -1;
  min-height: 64px;
  margin-top: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #60a5fa 100%);
  box-shadow: 0 22px 40px rgba(29, 78, 216, 0.24);
}
.cleaner-primary-btn:hover {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 55%, #60a5fa 100%);
}
.cleaner-secondary-btn {
  min-height: 50px;
  margin-top: 0;
  border-radius: 14px;
  border-color: #d7e3f4;
  background: #f8fbff;
  font-weight: 700;
}
.cleaner-status-panel {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #dce6f5;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}
.cleaner-status-text {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}
.cleaner-output-shell {
  margin-top: 18px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid #dce6f5;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(239, 245, 255, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}
.cleaner-output-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.cleaner-output-title {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}
.cleaner-output-meta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #dbe4f1;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.cleaner-output-area {
  margin-top: 0;
  min-height: 320px;
  border-color: #d7e3f4;
  background: #ffffff;
}
#cleanerOutputCard.is-preview-ready .cleaner-output-shell {
  border-color: #bfdbfe;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 16px 32px rgba(37, 99, 235, 0.12);
}
#cleanerOutputCard.is-preview-ready .cleaner-output-meta {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.shifter-shell {
  max-width: 1180px;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: start;
}
.shifter-overview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.shifter-overview__card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid #dce6f5;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.92) 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}
.shifter-overview__label {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.shifter-overview__card strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}
.shifter-overview__card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}
.shifter-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid #dce6f5;
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.09);
}
.shifter-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0), rgba(96, 165, 250, 0.75), rgba(96, 165, 250, 0));
}
.shifter-card--input {
  background:
    radial-gradient(circle at top left, rgba(219, 234, 254, 0.85), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.shifter-card--output {
  background:
    radial-gradient(circle at top right, rgba(191, 219, 254, 0.7), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}
.shifter-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.shifter-card-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e9f1ff;
  border: 1px solid #d6e5ff;
  color: #1e3a8a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.shifter-card-head h2 {
  margin-top: 10px;
}
.shifter-card-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid #dbe4f1;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.shifter-card-chip--accent {
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.shifter-highlights {
  margin: 14px 0 0;
}
.shifter-dropzone {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 22px 24px;
  text-align: left;
  background: var(--tool-panel-bg, linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(238, 244, 255, 0.96) 100%));
  border-color: var(--tool-panel-border, #d6e5ff);
}
.shifter-dropzone:hover,
.shifter-dropzone:focus-visible,
.shifter-dropzone.drag-over {
  background: var(--tool-panel-bg-hover, #eef2ff);
  border-color: var(--tool-panel-border-strong, var(--primary));
}
.shifter-dropzone__signal {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    color-mix(in srgb, var(--primary) 72%, var(--accent)) 56%,
    var(--accent) 100%
  );
  color: #ffffff;
  box-shadow: 0 16px 30px color-mix(in srgb, var(--primary) 24%, transparent);
}
.shifter-dropzone__signal svg {
  width: 26px;
  height: 26px;
}
.shifter-dropzone__copy {
  display: grid;
  gap: 4px;
}
.shifter-source-summary {
  margin-top: 18px;
}
.shifter-textarea {
  min-height: 320px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.98);
}
.shifter-blueprint {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid #dce6f5;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}
.shifter-blueprint__copy {
  display: grid;
  gap: 6px;
}
.shifter-blueprint__copy strong {
  color: #0f172a;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.shifter-blueprint__copy p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}
.shifter-blueprint__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.shifter-stat {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #dce6f5;
  background: rgba(255, 255, 255, 0.9);
}
.shifter-stat span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.shifter-stat strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}
.shifter-control-grid {
  margin-top: 18px;
  grid-template-columns: minmax(0, 1.15fr) minmax(160px, 0.8fr) minmax(190px, 1fr);
}
.shifter-control-grid input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d7e1ee;
  border-radius: 14px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 15px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.shifter-control-grid input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.shifter-control-grid select {
  min-height: 52px;
  border-radius: 14px;
  background: #ffffff;
}
.shifter-quick-picks {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.shifter-quick-picks__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.shifter-chip-btn {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #d7e3f4;
  background: #f8fbff;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.shifter-chip-btn:hover,
.shifter-chip-btn:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: #93c5fd;
  background: #eef4ff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}
.shifter-help-note {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #dce6f5;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}
.shifter-help-note strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}
.shifter-help-note p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}
.shifter-checkbox {
  margin: 18px 0 0;
  border-color: #dce6f5;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}
.shifter-checkbox span {
  color: #0f172a;
  font-weight: 700;
}
.shifter-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}
.shifter-primary-btn {
  grid-column: 1 / -1;
  min-height: 64px;
  margin-top: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #60a5fa 100%);
  box-shadow: 0 22px 40px rgba(29, 78, 216, 0.24);
}
.shifter-primary-btn:hover {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 55%, #60a5fa 100%);
}
.shifter-secondary-btn {
  min-height: 50px;
  margin-top: 0;
  border-radius: 14px;
  border-color: #d7e3f4;
  background: #f8fbff;
  font-weight: 700;
}
.shifter-status-panel {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #dce6f5;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}
.shifter-status-text {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}
.shifter-output-shell {
  margin-top: 18px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid #dce6f5;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(239, 245, 255, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}
.shifter-output-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.shifter-output-title {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}
.shifter-output-meta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #dbe4f1;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.shifter-output-area {
  margin-top: 0;
  min-height: 320px;
  border-color: #d7e3f4;
  background: #ffffff;
}
#shifterOutputCard.is-preview-ready .shifter-output-shell {
  border-color: #bfdbfe;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 16px 32px rgba(37, 99, 235, 0.12);
}
#shifterOutputCard.is-preview-ready .shifter-output-meta {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
@media (max-width: 1024px) {
  .shifter-shell {
    max-width: 940px;
    grid-template-columns: 1fr;
  }
  .shifter-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .page#subtitle-shifter .tool-section {
    padding-top: 1.5rem;
  }
  .shifter-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .shifter-overview__card {
    padding: 16px;
    border-radius: 18px;
  }
  .shifter-card {
    padding: 18px;
    border-radius: 20px;
  }
  .shifter-card-head,
  .shifter-output-head,
  .shifter-dropzone {
    flex-direction: column;
    align-items: flex-start;
  }
  .shifter-card-chip,
  .shifter-output-meta {
    width: 100%;
  }
  .shifter-blueprint {
    padding: 16px;
    border-radius: 18px;
  }
  .shifter-blueprint__stats,
  .shifter-control-grid,
  .shifter-actions {
    grid-template-columns: 1fr;
  }
  .shifter-textarea,
  .shifter-output-area {
    min-height: 260px;
  }
}
@media (max-width: 520px) {
  .shifter-overview {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .page#subtitle-shifter .tool-section {
    padding-right: 0.875rem;
    padding-left: 0.875rem;
  }
  .shifter-overview__card strong {
    font-size: 17px;
  }
  .shifter-overview__card p {
    font-size: 12.5px;
  }
}
.related-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.related-links li {
  margin: 0;
}
.related-links a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 18px 48px 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  color: var(--text);
  font-weight: 700;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.related-links a::after {
  content: "Open";
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.72rem;
  line-height: 1;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform var(--transition), color var(--transition);
}
.related-links a strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.related-links a span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 500;
}
.related-links a:hover,
.related-links a:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
}
.related-links a:hover::after,
.related-links a:focus-visible::after {
  transform: translate(2px, -2px);
  color: #1d4ed8;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.guide-grid--expanded {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.guide-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.guide-card--enhanced {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.guide-card__badge {
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.guide-card h3 {
  margin: 10px 0 10px;
  font-size: 1.35rem;
}
.guide-card h3 a {
  color: var(--text);
}
.guide-card__description {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}
.guide-card__button {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.guide-card__button:hover,
.guide-card__button:focus-visible {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.18);
}
.guide-card p:last-child {
  margin-bottom: 0;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.article-toc {
  position: sticky;
  top: 96px;
}
.article-content {
  padding: 28px;
}
.article-content--wide {
  max-width: 900px;
  margin: 0 auto;
}
.article-content h2 {
  margin-top: 28px;
  margin-bottom: 12px;
}
.article-content h3 {
  margin-top: 22px;
  color: var(--text);
}
.article-content p,
.article-content li {
  color: var(--muted);
  line-height: 1.8;
}
.article-content a:not(.guide-card__button) {
  color: var(--primary);
  font-weight: 700;
}
.article-content .related-links a {
  color: var(--text);
}
.article-content .related-links a span {
  font-weight: 500;
}
.article-meta {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 18px;
}
.article-steps {
  margin: 0;
  padding-left: 22px;
}
.article-figure {
  margin: 26px 0 30px;
  overflow: hidden;
  border: 1px solid #dce6f5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.article-figure figcaption {
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.article-callout {
  margin: 22px 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
  border: 1px solid #cfe0ff;
  color: var(--text);
}
.article-note {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid #dbeafe;
  border-left: 5px solid var(--primary);
  border-radius: 16px;
  background: #f8fbff;
  color: var(--text);
}
.article-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}
.article-note p {
  margin: 0;
}
.article-note--warning {
  border-color: #fed7aa;
  border-left-color: #f97316;
  background: #fff7ed;
}
.article-note--tip {
  border-color: #bbf7d0;
  border-left-color: #16a34a;
  background: #f0fdf4;
}
.article-visual {
  margin: 26px 0 30px;
  overflow: hidden;
  border: 1px solid #dce6f5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}
.article-screenshot {
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.08)),
    #f8fbff;
}
.article-screenshot__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dbeafe;
  border-radius: 12px 12px 0 0;
  background: #ffffff;
}
.article-screenshot__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #bfdbfe;
}
.article-screenshot__label {
  margin-left: 8px;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 800;
}
.article-screenshot__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.44fr);
  gap: 16px;
  min-height: 230px;
  padding: 18px;
  border: 1px solid #dbeafe;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #ffffff;
}
.article-screenshot__panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}
.article-screenshot__line {
  height: 11px;
  border-radius: 999px;
  background: #cbd5e1;
}
.article-screenshot__line--wide {
  width: 92%;
}
.article-screenshot__line--short {
  width: 48%;
}
.article-screenshot__line--accent {
  background: #93c5fd;
}
.article-screenshot__caption {
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.comparison-grid,
.process-grid,
.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.comparison-card,
.process-card,
.example-card {
  padding: 18px;
  border: 1px solid #dce6f5;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.comparison-card strong,
.process-card strong,
.example-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}
.comparison-card--before {
  border-color: #fecaca;
  background: #fff7f7;
}
.comparison-card--after {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.subtitle-sample {
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 14px;
  background: #0f172a;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.workflow-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.workflow-strip__item {
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #ffffff;
}
.workflow-strip__item span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #eef4ff;
  color: var(--primary);
  font-weight: 900;
}
.workflow-strip__item strong {
  display: block;
  color: var(--text);
}
.workflow-strip__item p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
}
.article-cta {
  margin: 30px 0 0;
  padding-top: 4px;
}
.related-links--compact {
  grid-template-columns: 1fr;
  gap: 10px;
}
.related-links--compact a {
  padding: 13px 38px 13px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
}
.related-links--compact a::after {
  top: 16px;
  right: 14px;
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.related-links--compact a:hover::after,
.related-links--compact a:focus-visible::after {
  transform: translate(2px, -2px) rotate(45deg);
}
.article-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.article-footer-links a {
  color: var(--primary);
  font-weight: 600;
}
@media (max-width: 640px) {
  .cleaner-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .article-footer-links {
    flex-direction: column;
  }
  .guide-card__button {
    width: 100%;
    text-align: center;
  }
  .article-screenshot__stage {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 920px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-toc {
    position: static;
  }
}

/* Google widget translation sandbox */
.google-widget-shell {
  position: absolute;
  top: 0;
  left: -99999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.translation-sandbox {
  position: absolute;
  top: 0;
  left: -99999px;
  width: min(1100px, 100vw);
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

.translation-sandbox__cue {
  margin: 0 0 18px;
}

.translation-sandbox__meta,
.translation-sandbox__line {
  display: block;
}

.translation-sandbox__meta {
  color: #475569;
}

#inputText[readonly] {
  background: #f8fafc;
}

body.skiptranslate {
  top: 0 !important;
}

.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

.VIpgJd-ZVi9od-ORHb-OEVmcd.skiptranslate {
  display: none !important;
  visibility: hidden !important;
}

body.google-translation-active .VIpgJd-ZVi9od-xl07Ob-OEVmcd.skiptranslate,
body.google-translation-active iframe.goog-te-menu-frame,
body.google-translation-active .goog-te-balloon-frame {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate3d(-200vw, 0, 0) !important;
}

body.google-translation-active .goog-tooltip,
body.google-translation-active .goog-tooltip:hover,
body.google-translation-active .goog-text-highlight {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.google-translation-active .goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}
