:root {
  --ink: #0d1726;
  --ink-soft: #42526a;
  --muted: #6d7b90;
  --line: rgba(120, 144, 176, 0.24);
  --paper: #f7fbff;
  --paper-strong: #ffffff;
  --cyan: #38d5ff;
  --cyan-deep: #0ea5e9;
  --green: #34d399;
  --violet: #a78bfa;
  --amber: #fbbf24;
  --deep: #07111f;
  --deep-2: #0a1830;
  --shadow: 0 22px 60px rgba(13, 23, 38, 0.14);
  color-scheme: light;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    Arial,
    sans-serif;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #07111f 0, #09172a 790px, #f6fbff 791px, #f6fbff 100%);
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid rgba(190, 223, 255, 0.16);
  border-radius: 22px;
  background: rgba(7, 17, 31, 0.72);
  color: #eaf7ff;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

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

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy strong {
  font-size: 16px;
  line-height: 1.2;
}

.brand-copy span {
  margin-top: 3px;
  color: rgba(219, 234, 254, 0.72);
  font-size: 12px;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
}

.site-nav a {
  color: rgba(234, 247, 255, 0.76);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.header-action {
  padding: 0 16px;
  background: #eaf7ff;
  color: #07111f;
  font-size: 14px;
}

.button {
  padding: 0 22px;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #eaf7ff, #a7f3ff);
  color: #07111f;
  box-shadow: 0 18px 42px rgba(56, 213, 255, 0.2);
}

.button-secondary {
  border-color: rgba(190, 223, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #eaf7ff;
}

.button-arrow {
  width: 16px;
  height: 16px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 760px;
  padding: 150px max(20px, calc((100vw - 1180px) / 2)) 86px;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.98) 0%, rgba(8, 24, 43, 0.98) 66%, rgba(7, 17, 31, 0.96) 100%);
  color: #ffffff;
  isolation: isolate;
}

.hero-canvas,
.hero-grid,
.hero-scanline {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.hero-canvas {
  display: block;
  width: 100%;
  height: 100%;
  z-index: -3;
  opacity: 0.9;
}

.hero-grid {
  z-index: -2;
  background-image:
    linear-gradient(rgba(114, 198, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 198, 255, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.42) 78%, transparent);
}

.hero-scanline {
  z-index: -1;
  background:
    linear-gradient(100deg, transparent 8%, rgba(56, 213, 255, 0.1) 42%, transparent 70%),
    radial-gradient(circle at 72% 38%, rgba(167, 139, 250, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(7, 17, 31, 0.12), rgba(7, 17, 31, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-top: 8px;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  width: 100%;
  margin: 18px 0 0;
  color: #ffffff;
  font-size: clamp(46px, 5vw, 72px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-lead {
  width: min(780px, 100%);
  margin: 24px auto 0;
  color: rgba(226, 241, 255, 0.82);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.matrix-card span {
  display: block;
  color: rgba(226, 241, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  padding: 88px max(20px, calc((100vw - 1180px) / 2));
}

.section-light {
  background: var(--paper);
}

.section-dark {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #081326, #0c1931),
    var(--deep-2);
  color: #ffffff;
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(114, 198, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 198, 255, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.58;
}

.section-dark > * {
  position: relative;
}

.section-heading {
  width: 100%;
  margin-bottom: 36px;
}

.section-heading h2,
.contact-card h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0;
}

.section-heading p:last-child,
.contact-card p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.8;
}

.section-heading.inverted p:last-child {
  color: rgba(226, 241, 255, 0.72);
}

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

.capability-card {
  min-height: 262px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.card-index {
  color: var(--cyan-deep);
  font-size: 13px;
  font-weight: 900;
}

.capability-card h3,
.scenario-item h3,
.matrix-card h3 {
  margin: 18px 0 0;
  font-size: 22px;
  line-height: 1.32;
}

.capability-card p,
.scenario-item p,
.matrix-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

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

.matrix-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(190, 223, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.18);
}

.matrix-primary {
  background:
    linear-gradient(135deg, rgba(56, 213, 255, 0.2), rgba(167, 139, 250, 0.16)),
    rgba(255, 255, 255, 0.06);
}

.product-logo {
  display: block;
  width: 76px;
  height: 76px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.matrix-card p {
  color: rgba(226, 241, 255, 0.7);
}

.scenario-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (min-width: 900px) {
  .section-heading h2 {
    white-space: nowrap;
  }
}

.scenario-item {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #f8fcff);
}

.contact-section {
  padding: 0 max(20px, calc((100vw - 1180px) / 2)) 92px;
  background: var(--paper);
}

.contact-card {
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid rgba(120, 144, 176, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(167, 139, 250, 0.1)),
    #ffffff;
  box-shadow: var(--shadow);
}

.contact-card .button {
  margin-top: 28px;
}

.contact-card .button-primary {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(13, 23, 38, 0.2);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(20px, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(120, 144, 176, 0.2);
  background: #ffffff;
  color: var(--ink-soft);
  font-size: 14px;
}

.site-footer div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer strong {
  color: var(--ink);
}

.footer-meta {
  align-items: flex-end;
  text-align: right;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 720px) {
  .site-shell {
    background:
      linear-gradient(180deg, #07111f 0, #09172a 760px, #f6fbff 761px, #f6fbff 100%);
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 58px;
    border-radius: 18px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-action {
    display: none;
  }

  .hero {
    padding-top: 112px;
    padding-bottom: 58px;
  }

  .hero-content {
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 42px);
    white-space: normal;
  }

  .hero h1 span {
    display: block;
  }

  .hero-lead {
    margin-left: 0;
    margin-right: 0;
  }

  .capability-grid,
  .matrix-grid,
  .scenario-list {
    grid-template-columns: 1fr;
  }

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

  .button {
    width: 100%;
  }

  .section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .capability-card,
  .matrix-card {
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-meta {
    align-items: flex-start;
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hero-canvas {
    display: none;
  }
}
