:root {
  --orange: #ff6b2e;
  --orange-deep: #e85a1f;
  --orange-soft: #fff1e8;
  --white: #ffffff;
  --lab: #f7f8f6;
  --ink: #1d1f21;
  --muted: #667074;
  --line: #e5e8e6;
  --green: #1f8a5b;
  --lime: #8bcb5a;
  --panel: #ffffff;
  --panel-soft: #fbfcfb;
  --header-bg: rgba(255, 255, 255, 0.92);
  --footer-bg: #161819;
  --field-bg: #ffffff;
  --shadow: 0 18px 60px rgba(29, 31, 33, 0.1);
  --max: 1180px;
}

html[data-theme="dark"] {
  --white: #111416;
  --lab: #181d1f;
  --ink: #f4f6f5;
  --muted: #aeb8b5;
  --line: #2b3336;
  --orange-soft: rgba(255, 107, 46, 0.14);
  --panel: #161b1d;
  --panel-soft: #101315;
  --header-bg: rgba(17, 20, 22, 0.92);
  --footer-bg: #090b0c;
  --field-bg: #101315;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, "Noto Sans TC", "PingFang TC", sans-serif;
  line-height: 1.55;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 26px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(229, 232, 230, 0.8);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--orange);
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--white);
  transform-origin: center;
}

.brand-logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: var(--orange);
}

.brand-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-mark::before {
  width: 12px;
  height: 48px;
  left: 8px;
  top: -5px;
  transform: rotate(42deg);
}

.brand-mark::after {
  width: 12px;
  height: 48px;
  right: 7px;
  top: -5px;
  transform: rotate(-42deg);
  opacity: 0.92;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  color: var(--orange-deep);
  font-size: 20px;
  letter-spacing: 0;
}

.brand-copy span {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 22px);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a {
  padding: 7px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--orange-deep);
  border-color: var(--orange);
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  cursor: pointer;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button-primary {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(255, 107, 46, 0.22);
}

.button-primary:hover {
  background: var(--orange-deep);
}

.button-secondary {
  color: var(--orange-deep);
  background: var(--panel);
  border-color: var(--orange);
}

.button-secondary:hover {
  background: var(--orange-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
}

.theme-icon {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
}

.theme-icon::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--panel);
  transform: scale(0);
  transition: transform 160ms ease;
}

html[data-theme="dark"] .theme-icon::after {
  transform: scale(1);
}

.theme-text {
  font-size: 13px;
  font-weight: 800;
}

.hero {
  min-height: calc(100vh - 74px);
  padding: clamp(44px, 7vw, 92px) clamp(18px, 4vw, 48px) 34px;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 107, 46, 0.15), transparent 30%),
    linear-gradient(180deg, var(--white) 0%, var(--panel-soft) 100%);
}

.hero-content {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(24px, 5vw, 62px);
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(46px, 6.2vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy h1::first-line {
  color: var(--ink);
}

.hero-copy h1 {
  text-wrap: balance;
}

.hero-copy h1 + .zh,
.page-hero .zh {
  margin: 18px 0 0;
  color: var(--orange-deep);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
}

.hero-copy > p:not(.zh),
.page-hero p:not(.zh),
.section-heading p,
.network-copy p {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  margin-top: 30px;
}

.hero-media {
  margin: 0;
  position: relative;
  min-height: 430px;
}

.hero-media img {
  width: 100%;
  height: min(56vw, 560px);
  min-height: 420px;
  object-fit: cover;
  object-position: center right;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
  max-width: 640px;
}

.trust-strip span {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 13px;
}

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

.section,
.page-hero {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 4vw, 48px);
}

.page-hero {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.66fr);
  align-items: center;
  gap: 42px;
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 107, 46, 0.13), transparent 26%),
    linear-gradient(180deg, var(--white), var(--lab));
}

.page-hero > * {
  max-width: var(--max);
}

.page-hero h1 {
  font-size: clamp(42px, 5vw, 72px);
}

.section > *,
.site-footer > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.centered {
  text-align: center;
}

.centered p {
  margin-left: auto;
  margin-right: auto;
}

.section-heading h2,
.network-copy h2,
.resource-contact h2,
.proof-grid h2,
.two-column h2,
.three-column h2 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.split-paths {
  padding-top: 52px;
}

.path-grid,
.two-column,
.three-column {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

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

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

.path-card,
.application-grid article,
.resource-grid article,
.proof-grid article,
.two-column article,
.three-column article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 12px 36px rgba(29, 31, 33, 0.05);
}

.path-card {
  min-height: 360px;
}

.path-card h3,
.application-grid span,
.number-list h3,
.number-list h2 {
  margin: 12px 0 8px;
  font-size: 22px;
  line-height: 1.15;
}

.path-card p,
.application-grid p,
.resource-grid p,
.two-column p,
.three-column p,
.proof-grid p {
  color: var(--muted);
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

.icon-badge svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.icon-badge.orange {
  color: var(--orange);
  background: var(--orange-soft);
}

.icon-badge.green {
  color: var(--green);
  background: rgba(31, 138, 91, 0.14);
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.green-accent .check-list li::before {
  background: var(--green);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-deep);
  font-weight: 800;
}

.text-link::after {
  content: "";
  width: 18px;
  height: 10px;
  background: currentColor;
  clip-path: polygon(0 40%, 70% 40%, 70% 0, 100% 50%, 70% 100%, 70% 60%, 0 60%);
}

.green-link {
  color: var(--green);
}

.technology-band,
.lab-band {
  background: var(--lab);
}

.tech-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.visual-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.visual-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.layer-visual {
  position: relative;
  height: 360px;
  perspective: 900px;
}

.layer {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 92px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(246, 247, 245, 0.92)),
    repeating-linear-gradient(0deg, rgba(102, 112, 116, 0.12), rgba(102, 112, 116, 0.12) 1px, transparent 1px, transparent 5px);
  box-shadow: 0 22px 54px rgba(29, 31, 33, 0.12);
  transform: rotateX(58deg) rotateZ(-10deg);
}

.layer.top {
  top: 48px;
}

.layer.bottom {
  bottom: 34px;
}

.active-cloud {
  position: absolute;
  inset: 118px 18% 118px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 42%, var(--orange) 0 5px, transparent 6px),
    radial-gradient(circle at 42% 30%, var(--green) 0 5px, transparent 6px),
    radial-gradient(circle at 64% 52%, var(--orange) 0 4px, transparent 5px),
    radial-gradient(circle at 76% 38%, var(--green) 0 4px, transparent 5px),
    radial-gradient(circle, rgba(255, 107, 46, 0.35), rgba(31, 138, 91, 0.18) 42%, transparent 72%);
  filter: blur(0.2px);
  box-shadow: 0 0 46px rgba(255, 107, 46, 0.28);
}

.page-layer {
  height: 300px;
}

.number-list {
  display: grid;
  gap: 22px;
  margin: 26px 0 32px;
}

.number-list article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

.number-list span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: var(--orange);
  font-weight: 800;
}

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

.number-list.wide {
  max-width: 900px;
}

.application-grid,
.resource-grid,
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.application-grid article {
  position: relative;
  overflow: hidden;
  min-height: 190px;
}

.application-grid article.with-image {
  padding: 0;
}

.application-grid article.with-image div {
  padding: 20px 22px 24px;
}

.application-grid article.with-image::before {
  display: none;
}

.app-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.application-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--green));
}

.application-grid span {
  display: block;
  font-weight: 800;
}

.application-grid small,
.resource-grid small,
.proof-grid small {
  display: block;
  margin-top: 12px;
  color: var(--green);
  font-size: 13px;
  line-height: 1.5;
}

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

.application-grid.detailed article {
  min-height: 245px;
}

.section-cta {
  margin-top: 34px;
}

.proof-section {
  background: linear-gradient(180deg, var(--white), var(--panel-soft));
}

.proof-media,
.resource-visual,
.contact-office {
  margin: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.proof-media img,
.resource-visual img,
.contact-office img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 30px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.proof-strip article {
  padding: 28px;
  border-right: 1px solid var(--line);
}

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

.proof-strip strong,
.proof-grid strong,
.metrics strong {
  color: var(--orange);
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1;
}

.proof-strip span,
.proof-grid span {
  margin-left: 6px;
  color: var(--orange-deep);
  font-weight: 800;
}

.proof-strip p {
  color: var(--muted);
  font-size: 14px;
}

.network-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1fr);
  gap: 42px;
  align-items: center;
  background: var(--lab);
}

.network-section > * {
  max-width: none;
  width: 100%;
  margin: 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0;
}

.metrics div {
  display: grid;
  gap: 6px;
}

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

.world-map,
.route-visual {
  position: relative;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 24% 35%, rgba(102, 112, 116, 0.14), transparent 24%),
    radial-gradient(ellipse at 48% 30%, rgba(102, 112, 116, 0.12), transparent 18%),
    radial-gradient(ellipse at 76% 42%, rgba(102, 112, 116, 0.12), transparent 24%),
    radial-gradient(ellipse at 72% 72%, rgba(102, 112, 116, 0.1), transparent 16%),
    radial-gradient(circle at 64% 53%, rgba(255, 107, 46, 0.16), transparent 12%),
    linear-gradient(135deg, var(--panel), var(--lab));
  overflow: hidden;
}

.map-image {
  position: relative;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.map-image img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.world-map::before,
.route-visual::before {
  content: "";
  position: absolute;
  inset: 42px;
  opacity: 0.25;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent 12%, #aeb7b5 13% 14%, transparent 15% 34%, #aeb7b5 35% 36%, transparent 37% 55%, #aeb7b5 56% 57%, transparent 58%),
    linear-gradient(0deg, transparent 20%, #aeb7b5 21% 22%, transparent 23% 49%, #aeb7b5 50% 51%, transparent 52% 78%, #aeb7b5 79% 80%, transparent 81%);
}

.world-map svg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.world-map path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.9;
}

.node {
  position: absolute;
  z-index: 3;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 8px rgba(255, 107, 46, 0.12);
}

.node.hk {
  right: 31%;
  top: 54%;
  width: auto;
  height: auto;
  padding: 8px 10px;
  color: var(--orange-deep);
  background: var(--panel);
  border: 1px solid var(--orange);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.node.na { left: 15%; top: 25%; }
.node.eu { left: 39%; top: 19%; }
.node.sea { right: 26%; bottom: 20%; background: var(--green); }
.node.au { right: 9%; bottom: 12%; }

.resource-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  gap: 44px;
}

.resource-contact > * {
  max-width: none;
  width: 100%;
  margin: 0;
}

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

.resource-grid.compact a {
  display: flex;
  align-items: center;
  min-height: 82px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--orange-deep);
  font-weight: 800;
  background: var(--panel);
}

.quick-form,
.large-form,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  background: var(--panel);
  box-shadow: 0 12px 36px rgba(29, 31, 33, 0.05);
}

.inquiry-form {
  display: grid;
  gap: 12px;
}

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

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--field-bg);
  font-size: 14px;
}

.inquiry-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--green);
  font-weight: 750;
}

.form-status.is-error {
  color: #c64228;
}

.form-status.is-success {
  color: var(--green);
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.route-visual {
  display: grid;
  place-items: center;
}

.route-visual span {
  position: relative;
  z-index: 2;
  padding: 14px 18px;
  color: var(--orange-deep);
  background: var(--panel);
  border: 1px solid var(--orange);
  border-radius: 999px;
  font-weight: 800;
}

.partner-route {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 107, 46, 0.18), transparent 18%),
    linear-gradient(135deg, var(--panel), var(--lab));
}

.comparison-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-row {
  display: grid;
  grid-template-columns: 0.75fr 1.2fr 1.2fr;
  border-bottom: 1px solid var(--line);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row span {
  padding: 18px;
  color: var(--muted);
  border-right: 1px solid var(--line);
}

.table-row span:last-child {
  border-right: 0;
}

.table-row.header {
  background: var(--orange-soft);
  font-weight: 800;
}

.table-row.header span,
.table-row span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.compliance-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: var(--max);
}

.check-grid span {
  position: relative;
  padding: 18px 18px 18px 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
}

.check-grid span::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 24px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.contact-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
}

.contact-card {
  display: grid;
  gap: 12px;
}

.contact-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.contact-card .contact-logo {
  background: var(--orange);
}

.contact-card span {
  color: var(--muted);
}

.contact-card a {
  color: var(--orange-deep);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
}

.contact-details strong {
  display: block;
  color: var(--ink);
}

.legal-hero {
  min-height: 300px;
}

.legal-content {
  display: grid;
  gap: 22px;
}

.legal-content article {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.legal-content article:last-child {
  border-bottom: 0;
}

.legal-content h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.legal-content p {
  color: var(--muted);
}

.legal-content a {
  color: var(--orange-deep);
  font-weight: 800;
}

.address-local {
  color: var(--muted);
  font-size: 0.95em;
}

.site-footer {
  padding: 42px clamp(18px, 4vw, 48px);
  background: var(--footer-bg);
  color: #eef1ef;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 36px;
}

.footer-brand,
.footer-columns,
.footer-note {
  max-width: var(--max);
}

.footer-brand {
  display: grid;
  gap: 12px;
  margin: 0;
}

.footer-brand .brand-mark {
  width: 42px;
  height: 42px;
}

.footer-brand .brand-logo-mark {
  width: 44px;
  height: 44px;
}

.footer-brand p,
.footer-note,
.site-footer a {
  color: #b8c0bd;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

.footer-columns div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-columns h3 {
  margin: 0 0 4px;
  color: var(--white);
  font-size: 14px;
}

.footer-columns a,
.footer-note {
  font-size: 13px;
}

.footer-note {
  grid-column: 1 / -1;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
}

.compact-footer {
  display: block;
  padding: 28px clamp(18px, 4vw, 48px);
}

.compact-footer p {
  max-width: var(--max);
  margin: 0 auto;
  color: #cbd1cf;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 12px;
  color: #b8c0bd;
  font-size: 13px;
}

.compact-footer .footer-legal {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.footer-legal a:hover {
  color: var(--white);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-nav.is-open {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 0;
    padding: 10px 0;
  }

  .theme-toggle {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .site-nav.is-open a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-content,
  .tech-layout,
  .network-section,
  .resource-contact,
  .page-hero {
    grid-template-columns: 1fr;
  }

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

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

@media (min-width: 1081px) and (max-width: 1320px) {
  .site-header {
    gap: 14px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .site-nav {
    gap: 11px;
    font-size: 13px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .button {
    min-height: 40px;
    padding: 0 13px;
    font-size: 13px;
  }

  .header-actions .button-secondary {
    display: none;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .trust-strip,
  .path-grid,
  .two-column,
  .three-column,
  .application-grid,
  .application-grid.four,
  .resource-grid,
  .proof-strip,
  .proof-grid,
  .metrics,
  .footer-columns,
  .form-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .theme-text {
    display: none;
  }

  .theme-toggle {
    width: 42px;
    padding: 0;
  }

  .proof-strip {
    border-radius: 8px;
  }

  .proof-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip article:last-child {
    border-bottom: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .layer-visual {
    height: 270px;
  }
}

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