:root {
  color-scheme: light;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --quiet: #94a3b8;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-soft: #f1f5f9;
  --surface-blue: #eff6ff;
  --line: #e2e8f0;
  --glass-line: rgba(148, 163, 184, 0.34);
  --line-strong: #cbd5e1;
  --primary: #0369a1;
  --primary-strong: #075985;
  --primary-soft: #e0f2fe;
  --accent: #0f766e;
  --warning: #b45309;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.08);
  --radius: 8px;
  --max: 1160px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 32%, #f5f8fb 100%);
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Noto Sans JP", "Noto Sans SC", system-ui, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-lang="ja"] {
  font-family: "Noto Sans JP", "Plus Jakarta Sans", system-ui, sans-serif;
}

body[data-lang="zh"] {
  font-family: "Noto Sans SC", "Plus Jakarta Sans", system-ui, sans-serif;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button,
a {
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

:focus-visible {
  outline: 3px solid rgba(3, 105, 161, 0.28);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
}

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

.site-header,
.hero-section,
.section,
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
  border: 1px solid var(--glass-line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.74) inset,
    0 18px 42px rgba(15, 23, 42, 0.07);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  padding: 10px 12px;
}

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.brand-mark img {
  width: 26px;
  height: 26px;
  filter: invert(1);
}

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

.brand strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 2px;
}

.site-nav a,
.login-link,
.lang-button {
  min-height: 38px;
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.site-nav a:hover,
.login-link:hover,
.lang-button:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

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

.language-switcher {
  display: inline-flex;
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  padding: 3px;
}

.lang-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.lang-button.is-active {
  background: var(--ink);
  color: #fff;
}

.login-link {
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 86px);
  padding: clamp(58px, 8vw, 104px) 0 clamp(44px, 7vw, 84px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--ink);
}

h1 {
  max-width: 13.5ch;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.6vw, 72px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
  text-wrap: balance;
}

h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.hero-lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 20px);
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 7px;
  padding: 11px 17px;
  font-size: 14px;
  font-weight: 800;
}

.primary-action {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(3, 105, 161, 0.16);
}

.primary-action:hover {
  background: var(--primary-strong);
}

.secondary-action {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.secondary-action:hover {
  background: var(--surface-soft);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  margin: 36px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.hero-metrics div {
  padding-right: 20px;
}

.hero-metrics dt {
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.hero-metrics dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
}

.visual-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    var(--shadow-md);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  backdrop-filter: blur(14px) saturate(135%);
}

.visual-frame::after {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58) 0%, transparent 28%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.22) 0%, transparent 26%);
  mix-blend-mode: screen;
}

.visual-frame img {
  width: 100%;
  aspect-ratio: 1.3;
  object-fit: cover;
  object-position: top left;
}

.visual-caption {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  border-left: 3px solid var(--primary);
  background: transparent;
  padding-left: 14px;
}

.visual-caption span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.visual-caption strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.section {
  padding: clamp(56px, 7vw, 96px) 0;
}

.split-heading,
.operations-section,
.company-section,
.contact-section,
.legal-hero,
.legal-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.68fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.split-heading {
  margin-bottom: 30px;
}

.split-heading p,
.company-section > div:first-child p,
.legal-intro p,
.ops-copy p,
.contact-section > div:first-child p,
.legal-hero p {
  color: var(--muted);
  font-size: 17px;
}

.agent-section {
  padding-top: clamp(48px, 6vw, 80px);
}

.agent-stage {
  display: grid;
  grid-template-columns: minmax(320px, 0.76fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.agent-terminal,
.agent-capabilities,
.agent-proof,
.service-map,
.module-grid,
.security-grid {
  border: 1px solid var(--glass-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.76) inset,
    var(--shadow-sm);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
}

.agent-terminal {
  min-height: 0;
  padding: 24px;
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.terminal-top span {
  display: none;
}

.terminal-top strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.terminal-line {
  border-radius: 8px;
  padding: 16px;
}

.terminal-line + .terminal-line {
  margin-top: 12px;
}

.terminal-line span {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.terminal-line p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}

.user-line {
  background: var(--surface-soft);
}

.agent-line {
  background: var(--surface-blue);
}

.agent-capabilities,
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.agent-card,
.module-card {
  min-height: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 22px;
}

.agent-card:nth-child(2n),
.module-card:nth-child(2n) {
  border-right: 0;
}

.agent-card:nth-last-child(-n + 2),
.module-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.agent-card span,
.module-icon {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  min-height: 26px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  text-transform: uppercase;
}

.agent-card p,
.module-card p,
.security-card p,
.service-map p,
.legal-panel p,
.legal-panel li {
  margin-bottom: 0;
  color: var(--muted);
}

.agent-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  overflow: hidden;
}

.agent-proof article {
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 18px;
}

.agent-proof article:last-child {
  border-right: 0;
}

.agent-proof strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
}

.agent-proof p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.service-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.service-map article {
  min-height: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 24px;
}

.service-map article:last-child {
  border-right: 0;
}

.service-map span {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

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

.modules-section .module-card:nth-child(2n) {
  border-right: 1px solid var(--line);
}

.modules-section .module-card:nth-child(4n) {
  border-right: 0;
}

.modules-section .module-card:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.operations-section {
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  align-items: center;
}

.workflow-list {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.workflow-list span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-blue);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 800;
}

.workflow-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.workflow-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.workflow-image {
  margin: 0;
}

.workflow-image img {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.workflow-image figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.security-card {
  min-height: 180px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 22px;
}

.security-card:nth-child(3n) {
  border-right: 0;
}

.security-card:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.security-card strong {
  display: block;
  margin-bottom: 28px;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-hero {
  padding-top: clamp(72px, 8vw, 116px);
  padding-bottom: clamp(32px, 5vw, 62px);
}

.legal-hero h1 {
  max-width: 12ch;
  margin-bottom: 0;
}

.table-card,
.legal-panel,
.contact-form {
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    var(--shadow-sm);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

th {
  width: 34%;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

td {
  color: var(--muted);
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.legal-tab {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  padding: 8px 14px;
}

.legal-tab:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.legal-tab.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.legal-panel {
  padding: clamp(22px, 4vw, 38px);
}

.legal-panel h3 {
  margin-bottom: 8px;
  font-size: clamp(25px, 2.4vw, 34px);
}

.legal-panel .updated {
  margin-bottom: 26px;
  color: var(--quiet);
  font-size: 14px;
  font-weight: 800;
}

.legal-panel h4 {
  margin: 26px 0 8px;
  font-size: 17px;
}

.legal-panel ul {
  margin: 0;
  padding-left: 22px;
}

.legal-panel table {
  margin-top: 20px;
  border: 1px solid var(--line);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.12);
}

.contact-submit {
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.contact-submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-status {
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.contact-status[data-state="success"] {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.contact-status[data-state="error"] {
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.contact-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: end;
  margin-top: 24px;
  padding: 38px 0 52px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--primary);
}

.copyright {
  font-size: 14px;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .header-actions {
    justify-content: space-between;
  }

  .hero-section,
  .agent-stage,
  .operations-section,
  .company-section,
  .contact-section,
  .legal-hero,
  .legal-intro,
  .split-heading {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 16ch;
  }

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

  .modules-section .module-card:nth-child(2n) {
    border-right: 0;
  }

  .modules-section .module-card:nth-child(4n) {
    border-right: 0;
  }

  .modules-section .module-card:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .modules-section .module-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .security-grid,
  .agent-proof,
  .service-map {
    grid-template-columns: 1fr;
  }

  .service-map article,
  .security-card,
  .agent-proof article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-map article:last-child,
  .agent-proof article:last-child,
  .security-card:last-child {
    border-bottom: 0;
  }

  .security-card:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 120px;
  }

  .site-header,
  .hero-section,
  .section,
  .site-footer {
    width: min(100% - 24px, var(--max));
  }

  .site-header {
    position: sticky;
    top: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    gap: 8px;
    align-items: start;
    margin-top: 8px;
    padding: 8px 10px 7px;
  }

  .brand {
    grid-area: brand;
    align-self: center;
    min-width: 0;
    gap: 8px;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    grid-area: nav;
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 5px;
    overflow-x: auto;
    padding: 2px 0 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.58);
    font-size: 12px;
  }

  .header-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-items: end;
    gap: 6px;
  }

  .language-switcher {
    display: inline-flex;
    width: auto;
    grid-template-columns: none;
  }

  .lang-button {
    min-height: 30px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .login-link {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0;
    line-height: 1;
  }

  .login-link::after {
    content: "Login";
    font-size: 12px;
  }

  body[data-lang="ja"] .login-link::after {
    content: "ログイン";
  }

  body[data-lang="zh"] .login-link::after {
    content: "登录";
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .footer-links {
    flex-direction: column;
  }

  .hero-section {
    min-height: auto;
    gap: 28px;
    padding-top: 40px;
    padding-bottom: 48px;
  }

  h1 {
    margin-bottom: 20px;
    font-size: clamp(33px, 9.8vw, 44px);
    line-height: 1.06;
  }

  h2 {
    font-size: clamp(27px, 8vw, 36px);
  }

  .hero-lead,
  .split-heading p,
  .company-section > div:first-child p,
  .legal-intro p,
  .ops-copy p,
  .contact-section > div:first-child p,
  .legal-hero p {
    font-size: 15.5px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 28px;
    padding-top: 14px;
  }

  .hero-metrics div {
    min-width: 0;
    padding-right: 10px;
    border-right: 1px solid var(--line);
  }

  .hero-metrics div:last-child {
    border-right: 0;
  }

  .hero-metrics dt {
    font-size: 25px;
  }

  .hero-metrics dd {
    font-size: 11.5px;
    line-height: 1.35;
  }

  .visual-frame img {
    aspect-ratio: 1.28;
  }

  .section {
    padding: 54px 0;
  }

  .split-heading {
    gap: 18px;
    margin-bottom: 26px;
  }

  .agent-stage,
  .operations-section,
  .company-section,
  .contact-section,
  .legal-hero,
  .legal-intro {
    gap: 24px;
  }

  .agent-terminal {
    padding: 18px;
  }

  .terminal-top {
    margin-bottom: 18px;
  }

  .agent-card,
  .module-card,
  .service-map article,
  .security-card,
  .agent-proof article {
    padding: 18px;
  }

  .agent-card span,
  .module-icon,
  .service-map span,
  .security-card strong {
    margin-bottom: 18px;
  }

  .agent-capabilities,
  .modules-section .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-card:nth-child(2n),
  .module-card:nth-child(2n),
  .modules-section .module-card:nth-child(2n) {
    border-right: 0;
  }

  .agent-card:nth-last-child(-n + 2),
  .module-card:nth-last-child(-n + 2),
  .modules-section .module-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .module-card h3,
  .agent-card h3 {
    font-size: 16px;
  }

  .module-card p,
  .agent-card p,
  .security-card p,
  .service-map p,
  .workflow-list p {
    font-size: 13px;
    line-height: 1.55;
  }

  .workflow-list li {
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }

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

  .legal-tab {
    width: 100%;
  }

  .legal-panel p,
  .legal-panel li,
  td {
    overflow-wrap: anywhere;
  }

  th,
  td {
    display: block;
    width: 100%;
  }

  th {
    padding-bottom: 4px;
  }

  td {
    padding-top: 4px;
  }

  .contact-submit {
    width: 100%;
  }

  .site-footer {
    gap: 18px;
  }
}

@media (max-width: 360px) {
  html {
    scroll-padding-top: 156px;
  }

  .site-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "actions"
      "nav";
  }

  .header-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
  }

  .language-switcher {
    width: 100%;
  }

  .lang-button {
    flex: 1;
    padding-inline: 6px;
  }

  .agent-capabilities,
  .modules-section .module-grid {
    grid-template-columns: 1fr;
  }

  .agent-card,
  .module-card,
  .modules-section .module-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .agent-card:last-child,
  .module-card:last-child,
  .modules-section .module-card:last-child {
    border-bottom: 0;
  }
}

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