:root {
  --ink: #0b1220;
  --body: #3b4352;
  --muted: #5f6878;
  --navy: #0a1730;
  --navy-2: #102a4c;
  --paper: #f3f0e8;
  --surface: #ffffff;
  --cream: #fbf8f1;
  --line: #e4ded0;
  --line-strong: #d3c9b6;
  --brand: #0e5a4f;
  --brand-dark: #0a473e;
  --accent: #f97316;
  --accent-dark: #e4630b;
  --accent-soft: #ffedd5;
  --warn-bg: #fff7ed;
  --warn-line: #fdba74;
  --warn-ink: #9a3412;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 18px 40px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 30px 70px rgba(10, 23, 48, 0.18);
  --max: 1120px;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--brand);
}

::selection {
  background: var(--accent);
  color: #1a1205;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  background: var(--accent);
  color: #1a1205;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: #1a1205;
  display: grid;
  place-items: center;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  padding: 8px 11px;
  border-radius: 8px;
  color: rgba(232, 238, 248, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.lang-switch {
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  margin-left: 6px;
}

.lang-switch a {
  padding: 4px 9px;
  border-radius: 999px;
  color: rgba(232, 238, 248, 0.68);
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

.lang-switch a[aria-current="true"] {
  background: #fff;
  color: var(--navy);
}

.hero-wrap {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.hero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  pointer-events: none;
}

.hero-wrap::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -220px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.32), transparent 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 20px 148px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d8e0ee;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hero-copy h1 {
  color: #fff;
}

.hl {
  color: #ffc078;
  text-decoration: underline;
  text-decoration-color: rgba(249, 115, 22, 0.65);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: none;
}

html[lang="zh-CN"] .hero-copy h1 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  letter-spacing: -0.02em;
}

.lede {
  margin: 0;
  max-width: 560px;
  color: #b8c4d8;
  font-size: 1.0625rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d8e0ee;
  font-size: 12px;
}

.hero-badges svg {
  color: #7dd3b0;
}

.hero-art {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 430px;
}

.art-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle at 60% 40%, rgba(249, 115, 22, 0.4), transparent 62%);
  filter: blur(24px);
  pointer-events: none;
}

.art-card {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
  transform: rotate(-2deg);
  transition: transform 0.35s ease;
}

.art-card:hover {
  transform: rotate(0);
}

.art-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.art-dots {
  display: inline-flex;
  gap: 4px;
}

.art-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.art-dots i:first-child {
  background: var(--accent);
}

.art-title {
  flex: 1;
}

.art-live {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(125, 211, 176, 0.16);
  color: #7dd3b0;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.art-scene {
  position: relative;
  padding: 20px 18px 16px;
  border-radius: 16px;
  background: #f7f2e7;
}

.art-pallet {
  padding: 0 6px;
}

.art-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 6px;
  border: 1px solid #d9b98a;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #f3e6cf;
}

.art-boxes i {
  display: block;
  height: 30px;
  border-radius: 3px;
  background: linear-gradient(150deg, #ffe3ba, #f6b367);
  border: 1px solid #d08a3c;
  box-shadow: inset 0 -6px 0 rgba(160, 92, 24, 0.12);
}

.art-boxes i:nth-child(3n) {
  background: linear-gradient(150deg, #d7eee5, #a9d8c5);
  border-color: #5da58d;
}

.art-wood {
  height: 20px;
  border: 1px solid #a9713d;
  border-radius: 0 0 5px 5px;
  background: repeating-linear-gradient(90deg, #c08a52 0 14px, #a9713d 14px 18px);
}

.art-chip {
  position: absolute;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(11, 18, 32, 0.18);
  white-space: nowrap;
}

.art-chip::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.chip-a {
  top: 12px;
  right: -8px;
}

.chip-b {
  top: 46%;
  left: -18px;
}

.chip-c {
  bottom: 34px;
  right: -12px;
}

.art-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 4px 2px;
  color: #fff;
}

.art-stats div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.art-stats strong {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.1;
}

.art-stats span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  letter-spacing: 0.04em;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 80px;
}

.tool-section {
  position: relative;
  z-index: 2;
  margin-top: -96px;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: 20px;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.form-card {
  box-shadow: var(--shadow-lg);
}

.result-card {
  position: sticky;
  top: 84px;
  overflow: hidden;
  border-color: transparent;
  background: linear-gradient(150deg, #0d2242 0%, #091426 100%);
  color: #e8eef8;
  box-shadow: var(--shadow-lg);
}

.result-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.32;
  pointer-events: none;
}

.result-card > * {
  position: relative;
  z-index: 1;
}

.form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.form-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.unit-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f0e7;
}

.unit-toggle button {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.unit-toggle button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(11, 18, 32, 0.14);
}

form {
  counter-reset: step;
}

fieldset {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  counter-increment: step;
}

legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

legend::before {
  content: counter(step, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: #9a3412;
  font-size: 10px;
  letter-spacing: 0;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cbm-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: end;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.cbm-row .field {
  gap: 4px;
}

.cbm-row .field label {
  font-size: 11px;
}

.cbm-row .btn {
  height: 46px;
}

@media (max-width: 760px) {
  .cbm-row {
    grid-template-columns: 1fr 1fr;
  }

  .cbm-row .b-remove {
    grid-column: 1 / -1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--body);
  font-size: 13px;
  font-weight: 600;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

input[type="number"],
select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdfa;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  appearance: textfield;
}

input[type="number"] {
  padding-right: 48px;
  font-variant-numeric: tabular-nums;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 90, 79, 0.14);
}

.unit-suffix {
  position: absolute;
  right: 12px;
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--body);
  font-size: 14px;
}

.check-row input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--brand);
}

.check-row label {
  font-weight: 550;
}

.hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #1a1205;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

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

.btn-ghost:hover {
  background: var(--cream);
}

.result-label {
  margin: 0;
  color: #93a4bd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-number {
  margin: 6px 0 2px;
  color: #ffc078;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.result-sub {
  margin: 0 0 18px;
  color: #b8c4d8;
  font-size: 14px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 12px;
}

.stat {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.stat-label {
  color: #93a4bd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.stat-value {
  overflow: hidden;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-value.small {
  overflow: visible;
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
}

.note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.result-card .note-warn {
  border: 1px solid rgba(249, 115, 22, 0.38);
  background: rgba(249, 115, 22, 0.12);
  color: #ffd8a8;
}

.result-card .note-info {
  border: 1px solid rgba(125, 211, 176, 0.32);
  background: rgba(125, 211, 176, 0.1);
  color: #b8f0da;
}

.capacity-bar {
  height: 10px;
  margin: 14px 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.capacity-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.capacity-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #93a4bd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.disclaimer {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8fa1bc;
  font-size: 12px;
  line-height: 1.55;
}

.diagrams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.diagram-title {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -0.01em;
}

.diagram-caption {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.diagram-canvas {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background-color: var(--cream);
  background-image: radial-gradient(#e7dfcf 1px, transparent 1px);
  background-size: 18px 18px;
}

.diagram-canvas svg {
  display: block;
  width: 100%;
  height: auto;
}

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

.step {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: #9a3412;
  font-size: 11px;
  font-weight: 800;
}

.step h3 {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-size: 15px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.tool-link {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.tool-link h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.tool-link p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tool-link span {
  display: inline-block;
  margin-top: 12px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.tool-link.soon {
  opacity: 0.62;
}

.tool-link.soon span {
  color: var(--muted);
}

a.step {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

a.step:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.step {
  transition: transform 0.2s ease;
}

.table-card {
  max-width: 860px;
  margin: 20px auto 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.section-head a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.section-head a:hover {
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

tr.best td {
  background: #fff7ed;
  font-weight: 700;
}

.article-card {
  max-width: 860px;
  margin: 20px auto 0;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-card .prose {
  max-width: none;
  margin: 0;
}

.prose {
  max-width: 760px;
  margin: 40px auto 0;
}

.prose h2 {
  margin: 34px 0 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.025em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 24px 0 6px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.prose p,
.prose li {
  color: var(--body);
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li {
  margin: 6px 0;
}

.faq {
  margin-top: 8px;
}

details {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 700;
}

details[open] summary::after {
  content: "\2013";
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
  mask-image: linear-gradient(to bottom, #000, transparent);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 20px 44px;
}

.page-hero h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.page-hero p {
  max-width: 700px;
  margin: 0;
  color: #b8c4d8;
}

.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding-top: 28px;
}

.site-footer {
  margin-top: 24px;
  background: var(--navy);
  color: #94a3b8;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

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

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-bottom: 132px;
  }

  .hero-art {
    display: none;
  }

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

  .result-card {
    position: static;
  }

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

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

@media (max-width: 640px) {
  .header-inner {
    padding: 10px 16px;
    gap: 10px;
  }

  .brand span:not(.brand-mark) {
    display: none;
  }

  .site-nav a {
    padding: 6px 8px;
    font-size: 13px;
  }

  .nav-hide-sm {
    display: none;
  }

  .lang-switch {
    margin-left: 2px;
  }

  main {
    padding: 0 16px 56px;
  }

  .hero-inner {
    padding: 42px 16px 112px;
  }

  .tool-section {
    margin-top: -64px;
  }

  .card,
  .article-card,
  .table-card {
    padding: 18px;
  }

  .field-grid,
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field.full {
    grid-column: 1 / -1;
  }

  .page-hero-inner {
    padding: 38px 16px 34px;
  }

  .article-card {
    border-radius: 16px;
  }
}

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

  .art-card {
    transition: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-wrap,
  .page-hero,
  .form-card,
  .actions,
  .steps,
  .table-card,
  .article-card,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
  }

  main {
    max-width: none;
    padding: 0;
  }

  .tool-section {
    margin-top: 0;
  }

  .tool-grid,
  .diagrams {
    grid-template-columns: 1fr;
  }

  .card {
    border-color: #d4d4d4;
    box-shadow: none;
    break-inside: avoid;
  }

  .result-card {
    position: static;
    background: #fff;
    color: #111;
  }

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

  .result-number {
    color: #111;
  }

  .result-card .stat {
    border-color: #ddd;
    background: #f7f7f7;
  }

  .result-card .stat-label,
  .result-card .stat-value,
  .result-card .result-label,
  .result-card .result-sub,
  .result-card .disclaimer {
    color: #333;
  }
}