.home-gateway {
  --gateway-navy: #142a39;
  --gateway-teal: #244a44;
  --gateway-ice: #dcebf0;
  --gateway-sand: #fbecd3;
  --gateway-amber: #f8c073;
}

.home-gateway h1 {
  font-size: clamp(2rem, 5.4vw, 4.65rem);
  font-weight: 630;
  letter-spacing: -.045em;
  line-height: 1.08;
  text-wrap: pretty;
}

.home-gateway h1 span { display: block; }
.home-gateway h1 span + span { color: var(--gateway-amber); }
html:lang(zh) .home-gateway h1 { letter-spacing: 0; line-height: 1.2; }
.home-gateway h2 { font-size: clamp(1.8rem, 4vw, 3.5rem); }
.home-gateway h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }

.gateway-masthead {
  color: #f9f7eb;
  background: radial-gradient(ellipse at 96% 5%, #2e5148 0%, transparent 65%), #142624;
}

.gateway-intro {
  display: grid;
  align-items: end;
  gap: 22px;
  padding-block: clamp(24px, 6vw, 82px);
}

.gateway-kicker {
  margin-bottom: 9px;
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .045em;
}

.gateway-masthead .gateway-kicker { color: #c4d8ca; }
.gateway-lead { max-width: 48ch; margin: 12px 0 16px; color: #e0e6df; }
.gateway-lead--secondary { max-width: 42ch; margin: 0 0 18px; font-size: .95rem; color: #b9cbc1; }

.gateway-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #102320;
  background: var(--gateway-amber);
  font-weight: 700;
  text-align: center;
}

.gateway-button:hover { background: #ffcf92; }

.gateway-paths {
  display: grid;
  border-block-start: 1px solid #667d70;
}

.gateway-paths a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 9px 2px;
  border-block-end: 1px solid #667d70;
  font-weight: 650;
  line-height: 1.25;
}

.gateway-paths a span:last-child { color: var(--gateway-amber); }
.gateway-paths a:hover { color: #ffdcac; }
.gateway-paths a:last-child { color: #deebe1; font-size: .92rem; font-weight: 500; }
.gateway-scenes { background: #eef3ec; padding-block: clamp(38px, 7vw, 88px); }
.gateway-scenes .gateway-kicker { color: #36594d; }

.gateway-scene-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  margin-top: 21px;
}

.gateway-scene { min-width: 0; padding: clamp(18px, 3.8vw, 38px); border-radius: 10px; }
.gateway-scene--firewall { background: var(--gateway-sand); }
.gateway-scene--alerts { background: var(--gateway-ice); }
.gateway-scene p { margin-top: 8px; max-width: 45ch; color: #354944; }
.gateway-arrow-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 5px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.gateway-route, .gateway-alerts {
  display: flex;
  align-items: center;
  height: 101px;
  margin-bottom: 16px;
}

.gateway-route { justify-content: center; gap: clamp(3px, 2vw, 13px); }

.gateway-window, .gateway-checkout {
  position: relative;
  flex: 0 1 65px;
  min-width: 41px;
  height: 52px;
  padding: 4px 7px;
  border: 2px solid #885a28;
  border-radius: 5px;
  background: #fffcf3;
}

.gateway-window i { display: inline-block; width: 4px; height: 4px; margin-right: 3px; border-radius: 50%; background: #885a28; vertical-align: top; }
.gateway-window span, .gateway-checkout i { display: block; width: 70%; height: 3px; margin-bottom: 4px; border-radius: 3px; background: #bd9366; }
.gateway-window span:first-of-type { margin-top: 1px; width: 100%; }
.gateway-connector { color: #90613a; font-size: 1.1rem; font-weight: 700; letter-spacing: 1px; }

.gateway-shield {
  display: grid;
  place-items: center;
  flex: 0 0 clamp(38px, 10vw, 56px);
  aspect-ratio: 1;
  padding-bottom: 3px;
  clip-path: polygon(50% 0, 94% 14%, 89% 59%, 72% 82%, 50% 100%, 28% 82%, 11% 59%, 6% 14%);
  background: #7b481f;
  color: #fff7e6;
  font-size: 1.2rem;
}

.gateway-checkout { display: flex; flex-direction: column; justify-content: center; }
.gateway-checkout i:last-child { width: 52%; height: 6px; margin-bottom: 0; background: #7b481f; }
.gateway-alerts { justify-content: center; flex-direction: column; gap: 3px; }

.gateway-alerts div {
  display: grid;
  grid-template-columns: 10px 1fr 1fr;
  align-items: center;
  gap: 8px;
  width: min(78%, 184px);
  min-height: 24px;
  padding: 5px 9px;
  border: 1px solid #779ba9;
  border-radius: 4px;
  background: #eef9fb;
}

.gateway-alerts div:nth-child(2) { width: min(85%, 204px); background: #2d5367; }
.gateway-alerts i { width: 8px; height: 8px; border-radius: 50%; background: #5a8799; }
.gateway-alerts span { height: 3px; border-radius: 2px; background: #90afba; }
.gateway-alerts span:last-child { width: 62%; }
.gateway-alerts div:nth-child(2) i { background: var(--gateway-amber); }
.gateway-alerts div:nth-child(2) span { background: #d9edf1; }

.gateway-review { padding-block: clamp(38px, 7vw, 92px); color: #f6f9f8; background: var(--gateway-navy); }
.gateway-review .gateway-kicker { color: #bcd9e2; }
.gateway-review-layout { display: grid; gap: 23px; }

.gateway-evidence {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gateway-evidence > li {
  display: grid;
  gap: 6px;
  padding: 13px 15px;
  border-inline-start: 3px solid #8db3c4;
  border-radius: 4px;
  background: #214357;
}

.gateway-evidence > li:nth-child(2) { border-color: #96caba; background: #24534f; }
.gateway-evidence > li:last-child { border-color: var(--gateway-amber); background: #f5d7a5; color: #223126; }
.gateway-evidence p, .gateway-evidence ul { font-size: .95rem; line-height: 1.48; }
.gateway-evidence ul { margin: 0; padding-inline-start: 1.15em; }
.gateway-about { padding-block: clamp(36px, 6vw, 78px); background: #f6f5ef; }
.gateway-about-layout, .gateway-quote-layout { display: grid; gap: 13px; }
.gateway-about p { max-width: 59ch; color: #354944; }
.gateway-quote { padding-block: clamp(28px, 5vw, 58px); background: #eed4a8; color: #1b2e27; }
.gateway-quote p { max-width: 51ch; margin-top: 9px; }
.gateway-quote-links { display: flex; align-items: flex-start; flex-direction: column; gap: 4px; }
.gateway-quote .gateway-button { color: #fff5dc; background: var(--gateway-teal); }
.gateway-quote .gateway-button:hover { background: #173d36; }
.gateway-quote-links a:last-child { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 700px) {
  .gateway-scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); }
  .gateway-review-layout, .gateway-about-layout, .gateway-quote-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); align-items: start; gap: 32px; }
  .gateway-quote-layout { align-items: center; }
  .gateway-scene { display: flex; flex-direction: column; align-items: flex-start; }
  .gateway-scene .gateway-route, .gateway-scene .gateway-alerts { align-self: stretch; }
  .gateway-scene .gateway-arrow-link { margin-top: auto; padding-top: 5px; }
}

@media (min-width: 840px) {
  .gateway-intro { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(35px, 7vw, 100px); }
}

.partners { background: #f6f5ef; color: #142624; padding-block: clamp(32px, 5vw, 64px); }
.partners h2 { font-size: clamp(24px, 3vw, 36px); margin: 0 0 20px; }
.partners-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  place-items: center;
  gap: clamp(20px, 4vw, 56px);
}
.partners-logos img {
  display: block;
  width: min(100%, 200px);
  height: 64px;
  object-fit: contain;
}
.partners-logos .partner-chaitin {
  background: #142624;
  padding: 6px 10px;
  border-radius: 6px;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .partners-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.gateway-intro { align-items:center; }
.hero-delivery { min-width:0; background:#193735; color:#f3f5ed; border:1px solid #708e82; border-radius:14px; padding:clamp(14px,2.5vw,28px); }
.hero-delivery h2 { font-size:clamp(1.25rem,2vw,1.85rem); margin:4px 0 12px; }
.hero-delivery .tour-controls { display:flex; gap:6px; }
.hero-delivery button { min-height:44px; min-width:44px; padding:6px 12px; border:1px solid #8da79a; background:transparent; color:inherit; border-radius:5px; cursor:pointer; }
.hero-delivery button[data-tour-play] { background:#f8c073; color:#172b26; border-color:transparent; font-weight:700; }
.hero-delivery .delivery-stages { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); list-style:none; padding:0; margin:14px 0 4px; gap:8px; }
.delivery-stages li { padding:7px 4px; border-bottom:3px solid #688579; font-size:.82rem; }
.delivery-stages li[aria-current] { border-color:#f8c073; color:#ffdb9d; }
.hero-stage-icon { display:block; font:600 24px/1.1 monospace; }
.hero-delivery .tour-status { font-size:.85rem; color:#ffdb9d; margin-top:10px; }
.hero-delivery .tour-summary { min-height:3.9em; line-height:1.4; margin:4px 0 10px; }
.hero-delivery a { color:#fff3d9; text-decoration:underline; font-size:.9rem; }
.delivery-paths {padding-block:18px;}.delivery-paths .gateway-paths a,.delivery-paths .gateway-paths a:last-child {color:#183832;border-color:#aac2b3}.delivery-paths .gateway-paths a span:last-child{color:#466758}
@media(min-width:800px){.gateway-intro{grid-template-columns:1fr 1fr}.delivery-paths .gateway-paths{display:flex;flex-wrap:wrap;gap:18px}}
@media(max-width:600px){.gateway-intro{padding-block:18px;gap:15px}.gateway-intro h1{font-size:clamp(1.65rem,6vw,2.2rem)}.gateway-intro .gateway-lead{margin-block:7px 10px}.gateway-intro .gateway-kicker{margin:0}}
@media(prefers-reduced-motion:no-preference){.delivery-stages li[aria-current] .hero-stage-icon{animation:delivery-focus .65s ease-out}@keyframes delivery-focus{from{transform:translateY(5px);opacity:.3}to{transform:none;opacity:1}}}

.delivery-screen { display:grid;grid-template-columns:42px 1fr 34px 1fr 44px;align-items:center;margin:17px 4px 3px; }
.delivery-feed { display:grid;gap:3px; }
.delivery-feed i { height:4px;background:#81b4a6;border-left:7px solid #f8c073;border-radius:2px; }
.delivery-line { height:2px;background:#669382;position:relative; }
.delivery-sheet { display:grid;gap:3px;border:1px solid #8aa99d;padding:6px;border-radius:3px; }
.delivery-sheet i,.delivery-sheet b { height:2px;background:#adc8ba; }
.delivery-sheet b { width:55%;background:#f8c073; }
.delivery-inbox { color:#b5d9ca;border:1px solid #8aa99d;padding:2px;border-radius:4px;text-align:center; }
.delivery-inbox i { display:none; }
.hero-delivery[data-phase="2"] .delivery-inbox i { display:inline;color:#ffc976; }
@media(prefers-reduced-motion:no-preference){
 .hero-delivery:has([data-play-label][hidden]) .delivery-feed i { animation:delivery-scan 1.6s ease-in-out infinite alternate; }
 .hero-delivery:has([data-play-label][hidden]) .delivery-feed i:nth-child(even){animation-delay:.45s}
 .hero-delivery:has([data-play-label][hidden]) .delivery-line::after {content:'';position:absolute;top:-2px;height:6px;width:6px;border-radius:50%;background:#ffcf84;animation:delivery-travel 1.6s linear infinite;}
 .hero-delivery:has([data-play-label][hidden]) .delivery-line:nth-of-type(2)::after {animation-delay:.8s;}
 @keyframes delivery-travel{from{left:0}to{left:95%}}
 @keyframes delivery-scan{from{opacity:.4}to{opacity:1}}
}
@media (max-width:600px) {
  .gateway-intro > div:first-child { display:contents; }
  .gateway-intro > div > .gateway-kicker { display:none; }
  .gateway-intro h1 { order:0; }
  .gateway-intro .hero-delivery { order:1; }
  .gateway-intro .gateway-lead { order:2; }
  .gateway-intro .gateway-button { order:3; justify-self:start; }
}

.guardian-demo{min-width:0}.guardian-demo>p{padding:.6rem 0;font-size:.9rem}.guardian-demo a{color:#cfebda;text-decoration:underline}@media(min-width:801px){.gateway-intro:has(.guardian-demo){align-items:start}.gateway-intro:has(.guardian-demo)>div:first-child{position:sticky;top:2rem}}@media(max-width:600px){.gateway-intro .guardian-demo{order:1}}

.gateway-intro:has(.guardian-jump) { display:block; }
.gateway-intro:has(.guardian-jump) > div { display:block; max-width:54rem; }
.guardian-jump { display:inline-flex; align-items:center; min-height:44px; color:#cdece0; margin-right:1.25rem; }
.guardian-showcase { background:#0e2922; padding:clamp(24px,5vw,60px) 0; scroll-margin-top:5rem; }

@media (width > 900px) {
  .delivery-paths { display: none; }
}
