:root {
  --navy: #071833;
  --navy-2: #0c2348;
  --ink: #10203a;
  --muted: #3e4d68;
  --line: #e4e9f2;
  --paper: #ffffff;
  --lavender: #f4f1f8;
  --blue: #1d4ed8;
  --blue-bright: #3b82f6;
  --mint: #c6f59b;
  --mint-deep: #b4ee84;
  --white: #ffffff;
  --header: 72px;
  --wrap: 1120px;
  --font: "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", "WenQuanYi Micro Hei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

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

h1, h2, h3 { text-wrap: balance; }

p { text-wrap: pretty; }

section { scroll-margin-top: 96px; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip:focus {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 40;
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 12px;
  overflow: visible;
  clip: auto;
  background: var(--navy);
  color: white;
  border-radius: 8px;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

::selection {
  background: #d7f8c4;
  color: var(--navy);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "brand nav cta";
  align-items: center;
  gap: 24px;
}

.brand {
  grid-area: brand;
  justify-self: start;
  display: flex;
  align-items: center;
}

.brand img,
.close-logo,
.footer-brand img {
  display: block;
  width: auto;
}

.brand img { height: 30px; }

.header-inner > .btn {
  grid-area: cta;
  justify-self: end;
}

.site-nav {
  grid-area: nav;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.site-nav a:hover { color: var(--blue); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn:hover { background: #1a43c2; }

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.hero {
  position: relative;
  isolation: isolate;
  color: white;
  background: var(--navy);
  padding: 88px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 24, 51, 0.96) 0%, rgba(7, 24, 51, 0.88) 34%, rgba(7, 24, 51, 0.45) 68%, rgba(7, 24, 51, 0.2) 100%),
    repeating-linear-gradient(
      90deg,
      #082047 0 64px,
      #0e3c86 64px 84px,
      #1d6fe8 84px 100px,
      #69a8ff 100px 112px,
      #123f8c 112px 148px,
      #082047 148px 210px
    );
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.hero-copy {
  max-width: 38rem;
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
}

h1 {
  margin-bottom: 20px;
  color: white;
  font-size: clamp(2.75rem, 5.4vw, 4.5rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.0625rem;
  font-weight: 400;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 32px;
}

.hero .btn { background: var(--mint); color: var(--navy); }
.hero .btn:hover { background: #d9ffb6; }

.text-link {
  color: white;
  font-weight: 700;
  text-underline-offset: 5px;
}

.text-link:hover { color: var(--mint); }

.stage { margin: 0; }

.screen {
  margin: 0;
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  padding: 8px 8px 8px;
  box-shadow: 0 28px 60px rgba(3, 10, 28, 0.28);
}

.screen-bar {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 8px;
}

.url {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f6fb;
  color: #4b5b78;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #f4f6f5;
}

.stage figcaption {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
}

.showcase {
  padding: 112px 0 64px;
  background: white;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 16px;
}

.section-head h2,
.cap-intro h2,
.close h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.section-head p { color: var(--muted); }

.shot {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 40px 56px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.shot-copy { padding-top: 8px; }

.shot:first-of-type { margin-top: 32px; }

.shot-index {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.shot h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.shot-copy p:last-child { color: var(--muted); }

.showcase .screen {
  border-color: var(--line);
  box-shadow: 0 16px 40px rgba(16, 32, 68, 0.08);
}

.capabilities {
  position: relative;
  isolation: isolate;
  padding: 112px 0;
  color: white;
  background: var(--navy);
  overflow: hidden;
}

.capabilities::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 24, 51, 0.55), rgba(7, 24, 51, 0.82)),
    repeating-linear-gradient(
      90deg,
      transparent 0 90px,
      rgba(59, 130, 246, 0.28) 90px 102px,
      rgba(147, 197, 253, 0.2) 102px 110px,
      transparent 110px 180px
    );
}

.cap-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 48px 72px;
  align-items: start;
}

.cap-intro h2,
.close h2 { color: white; }

.cap-intro p:last-child {
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.78);
}

.pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
}

.cap-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cap-list li {
  padding: 22px 0 22px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  position: relative;
}

.cap-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }

.cap-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 30px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--mint);
}

.cap-list h3 {
  margin-bottom: 6px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.cap-list p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9875rem;
}

.how {
  padding: 112px 0;
  background: linear-gradient(180deg, var(--lavender) 0%, #f7f8fb 100%);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0 0;
  padding: 0;
}

.steps li {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px 24px 32px;
  border: 1px solid rgba(16, 32, 58, 0.08);
  border-radius: 16px;
  background: white;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 700;
}

.steps h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

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

.keep { white-space: nowrap; }

.close {
  position: relative;
  isolation: isolate;
  padding: 112px 0;
  color: white;
  background: var(--navy);
  overflow: hidden;
}

.close::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 24, 51, 0.94) 0%, rgba(7, 24, 51, 0.72) 48%, rgba(7, 24, 51, 0.35) 100%),
    repeating-linear-gradient(
      90deg,
      #082047 0 64px,
      #0e3c86 64px 84px,
      #1d6fe8 84px 100px,
      #69a8ff 100px 112px,
      #123f8c 112px 148px,
      #082047 148px 210px
    );
}

.close-inner { max-width: 38rem; }

.close-logo {
  height: 36px;
  margin-bottom: 28px;
}

.close p {
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.8);
}

.close .btn {
  margin-top: 32px;
  background: var(--mint);
  color: var(--navy);
}

.close .btn:hover { background: #d9ffb6; }

.mail { margin-top: 20px; }

.mail a {
  color: white;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--mint);
}

.site-footer {
  padding: 36px 0 40px;
  background: #050e1f;
  color: rgba(255, 255, 255, 0.76);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.15fr 1.5fr auto;
  gap: 28px 32px;
  align-items: start;
}

.footer-brand img {
  height: 26px;
  margin-bottom: 12px;
}

.footer-brand p { font-size: 0.9375rem; }

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-top: 4px;
}

.site-footer a {
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover { color: var(--mint); }

.legal {
  margin: 0;
  padding-top: 4px;
  white-space: nowrap;
  font-size: 0.9375rem;
}

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "nav nav";
    height: auto;
    padding: 12px 0 10px;
    gap: 10px 16px;
  }

  .site-header { height: auto; }

  .site-nav {
    justify-self: start;
    gap: 20px;
  }

  section { scroll-margin-top: 128px; }

  .hero { padding: 56px 0 48px; }
  .hero-grid { gap: 48px; }

  .shot,
  .cap-grid,
  .steps,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .shot { gap: 20px; padding: 36px 0; align-items: start; }

  .showcase,
  .capabilities,
  .how,
  .close { padding: 72px 0; }

  .steps { margin-top: 28px; }

  .legal { white-space: normal; }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }

  h1 { font-size: 2.5rem; }

  .brand img { height: 26px; }

  .btn-sm { padding: 0 12px; }

  .hero-grid { gap: 40px; }

  .screen { border-radius: 14px; }

  .steps li { padding: 24px 20px 28px; }
}

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