:root {
  --ink: #10232c;
  --muted: #5f7078;
  --soft: #eef6f6;
  --line: #d8e7e7;
  --teal: #006c70;
  --teal-dark: #004c50;
  --teal-light: #19a6a4;
  --amber: #d78100;
  --amber-soft: #fff4de;
  --graphite: #26343a;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(16, 35, 44, 0.12);
  --radius: 8px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 3% 14%, rgba(0, 108, 112, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbfb 44%, #ffffff 100%);
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    system-ui,
    sans-serif;
  line-height: 1.6;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: 240px;
  height: 420px;
  content: "";
  opacity: 0.45;
  background-image:
    linear-gradient(120deg, rgba(0, 108, 112, 0.22) 1px, transparent 1px),
    linear-gradient(60deg, rgba(0, 108, 112, 0.16) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 72%, transparent);
  pointer-events: none;
}

body::before {
  top: 130px;
  left: -110px;
}

body::after {
  right: -80px;
  bottom: 140px;
  transform: rotate(180deg);
}

img,
svg {
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  width: min(100%, 1440px);
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 54px);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(216, 231, 231, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-light));
  clip-path: polygon(25% 5%, 75% 5%, 98% 50%, 75% 95%, 25% 95%, 2% 50%);
  place-items: center;
}

.brand-mark::after {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--amber);
  border: 2px solid var(--white);
  border-radius: 50%;
}

.brand-mark span {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 900;
}

.brand-text {
  overflow: hidden;
  font-size: 18px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
  color: #354850;
  font-size: 15px;
  font-weight: 600;
}

.nav a {
  position: relative;
  padding: 26px 0 24px;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  background: var(--teal);
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(0, 108, 112, 0.18);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: var(--ink);
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 99px;
}

.section-pad,
.section {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding: clamp(42px, 6vw, 70px) 0 44px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 4.3vw, 60px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: 6px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  box-shadow: 0 20px 38px rgba(0, 108, 112, 0.22);
}

.button.secondary {
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(0, 108, 112, 0.35);
}

.button.secondary svg {
  fill: currentColor;
  stroke: none;
}

.button.full {
  width: 100%;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 38px 0 0;
  list-style: none;
}

.trust-row li {
  min-height: 92px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(216, 231, 231, 0.88);
  border-radius: var(--radius);
}

.trust-row span {
  display: block;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.trust-row strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.45;
}

.hero-media {
  position: relative;
  min-height: 450px;
}

.hero-media::before {
  position: absolute;
  inset: 7% 4% 4% 12%;
  content: "";
  background: linear-gradient(135deg, rgba(0, 108, 112, 0.1), rgba(215, 129, 0, 0.08));
  border: 1px solid rgba(216, 231, 231, 0.75);
  border-radius: 8px;
  transform: rotate(-2deg);
}

.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 450px;
  object-fit: contain;
  object-position: center;
  background: #f4f8ff;
  border: 1px solid rgba(216, 231, 231, 0.8);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric-card {
  position: absolute;
  z-index: 2;
  width: min(260px, 46%);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 231, 231, 0.9);
  border-radius: 8px;
  box-shadow: 0 20px 38px rgba(16, 35, 44, 0.12);
  backdrop-filter: blur(16px);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  line-height: 1.35;
}

.metric-card-one {
  top: 48px;
  left: 18px;
}

.metric-card-two {
  right: 18px;
  bottom: 42px;
}

.section {
  padding: clamp(74px, 10vw, 118px) 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-heading.narrow {
  max-width: 700px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-label {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

.section-heading h2,
.split-copy h2,
.legal-card h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading p:not(.section-label),
.split-copy p,
.legal-card p,
.contact-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

.service-card {
  position: relative;
  min-height: 320px;
  padding: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(216, 231, 231, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(16, 35, 44, 0.08);
}

.service-card::before {
  position: absolute;
  top: 0;
  right: 22px;
  left: 22px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--teal), var(--amber));
}

.icon-shell {
  display: grid;
  width: 68px;
  height: 68px;
  color: var(--white);
  border-radius: 8px;
  place-items: center;
}

.icon-shell svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-shell.teal {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-light));
}

.icon-shell.amber {
  background: linear-gradient(135deg, #b36500, var(--amber));
}

.icon-shell.graphite {
  background: linear-gradient(135deg, var(--graphite), #60727a);
}

.service-card h3 {
  margin: 24px 0 10px;
  font-size: 24px;
  line-height: 1.28;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.service-card a {
  display: inline-flex;
  margin-top: 26px;
  color: var(--teal);
  font-weight: 900;
}

.chemistry {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - var(--max)) / 2));
  padding-left: max(20px, calc((100% - var(--max)) / 2));
  background:
    linear-gradient(90deg, rgba(238, 246, 246, 0.88), rgba(255, 255, 255, 0.95)),
    linear-gradient(120deg, rgba(0, 108, 112, 0.08), transparent 55%);
  border-top: 1px solid rgba(216, 231, 231, 0.72);
  border-bottom: 1px solid rgba(216, 231, 231, 0.72);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}

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

.feature-list div {
  padding-left: 18px;
  border-left: 3px solid var(--teal);
}

.feature-list strong {
  display: block;
  font-size: 17px;
}

.feature-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.product-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(216, 231, 231, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-tabs {
  display: flex;
  gap: 1px;
  padding: 8px;
  background: #f3f8f8;
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
}

.panel-tabs button {
  min-height: 42px;
  padding: 0 18px;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
}

.panel-tabs button.active {
  color: var(--white);
  background: var(--teal);
}

.panel-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  padding: 24px;
}

.upload-box {
  display: grid;
  min-height: 210px;
  padding: 26px;
  text-align: center;
  border: 1px dashed rgba(0, 108, 112, 0.38);
  border-radius: 8px;
  place-items: center;
}

.upload-box svg {
  width: 40px;
  height: 40px;
  color: var(--teal);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.upload-box strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.upload-box span {
  color: var(--muted);
  font-size: 14px;
}

.preview-stats {
  display: grid;
  gap: 12px;
}

.preview-stats div {
  padding: 16px;
  background: #f8fbfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.preview-stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.preview-stats strong {
  display: block;
  margin-top: 6px;
  color: var(--teal-dark);
  font-size: 30px;
  line-height: 1;
}

.chart-card {
  display: flex;
  grid-column: 1 / -1;
  gap: 12px;
  align-items: end;
  height: 116px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f2f8f8);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bar {
  flex: 1;
  min-width: 20px;
  background: linear-gradient(180deg, var(--teal-light), var(--teal-dark));
  border-radius: 6px 6px 2px 2px;
}

.bar.tall {
  height: 92%;
}

.bar.mid {
  height: 62%;
}

.bar.high {
  height: 78%;
}

.bar.small {
  height: 42%;
  background: linear-gradient(180deg, #efaa34, var(--amber));
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 42px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(16, 35, 44, 0.08);
}

.timeline-step {
  min-height: 250px;
  padding: 30px;
  border-right: 1px solid var(--line);
}

.timeline-step:last-child {
  border-right: 0;
}

.timeline-step span {
  display: inline-grid;
  width: 46px;
  height: 46px;
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  background: var(--teal);
  border-radius: 8px;
  place-items: center;
}

.timeline-step:nth-child(even) span {
  background: var(--amber);
}

.timeline-step h3 {
  margin: 28px 0 10px;
  font-size: 23px;
}

.timeline-step p {
  margin: 0;
  color: var(--muted);
}

.legal-ai {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - var(--max)) / 2));
  padding-left: max(20px, calc((100% - var(--max)) / 2));
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(0, 76, 80, 0.96), rgba(20, 36, 43, 0.98)),
    radial-gradient(circle at 82% 28%, rgba(25, 166, 164, 0.28), transparent 34%);
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}

.legal-card p,
.legal-card .section-label {
  color: rgba(255, 255, 255, 0.78);
}

.legal-card .section-label {
  color: #7bd6d4;
}

.legal-note {
  margin-top: 28px;
  padding: 18px 20px;
  color: #fff6df;
  background: rgba(215, 129, 0, 0.16);
  border: 1px solid rgba(255, 195, 91, 0.34);
  border-radius: 8px;
}

.legal-agent-stack {
  display: grid;
  gap: 16px;
}

.risk-board {
  display: grid;
  gap: 14px;
}

.risk-row,
.basis-box {
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.risk-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 8px 18px;
  align-items: center;
}

.risk-row span {
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
  border-radius: 6px;
}

.risk-row strong {
  font-size: 19px;
}

.risk-row em {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-style: normal;
}

.risk-row.severe span {
  color: #431b00;
  background: #ffbf67;
}

.risk-row.warning span {
  color: #05383b;
  background: #8de1de;
}

.risk-row.normal span {
  color: #12262d;
  background: #d6e7e7;
}

.basis-box span {
  display: block;
  color: #8de1de;
  font-weight: 900;
}

.basis-box p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.legal-agent-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.18);
}

.agent-panel-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.agent-panel-head span,
.agent-controls span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.agent-panel-head strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.35;
}

.agent-panel-head a,
.agent-result a {
  flex: 0 0 auto;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.agent-file {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 110px;
  padding: 20px;
  background: #f8fbfb;
  border: 1px dashed rgba(0, 108, 112, 0.42);
  border-radius: 8px;
  cursor: pointer;
  place-items: center;
  text-align: center;
}

.agent-file input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.agent-file span {
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

.agent-file strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.4;
}

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

.agent-controls label {
  display: grid;
  gap: 7px;
}

.agent-controls select {
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  color: var(--ink);
  background: #f8fbfb;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

.legal-agent-panel .button {
  cursor: pointer;
}

.legal-agent-panel .button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.agent-status {
  min-height: 44px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  background: #f8fbfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.agent-status[data-tone="success"] {
  color: #0f5132;
  background: #ecfdf5;
  border-color: #b7ead0;
}

.agent-status[data-tone="error"] {
  color: #7f1d1d;
  background: #fff1f2;
  border-color: #fecdd3;
}

.agent-progress {
  height: 8px;
  overflow: hidden;
  background: #e7f2f2;
  border-radius: 999px;
}

.agent-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  border-radius: inherit;
  transition: width 220ms ease;
}

.agent-result {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.agent-result[hidden] {
  display: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.72fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.contact-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.contact-points span {
  padding: 9px 12px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f8fbfb;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(0, 108, 112, 0.7);
  box-shadow: 0 0 0 4px rgba(0, 108, 112, 0.12);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  width: min(100% - 40px, var(--max));
  padding: 30px 0 42px;
  margin: 0 auto;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin: 4px 0 0;
}

.site-footer a {
  color: var(--teal);
  font-weight: 900;
}

.site-footer .icp-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.site-footer .icp-link:hover,
.site-footer .icp-link:focus-visible {
  color: var(--teal);
}

.reveal {
  opacity: 1;
  transform: none;
}

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

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

  .brand-text {
    max-width: 360px;
  }

  .nav {
    position: fixed;
    top: 76px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px 10px;
  }

  .nav a::after {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero,
  .split-layout,
  .legal-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

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

  .hero-media img {
    height: min(58vw, 520px);
    min-height: 360px;
  }

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

  .timeline-step:nth-child(2) {
    border-right: 0;
  }

  .timeline-step:nth-child(1),
  .timeline-step:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
    padding: 0 18px;
  }

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

  .brand-text {
    max-width: 220px;
    font-size: 15px;
  }

  .header-action {
    display: none;
  }

  .nav {
    top: 68px;
  }

  .section-pad,
  .section {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    padding-top: 38px;
  }

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

  .hero-actions,
  .trust-row,
  .feature-list,
  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .trust-row {
    display: grid;
  }

  .hero-media img {
    height: 330px;
    min-height: 330px;
  }

  .metric-card {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .hero-media::before {
    display: none;
  }

  .service-card {
    min-height: 0;
  }

  .chemistry,
  .legal-ai {
    padding-right: 14px;
    padding-left: 14px;
  }

  .panel-tabs {
    overflow-x: auto;
  }

  .panel-tabs button {
    flex: 0 0 auto;
  }

  .panel-body {
    grid-template-columns: 1fr;
    padding: 16px;
  }

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

  .preview-stats div {
    padding: 12px;
  }

  .preview-stats strong {
    font-size: 24px;
  }

  .timeline-step {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline-step:last-child {
    border-bottom: 0;
  }

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

  .risk-row span {
    grid-row: auto;
    justify-self: start;
  }

  .agent-panel-head,
  .agent-result {
    display: grid;
  }

  .agent-panel-head a,
  .agent-result a {
    justify-self: start;
  }

  .agent-controls {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 20px;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 420px) {
  .brand-text {
    max-width: 178px;
  }

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

  .hero-lede {
    font-size: 16px;
  }

  .preview-stats {
    grid-template-columns: 1fr;
  }
}
