:root {
  color-scheme: dark;
  --bg: #05070b;
  --bg-2: #071014;
  --panel: rgba(15, 23, 34, 0.82);
  --panel-solid: #101722;
  --panel-2: #121d2b;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(16, 185, 129, 0.4);
  --text: #edf6ff;
  --muted: #9fb0c2;
  --muted-2: #cbd5e1;
  --green: #10b981;
  --lime: #84cc16;
  --blue: #2563eb;
  --amber: #f59e0b;
  --cyan: #22d3ee;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --header-height: 78px;
  font-size: 16px;
  font-family:
    Inter, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(116deg, rgba(16, 185, 129, 0.16), transparent 22%),
    linear-gradient(244deg, rgba(34, 211, 238, 0.1), transparent 28%),
    linear-gradient(180deg, #05070b 0%, #071014 46%, #05070b 100%);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(115deg, rgba(16, 185, 129, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 86px 86px, 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 82%);
}

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

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.85);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

button,
select {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  border-radius: var(--radius);
  background: var(--green);
  color: #031008;
  font-weight: 900;
  padding: 10px 14px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 11, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 18px;
}

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

.brand-logo {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #000;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-sub {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-nav a {
  border-radius: var(--radius);
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 12px 13px;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.desktop-nav .nav-accent,
.mobile-nav .nav-accent {
  color: #07110b;
  background: linear-gradient(135deg, var(--green), var(--lime));
  box-shadow: 0 16px 38px rgba(16, 185, 129, 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.language-select {
  width: 132px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 17, 28, 0.94);
  color: var(--text);
  padding: 0 10px;
  outline: none;
}

.language-select:focus {
  border-color: var(--green);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.mobile-nav {
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 11, 0.98);
  padding: 12px 20px 18px;
}

.mobile-nav a {
  display: block;
  margin: 4px auto;
  width: min(100%, 420px);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.98) 0%, rgba(5, 7, 11, 0.78) 50%, rgba(5, 7, 11, 0.38) 100%),
    repeating-linear-gradient(135deg, rgba(16, 185, 129, 0.09) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, rgba(5, 7, 11, 0.18), #05070b 100%);
  z-index: 1;
}

.hero-visual {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(760px, 58vw);
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}

.hero-visual img {
  width: min(720px, 58vw);
  filter: saturate(0.98) contrast(1.05);
  transform: rotate(-3deg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.55fr);
  align-items: center;
  gap: 44px;
  min-height: calc(100svh - var(--header-height));
  padding: 82px 0 70px;
}

.command-hero {
  border-bottom: 1px solid rgba(16, 185, 129, 0.18);
}

.command-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.64fr);
  align-items: center;
  gap: 52px;
  min-height: calc(100svh - var(--header-height));
  padding: 76px 0 66px;
}

.command-console {
  position: relative;
  border: 1px solid rgba(16, 185, 129, 0.38);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(4, 12, 18, 0.94), rgba(5, 9, 14, 0.9));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
  padding: 18px;
}

.command-console::before {
  position: absolute;
  inset: 12px 12px auto auto;
  width: 54px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.console-screen {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 24px),
    rgba(0, 0, 0, 0.26);
  padding: 22px;
}

.console-line {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.console-line:last-child {
  border-bottom: 0;
}

.console-line span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.console-line strong {
  font-size: 16px;
}

.hero-copy {
  max-width: 760px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.hero-badges span,
.chip,
.metric-label,
.software-kicker {
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--radius);
  background: rgba(16, 185, 129, 0.08);
  color: #baf7d9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 8px 10px;
}

.hero-badges span:nth-child(2) {
  border-color: rgba(34, 211, 238, 0.32);
  background: rgba(34, 211, 238, 0.08);
  color: #b8f7ff;
}

.hero-badges span:nth-child(3) {
  border-color: rgba(132, 204, 22, 0.34);
  background: rgba(132, 204, 22, 0.09);
  color: #dcfcb2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 680px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-title {
  display: grid;
  gap: 4px;
}

.hero-title-brand,
.hero-title-service {
  display: block;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 19px;
  line-height: 1.22;
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 16px;
  color: #d8e6f4;
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.7;
}

.hero-subline,
.section-head p,
.card p,
.panel-note,
.portal-layout p,
.software-panel p,
.site-footer p,
.contact-card em {
  color: var(--muted);
  line-height: 1.7;
}

.hero-cta,
.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  padding: 0 18px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover,
.portal-button:hover {
  transform: translateY(-1px);
}

.button-primary,
.portal-button {
  color: #07110b;
  background: linear-gradient(135deg, var(--green), var(--lime));
  box-shadow: 0 18px 42px rgba(16, 185, 129, 0.22);
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.hero-panel,
.software-panel,
.portal-layout,
.metric-card,
.service-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(19, 29, 43, 0.86), rgba(8, 13, 22, 0.9));
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 22px 30px;
}

.hero-panel::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  content: "";
  background: linear-gradient(180deg, var(--green), var(--cyan), var(--lime));
}

.hero-panel::after {
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(255, 255, 255, 0.12);
  content: "TWS//FILE";
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
}

.panel-top strong {
  color: var(--green);
}

.checklist {
  display: grid;
  gap: 12px;
}

.check-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  color: #e7eff9;
  font-size: 14px;
}

.check-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 50%;
  color: var(--green);
  font-size: 12px;
}

.portal-button {
  justify-content: space-between;
  width: 100%;
  margin-top: 20px;
}

.panel-note {
  margin: 14px 0 0;
  font-size: 12px;
}

.metrics-section {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  padding: 22px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric-card {
  min-height: 118px;
  padding: 20px;
}

.metric-value {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  line-height: 1;
}

.metric-label {
  display: inline-flex;
  width: fit-content;
}

.section {
  padding: 76px 0;
}

.section-alt {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.section-head {
  max-width: 770px;
  margin-bottom: 26px;
}

.section-head p {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 15px;
  text-wrap: balance;
}

.ops-section .section-head,
.product-rail .section-head,
.software-stack .section-head,
.process-section .section-head {
  max-width: 760px;
}

.ops-section .section-head p,
.product-rail .section-head p,
.software-stack .section-head p,
.process-section .section-head p {
  max-width: 760px;
  min-height: calc(1.7em * 2);
}

.section-portal {
  padding-top: 76px;
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 26px;
  padding: 28px;
}

.greenline-board {
  position: relative;
  border-color: rgba(16, 185, 129, 0.32);
  background:
    linear-gradient(90deg, rgba(16, 185, 129, 0.16), transparent 34%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 42px),
    #091017;
}

.greenline-board::before {
  position: absolute;
  top: 0;
  right: 28px;
  left: 28px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--green), var(--cyan), transparent);
}

.portal-layout h3 {
  font-size: clamp(26px, 3vw, 38px);
}

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

.mini-card {
  min-height: 156px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 6, 12, 0.48);
  padding: 17px;
}

.mini-card strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
}

.mini-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.card-grid {
  display: grid;
  gap: 16px;
}

.ops-lanes,
.rail-grid,
.stack-grid {
  display: grid;
  gap: 12px;
}

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

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

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

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

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

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

.service-card {
  position: relative;
  display: flex;
  min-height: 184px;
  flex-direction: column;
  padding: 20px 22px;
  overflow: hidden;
  transition:
    transform 170ms ease,
    border-color 170ms ease;
}

.ops-lanes .service-card {
  min-height: 188px;
  background:
    linear-gradient(90deg, rgba(16, 185, 129, 0.12), transparent 26%),
    rgba(5, 13, 20, 0.86);
}

.rail-grid .service-card {
  min-height: 176px;
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.07), transparent 38%),
    rgba(6, 12, 18, 0.86);
}

.stack-grid .service-card {
  min-height: 188px;
  background:
    linear-gradient(135deg, rgba(132, 204, 22, 0.1), transparent 44%),
    rgba(7, 13, 22, 0.86);
}

.service-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  content: "";
  background: linear-gradient(180deg, var(--green), transparent);
}

.service-card::after {
  content: "";
  display: none;
}

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

.service-card p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.6;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  min-height: 56px;
  align-items: flex-end;
}

.chip {
  color: #ccebdd;
  font-size: 12px;
  padding: 8px 10px;
}

.software-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
}

.software-panel {
  min-height: 100%;
  padding: 26px;
}

.software-kicker {
  display: inline-flex;
  margin-bottom: 22px;
  color: #c9f9dc;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  counter-reset: process;
}

.process-card {
  position: relative;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 16, 24, 0.74);
  padding: 52px 18px 18px;
}

.process-card::before {
  position: absolute;
  top: 16px;
  left: 18px;
  counter-increment: process;
  content: "0" counter(process);
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
}

.process-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.process-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.contact-section {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(16, 185, 129, 0.09), transparent 40%),
    #05070b;
}

.section-legal {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.03));
}

.legal-home {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 44px;
  align-items: start;
}

.legal-home .section-head h2,
.contact-layout .section-head h2 {
  max-width: 560px;
  font-size: clamp(26px, 3vw, 40px);
}

.legal-home .section-head p,
.contact-layout .section-head p {
  max-width: 560px;
  font-size: 15px;
}

.legal-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.policy-panel-grid {
  display: grid;
  gap: 18px;
}

.policy-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(16, 185, 129, 0.17), transparent 42%),
    rgba(5, 12, 18, 0.9);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 24px 96px;
}

.policy-card span {
  position: absolute;
  top: 50%;
  left: 32px;
  transform: translateY(-50%);
  color: var(--green);
  font-size: 16px;
  font-weight: 900;
}

.policy-card h3 {
  justify-self: center;
  margin: 0;
  font-size: 22px;
  text-align: center;
  white-space: nowrap;
}

.policy-button {
  width: min(100%, 560px);
  min-height: 58px;
  border: 1px solid rgba(132, 204, 22, 0.62);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #16d88a, var(--lime));
  box-shadow: 0 16px 38px rgba(16, 185, 129, 0.24);
  color: #06110b;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  padding: 0 24px;
  white-space: nowrap;
  text-align: center;
}

.policy-button:hover,
.policy-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(16, 185, 129, 0.32);
}

.policy-file-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(4, 9, 14, 0.62);
  padding: 14px;
}

.policy-file-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
  padding: 0 12px;
}

.modal-open {
  overflow: hidden;
}

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

.policy-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
}

.policy-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 9, 0.78);
  cursor: pointer;
}

.policy-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(760px, calc(100svh - 44px));
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.36);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.14), transparent 40%),
    #081016;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.55);
}

.policy-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 24px 18px;
}

.policy-dialog-head h2 {
  margin: 0;
  font-size: 28px;
}

.policy-close {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
}

.policy-dialog-body {
  max-height: calc(min(760px, 100svh - 44px) - 108px);
  overflow: auto;
  padding: 22px 24px 26px;
}

.policy-dialog-body p {
  color: var(--muted-2);
  line-height: 1.75;
}

.policy-dialog-body ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.policy-dialog-body li {
  color: var(--muted-2);
  line-height: 1.72;
}

.policy-dialog-body strong {
  color: #fff;
}

.legal-tile {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 12, 18, 0.78);
  padding: 16px;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.legal-tile:hover {
  border-color: rgba(34, 211, 238, 0.42);
  transform: translateY(-1px);
}

.legal-tile span {
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.legal-tile strong {
  color: #fff;
  line-height: 1.25;
}

.legal-page {
  background:
    linear-gradient(122deg, rgba(16, 185, 129, 0.12), transparent 28%),
    #05070b;
}

.legal-header {
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 11, 0.9);
  padding: 18px 0;
}

.legal-header .shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.legal-main {
  padding: 72px 0;
}

.legal-document {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 0.68fr);
  gap: 34px;
}

.legal-aside {
  position: sticky;
  top: 100px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 16, 23, 0.86);
  padding: 18px;
}

.legal-aside a {
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 0;
}

.legal-content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 16, 23, 0.84);
  padding: clamp(22px, 4vw, 44px);
  overflow-wrap: anywhere;
}

.legal-content h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.legal-content h2 {
  margin-top: 34px;
  font-size: clamp(22px, 3vw, 32px);
}

.legal-content p,
.legal-content li {
  color: var(--muted-2);
  line-height: 1.75;
}

.legal-content a {
  color: #9df4c6;
  text-decoration: underline;
  text-decoration-color: rgba(157, 244, 198, 0.38);
}

.legal-alert {
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: var(--radius);
  background: rgba(245, 158, 11, 0.1);
  color: #f9dfa7;
  padding: 14px 16px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  table-layout: fixed;
}

.legal-table th,
.legal-table td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.legal-table th {
  color: #fff;
  background: rgba(16, 185, 129, 0.08);
}

.service-page {
  background:
    linear-gradient(125deg, rgba(16, 185, 129, 0.12), transparent 30%),
    linear-gradient(228deg, rgba(34, 211, 238, 0.08), transparent 26%),
    #05070b;
}

.service-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 11, 0.9);
  backdrop-filter: blur(18px);
  padding: 16px 0;
}

.service-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.service-header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.service-language-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-language-control label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.service-header-nav a:not(.button) {
  border-radius: var(--radius);
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
}

.service-header-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.service-main {
  overflow: hidden;
}

.service-hero {
  position: relative;
  border-bottom: 1px solid rgba(16, 185, 129, 0.18);
  padding: clamp(64px, 8vw, 104px) 0;
}

.service-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    repeating-linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0 1px, transparent 1px 20px),
    linear-gradient(180deg, rgba(5, 7, 11, 0.2), #05070b 100%);
}

.service-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.5fr);
  gap: 44px;
  align-items: center;
}

.service-hero h1 {
  max-width: 900px;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 0.94;
}

.service-hero p {
  max-width: 740px;
  color: var(--muted-2);
  font-size: 17px;
  line-height: 1.7;
}

.service-signal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.14), transparent 44%),
    rgba(5, 13, 20, 0.82);
  padding: 18px;
  box-shadow: var(--shadow);
}

.service-signal span {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
  color: #d7ffe8;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.service-band {
  padding: clamp(58px, 7vw, 92px) 0;
}

.service-band-alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.service-index-grid,
.service-detail-grid {
  display: grid;
  gap: 14px;
}

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

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

.service-link-tile,
.service-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.08), transparent 42%),
    rgba(8, 15, 22, 0.82);
  padding: 22px;
}

.service-link-tile {
  display: grid;
  min-height: 176px;
  gap: 12px;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.service-link-tile:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.service-link-tile span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.service-link-tile strong,
.service-panel h2 {
  color: #fff;
}

.service-link-tile em {
  color: var(--muted-2);
  font-style: normal;
  line-height: 1.65;
}

.service-panel {
  min-height: 240px;
}

.service-panel p,
.service-list {
  color: var(--muted-2);
  line-height: 1.7;
}

.service-list {
  margin: 0;
  padding-left: 20px;
}

.service-list li + li {
  margin-top: 8px;
}

.service-intake-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 0.58fr);
  gap: 34px;
  align-items: start;
}

.service-checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-checklist li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(16, 185, 129, 0.1), transparent 42%),
    rgba(8, 15, 22, 0.82);
  color: var(--muted-2);
  line-height: 1.6;
  padding: 16px 16px 16px 42px;
}

.service-checklist li::before {
  position: absolute;
  top: 17px;
  left: 16px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--green);
  border-radius: 50%;
  content: "";
}

.service-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-faq-card {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 15, 22, 0.82);
  padding: 22px;
}

.service-faq-card h3 {
  color: #fff;
}

.service-faq-card p {
  color: var(--muted-2);
  line-height: 1.7;
}

.service-cta-band {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: rgba(16, 185, 129, 0.08);
}

.service-cta-band .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.service-cta-band strong {
  color: #fff;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
}

.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.88fr);
  gap: 24px;
  align-items: start;
}

.inquiry-aside,
.inquiry-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.08), transparent 38%),
    rgba(8, 15, 22, 0.86);
  box-shadow: var(--shadow);
}

.inquiry-aside {
  position: sticky;
  top: 104px;
  padding: 22px;
}

.inquiry-aside h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
}

.inquiry-aside-button {
  margin-top: 20px;
  width: 100%;
}

.inquiry-form {
  padding: clamp(20px, 3.5vw, 34px);
}

.inquiry-form-head {
  margin-bottom: 22px;
}

.inquiry-form-head h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
}

.inquiry-form-head p,
.inquiry-aside p {
  color: var(--muted-2);
  line-height: 1.7;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid label,
.consent-line {
  display: grid;
  gap: 8px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
}

.form-wide {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius);
  background: rgba(2, 6, 12, 0.62);
  color: var(--text);
  font: inherit;
  padding: 11px 12px;
  resize: vertical;
}

.form-grid textarea {
  line-height: 1.6;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--green);
  outline: 0;
}

.consent-line {
  grid-template-columns: 20px 1fr;
  align-items: start;
  margin-top: 18px;
  line-height: 1.6;
}

.consent-line input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
}

.inquiry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.inquiry-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted-2);
  line-height: 1.6;
}

.inquiry-status[data-status="success"] {
  color: #9df4c6;
}

.inquiry-status[data-status="error"] {
  color: #ffb4a7;
}

.inquiry-status[data-status="pending"] {
  color: #f7d98f;
}

.inquiry-hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(340px, 1fr);
  gap: 36px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-card {
  display: grid;
  gap: 8px;
  min-height: 108px;
  padding: 18px;
}

.contact-card > span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card strong {
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
}

.contact-card .contact-action {
  display: inline-flex;
  justify-self: center;
  width: min(100%, 280px);
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(16, 185, 129, 0.36);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green), var(--lime));
  color: #06110b;
  font-size: 14px;
  font-weight: 900;
  padding: 0 14px;
}

.contact-card .contact-action span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.contact-card .contact-action b {
  font-size: 16px;
}

.contact-card em {
  font-style: normal;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  background: #03050a;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-footer p {
  margin: 8px 0 0;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 700;
}

.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

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

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-inner,
  .command-hero-inner,
  .portal-layout,
  .software-layout,
  .contact-layout,
  .service-hero-grid,
  .service-intake-layout,
  .inquiry-layout,
  .legal-home,
  .legal-document {
    grid-template-columns: 1fr;
  }

  .inquiry-aside {
    position: static;
  }

  .legal-aside {
    position: static;
  }

  .hero-panel {
    max-width: 560px;
  }

  .card-grid-4,
  .ops-lanes,
  .rail-grid,
  .stack-grid,
  .process-grid,
  .service-index-grid,
  .service-detail-grid,
  .service-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 70px;
  }

  .shell {
    width: min(100% - 28px, 1180px);
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-sub {
    font-size: 10px;
  }

  .language-label {
    display: none;
  }

  .language-select {
    width: 108px;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(5, 7, 11, 0.9), rgba(5, 7, 11, 0.95)),
      linear-gradient(180deg, rgba(5, 7, 11, 0.18), #05070b 100%);
  }

  .hero-visual {
    inset: 0;
    width: 100%;
    opacity: 0.28;
  }

  .hero-visual img {
    width: min(560px, 110vw);
  }

  .hero-inner {
    min-height: auto;
    padding: 56px 0 42px;
    gap: 26px;
  }

  .command-hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 56px 0 42px;
    gap: 26px;
  }

  .hero-badges {
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(26px, 9vw, 38px);
  }

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

  .hero-cta,
  .portal-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .metrics-grid,
  .mini-grid,
  .card-grid-2,
  .card-grid-3,
  .card-grid-4,
  .ops-lanes,
  .rail-grid,
  .stack-grid,
  .process-grid,
  .service-index-grid,
  .service-detail-grid,
  .service-faq-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .portal-layout {
    padding: 20px;
  }

  .service-card,
  .metric-card,
  .process-card {
    min-height: auto;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .service-header .shell,
  .service-cta-band .shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-header-nav {
    justify-content: flex-start;
  }

  .service-language-control {
    width: 100%;
  }

  .service-hero h1 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .service-signal {
    grid-template-columns: 1fr;
  }

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

  .legal-link-grid {
    grid-template-columns: 1fr;
  }

  .policy-card {
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
  }

  .policy-card span {
    position: static;
    transform: none;
    margin-bottom: 14px;
  }

  .policy-dialog-head {
    padding: 18px;
  }

  .policy-dialog-body {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
