:root {
  --ink: #171716;
  --paper: #f5f1e8;
  --white: #fffefa;
  --blue: #4867f2;
  --blue-dark: #263fb5;
  --yellow: #f6c84c;
  --coral: #ff806d;
  --purple: #bba9ff;
  --green: #c8ea80;
  --line: #171716;
  --muted: #6d6a62;
  --shadow: 5px 5px 0 var(--ink);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

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

.site-header {
  width: min(1260px, calc(100% - 40px));
  height: 82px;
  margin: 16px auto 0;
  padding: 0 24px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 254, 250, 0.88);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 12px;
  z-index: 9;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--blue);
  color: white;
  font-family: Georgia, serif;
  font-size: 27px;
  font-style: italic;
  box-shadow: 3px 3px 0 var(--ink);
}

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

.brand strong {
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
}

nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
  font-weight: 600;
}

nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--blue);
  transition: right 180ms ease;
}

nav a:hover::after {
  right: 0;
}

.privacy-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #ecf5d8;
  font-size: 12px;
  font-weight: 700;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4d8b32;
  box-shadow: 0 0 0 4px rgba(77, 139, 50, 0.14);
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: 54px;
  padding: 82px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.eyebrow span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--yellow);
  font-weight: 700;
}

.hero h1 {
  margin: 24px 0 22px;
  font-size: clamp(48px, 5.6vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.065em;
  font-weight: 900;
}

h1 em,
h2 em {
  color: var(--blue);
  font-style: normal;
}

.hero-lead {
  max-width: 570px;
  margin: 0;
  color: #4f4d47;
  font-size: 17px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 174px;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--ink);
  color: white;
  box-shadow: 4px 4px 0 var(--blue);
  font-weight: 700;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.primary-cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--blue);
}

.primary-cta span {
  color: var(--yellow);
  font-size: 20px;
}

.trust-note {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.trust-note strong {
  color: var(--ink);
  font-size: 12px;
}

.avatars {
  display: flex;
}

.avatars i {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin-left: -7px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--purple);
  color: var(--ink);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.avatars i:first-child {
  margin-left: 0;
  background: var(--yellow);
}

.avatars i:last-child {
  background: var(--coral);
}

.hero-visual {
  height: 500px;
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 30px 20px 36px 44px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--purple);
  transform: rotate(-7deg);
}

.orbit {
  position: absolute;
  z-index: 1;
  border: 1.5px dashed rgba(23, 23, 22, 0.5);
  border-radius: 50%;
}

.orbit-one {
  inset: 52px 40px 54px 70px;
}

.orbit-two {
  inset: 105px -2px 108px 22px;
  transform: rotate(24deg);
}

.formula-ticket {
  position: absolute;
  z-index: 2;
  width: min(410px, 82%);
  padding: 22px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.formula-ticket::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 44px;
  border-left: 1px dashed rgba(23, 23, 22, 0.25);
}

.ticket-source {
  top: 100px;
  left: 5px;
  transform: rotate(-5deg);
}

.ticket-target {
  right: 0;
  bottom: 92px;
  background: var(--yellow);
  transform: rotate(4deg);
}

.ticket-label {
  display: block;
  margin: 0 0 19px 42px;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.formula-ticket code {
  display: block;
  margin-left: 42px;
  overflow-wrap: anywhere;
  font-family: "DM Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
}

.passport-stamp {
  position: absolute;
  z-index: 4;
  top: 192px;
  right: 46px;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 3px double var(--blue-dark);
  border-radius: 50%;
  color: var(--blue-dark);
  transform: rotate(13deg);
  background: rgba(245, 241, 232, 0.82);
  font-family: "DM Mono", monospace;
}

.passport-stamp span,
.passport-stamp small {
  font-size: 9px;
  letter-spacing: 0.15em;
}

.passport-stamp strong {
  font-size: 30px;
  line-height: 0.6;
}

.route-line {
  position: absolute;
  z-index: 3;
  left: 62px;
  bottom: 90px;
  color: var(--blue-dark);
  font-family: "DM Mono", monospace;
  font-size: 26px;
  transform: rotate(11deg);
}

.workspace-wrap {
  padding: 92px 0 108px;
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  background: var(--blue);
}

.workspace-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 34px;
  color: white;
}

.section-index,
.card-kicker {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.workspace-head h2,
.explain h2,
.coverage h2,
.privacy-card h2 {
  margin: 9px 0 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.workspace-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.7;
  text-align: right;
}

.workspace {
  display: grid;
  grid-template-columns: 0.76fr 1.15fr 1.15fr;
  gap: 18px;
}

.card {
  min-width: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 6px 6px 0 rgba(23, 23, 22, 0.9);
}

.route-panel {
  padding: 24px;
  background: #ece6d9;
}

.field-label {
  display: block;
  margin: 25px 0 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.select-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.select-wrap:focus-within {
  outline: 3px solid rgba(72, 103, 242, 0.25);
}

.target-select {
  background: var(--yellow);
}

.version-select {
  background: #e7e0ff;
}

.version-flag {
  background: var(--blue);
  color: white;
}

.version-note {
  margin: 8px 3px 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.select-wrap select {
  width: 100%;
  padding: 6px 0;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.flag {
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--purple);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

.swap-button {
  width: 100%;
  margin: 14px 0 -10px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  justify-content: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
}

.swap-button b {
  color: var(--blue);
  font-size: 15px;
}

.separator-box {
  margin-top: 26px;
  padding-top: 2px;
  border-top: 1px dashed rgba(23, 23, 22, 0.35);
}

.segment-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.segment-control label {
  cursor: pointer;
}

.segment-control input {
  position: absolute;
  opacity: 0;
}

.segment-control span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid rgba(23, 23, 22, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  font-weight: 600;
}

.segment-control input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.local-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 12px;
  border-radius: 10px;
  background: #dfeccb;
}

.local-note > span {
  color: #477438;
  font-size: 18px;
}

.local-note p {
  margin: 0;
  color: #55704a;
  font-size: 9px;
  line-height: 1.55;
}

.local-note strong {
  color: #304c27;
  font-size: 10px;
}

.editor-panel,
.result-panel {
  min-height: 510px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.result-panel {
  background: var(--yellow);
}

.editor-toolbar,
.editor-toolbar > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-dot,
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eeeeea;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.status-dot i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #63a64b;
}

.text-button,
.copy-button,
.verify-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.copy-button {
  padding: 8px 11px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.verify-button {
  padding: 8px 10px;
  border: 1px solid rgba(23, 23, 22, 0.45);
  border-radius: 8px;
  color: var(--ink);
}

.verify-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.5);
}

.verify-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.copy-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

textarea {
  width: 100%;
  flex: 1;
  min-height: 245px;
  margin-top: 18px;
  padding: 20px;
  resize: none;
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  outline: 0;
  background: #f7f5ef;
  color: var(--ink);
  font-family: "DM Mono", monospace;
  font-size: 14px;
  line-height: 1.8;
}

textarea:focus {
  box-shadow: 0 0 0 4px rgba(72, 103, 242, 0.18);
}

textarea::placeholder {
  color: #9c9990;
}

.examples {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.examples > span {
  color: var(--muted);
  font-size: 9px;
}

.examples button {
  padding: 5px 8px;
  border: 1px solid #d7d2c8;
  border-radius: 999px;
  background: white;
  cursor: pointer;
  color: #5d5a53;
  font-size: 9px;
}

.examples button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.translate-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 17px;
  padding: 15px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 11px;
  background: var(--blue);
  color: white;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.translate-button b {
  color: var(--yellow);
  font-size: 20px;
}

.translate-button:hover:not(:disabled) {
  background: var(--blue-dark);
}

.translate-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.8);
  opacity: 0.48;
}

.result-display {
  flex: 1;
  min-height: 235px;
  margin-top: 18px;
  padding: 20px;
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  background: var(--ink);
  color: white;
  overflow: auto;
}

.result-display code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: "DM Mono", monospace;
  font-size: 14px;
  line-height: 1.8;
}

.result-display.empty {
  display: grid;
  place-items: center;
  background: rgba(255, 254, 250, 0.55);
  color: var(--muted);
}

.result-display.empty code {
  display: none;
}

.empty-state {
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin: 0 auto 12px;
  border: 1px dashed var(--muted);
  border-radius: 50%;
  font-size: 18px;
}

.empty-state strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.empty-state p {
  margin: 6px 0 0;
  font-size: 9px;
}

.diagnostics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.metric {
  padding: 10px;
  border: 1px solid rgba(23, 23, 22, 0.28);
  border-radius: 9px;
  background: rgba(255, 254, 250, 0.52);
}

.metric span,
.metric small {
  display: block;
}

.metric span {
  font-family: "DM Mono", monospace;
  font-size: 15px;
  font-weight: 700;
}

.metric small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 10px;
  color: #6c5721;
  font-size: 9px;
  line-height: 1.5;
}

.conversion-report {
  margin-top: 10px;
  border: 1px solid rgba(23, 23, 22, 0.28);
  border-radius: 9px;
  background: rgba(255, 254, 250, 0.48);
}

.conversion-report summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  cursor: pointer;
  list-style: none;
  font-size: 9px;
  font-weight: 700;
}

.conversion-report summary::-webkit-details-marker {
  display: none;
}

.conversion-report[open] summary span {
  transform: rotate(45deg);
}

.conversion-report summary span {
  font-size: 13px;
  transition: transform 150ms ease;
}

.report-content {
  padding: 0 11px 11px;
  border-top: 1px dashed rgba(23, 23, 22, 0.25);
}

.report-content > p {
  margin: 9px 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
}

.report-content ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-content li {
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.65);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  line-height: 1.45;
}

.report-content li.warning-row {
  background: rgba(255, 128, 109, 0.18);
  color: #7c281f;
}

.roundtrip-preview {
  margin-top: 8px;
  padding: 8px;
  border-radius: 7px;
  background: var(--ink);
  color: white;
}

.roundtrip-preview small,
.roundtrip-preview code {
  display: block;
}

.roundtrip-preview small {
  margin-bottom: 5px;
  color: #aaa79f;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.roundtrip-preview code {
  overflow-wrap: anywhere;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  line-height: 1.55;
}

.notice > span {
  display: grid;
  place-items: center;
  min-width: 15px;
  height: 15px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: serif;
  font-weight: 700;
}

.notice p {
  margin: 0;
}

.notice.warning {
  color: #9a3428;
}

.explain {
  padding: 116px 0;
}

.explain-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.explain-title > span {
  margin-top: 8px;
}

.explain h2 {
  width: min(720px, 72%);
  margin-top: 0;
  font-size: clamp(40px, 5vw, 62px);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 64px;
}

.steps-grid article {
  min-height: 286px;
  padding: 24px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  position: relative;
}

.steps-grid article > span {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 10px;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1.5px solid var(--line);
  border-radius: 17px;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: "DM Mono", monospace;
  font-size: 16px;
  font-weight: 700;
}

.step-icon.purple {
  background: var(--purple);
}

.step-icon.yellow {
  background: var(--yellow);
}

.step-icon.blue {
  background: var(--blue);
  color: white;
}

.steps-grid h3 {
  margin: 42px 0 12px;
  font-size: 18px;
}

.steps-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.coverage {
  padding: 105px 0;
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  background: var(--ink);
  color: white;
  overflow: hidden;
}

.coverage-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 80px;
}

.coverage h2 {
  font-size: clamp(38px, 4.5vw, 58px);
}

.coverage p {
  max-width: 480px;
  margin: 24px 0 0;
  color: #aaa79f;
  font-size: 13px;
  line-height: 1.9;
}

.language-cloud {
  min-height: 410px;
  position: relative;
}

.language-cloud span {
  position: absolute;
  display: inline-block;
  padding: 12px 16px;
  border: 1px solid white;
  border-radius: 11px;
  color: var(--ink);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 4px 4px 0 white;
}

.lg-one { top: 15px; left: 8%; background: var(--yellow); transform: rotate(-4deg); }
.lg-two { top: 15px; right: 10%; background: var(--purple); transform: rotate(5deg); }
.lg-three { top: 90px; left: 35%; background: var(--coral); transform: rotate(2deg); }
.lg-four { top: 155px; left: 2%; background: var(--green); transform: rotate(-5deg); }
.lg-five { top: 175px; right: 4%; background: var(--yellow); transform: rotate(4deg); }
.lg-six { top: 245px; left: 25%; background: var(--purple); transform: rotate(-2deg); }
.lg-seven { top: 300px; left: 0; background: var(--coral); transform: rotate(3deg); }
.lg-eight { top: 305px; right: 5%; background: var(--green); transform: rotate(-4deg); }
.lg-nine { top: 95px; right: -9%; background: var(--green); transform: rotate(7deg); }
.lg-ten { top: 222px; right: 28%; background: #94d6ff; transform: rotate(4deg); }
.lg-more { top: 355px; left: 37%; background: var(--yellow); transform: rotate(-1deg); }

.privacy-section {
  padding: 100px 0;
}

.privacy-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 40px;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  background: var(--green);
  box-shadow: var(--shadow);
}

.privacy-symbol {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-size: 43px;
}

.privacy-card h2 {
  font-size: 38px;
}

.privacy-card p {
  max-width: 630px;
  margin: 14px 0 0;
  color: #42522f;
  font-size: 12px;
  line-height: 1.8;
}

.privacy-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  font-weight: 700;
  line-height: 2.15;
}

.privacy-card li span {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 9px;
}

footer {
  border-top: 1.5px solid var(--line);
  background: var(--white);
}

.footer-inner {
  min-height: 150px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.notice-link {
  margin-left: 8px;
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-inner > a {
  font-size: 11px;
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  padding: 12px 18px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--ink);
  color: white;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 11px;
  font-weight: 700;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 0.7fr 1.3fr;
  }

  .result-panel {
    grid-column: 1 / -1;
    min-height: 430px;
  }

  .route-panel {
    grid-row: span 1;
  }

  .coverage-grid {
    gap: 30px;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 70px;
  }

  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .hero-visual {
    width: min(590px, 100%);
    margin: -24px auto 0;
  }

  .workspace-head,
  .explain-title {
    display: block;
  }

  .workspace-head p {
    margin-top: 16px;
    text-align: left;
  }

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

  .result-panel {
    grid-column: auto;
  }

  .explain h2 {
    width: 100%;
    margin-top: 16px;
  }

  .steps-grid,
  .coverage-grid {
    grid-template-columns: 1fr;
  }

  .privacy-card {
    grid-template-columns: auto 1fr;
  }

  .privacy-card ul {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-around;
  }
}

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

  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
    padding: 0 14px;
    position: relative;
    top: auto;
  }

  .privacy-pill {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
    gap: 30px;
    padding: 60px 0 58px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-visual {
    height: 390px;
  }

  .formula-ticket {
    width: 88%;
    padding: 17px;
  }

  .ticket-source {
    top: 70px;
  }

  .ticket-target {
    right: 7px;
    bottom: 60px;
  }

  .formula-ticket code {
    font-size: 10px;
  }

  .passport-stamp {
    top: 146px;
    right: 9px;
    width: 78px;
    height: 78px;
  }

  .workspace-wrap,
  .explain,
  .coverage,
  .privacy-section {
    padding-block: 70px;
  }

  .workspace-head h2,
  .explain h2,
  .coverage h2 {
    font-size: 36px;
  }

  .route-panel,
  .editor-panel,
  .result-panel {
    padding: 18px;
  }

  .steps-grid {
    margin-top: 36px;
  }

  .coverage-grid {
    gap: 35px;
  }

  .language-cloud {
    min-height: 390px;
  }

  .language-cloud span {
    font-size: 9px;
  }

  .privacy-card {
    grid-template-columns: 1fr;
    padding: 25px;
  }

  .privacy-symbol {
    width: 68px;
    height: 68px;
    font-size: 30px;
  }

  .privacy-card h2 {
    font-size: 31px;
  }

  .privacy-card ul {
    grid-column: auto;
    display: block;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 35px;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
