


.translate-eyebrow {
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.translate-title { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.25; color: var(--text); }
.translate-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.025rem;
  line-height: 1.7;
  max-width: 720px;
  margin: 12px auto 40px;
}
.translate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.translate-grid .upload-card { max-width: none; margin: 0; }
.upload-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: var(--text);
}
.translate-points {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tp { display: flex; align-items: flex-start; gap: 14px; padding: 16px 22px; }
.tp + .tp { border-top: 1px solid var(--border); }
.tp-icon.suite-icon { width: 40px; height: 40px; border-radius: 10px; }
.tp-icon svg { width: 20px; height: 20px; }
.tp-text { display: flex; flex-direction: column; gap: 3px; }
.tp-title { font-weight: 700; font-size: 1rem; color: var(--text); }
.tp-desc { font-size: .9rem; line-height: 1.55; color: var(--text-secondary); }


.engines-users {
  margin: 18px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}


.suite-group-title {
  margin: 40px 0 16px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.suite-group-title:first-of-type { margin-top: 8px; }
.suite-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.suite-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.suite-icon.suite-logo {
  background: #fff;
  border: 1px solid var(--border);
  padding: 5px;
  box-sizing: border-box;
  overflow: hidden;
}
.suite-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.suite-icon.suite-logo:has(img[src*="ai-humanizer"]) { padding: 0; }

[data-theme="dark"] .translate-points { background: var(--bg-alt); }
[data-theme="dark"] .suite-icon.suite-logo { background: #fff; }

@media (max-width: 1100px) {
  .suite-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .translate-grid { grid-template-columns: 1fr; }
  .suite-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .suite-grid--4,
  .suite-grid--3 { grid-template-columns: 1fr; }
  .tp { padding: 14px 16px; }
}


html[lang^="zh"] .hero h1,
html[lang^="zh"] main h2,
html[lang^="ja"] .hero h1,
html[lang^="ja"] main h2,
html[lang^="ko"] .hero h1,
html[lang^="ko"] main h2 { word-break: keep-all; overflow-wrap: break-word; }


.hero { position: relative; }
.hero > .hero-atom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero > .hero-atom-front { z-index: 3; }
.hero > .container { position: relative; z-index: 1; }


.hero-visual { display: block; }
.tx-stage { position: relative; width: 100%; max-width: 620px; margin: 96px auto 0; perspective: 1500px; }
.tx-window {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  transform: rotateX(3deg) rotateY(-7deg);
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 30px 60px -24px rgba(15, 23, 42, .45), 0 60px 120px -40px rgba(15, 118, 110, .35);
}
.tx-layer { position: absolute; inset: 0; display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.tx-dst { clip-path: inset(0 0 100% 0); }
.tx-layer { transition: opacity .4s ease, filter .4s ease; }

.tx-window.is-swapping .tx-src { opacity: 0; transition: none; }
.tx-window.is-swapping .tx-dst { opacity: 0; filter: blur(6px); }
.tx-beam {
  position: absolute;
  top: 0;
  left: -2%;
  right: -2%;
  height: 2px;
  margin-top: -1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #5eead4 12%, #ffffff 50%, #5eead4 88%, transparent);
  box-shadow: 0 0 10px 2px rgba(45, 212, 191, .85), 0 0 36px 10px rgba(20, 184, 166, .35);
  opacity: 0;
  transition: opacity .25s ease;
}
.tx-band {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 184, 166, 0), rgba(20, 184, 166, .14));
  opacity: 0;
  transition: opacity .25s ease;
}
.tx-window.is-scanning .tx-beam,
.tx-window.is-scanning .tx-band { opacity: 1; }
.tx-sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tx-lens {
  position: absolute;
  top: 0;
  left: 0;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  pointer-events: none;
  background-color: #fff;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(13, 148, 136, .85), 0 18px 40px rgba(15, 23, 42, .35);
  opacity: 0;
  transition: opacity .18s ease;
  z-index: 2;
}
.tx-lens.on { opacity: 1; }
.tx-lens span {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.tx-hud {
  position: absolute;
  top: -18px;
  left: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .88);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .25);
}
.tx-hud-pct { min-width: 34px; color: #5eead4; font-variant-numeric: tabular-nums; text-align: right; }
.tx-hud.is-done .tx-hud-pct { color: #4ade80; }
.tx-stage .hero-mascot { position: absolute; top: -150px; right: -46px; width: 250px; height: 250px; pointer-events: none; }
@media (max-width: 960px) {
  .tx-stage { margin-top: 110px; }
  .tx-stage .hero-mascot { right: -8px; top: -130px; width: 200px; height: 200px; }
}
@media (max-width: 640px) {
  .tx-stage { margin-top: 96px; }
  .tx-stage .hero-mascot { top: -112px; width: 170px; height: 170px; }
  .tx-lens { width: 120px; height: 120px; }
  .tx-hud { font-size: 11px; padding: 6px 11px; top: -16px; left: 10px; }
}


.cmp { max-width: 1100px; margin: 0 auto; }
.cmp-fallback { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); }
.cmp-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.cmp-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text-secondary);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.cmp-tab[aria-selected="true"] { border-color: var(--primary); color: var(--primary); background: rgba(15, 118, 110, .06); }
.cmp-view {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px -30px rgba(15, 23, 42, .35);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}
.cmp-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; -webkit-user-drag: none; }
.cmp-dst { clip-path: inset(0 0 0 50%); }
.cmp-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: #0d9488;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 0 18px rgba(13, 148, 136, .55);
  pointer-events: none;
}
.cmp-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: #0d9488;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 10px 24px rgba(15, 23, 42, .3);
}

.cmp-tag {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .82);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  pointer-events: none;
  transition: opacity .2s ease;
}
.cmp-tag-l { right: 50%; margin-right: 32px; }
.cmp-tag-r { left: 50%; margin-left: 32px; background: #0d9488; }
.cmp-range { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; margin: 0; opacity: 0.001; cursor: ew-resize; }
.cmp-range:focus-visible ~ .cmp-line .cmp-knob, .cmp-view:focus-within .cmp-knob { outline: 3px solid #5eead4; outline-offset: 3px; }
[data-theme="dark"] .cmp-tab { background: var(--bg-alt); }
@media (max-width: 640px) {
  .cmp-knob { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .cmp-tabs { flex-wrap: nowrap; justify-content: safe center; overflow-x: auto; scrollbar-width: none; gap: 6px; padding: 2px; }
  .cmp-tabs::-webkit-scrollbar { display: none; }
  .cmp-tab { flex: none; gap: 5px; padding: 6px 10px; font-size: .74rem; }
  .cmp-tag { padding: 2px 8px; font-size: .68rem; }
  .cmp-tag-l { margin-right: 24px; }
  .cmp-tag-r { margin-left: 24px; }
}
