:root {
  color-scheme: light;
  --ink: #142033;
  --ink-strong: #07111f;
  --paper: #f7f4ec;
  --porcelain: #fffdf8;
  --line: rgba(20, 32, 51, 0.14);
  --teal: #0f766e;
  --teal-dark: #115e59;
  --amber: #c2842f;
  --red: #b44434;
  --blue: #153f69;
  --muted: #647185;
  --shadow: 0 20px 70px rgba(20, 32, 51, 0.18);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--porcelain);
  letter-spacing: 0;
}

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

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

button {
  font: inherit;
}

.siteHeader {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 52px);
  color: #f8fbff;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.siteHeader[data-scrolled="true"] {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brandMark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

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

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.78;
}

.navLinks {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 14px;
}

.navLinks a {
  opacity: 0.82;
}

.navLinks a:hover {
  opacity: 1;
}

.headerAction,
.primaryButton,
.secondaryButton,
.ghostAction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.headerAction {
  padding: 0 16px;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.1);
}

.siteHeader[data-scrolled="true"] .headerAction {
  color: #fff;
  background: var(--ink-strong);
  border-color: var(--ink-strong);
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  background: var(--ink-strong);
}

.heroImage,
.heroShade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.heroImage {
  object-fit: cover;
  object-position: center;
}

.heroShade {
  background:
    linear-gradient(90deg, rgba(5, 12, 23, 0.86) 0%, rgba(7, 17, 31, 0.72) 36%, rgba(7, 17, 31, 0.2) 72%),
    linear-gradient(0deg, rgba(7, 17, 31, 0.52), rgba(7, 17, 31, 0.04) 42%);
}

.heroContent {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92vh;
  width: min(760px, calc(100% - 36px));
  padding: 100px 0 72px;
  margin-left: clamp(18px, 6vw, 92px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.04;
  font-weight: 800;
}

.heroLead {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
}

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

.primaryButton,
.secondaryButton {
  min-width: 176px;
  padding: 0 20px;
  font-weight: 720;
}

.primaryButton {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.primaryButton:hover {
  background: var(--teal-dark);
}

.secondaryButton {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.serviceNotice {
  max-width: 620px;
  margin: 22px 0 0;
  padding-left: 14px;
  color: rgba(255, 255, 255, 0.78);
  border-left: 3px solid var(--amber);
  line-height: 1.7;
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
}

.sectionHeading {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(320px, 1.25fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 42px;
}

.sectionHeading.compact {
  display: block;
  max-width: 760px;
  margin-bottom: 32px;
}

.sectionHeading h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.12;
}

.sectionHeading p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.75;
}

.introBand {
  background: var(--porcelain);
}

.principleGrid,
.capabilityGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.principleCard,
.capabilityGrid article {
  min-height: 234px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(20, 32, 51, 0.06);
}

.cardIcon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: var(--blue);
  border-radius: 7px;
}

.principleCard:nth-child(2) .cardIcon {
  background: var(--teal);
}

.principleCard:nth-child(3) .cardIcon {
  background: var(--red);
}

.principleCard h3,
.capabilityGrid h3,
.demoPanel h3 {
  margin: 18px 0 10px;
  color: var(--ink-strong);
  font-size: 21px;
}

.principleCard p,
.capabilityGrid p,
.panelContent li,
.roadmap p,
.noticeGrid p {
  color: var(--muted);
  line-height: 1.78;
}

.demoSection {
  background: #edf3f1;
}

.demoShell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 24px;
  align-items: stretch;
  max-width: 1240px;
  margin: 0 auto;
}

.demoMedia {
  overflow: hidden;
  border: 1px solid rgba(20, 32, 51, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.demoMedia img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: left top;
}

.demoPanel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(20, 32, 51, 0.12);
  border-radius: 8px;
  background: var(--porcelain);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.segment {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.segment.isActive {
  color: #fff;
  background: var(--ink);
}

.panelContent {
  display: none;
}

.panelContent.isActive {
  display: block;
}

.panelKicker {
  margin: 28px 0 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.panelContent ul {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  margin: 18px 0 30px;
}

.ghostAction {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.ghostAction:hover {
  border-color: rgba(15, 118, 110, 0.5);
  color: var(--teal-dark);
}

.capabilities {
  background: var(--ink-strong);
}

.capabilities .sectionHeading h2 {
  color: #fff;
}

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

.capabilityGrid article {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: none;
}

.capabilityGrid span {
  color: var(--amber);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.capabilityGrid h3 {
  color: #fff;
}

.capabilityGrid p {
  color: rgba(255, 255, 255, 0.72);
}

.roadmapSection {
  background: var(--paper);
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  padding: 0;
  margin: 0 auto;
  list-style: none;
}

.roadmap li {
  position: relative;
  min-height: 220px;
  padding: 26px;
  border-left: 4px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.roadmap li.isDone {
  border-color: var(--teal);
}

.roadmap time {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--amber);
  font-weight: 800;
}

.roadmap strong {
  display: block;
  color: var(--ink-strong);
  font-size: 21px;
}

.compliance {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  background: var(--porcelain);
}

.compliance h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(30px, 4vw, 50px);
}

.noticeGrid {
  display: grid;
  gap: 14px;
}

.noticeGrid p {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 28px;
  max-width: min(560px, calc(100vw - 32px));
  padding: 12px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 7px;
  box-shadow: 0 18px 48px rgba(7, 17, 31, 0.28);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.isVisible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.siteFooter {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 28px 18px 34px;
  color: rgba(255, 255, 255, 0.74);
  background: var(--ink-strong);
  text-align: center;
}

.siteFooter p {
  margin: 0;
}

.icpLink {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .siteHeader {
    grid-template-columns: 1fr auto;
  }

  .navLinks {
    display: none;
  }

  .sectionHeading,
  .demoShell,
  .compliance {
    grid-template-columns: 1fr;
  }

  .principleGrid,
  .capabilityGrid,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .demoMedia img {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .siteHeader {
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brandMark {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .brand strong {
    font-size: 16px;
  }

  .headerAction {
    width: 42px;
    min-width: 42px;
    padding: 0;
    font-size: 0;
  }

  .headerAction span {
    font-size: 18px;
  }

  .hero {
    min-height: 96vh;
  }

  .heroShade {
    background:
      linear-gradient(90deg, rgba(5, 12, 23, 0.9), rgba(7, 17, 31, 0.62)),
      linear-gradient(0deg, rgba(7, 17, 31, 0.55), rgba(7, 17, 31, 0.1));
  }

  .heroContent {
    min-height: 96vh;
    width: calc(100% - 32px);
    margin: 0 auto;
    padding-top: 86px;
  }

  .heroActions {
    flex-direction: column;
    align-items: stretch;
  }

  .primaryButton,
  .secondaryButton {
    width: 100%;
  }

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .demoPanel,
  .principleCard,
  .capabilityGrid article,
  .roadmap li {
    padding: 20px;
  }
}
