:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --ink: #080808;
  --muted: #5a5a5a;
  --line: #d8d8d8;
  --primary: #080808;
  --primary-dark: #000000;
  --primary-soft: #f3f3f3;
  --aqua: #00b8d9;
  --blue: #146ef5;
  --pink: #ed52a4;
  --green: #12d876;
  --green-soft: #e9fff4;
  --yellow: #f7c948;
  --rose: #ed52a4;
  --rose-soft: #fff3f8;
  --scene-a: #ffffff;
  --scene-b: #f5f7fb;
  --scene-c: #ffffff;
  --scene-accent: #146ef5;
  --scene-accent-two: #00b8d9;
  --scene-shift: 0px;
  --shadow: 0 84px 24px rgba(0, 0, 0, 0), 0 54px 22px rgba(0, 0, 0, 0.01),
    0 30px 18px rgba(0, 0, 0, 0.04), 0 13px 13px rgba(0, 0, 0, 0.08),
    0 3px 7px rgba(0, 0, 0, 0.09);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #081532;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  transition: background 700ms ease;
}

body.scene-preview {
  --scene-a: #ffffff;
  --scene-b: #f2f8ff;
  --scene-c: #ffffff;
  --scene-accent: #00b8d9;
  --scene-accent-two: #146ef5;
  --scene-shift: -70px;
}

body.scene-tool {
  --scene-a: #ffffff;
  --scene-b: #f5f7fb;
  --scene-c: #ffffff;
  --scene-accent: #146ef5;
  --scene-accent-two: #00b8d9;
  --scene-shift: -40px;
}

body.scene-flow {
  --scene-a: #ffffff;
  --scene-b: #fff6fb;
  --scene-c: #f6fbff;
  --scene-accent: #ed52a4;
  --scene-accent-two: #146ef5;
  --scene-shift: -140px;
}

body.scene-features {
  --scene-a: #ffffff;
  --scene-b: #f2fff8;
  --scene-c: #ffffff;
  --scene-accent: #12d876;
  --scene-accent-two: #00b8d9;
  --scene-shift: -210px;
}

body.scene-formats {
  --scene-a: #ffffff;
  --scene-b: #f7f8fb;
  --scene-c: #ffffff;
  --scene-accent: #146ef5;
  --scene-accent-two: #ed52a4;
  --scene-shift: -280px;
}

body.scene-pricing {
  --scene-a: #ffffff;
  --scene-b: #f5f7fb;
  --scene-c: #f3fff8;
  --scene-accent: #080808;
  --scene-accent-two: #12d876;
  --scene-shift: -350px;
}

body.scene-security,
body.scene-faq {
  --scene-a: #ffffff;
  --scene-b: #f2fff8;
  --scene-c: #ffffff;
  --scene-accent: #00b8d9;
  --scene-accent-two: #12d876;
  --scene-shift: -420px;
}

.motion-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.backdrop-gradient {
  position: absolute;
  inset: -16%;
  background:
    radial-gradient(circle at 18% 18%, rgba(20, 110, 245, 0.2), transparent 34%),
    radial-gradient(circle at 84% 48%, rgba(0, 184, 217, 0.16), transparent 32%),
    linear-gradient(120deg, #061025 0%, #0b1d4e 48%, #071331 100%);
  transition:
    background 800ms ease,
    transform 900ms ease;
  transform: translate3d(0, calc(var(--scene-shift) * 0.16), 0);
}

.grid-plane {
  position: absolute;
  inset: -30%;
  background-image:
    linear-gradient(rgba(91, 168, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 168, 255, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 75%);
  opacity: 0.8;
  transform: perspective(900px) rotateX(58deg) translateY(calc(-120px + var(--scene-shift)));
  transform-origin: top center;
  transition: transform 900ms ease;
}

.flow-ribbon {
  position: absolute;
  left: -18%;
  width: 136%;
  height: 154px;
  border-top: 1px solid rgba(8, 8, 8, 0.08);
  border-bottom: 1px solid rgba(8, 8, 8, 0.08);
  background:
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--scene-accent) 18%, transparent), transparent),
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(255, 255, 255, 0.72) 70px 72px);
  opacity: 0.64;
  filter: blur(0.2px);
  transition: transform 900ms ease, background 800ms ease;
  animation: ribbonDrift 14s linear infinite;
}

.ribbon-one {
  top: 14%;
  transform: rotate(-8deg) translateY(calc(var(--scene-shift) * 0.18));
}

.ribbon-two {
  top: 56%;
  transform: rotate(7deg) translateY(calc(var(--scene-shift) * -0.12));
  animation-duration: 18s;
  opacity: 0.54;
}

.hero-card-cluster {
  position: absolute;
  left: 2%;
  bottom: 9%;
  z-index: 3;
  display: grid;
  width: min(360px, 90%);
  gap: 10px;
  padding: 12px;
  color: #fff;
  background: rgba(4, 10, 26, 0.68);
  border: 1px solid rgba(105, 180, 255, 0.26);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  animation: floatDoc 8s ease-in-out infinite;
}

.cluster-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.cluster-heading span {
  width: 8px;
  height: 8px;
  background: #58a7ff;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(88, 167, 255, 0.75);
}

.cluster-heading strong {
  font-weight: 500;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(69, 150, 242, 0.12), transparent 62%),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(105, 180, 255, 0.18);
  border-radius: 8px;
}

.hero-mini-card.active {
  border-color: rgba(105, 180, 255, 0.48);
  background:
    linear-gradient(135deg, rgba(69, 150, 242, 0.24), transparent 62%),
    rgba(255, 255, 255, 0.08);
}

.mini-type {
  display: grid;
  width: 50px;
  height: 42px;
  place-items: center;
  color: #d8efff;
  background: rgba(69, 150, 242, 0.16);
  border: 1px solid rgba(105, 180, 255, 0.28);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.hero-mini-card strong,
.hero-mini-card em {
  display: block;
}

.hero-mini-card strong {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.hero-mini-card em {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-style: normal;
}

.metric-card .mini-type {
  color: #071331;
  background: #7fc3ff;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

@keyframes ribbonDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 520px 0, 260px 0;
  }
}

@keyframes floatDoc {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }
  50% {
    transform: translate3d(0, -18px, 0) rotate(1deg);
  }
}

@keyframes scanLine {
  0%,
  38% {
    transform: translateY(-120%);
  }
  72%,
  100% {
    transform: translateY(420%);
  }
}

@keyframes iconPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 16px 34px rgba(23, 105, 224, 0.25);
  }
  50% {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(22, 185, 199, 0.3);
  }
}

@keyframes fileIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageLift {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroImageDrift {
  0%,
  100% {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.08) translate3d(-18px, -10px, 0);
  }
}

@keyframes visualTilt {
  0%,
  100% {
    transform: rotateX(5deg) rotateY(-8deg) translateY(0);
  }
  50% {
    transform: rotateX(2deg) rotateY(-4deg) translateY(-8px);
  }
}

@keyframes marqueeMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: absolute;
  top: 30px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 48px));
  min-height: 76px;
  padding: 10px 12px;
  background: rgba(3, 7, 18, 0.82);
  border: 1px solid rgba(105, 180, 255, 0.18);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 44%);
  pointer-events: none;
}

.brand,
.header-actions,
.main-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: max-content;
  padding-left: 4px;
  color: #fff;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #10245f;
  background: linear-gradient(135deg, #7fc3ff, #4596f2);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(69, 150, 242, 0.26);
  font-weight: 600;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  line-height: 1.2;
}

.brand small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.2;
}

.main-nav {
  min-height: 48px;
  gap: 6px;
  padding: 0 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.main-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 14px;
  border-radius: 6px;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.main-nav a:hover {
  background: rgba(69, 150, 242, 0.16);
}

.main-nav a:hover,
.text-link:hover {
  color: #4ca3ff;
}

.header-actions {
  gap: 12px;
  position: relative;
  z-index: 1;
}

.text-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 500;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn-primary {
  color: #fff;
  background: #4596f2;
  box-shadow: 0 18px 42px rgba(69, 150, 242, 0.28);
}

.btn-primary:hover {
  background: #5ba8ff;
  box-shadow: 0 22px 46px rgba(69, 150, 242, 0.36);
}

.btn-secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--primary);
}

.btn-ghost {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: #9fb5d1;
}

.btn-block {
  width: 100%;
}

.section-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.workspace-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 126px 0 34px;
  color: #fff;
  background: #142768;
}

.workspace-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-document-tech.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  animation: heroImageDrift 12s ease-in-out infinite;
}

.workspace-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 63% 44%, rgba(8, 18, 51, 0.12), rgba(8, 18, 51, 0.64) 54%, rgba(8, 18, 51, 0.9) 100%),
    linear-gradient(90deg, rgba(9, 22, 70, 0.08) 0%, rgba(9, 22, 70, 0.34) 48%, rgba(9, 22, 70, 0.72) 100%);
  pointer-events: none;
}

.workspace-section .section-shell {
  position: relative;
  z-index: 1;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  gap: 36px;
  align-items: center;
  min-height: calc(100vh - 230px);
  margin-bottom: 18px;
}

.hero-copy {
  grid-column: 2;
  max-width: 760px;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #58a7ff;
  font-size: 13px;
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  background: #58a7ff;
  border-radius: 999px;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: 66px;
  font-weight: 700;
  line-height: 1.06;
  text-wrap: balance;
}

h1::selection,
h2::selection,
p::selection {
  color: #fff;
  background: var(--primary);
}

h2 {
  margin-bottom: 12px;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.18;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.hero-lede,
.section-copy p,
.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

.workspace-section .hero-lede {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.workspace-section .btn-ghost {
  color: #fff;
  background: rgba(8, 16, 41, 0.18);
  border-color: rgba(255, 255, 255, 0.72);
}

.workspace-section .btn-ghost:hover {
  border-color: #58a7ff;
}

.hero-visual {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  min-height: 470px;
  perspective: 1200px;
}

.visual-glass-card {
  position: relative;
  overflow: hidden;
  background: #080808;
  border: 1px solid #1f1f1f;
  border-radius: 8px;
  box-shadow: 0 24px 24px rgba(0, 0, 0, 0.2), 0 6px 13px rgba(0, 0, 0, 0.26);
}

.visual-main-card {
  min-height: 420px;
  padding: 18px;
  transform: rotateX(5deg) rotateY(-8deg);
  transform-origin: center;
  animation: visualTilt 8s ease-in-out infinite;
}

.visual-main-card::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -20%;
  width: 72%;
  height: 72%;
  background: radial-gradient(circle, color-mix(in srgb, var(--scene-accent) 28%, transparent), transparent 62%);
  filter: blur(10px);
}

.visual-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 10px;
  color: #e8e8e8;
  background: #151515;
  border: 1px solid #2c2c2c;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.visual-toolbar span {
  width: 9px;
  height: 9px;
  background: #d6e2f0;
  border-radius: 999px;
}

.visual-toolbar span:first-child {
  background: #ef4f7a;
}

.visual-toolbar span:nth-child(2) {
  background: #f0c34e;
}

.visual-toolbar span:nth-child(3) {
  background: #16b9c7;
}

.visual-toolbar strong {
  margin-left: auto;
}

.visual-doc-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 338px;
  padding-top: 18px;
}

.visual-doc {
  min-height: 292px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  box-shadow: none;
}

.visual-doc small {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--scene-accent);
  font-size: 12px;
  font-weight: 500;
}

.visual-doc h3 {
  min-height: 48px;
}

.visual-doc p {
  height: 10px;
  margin-bottom: 12px;
  background: #e8eef6;
  border-radius: 999px;
}

.visual-doc p:nth-of-type(2) {
  width: 76%;
}

.translated-doc {
  transform: translateY(18px);
}

.visual-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  box-shadow: none;
  font-weight: 600;
}

.mini-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 20px;
}

.mini-table span {
  min-height: 28px;
  background: #edf4fb;
  border: 1px solid #dce8f5;
  border-radius: 6px;
}

.format-marquee {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  padding: 12px 0;
  border-top: 1px solid rgba(105, 180, 255, 0.22);
  border-bottom: 1px solid rgba(105, 180, 255, 0.22);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: marqueeMove 28s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(5, 12, 31, 0.44);
  border: 1px solid rgba(105, 180, 255, 0.24);
  border-radius: 4px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
}

.translator-console {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.upload-panel,
.estimate-panel,
.preview-tool,
.plan-card,
.format-group,
.feature-card,
.security-list article,
.faq-list details {
  color: #fff;
  background: rgba(6, 16, 43, 0.78);
  border: 1px solid rgba(105, 180, 255, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.upload-panel,
.estimate-panel {
  padding: 20px;
  box-shadow: var(--shadow);
}

.upload-panel,
.estimate-panel,
.preview-tool {
  position: relative;
  overflow: hidden;
}

.upload-panel::before,
.estimate-panel::before,
.preview-tool::before {
  display: none;
}

.upload-panel > *,
.estimate-panel > *,
.preview-tool > * {
  position: relative;
  z-index: 1;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.step-label,
.support-note {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 500;
}

.support-note {
  padding: 5px 9px;
  color: #a9d1ff;
  background: rgba(69, 150, 242, 0.12);
  border: 1px solid rgba(105, 180, 255, 0.24);
  border-radius: 4px;
}

.drop-zone {
  position: relative;
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 26px;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(11, 30, 76, 0.9), rgba(6, 16, 43, 0.78)),
    rgba(6, 16, 43, 0.86);
  border: 1px dashed rgba(105, 180, 255, 0.5);
  border-radius: var(--radius);
}

.drop-zone::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.88), transparent);
  transform: translateY(-120%);
  animation: scanLine 4.8s ease-in-out infinite;
}

.drop-zone.dragging {
  background: #eef6ff;
  border-color: var(--blue);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-zone strong {
  color: #fff;
  font-size: 20px;
}

.drop-zone span {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.68);
}

.drop-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 600;
  animation: iconPulse 2.8s ease-in-out infinite;
}

.file-queue {
  margin-top: 16px;
}

.empty-state,
.file-row {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.empty-state {
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.04);
}

.empty-state strong {
  color: #fff;
}

.file-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  animation: fileIn 280ms ease both;
}

.file-row + .file-row {
  margin-top: 8px;
}

.file-main {
  min-width: 0;
}

.file-main strong,
.file-main span {
  display: block;
}

.file-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-main span,
.file-chip,
.file-pages {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.file-chip,
.file-pages {
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  white-space: nowrap;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.settings-grid label,
.mini-estimator label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 500;
}

select,
input[type="range"] {
  width: 100%;
}

select {
  min-height: 42px;
  padding: 0 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(105, 180, 255, 0.22);
  border-radius: 4px;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(105, 180, 255, 0.18);
  border-radius: 4px;
  font-size: 13px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(105, 180, 255, 0.18);
  border-radius: var(--radius);
}

.metric span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 500;
}

.metric strong {
  color: #fff;
  font-size: 20px;
}

.recommendation {
  margin: 14px 0;
  padding: 14px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(69, 150, 242, 0.12);
  border: 1px solid rgba(105, 180, 255, 0.28);
  border-radius: var(--radius);
}

.progress-card {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.58);
}

.progress-step span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-weight: 500;
}

.progress-step p {
  margin: 0;
}

.progress-step.active {
  color: var(--primary);
  font-weight: 500;
}

.progress-step.active span {
  color: #fff;
  background: var(--primary);
}

.cta-stack {
  display: grid;
  gap: 10px;
}

.download-link[hidden] {
  display: none;
}

.job-status {
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(105, 180, 255, 0.18);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.6;
}

.job-status[data-tone="success"] {
  color: #0f7a4e;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.job-status[data-tone="warning"] {
  color: #8a5a00;
  background: #fffbeb;
  border-color: #f7d878;
}

.job-status[data-tone="error"] {
  color: #9f1239;
  background: #fff1f2;
  border-color: #fecdd3;
}

.preview-section,
.flow-section,
.feature-section,
.formats-section,
.pricing-section,
.security-section,
.faq-section {
  padding: 72px 0;
}

.preview-section,
.feature-section,
.pricing-section,
.faq-section {
  color: #fff;
  background:
    radial-gradient(circle at 78% 12%, rgba(69, 150, 242, 0.18), transparent 30%),
    linear-gradient(180deg, #0d2156 0%, #071331 100%);
}

.flow-section,
.formats-section,
.security-section {
  color: #fff;
  background:
    radial-gradient(circle at 20% 18%, rgba(0, 184, 217, 0.14), transparent 32%),
    linear-gradient(180deg, #071331 0%, #0b1d4e 100%);
}

.tool-section {
  position: relative;
  z-index: 1;
  padding: 86px 0 78px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 8%, rgba(69, 150, 242, 0.18), transparent 32%),
    linear-gradient(180deg, #071331 0%, #0d2156 100%);
}

.tool-heading {
  max-width: 860px;
}

.tool-section .section-heading p,
.preview-section .section-copy p,
.flow-section .section-heading p,
.feature-section .section-heading p,
.formats-section .section-heading p,
.pricing-section .section-heading p,
.security-section .section-copy p,
.faq-section .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.tool-section h2,
.preview-section h2,
.flow-section h2,
.feature-section h2,
.formats-section h2,
.pricing-section h2,
.security-section h2,
.faq-section h2 {
  color: #fff;
}

.preview-section,
.flow-section,
.feature-section,
.formats-section,
.pricing-section,
.security-section,
.faq-section {
  position: relative;
  overflow: hidden;
}

.preview-section::before,
.flow-section::before,
.feature-section::before,
.formats-section::before,
.pricing-section::before,
.security-section::before,
.faq-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 168, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 168, 255, 0.05) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 78%);
  pointer-events: none;
}

.preview-section .section-shell,
.flow-section .section-shell,
.feature-section .section-shell,
.formats-section .section-shell,
.pricing-section .section-shell,
.security-section .section-shell,
.faq-section .section-shell {
  position: relative;
  z-index: 1;
}

.preview-layout,
.security-layout,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.35fr);
  gap: 28px;
  align-items: start;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.split-heading {
  display: flex;
  max-width: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.preview-tool {
  padding: 16px;
  box-shadow: var(--shadow);
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.tab {
  flex: 1;
  min-height: 38px;
  color: rgba(255, 255, 255, 0.66);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 500;
}

.tab.active {
  color: #fff;
  background: rgba(69, 150, 242, 0.72);
  box-shadow: 0 14px 34px rgba(69, 150, 242, 0.18);
}

.doc-preview {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.doc-preview.compare-mode {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.document-page {
  min-height: 430px;
  padding: 28px;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(105, 180, 255, 0.22);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(15, 35, 62, 0.08);
  animation: pageLift 320ms ease both;
}

.document-page.translated {
  background: #fbfdff;
}

.document-page header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  color: #58708d;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
}

.document-page h3 {
  font-family: Georgia, "Times New Roman", "SimSun", serif;
}

.document-page p {
  color: #2c394c;
  overflow-wrap: anywhere;
}

.document-page table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 14px;
}

.document-page th,
.document-page td {
  padding: 10px;
  text-align: left;
  border: 1px solid #cbd5e1;
}

.document-page th {
  background: #eef4ff;
}

.process-lane {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
}

.process-lane::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4596f2, #00b8d9, transparent);
  border-radius: 999px;
  box-shadow: 0 0 22px color-mix(in srgb, var(--scene-accent) 32%, transparent);
}

.process-card {
  position: relative;
  min-height: 230px;
  padding: 32px;
  overflow: hidden;
  background: rgba(6, 16, 43, 0.78);
  border: 1px solid rgba(105, 180, 255, 0.2);
  border-radius: var(--radius);
  box-shadow: none;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.process-card::before {
  display: none;
}

.process-card > * {
  position: relative;
}

.process-card span {
  display: inline-flex;
  margin-bottom: 38px;
  color: #58a7ff;
  font-size: 13px;
  font-weight: 500;
}

.process-card p {
  color: rgba(255, 255, 255, 0.68);
}

.process-card:hover {
  transform: translateY(-8px);
  border-color: rgba(105, 180, 255, 0.52);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.process-card:hover::before {
  opacity: 1;
}

.feature-grid,
.format-grid,
.plans-grid {
  display: grid;
  gap: 16px;
}

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

.feature-card:first-child,
.feature-card:last-child {
  grid-column: span 2;
  min-height: 230px;
}

.feature-card:first-child {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(69, 150, 242, 0.22), rgba(6, 16, 43, 0.84)),
    rgba(6, 16, 43, 0.78);
  border-color: rgba(105, 180, 255, 0.28);
}

.feature-card:last-child {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(0, 184, 217, 0.18), rgba(6, 16, 43, 0.84)),
    rgba(6, 16, 43, 0.78);
  border-color: rgba(105, 180, 255, 0.28);
}

.feature-card,
.format-group,
.plan-card,
.security-list article {
  padding: 32px;
}

.feature-card,
.format-group,
.plan-card,
.security-list article,
.faq-list details {
  position: relative;
  overflow: hidden;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.feature-card::before,
.format-group::before,
.plan-card::before,
.security-list article::before {
  display: none;
}

.feature-card > *,
.format-group > *,
.plan-card > *,
.security-list article > * {
  position: relative;
}

.feature-card:hover,
.format-group:hover,
.plan-card:hover,
.security-list article:hover {
  transform: translateY(-6px);
  border-color: rgba(105, 180, 255, 0.52);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.feature-card:hover::before,
.format-group:hover::before,
.plan-card:hover::before,
.security-list article:hover::before {
  opacity: 1;
}

.feature-code {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 4px 8px;
  color: #58a7ff;
  background: rgba(69, 150, 242, 0.12);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.feature-card:first-child .feature-code {
  color: #a9d1ff;
  background: rgba(69, 150, 242, 0.16);
}

.feature-card:last-child .feature-code {
  color: #a9d1ff;
  background: rgba(69, 150, 242, 0.16);
}

.feature-card p,
.format-group p,
.plan-card p,
.security-list p,
.faq-list p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.feature-card:first-child p,
.feature-card:last-child p {
  color: rgba(255, 255, 255, 0.82);
}

.feature-card:first-child h3,
.feature-card:last-child h3 {
  color: #fff;
}

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

.format-group {
  min-height: 150px;
}

.format-group:first-child {
  grid-column: span 2;
}

.format-group.strong {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(69, 150, 242, 0.2), rgba(6, 16, 43, 0.84)),
    rgba(6, 16, 43, 0.78);
  border-color: rgba(105, 180, 255, 0.28);
}

.format-group.experimental {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(0, 184, 217, 0.16), rgba(6, 16, 43, 0.84)),
    rgba(6, 16, 43, 0.78);
  border-color: rgba(105, 180, 255, 0.28);
}

.format-group.strong p {
  color: rgba(255, 255, 255, 0.72);
}

.format-group.experimental p,
.format-group.experimental h3 {
  color: #fff;
}

.pricing-section {
  background: transparent;
}

.mini-estimator {
  width: min(420px, 100%);
  padding: 14px;
  color: #fff;
  background: rgba(6, 16, 43, 0.78);
  border: 1px solid rgba(105, 180, 255, 0.2);
  border-radius: 8px;
}

.mini-estimator strong {
  display: block;
  margin-top: 8px;
  color: #58a7ff;
}

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

.plan-card {
  position: relative;
  display: flex;
  min-height: 270px;
  flex-direction: column;
  gap: 12px;
}

.plan-card strong {
  font-size: 28px;
}

.plan-card p {
  flex: 1;
}

.plan-name,
.plan-badge {
  font-size: 13px;
  font-weight: 500;
}

.plan-name {
  color: rgba(255, 255, 255, 0.62);
}

.plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 8px;
  color: #fff;
  background: #4596f2;
  border-radius: 4px;
}

.plan-card.featured {
  border-color: rgba(105, 180, 255, 0.58);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  margin-top: -10px;
  background: linear-gradient(180deg, #146ef5, #0b3b98);
  color: #fff;
}

.plan-card.featured .plan-name,
.plan-card.featured p {
  color: rgba(255, 255, 255, 0.72);
}

.plan-card.featured .btn-primary {
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}

.security-list {
  display: grid;
  gap: 14px;
}

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

.faq-list details {
  padding: 16px 18px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-list p {
  margin-top: 12px;
}

.site-footer {
  padding: 26px 0;
  color: var(--muted);
  background: rgba(16, 24, 39, 0.95);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 980px) {
  .site-header {
    top: 18px;
  }

  .main-nav {
    display: none;
  }

  .translator-console,
  .hero-stage,
  .preview-layout,
  .security-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: auto;
  }

  .hero-copy {
    grid-column: auto;
  }

  .hero-visual {
    grid-column: auto;
    grid-row: auto;
    min-height: 430px;
  }

  .feature-grid,
  .format-grid,
  .plans-grid,
  .process-lane {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card:first-child,
  .feature-card:last-child,
  .format-group:first-child {
    grid-column: auto;
  }

  .split-heading {
    align-items: stretch;
    flex-direction: column;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 32px;
  }
}

@media (max-width: 680px) {
  .section-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding: 12px 14px;
  }

  .header-actions .text-link,
  .main-nav {
    display: none;
  }

  .workspace-section {
    padding-top: 116px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  .upload-panel,
  .estimate-panel,
  .preview-tool {
    padding: 14px;
  }

  .settings-grid,
  .metric-grid,
  .feature-grid,
  .format-grid,
  .plans-grid,
  .process-lane,
  .visual-doc-grid,
  .doc-preview.compare-mode {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-card-cluster {
    position: static;
    width: 100%;
    margin-top: 22px;
    animation: none;
  }

  .visual-main-card {
    min-height: auto;
    transform: none;
    animation: none;
  }

  .visual-doc-grid {
    min-height: auto;
  }

  .translated-doc {
    transform: none;
  }

  .visual-arrow {
    margin: 0 auto;
    transform: rotate(90deg);
  }

  .file-row {
    grid-template-columns: 1fr;
  }

  .preview-section,
  .tool-section,
  .flow-section,
  .feature-section,
  .formats-section,
  .pricing-section,
  .security-section,
  .faq-section {
    padding: 48px 0;
  }

  .motion-backdrop {
    opacity: 0.72;
  }

  .plan-card.featured {
    margin-top: 0;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Reference-style redesign: dark technology hero, light commercial content sections. */
.motion-backdrop {
  display: none;
}

body {
  background: #f5f7fb;
}

.site-header {
  top: 32px;
  min-height: 76px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.site-header::before {
  display: none;
}

.brand {
  padding-left: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  color: #11336f;
  background: #55a8ff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(85, 168, 255, 0.3);
}

.brand strong {
  color: #55a8ff;
  font-size: 22px;
  font-weight: 700;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
}

.main-nav {
  min-height: 76px;
  gap: 4px;
  padding: 0 28px;
  color: #ffffff;
  background: rgba(4, 7, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.3);
}

.main-nav a {
  min-height: 76px;
  padding: 0 16px;
  border-radius: 0;
}

.main-nav a:hover {
  color: #55a8ff;
  background: transparent;
}

.header-actions .text-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  padding: 0 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
}

.header-actions .text-link:hover {
  color: #ffffff;
  border-color: #55a8ff;
}

.header-actions .btn-primary {
  min-height: 50px;
  padding: 0 26px;
  background: #4596f2;
  border-radius: 8px;
}

.workspace-section {
  min-height: 100vh;
  padding-top: 132px;
  background: #172a6e;
}

.workspace-section::after {
  background:
    radial-gradient(circle at 56% 48%, rgba(13, 34, 91, 0.04), rgba(13, 34, 91, 0.42) 52%, rgba(13, 34, 91, 0.82) 100%),
    linear-gradient(90deg, rgba(7, 19, 55, 0.02) 0%, rgba(7, 19, 55, 0.22) 44%, rgba(7, 19, 55, 0.68) 100%);
}

.hero-stage {
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  min-height: calc(100vh - 220px);
}

.hero-copy {
  align-self: center;
}

.hero-copy .eyebrow {
  color: #55a8ff;
}

.hero-copy h1 {
  max-width: 760px;
  color: #ffffff;
  font-size: 58px;
  font-weight: 800;
  line-height: 1.08;
}

.hero-title-static,
.hero-title-dynamic {
  display: block;
}

.hero-title-dynamic {
  min-height: 1.08em;
}

.workspace-section .hero-lede {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-card-cluster {
  left: 8%;
  bottom: 10%;
  width: 326px;
  padding: 14px;
  background: rgba(4, 7, 16, 0.72);
  border-color: rgba(85, 168, 255, 0.26);
  border-radius: 10px;
}

.hero-mini-card {
  min-height: 62px;
  padding: 10px;
}

.format-marquee {
  border-color: rgba(85, 168, 255, 0.22);
}

.tool-section,
.preview-section,
.flow-section,
.feature-section,
.formats-section,
.pricing-section,
.security-section,
.faq-section {
  color: #111827;
  background: #ffffff;
}

.tool-section,
.feature-section,
.pricing-section,
.faq-section {
  background: #ffffff;
}

.preview-section,
.flow-section,
.formats-section,
.security-section {
  background: #f5f7fb;
}

.preview-section::before,
.flow-section::before,
.feature-section::before,
.formats-section::before,
.pricing-section::before,
.security-section::before,
.faq-section::before {
  display: none;
}

.tool-section h2,
.preview-section h2,
.flow-section h2,
.feature-section h2,
.formats-section h2,
.pricing-section h2,
.security-section h2,
.faq-section h2,
.panel-heading h2 {
  color: #111827;
}

.tool-section .section-heading p,
.preview-section .section-copy p,
.flow-section .section-heading p,
.feature-section .section-heading p,
.formats-section .section-heading p,
.pricing-section .section-heading p,
.security-section .section-copy p,
.faq-section .section-heading p {
  color: #5d6b82;
}

.tool-section .eyebrow,
.preview-section .eyebrow,
.flow-section .eyebrow,
.feature-section .eyebrow,
.formats-section .eyebrow,
.pricing-section .eyebrow,
.security-section .eyebrow,
.faq-section .eyebrow {
  color: #4596f2;
}

.upload-panel,
.estimate-panel,
.preview-tool,
.plan-card,
.format-group,
.feature-card,
.security-list article,
.faq-list details,
.process-card,
.mini-estimator {
  color: #111827;
  background: #ffffff;
  border: 1px solid #e4e8f0;
  box-shadow: 0 24px 60px rgba(16, 35, 74, 0.08);
  backdrop-filter: none;
}

.upload-panel,
.estimate-panel {
  box-shadow: 0 24px 60px rgba(16, 35, 74, 0.1);
}

.step-label,
.support-note,
.metric span,
.progress-step,
.settings-grid label,
.mini-estimator label,
.plan-name {
  color: #65748b;
}

.support-note {
  color: #1f7edb;
  background: #eaf4ff;
  border-color: #cfe7ff;
}

.drop-zone {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(235, 248, 255, 0.92)),
    #f6fbff;
  border-color: #9dcfff;
}

.drop-zone strong,
.empty-state strong,
.metric strong {
  color: #111827;
}

.drop-zone span,
.empty-state,
.file-main span,
.file-chip,
.file-pages,
.check-option,
.progress-step p,
.recommendation,
.process-card p,
.feature-card p,
.format-group p,
.plan-card p,
.security-list p,
.faq-list p {
  color: #5d6b82;
}

.empty-state,
.file-row,
.metric,
.check-option {
  background: #f8fafc;
  border-color: #e4e8f0;
}

.file-chip,
.file-pages {
  background: #eaf4ff;
  color: #1f7edb;
}

select {
  color: #111827;
  background: #ffffff;
  border-color: #d8e2ee;
}

.recommendation {
  color: #244466;
  background: #eef7ff;
  border-color: #cfe7ff;
}

.progress-step span {
  color: #65748b;
  background: #eef2f7;
}

.progress-step.active {
  color: #1f7edb;
}

.progress-step.active span {
  color: #ffffff;
  background: #4596f2;
}

.tabs {
  background: #edf2f8;
}

.tab {
  color: #607088;
}

.tab.active {
  color: #ffffff;
  background: #4596f2;
}

.process-lane::before {
  background: linear-gradient(90deg, transparent, #4596f2, #8cc8ff, transparent);
}

.process-card span,
.feature-code,
.mini-estimator strong {
  color: #1f7edb;
}

.feature-code,
.feature-card:first-child .feature-code,
.feature-card:last-child .feature-code {
  background: #eaf4ff;
}

.feature-card:first-child,
.feature-card:last-child,
.format-group.strong,
.format-group.experimental {
  color: #111827;
  background: #ffffff;
  border-color: #e4e8f0;
}

.feature-card:first-child h3,
.feature-card:last-child h3,
.format-group.experimental h3 {
  color: #111827;
}

.feature-card:first-child p,
.feature-card:last-child p,
.format-group.strong p,
.format-group.experimental p {
  color: #5d6b82;
}

.feature-card:hover,
.format-group:hover,
.plan-card:hover,
.security-list article:hover,
.process-card:hover {
  border-color: #9dcfff;
  box-shadow: 0 28px 70px rgba(31, 126, 219, 0.14);
}

.plan-card.featured {
  color: #ffffff;
  background: #172a6e;
  border-color: #172a6e;
}

.plan-card.featured strong {
  color: #ffffff;
}

.plan-badge {
  background: #4596f2;
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 18% 20%, rgba(69, 150, 242, 0.18), transparent 34%),
    #050816;
}

@media (max-width: 980px) {
  .site-header {
    width: min(100% - 28px, 1180px);
  }

  .main-nav {
    display: none;
  }

  .hero-copy h1 {
    font-size: 48px;
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 16px;
  }

  .header-actions .text-link {
    display: none;
  }

  .brand strong {
    font-size: 18px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-card-cluster {
    width: 100%;
  }
}

.typed-text {
  display: inline-block;
  color: #7fc3ff;
  text-shadow: 0 0 26px rgba(85, 168, 255, 0.5);
}

.typing-caret {
  display: inline-block;
  width: 3px;
  height: 0.82em;
  margin-left: 8px;
  background: #7fc3ff;
  vertical-align: -0.08em;
  animation: caretBlink 850ms steps(1) infinite;
}

@keyframes caretBlink {
  0%,
  48% {
    opacity: 1;
  }
  49%,
  100% {
    opacity: 0;
  }
}

.hero-visual {
  pointer-events: none;
}

.pricing-policy {
  display: grid;
  width: min(420px, 100%);
  gap: 8px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e4e8f0;
  border-left: 4px solid #4596f2;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(16, 35, 74, 0.08);
}

.pricing-policy span,
.billing-grid span {
  color: #1f7edb;
  font-size: 13px;
  font-weight: 600;
}

.pricing-policy strong {
  color: #111827;
  font-size: 22px;
  line-height: 1.25;
}

.pricing-policy p {
  margin: 0;
  color: #5d6b82;
}

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

.billing-grid article {
  display: grid;
  min-height: 170px;
  gap: 10px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e4e8f0;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(16, 35, 74, 0.06);
}

.billing-grid strong {
  color: #111827;
  font-size: 24px;
  line-height: 1.2;
}

.billing-grid p {
  margin: 0;
  color: #5d6b82;
}

@media (max-width: 980px) {
  .billing-grid {
    grid-template-columns: 1fr;
  }
}

/* Premium header pass */
.site-header {
  top: 24px;
  display: grid;
  grid-template-columns: minmax(210px, 0.82fr) auto minmax(210px, 0.82fr);
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 9px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(12, 25, 56, 0.78), rgba(4, 9, 24, 0.68)),
    rgba(7, 13, 31, 0.74);
  border: 1px solid rgba(152, 210, 255, 0.24);
  border-radius: 22px;
  box-shadow:
    0 28px 82px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.14) inset;
  backdrop-filter: blur(22px) saturate(1.35);
  isolation: isolate;
}

.site-header::before {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(117, 196, 255, 0.28), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(82, 145, 255, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 52%);
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  pointer-events: none;
}

.brand,
.main-nav,
.header-actions {
  z-index: 1;
}

.brand {
  justify-self: start;
  width: max-content;
  min-width: 0;
  max-width: 100%;
  height: 56px;
  gap: 12px;
  padding: 0 14px 0 9px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 16px 36px rgba(3, 7, 18, 0.16);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.brand:hover {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(123, 197, 255, 0.28);
  transform: translateY(-1px);
}

.brand-mark {
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 13px;
  box-shadow:
    0 14px 32px rgba(69, 150, 242, 0.36),
    0 1px 0 rgba(255, 255, 255, 0.42) inset;
  overflow: hidden;
  font-weight: 800;
}

.brand strong {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand small {
  color: rgba(222, 239, 255, 0.72);
  font-size: 11px;
  font-weight: 500;
}

.main-nav {
  justify-self: center;
  min-height: 56px;
  gap: 3px;
  padding: 6px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow:
    0 18px 40px rgba(2, 7, 20, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.main-nav a {
  position: relative;
  min-height: 44px;
  padding: 0 18px;
  overflow: hidden;
  color: rgba(232, 244, 255, 0.8);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 8px;
  left: 18px;
  height: 2px;
  background: linear-gradient(90deg, #89ddff, #4596f2);
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.5);
  transform-origin: center;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.main-nav a:hover {
  color: #ffffff;
  background: rgba(85, 168, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(116, 190, 255, 0.14) inset;
  transform: translateY(-1px);
}

.main-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  justify-self: end;
  width: max-content;
  gap: 10px;
}

.header-actions .text-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 16px;
  color: rgba(232, 244, 255, 0.82);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  font-weight: 700;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.header-actions .text-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(123, 197, 255, 0.28);
  transform: translateY(-1px);
}

.header-actions .btn-primary {
  min-height: 52px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #73c8ff 0%, #4596f2 48%, #1f73df 100%);
  border: 1px solid rgba(179, 226, 255, 0.42);
  border-radius: 15px;
  box-shadow:
    0 18px 38px rgba(49, 137, 234, 0.36),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
  font-weight: 800;
}

.header-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 46px rgba(49, 137, 234, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.42) inset;
}

@media (max-width: 980px) {
  .site-header {
    top: 18px;
    grid-template-columns: auto auto;
    justify-content: space-between;
    width: min(100% - 28px, 1180px);
    min-height: 70px;
    padding: 8px;
    border-radius: 18px;
  }

  .site-header::after {
    border-radius: 16px;
  }

  .main-nav {
    display: none;
  }

  .brand {
    height: 52px;
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 12px;
    grid-template-columns: auto auto;
    justify-content: space-between;
    width: min(100% - 22px, 1180px);
    min-height: 60px;
    padding: 7px;
    border-radius: 16px;
  }

  .site-header::after {
    border-radius: 14px;
  }

  .brand {
    height: 48px;
    padding: 0 10px 0 7px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small,
  .header-actions .text-link {
    display: none;
  }

  .header-actions .btn-primary {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 13px;
  }
}

/* Document translation logo */
.brand-mark,
.footer-logo-mark {
  flex: 0 0 auto;
}

.brand-mark svg,
.footer-logo-mark svg,
.brand-mark img,
.footer-logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  overflow: visible;
}

.site-header .brand strong {
  font-size: 21px;
}

.site-header .brand small {
  letter-spacing: 0.04em;
  text-transform: none;
}

@media (max-width: 680px) {
  .site-header .brand {
    height: 44px;
  }

  .site-header .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-mark svg,
  .footer-logo-mark svg,
  .brand-mark img,
  .footer-logo-mark img {
    width: 100%;
    height: 100%;
  }

  .site-header .brand strong {
    font-size: 16px;
  }
}

/* Footer redesign */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 96px 0 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 18%, rgba(91, 178, 255, 0.3), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(29, 112, 229, 0.28), transparent 28%),
    linear-gradient(135deg, #0a1740 0%, #050817 52%, #07112f 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(130, 201, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 201, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 86%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -140px;
  left: 50%;
  width: min(980px, 86vw);
  height: 320px;
  border: 1px solid rgba(122, 199, 255, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 70px rgba(69, 150, 242, 0.16),
    0 0 140px rgba(69, 150, 242, 0.08) inset;
  transform: translateX(-50%) rotate(-6deg);
  pointer-events: none;
}

.footer-orbit {
  position: absolute;
  right: -120px;
  bottom: 28px;
  width: 360px;
  height: 360px;
  background:
    radial-gradient(circle at center, rgba(89, 174, 255, 0.18), transparent 58%),
    conic-gradient(from 120deg, transparent 0deg, rgba(93, 182, 255, 0.32) 58deg, transparent 122deg, rgba(93, 182, 255, 0.18) 220deg, transparent 300deg);
  border-radius: 50%;
  filter: blur(0.2px);
  opacity: 0.72;
  pointer-events: none;
}

.footer-grid,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) minmax(140px, 0.55fr) minmax(140px, 0.55fr) minmax(260px, 0.8fr);
  gap: 34px;
  align-items: start;
}

.footer-brand {
  display: grid;
  max-width: 470px;
  gap: 22px;
}

.footer-logo {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
}

.footer-logo-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #ffffff;
  background: #ffffff;
  border: 0;
  border-radius: 15px;
  box-shadow:
    0 18px 42px rgba(69, 150, 242, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.18);
  overflow: hidden;
  font-weight: 800;
}

.footer-logo strong,
.footer-logo small {
  display: block;
}

.footer-logo strong {
  font-size: 24px;
  line-height: 1.15;
}

.footer-logo small {
  color: rgba(223, 239, 255, 0.68);
  font-size: 12px;
}

.footer-brand p,
.footer-panel p {
  margin: 0;
  color: rgba(223, 239, 255, 0.72);
  line-height: 1.8;
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-cta .btn-primary {
  min-height: 50px;
  padding: 0 24px;
  background: linear-gradient(135deg, #73c8ff, #4596f2 52%, #1f73df);
  border: 1px solid rgba(190, 229, 255, 0.4);
  border-radius: 14px;
  box-shadow: 0 20px 46px rgba(49, 137, 234, 0.28);
}

.footer-cta a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 18px;
  color: rgba(232, 244, 255, 0.86);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  font-weight: 700;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.footer-cta a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(126, 201, 255, 0.34);
  transform: translateY(-1px);
}

.footer-column {
  display: grid;
  gap: 12px;
}

.footer-column h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 16px;
}

.footer-column a {
  width: max-content;
  max-width: 100%;
  color: rgba(223, 239, 255, 0.62);
  font-size: 14px;
  line-height: 1.6;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.footer-column a:hover {
  color: #83d3ff;
  transform: translateX(3px);
}

.footer-panel {
  display: grid;
  gap: 12px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(76, 159, 255, 0.18), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(150, 216, 255, 0.2);
  border-radius: 18px;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  backdrop-filter: blur(18px);
}

.footer-panel > span {
  color: #83d3ff;
  font-size: 13px;
  font-weight: 800;
}

.footer-panel strong {
  font-size: 26px;
  line-height: 1.2;
}

.footer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.footer-stats span {
  padding: 7px 10px;
  color: rgba(236, 247, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 58px;
  padding-top: 24px;
  color: rgba(223, 239, 255, 0.58);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

@media (max-width: 980px) {
  .site-footer {
    padding-top: 76px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand,
  .footer-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .site-footer {
    padding: 64px 0 28px;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    margin-top: 40px;
  }
}

/* Final header refinement: lighter brand, focused nav island, cleaner CTA. */
.site-header {
  top: 28px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 22px;
  width: min(1180px, calc(100% - 56px));
  min-height: 64px;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  isolation: auto;
}

.site-header::before,
.site-header::after {
  display: none;
}

.site-header .brand,
.site-header .main-nav,
.site-header .header-actions {
  position: relative;
  z-index: 1;
}

.site-header .brand {
  display: inline-flex;
  justify-self: start;
  width: max-content;
  height: 60px;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: #ffffff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.site-header .brand:hover {
  background: transparent;
  border-color: transparent;
  opacity: 0.92;
  transform: translateY(-1px);
}

.site-header .brand-mark {
  width: 46px;
  height: 46px;
  color: #ffffff;
  background: transparent;
  border: 0;
  border-radius: 15px;
  box-shadow:
    0 18px 38px rgba(43, 132, 236, 0.34),
    0 0 0 1px rgba(218, 241, 255, 0.18);
  font-size: 18px;
  font-weight: 900;
}

.site-header .brand strong {
  color: #ffffff;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
}

.site-header .brand small {
  margin-top: 2px;
  color: rgba(223, 239, 255, 0.68);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header .main-nav {
  justify-self: center;
  min-height: 62px;
  gap: 2px;
  padding: 7px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(18, 30, 58, 0.94), rgba(3, 8, 23, 0.94)),
    rgba(3, 8, 23, 0.94);
  border: 1px solid rgba(166, 214, 255, 0.16);
  border-radius: 18px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
  backdrop-filter: blur(16px);
}

.site-header .main-nav a {
  position: relative;
  min-height: 46px;
  align-items: center;
  padding: 0 20px;
  overflow: hidden;
  color: rgba(230, 241, 255, 0.74);
  border-radius: 13px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.02em;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-header .main-nav a::after {
  right: 20px;
  bottom: 9px;
  left: 20px;
  height: 2px;
  background: linear-gradient(90deg, #86dcff, #4596f2);
}

.site-header .main-nav a:hover {
  color: #ffffff;
  background: rgba(85, 168, 255, 0.13);
  box-shadow: none;
  transform: translateY(-1px);
}

.site-header .header-actions {
  justify-self: end;
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
}

.site-header .header-actions .text-link {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  padding: 0 20px;
  color: rgba(245, 250, 255, 0.88);
  background: rgba(5, 12, 31, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  box-shadow: none;
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 750;
}

.site-header .header-actions .text-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(126, 201, 255, 0.56);
  transform: translateY(-1px);
}

.site-header .header-actions .btn-primary {
  min-height: 52px;
  padding: 0 26px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent 42%),
    linear-gradient(135deg, #63c6ff 0%, #4596f2 54%, #216fdc 100%);
  border: 1px solid rgba(195, 233, 255, 0.52);
  border-radius: 14px;
  box-shadow:
    0 18px 42px rgba(39, 128, 231, 0.36),
    0 1px 0 rgba(255, 255, 255, 0.45) inset;
  font-size: 14px;
  font-weight: 850;
}

.site-header .header-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 52px rgba(39, 128, 231, 0.44),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

@media (max-width: 980px) {
  .site-header {
    top: 18px;
    grid-template-columns: auto auto;
    justify-content: space-between;
    width: min(100% - 32px, 1180px);
    min-height: 62px;
    padding: 8px;
    background: rgba(4, 10, 28, 0.58);
    border: 1px solid rgba(158, 216, 255, 0.18);
    border-radius: 16px;
    box-shadow:
      0 24px 58px rgba(0, 0, 0, 0.26),
      0 1px 0 rgba(255, 255, 255, 0.1) inset;
    backdrop-filter: blur(18px);
  }

  .site-header .main-nav {
    display: none;
  }

  .site-header .brand {
    height: 46px;
  }

  .site-header .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .site-header .brand strong {
    font-size: 18px;
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 12px;
    width: min(100% - 22px, 1180px);
    min-height: 56px;
    padding: 7px;
    border-radius: 15px;
  }

  .site-header .brand {
    gap: 9px;
    height: 42px;
  }

  .site-header .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 16px;
  }

  .site-header .brand strong {
    font-size: 17px;
  }

  .site-header .brand small,
  .site-header .header-actions .text-link {
    display: none;
  }

  .site-header .header-actions .btn-primary {
    min-height: 42px;
    padding: 0 15px;
    border-radius: 12px;
    font-size: 13px;
  }
}

/* Clickable / active file rows when a job has produced downloadable output. */
.file-row--ready {
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.file-row--ready:hover {
  border-color: #9dcfff;
  transform: translateY(-1px);
}

.file-row.is-active {
  border-color: #4596f2;
  box-shadow: 0 0 0 1px rgba(69, 150, 242, 0.35) inset;
  background: #eef7ff;
}

/* The later (unscoped) hero redesign rule re-introduced two columns and
   shadowed the earlier max-width:980px collapse. Re-assert the stacked hero
   on narrow viewports so the copy is not crushed beside the product mockup. */
@media (max-width: 980px) {
  .hero-stage {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    grid-column: auto;
  }

  .hero-visual {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ===== P2: auth area, account chip, modals (login / pay) ===== */
.auth-area {
  display: inline-flex;
  align-items: center;
}

/* Logged-out: a button matching the header buttons (42px tall, 4px radius). */
.auth-area .login-link {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  padding: 0 22px;
  color: rgba(245, 250, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.auth-area .login-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(126, 201, 255, 0.6);
}

/* Logged-in: avatar + hover/click dropdown. */
.account {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 52px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4596f2, #00b8d9);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.avatar:hover {
  box-shadow: 0 6px 18px rgba(69, 150, 242, 0.4);
}

.avatar--lg {
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: default;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(8, 8, 8, 0.08);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(8, 12, 31, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  z-index: 30;
}

/* Invisible bridge so moving from the avatar into the menu keeps :hover. */
.account-dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.account:hover .account-dropdown,
.account.open .account-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-dropdown__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-dropdown__id {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-dropdown__id b {
  color: #080808;
  font-size: 14px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-dropdown__id .quota {
  color: #1f7ae0;
  font-size: 13px;
  font-weight: 600;
}

.account-dropdown__divider {
  height: 1px;
  margin: 12px 0;
  background: rgba(8, 8, 8, 0.08);
}

.account-dropdown__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  border-radius: 8px;
  color: #d83a3a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease;
}

.account-dropdown__item:hover {
  background: rgba(216, 58, 58, 0.08);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 9, 24, 0.62);
  backdrop-filter: blur(4px);
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(420px, 100%);
  padding: 28px;
  color: #111827;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 40px 90px rgba(4, 12, 35, 0.4);
}

.modal h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.modal-sub {
  margin: 0 0 18px;
  color: #5d6b82;
  font-size: 14px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  color: #8a97aa;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: #111827;
  background: #f1f4f8;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

.auth-form input {
  min-height: 44px;
  padding: 0 14px;
  color: #111827;
  background: #f8fafc;
  border: 1px solid #d8e2ee;
  border-radius: 10px;
  font-size: 15px;
}

.auth-form input:focus {
  outline: none;
  background: #fff;
  border-color: #4596f2;
}

.auth-error {
  padding: 10px 12px;
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  font-size: 13px;
}

.auth-error[hidden] {
  display: none;
}

.auth-toggle {
  margin: 16px 0 0;
  color: #5d6b82;
  font-size: 14px;
  text-align: center;
}

.auth-toggle a {
  color: #1f7edb;
  font-weight: 600;
}

.pay-qr {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.pay-qr img {
  width: 220px;
  height: 220px;
  border: 1px solid #e4e8f0;
  border-radius: 12px;
}

.pay-status {
  margin-top: 10px;
  color: #5d6b82;
  font-size: 14px;
  text-align: center;
}

.pay-status.paid {
  color: #0f7a4e;
  font-weight: 700;
}

@media (max-width: 680px) {
  .auth-area .login-link {
    padding: 0 12px;
    font-size: 13px;
  }

  .avatar {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
}

/* ===== P2.5: free-teaser paywall (unlock bar + locked preview mask) ===== */
.unlock-bar {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(20, 110, 245, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 110, 245, 0.06), rgba(20, 110, 245, 0.02));
}

.unlock-bar[hidden] {
  display: none;
}

.unlock-line {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.locked-mask {
  position: relative;
  margin-top: -56px;
  padding-top: 56px;
}

.locked-mask::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--surface));
  pointer-events: none;
}

.locked-mask__body {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  padding: 24px 18px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid rgba(20, 110, 245, 0.18);
}

.locked-mask__body strong {
  font-size: 16px;
  color: var(--ink);
}

.locked-mask__body span {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 36ch;
}

.locked-mask__body .btn {
  width: auto;
  padding: 0 22px;
}

/* ===== Full-screen 原文/译文 comparison preview (PDF / images) ===== */
body.compare-open {
  overflow: hidden;
}

.compare-stage {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: #0a1326;
}

.compare-stage[hidden] {
  display: none;
}

.compare-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(3, 7, 18, 0.92);
  border-bottom: 1px solid rgba(105, 180, 255, 0.18);
  color: #eaf4ff;
}

.compare-bar strong {
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-bar__actions {
  display: flex;
  gap: 10px;
  flex: none;
}

.compare-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 14px;
  min-height: 0;
}

.compare-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.compare-pane__label {
  flex: none;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #1f3a63;
  background: #eef4fc;
  border-bottom: 1px solid #dbe6f4;
}

.compare-pane__viewport {
  position: relative;
  flex: 1;
  min-height: 0;
}

.compare-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.compare-pane__viewport .compare-frame {
  position: absolute;
  inset: 0;
}

.compare-lock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 36%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 30px 24px 24px;
  background: linear-gradient(
    180deg,
    rgba(244, 247, 251, 0) 0%,
    rgba(244, 247, 251, 0.9) 50%,
    rgba(244, 247, 251, 0.99) 100%
  );
}

.compare-lock[hidden] {
  display: none;
}

.compare-lock__card {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid rgba(20, 110, 245, 0.18);
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(8, 12, 31, 0.2);
}

.compare-lock__card strong {
  font-size: 17px;
  color: #080808;
}

.compare-lock__card span {
  font-size: 13px;
  line-height: 1.6;
  color: #5b6573;
  max-width: 34ch;
}

@media (max-width: 860px) {
  .compare-body {
    grid-template-columns: 1fr;
  }
}

.compare-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #0a1326;
  color: #cfe2ff;
  font-size: 14px;
}

.compare-loading[hidden] {
  display: none;
}

.compare-loading__spinner {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(126, 201, 255, 0.22);
  border-top-color: #4596f2;
  border-radius: 50%;
  animation: compare-spin 0.9s linear infinite;
}

.compare-loading__bar {
  width: 220px;
  height: 6px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(126, 201, 255, 0.16);
}

.compare-loading__bar::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #4596f2, #00b8d9);
  animation: compare-slide 1.1s ease-in-out infinite;
}

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

@keyframes compare-slide {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

/* ===== P4: wallet UI (balance bar, recharge + phone-verify modals) ===== */
.wallet-bar {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(18, 216, 118, 0.3);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 216, 118, 0.08), rgba(18, 216, 118, 0.02));
}

.wallet-bar[hidden] {
  display: none;
}

.wallet-bar.is-low {
  border-color: rgba(237, 82, 73, 0.32);
  background: linear-gradient(180deg, rgba(237, 82, 73, 0.08), rgba(237, 82, 73, 0.02));
}

.wallet-bar__main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.wallet-bar__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.wallet-bar__balance {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.wallet-bar__note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.wallet-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-sm {
  width: auto;
  min-height: 32px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 8px;
}

.account-dropdown__badge {
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
  color: #0f7a4e;
  background: var(--green-soft);
  border-radius: 999px;
}

.account-dropdown__phone {
  font-size: 12px;
  color: var(--muted);
}

/* wallet actions in the account menu are not destructive — override the red */
.account-dropdown__item[data-wallet-recharge],
.account-dropdown__item[data-wallet-phone] {
  color: #146ef5;
}

.account-dropdown__item[data-wallet-recharge]:hover,
.account-dropdown__item[data-wallet-phone]:hover {
  background: rgba(20, 110, 245, 0.08);
}

.account-dropdown__item[data-wallet-refund] {
  color: var(--muted);
}

.account-dropdown__item[data-wallet-refund]:hover {
  background: rgba(8, 8, 8, 0.05);
}

.field-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.field-row input {
  flex: 1;
  min-width: 0;
}

.field-row .btn {
  width: auto;
  padding: 0 14px;
  font-size: 13px;
  white-space: nowrap;
}

.auth-hint {
  padding: 9px 12px;
  font-size: 12.5px;
  color: #0f5ab0;
  background: #eef5ff;
  border: 1px solid #cfe0fb;
  border-radius: 10px;
}

.auth-hint[hidden] {
  display: none;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.amount-option {
  min-height: 44px;
  color: #111827;
  background: #f8fafc;
  border: 1px solid #d8e2ee;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.amount-option:hover {
  border-color: #146ef5;
}

.amount-option.is-selected {
  color: #0f5ab0;
  background: rgba(20, 110, 245, 0.1);
  border-color: #146ef5;
  box-shadow: 0 0 0 1px #146ef5 inset;
}

.amount-custom {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

.amount-custom input {
  min-height: 44px;
  padding: 0 14px;
  color: #111827;
  background: #f8fafc;
  border: 1px solid #d8e2ee;
  border-radius: 10px;
  font-size: 15px;
}

/* ===== Login tabs (手机号登录 / 邮箱登录) ===== */
.auth-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
  padding: 4px;
  background: #f1f4f8;
  border-radius: 10px;
}

.auth-tab {
  flex: 1;
  min-height: 36px;
  color: #5d6b82;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.auth-tab.is-active {
  color: #111827;
  background: #fff;
  box-shadow: 0 1px 3px rgba(8, 12, 35, 0.12);
}

.auth-fineprint {
  margin: 10px 0 0;
  color: #8a97aa;
  font-size: 12px;
  text-align: center;
}

/* `hidden` alone loses to .auth-form's display:grid — force it for pane switching */
.auth-form[hidden] {
  display: none;
}

.auth-tabs[hidden] {
  display: none;
}

.auth-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 10px;
}

.auth-forgot {
  margin-left: auto;
}

/* ===== Third-party scan-code login (WeChat / Alipay) ===== */
.oauth-row {
  margin-top: 18px;
}

.oauth-row[hidden] {
  display: none;
}

.oauth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8a97aa;
  font-size: 12px;
}

.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e4e8f0;
}

.oauth-buttons {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.oauth-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  color: #374151;
  background: #fff;
  border: 1px solid #d8e2ee;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.oauth-btn:hover {
  border-color: #b9c8da;
  background: #f8fafc;
}

.oauth-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
}

.oauth-btn--wechat .oauth-ico {
  background: #07c160;
}

.oauth-btn--alipay .oauth-ico {
  background: #1677ff;
}

/* ===== Recharge payment-channel picker (WeChat / Alipay) ===== */
.pay-channels {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.pay-channel {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  color: #374151;
  background: #fff;
  border: 1px solid #d8e2ee;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.pay-channel.is-selected {
  border-color: #146ef5;
  box-shadow: 0 0 0 1px #146ef5 inset;
}

.pay-channel__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
}

.pay-channel__ico--wechat {
  background: #07c160;
}

.pay-channel__ico--alipay {
  background: #1677ff;
}
