:root {
  --ink: #171717;
  --muted: #5f6673;
  --canvas: #ffffff;
  --cloud: #f6f7f9;
  --fog: #eef1f5;
  --line: #dde3ea;
  --blue: #064bd8;
  --blue-dark: #0b3a9f;
  --blue-soft: #dce8ff;
  --dark: #15171c;
  --dark-soft: #222733;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--canvas);
  min-height: 100vh;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: white;
  background: var(--ink);
  font-weight: 850;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a,
.button {
  border-radius: 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  background: var(--fog);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button.primary,
.site-nav .nav-pill {
  color: white;
  background: var(--blue);
}

.button.primary:hover,
.site-nav .nav-pill:hover,
.site-nav .nav-pill.active {
  color: white;
  background: var(--blue-dark);
}

.button.secondary {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.button.secondary:hover {
  border-color: #c8d1dc;
  background: var(--cloud);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-weight: 800;
}

main {
  background: var(--canvas);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding: clamp(44px, 5vw, 64px) clamp(18px, 5vw, 72px) 36px;
}

.hero > *,
.split > * {
  min-width: 0;
}

.hero-copy h1,
.page-hero h1,
.portal-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lead,
.page-hero p,
.portal-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.72;
}

.page-hero h1,
.portal-hero h1 {
  max-width: 1100px;
  font-size: clamp(40px, 4.5vw, 58px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-panel {
  min-height: 460px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-header span {
  color: var(--muted);
  font-size: 13px;
}

.panel-header strong {
  color: var(--blue);
}

.control-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.preview-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.preview-card.accent {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.preview-card.wide {
  grid-column: 1 / -1;
}

.preview-card span,
.preview-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.preview-card strong {
  display: block;
  margin: 12px 0;
  font-size: 24px;
  line-height: 1.08;
}

.preview-card.accent span,
.preview-card.accent small {
  color: rgba(255, 255, 255, 0.78);
}

.compatibility-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.section,
.page-hero,
.portal-hero,
.product-list,
.timeline,
.portal-cards,
.notice {
  padding: 54px clamp(18px, 5vw, 72px);
}

.section:nth-of-type(even) {
  background: var(--cloud);
}

.split {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

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

.section h2,
.application-band h2,
.compatibility-panel h2,
.portal-strip h2,
.contact-panel h2,
.notice h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

.capability-grid,
.proof-grid,
.portal-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.capability-card,
.proof-item,
.product-card,
.timeline-step,
.portal-card,
.notice {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.capability-card,
.proof-item,
.timeline-step {
  padding: 24px;
}

.capability-card span,
.timeline-step span,
.portal-card span {
  color: var(--blue);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

.capability-card h3,
.proof-item strong,
.timeline-step h2,
.portal-card h2,
.product-card h2 {
  color: var(--ink);
  letter-spacing: 0;
}

.capability-card h3,
.timeline-step h2,
.portal-card h2,
.product-card h2 {
  margin: 12px 0 8px;
  font-size: 28px;
  line-height: 1.15;
}

.proof-item strong {
  display: block;
  font-size: 23px;
  line-height: 1.18;
}

.capability-card p,
.proof-item p,
.product-card p,
.timeline-step p,
.portal-card p,
.notice li,
.compatibility-panel p,
.application-band p,
.portal-strip p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.72;
}

.proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.application-band,
.compatibility-panel,
.portal-strip,
.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 54px clamp(18px, 5vw, 72px);
  padding: 32px;
  border-radius: 16px;
  background: var(--dark);
  color: white;
}

.application-band .eyebrow,
.portal-strip .eyebrow,
.contact-panel .eyebrow {
  color: var(--blue-soft);
}

.application-band h2,
.portal-strip h2,
.contact-panel h2 {
  color: white;
}

.application-band p,
.portal-strip p,
.contact-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.compatibility-panel {
  background: var(--cloud);
  color: var(--ink);
  border: 1px solid var(--line);
}

.compatibility-panel .eyebrow {
  color: var(--blue-dark);
}

.application-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.application-list span,
.compatibility-line span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.compatibility-line span {
  color: var(--ink);
  background: var(--blue-soft);
}

.compatibility-panel p,
.application-band p,
.portal-strip p,
.contact-panel p {
  max-width: 680px;
}

.page-hero,
.portal-hero {
  padding-top: 56px;
  padding-bottom: 44px;
  background: var(--cloud);
}

.product-list,
.timeline,
.portal-cards {
  padding-top: 32px;
}

.portal-page main {
  background: var(--canvas);
}

.product-list,
.timeline {
  display: grid;
  gap: 18px;
}

.product-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
}

.product-index {
  display: grid;
  place-items: center;
  min-height: 110px;
  border-radius: 12px;
  color: white;
  background: var(--ink);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.product-card ul,
.notice ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.portal-card {
  display: block;
  min-height: 260px;
  padding: 30px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.portal-card:hover {
  border-color: #c8d1dc;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.portal-card strong {
  display: inline-block;
  margin-top: 24px;
  color: var(--blue);
  overflow-wrap: anywhere;
}

.notice {
  margin: 0 clamp(18px, 5vw, 72px) 54px;
  padding: 30px;
  background: var(--cloud);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: white;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.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;
    transition: none;
  }
}

@media (max-width: 980px) {
  .hero,
  .split,
  .product-card {
    grid-template-columns: 1fr;
  }

  .capability-grid,
  .proof-grid,
  .timeline,
  .three-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .site-header {
    align-items: center;
    gap: 14px;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    justify-content: flex-start;
    min-height: 42px;
  }

  .capability-grid,
  .proof-grid,
  .timeline,
  .portal-cards,
  .metric-grid,
  .three-up,
  .control-preview {
    grid-template-columns: 1fr;
  }

  .preview-card.wide {
    grid-column: auto;
  }

  .application-band,
  .compatibility-panel,
  .portal-strip,
  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-copy h1,
  .page-hero h1,
  .portal-hero h1 {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.08;
  }

  .lead,
  .page-hero p,
  .portal-hero p {
    font-size: 17px;
  }

  .section h2,
  .application-band h2,
  .compatibility-panel h2,
  .portal-strip h2,
  .contact-panel h2,
  .notice h2 {
    font-size: 32px;
  }

  .panel-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-height: 48px;
    padding: 0 14px;
  }
}

@media (max-width: 420px) {
  .hero-copy h1,
  .page-hero h1,
  .portal-hero h1 {
    font-size: 34px;
  }

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

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

  .site-header {
    padding-inline: 14px;
  }
}
