:root {
  --bg: #04101f;
  --bg-soft: #071b30;
  --surface: rgba(10, 27, 49, 0.72);
  --surface-strong: rgba(10, 27, 49, 0.92);
  --line: rgba(149, 194, 255, 0.18);
  --line-strong: rgba(149, 194, 255, 0.35);
  --text: #ecf4ff;
  --text-dim: rgba(236, 244, 255, 0.72);
  --text-dark: #17304e;
  --text-dark-dim: rgba(23, 48, 78, 0.72);
  --accent: #62b4ff;
  --accent-strong: #0f86ff;
  --light: #f4f8fd;
  --shadow: 0 24px 80px rgba(0, 8, 20, 0.35);
  --container: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(39, 118, 219, 0.32), transparent 28%),
    linear-gradient(180deg, #020814 0%, #071527 46%, #04101f 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

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

button {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.page-shell {
  overflow: clip;
}

.site-header {
  position: absolute;
  top: 26px;
  left: 42px;
  right: 42px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 44px;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  width: 150px;
  height: auto;
}

.site-nav a,
.hero h1,
.section-heading h2,
.feature-card h3,
.product-card h3,
.solution-card h3,
.news-card h3,
.site-footer h2,
.about-grid h3 {
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.site-nav a {
  color: var(--text-dim);
  font-size: 0.96rem;
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 112px 0 48px;
}

.hero-backdrop,
.hero-slide,
.hero-slide img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-backdrop {
  overflow: hidden;
}

.hero-slide {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  color: #ffffff;
  text-align: left;
}

.hero-caption h1 {
  margin: 0;
  max-width: 12ch;
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(2.8rem, 5.6vw, 4.8rem);
  line-height: 1.08;
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.25);
}

.hero-caption p {
  margin: 22px 0 0;
  max-width: 34em;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 16, 31, 0.92) 0%, rgba(3, 16, 31, 0.64) 44%, rgba(3, 16, 31, 0.16) 100%),
    linear-gradient(180deg, rgba(3, 16, 31, 0.22) 0%, rgba(3, 16, 31, 0.78) 100%);
}

.hero-content,
.hero-rail {
  position: relative;
  z-index: 1;
}

body[data-page="home"] .hero {
  min-height: 78vh;
  padding-bottom: 0;
}

body[data-page="home"] .hero-slide img {
  object-position: center center;
}

body[data-page="home"] .home-rail-section {
  padding-top: 28px;
}

body[data-page="home"] .hero-rail {
  margin-top: 0;
}

body[data-page="home"] .rail-card {
  background: rgba(7, 24, 44, 0.94);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: #8fc8ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.9rem, 6vw, 5.8rem);
  line-height: 1.02;
  max-width: 12ch;
}

.hero p,
.section-heading p,
.split-copy p,
.developer-panel p,
.site-footer p {
  color: var(--text-dim);
  line-height: 1.9;
}

.hero p {
  max-width: 56ch;
  margin: 22px 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 172px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, #8fd4ff 0%, #0f86ff 100%);
  color: #04101f;
  font-weight: 700;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  gap: 18px;
  margin-top: 40px;
}

.hero-metrics div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(7, 26, 49, 0.45);
  backdrop-filter: blur(18px);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 2rem;
}

.hero-metrics span {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.hero-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sub-hero {
  position: relative;
  padding: 180px 0 92px;
  background:
    radial-gradient(circle at top right, rgba(39, 118, 219, 0.25), transparent 26%),
    linear-gradient(180deg, #061425 0%, #081b31 100%);
}

.sub-hero.has-image {
  min-height: 70vh;
  overflow: hidden;
}

.sub-hero.has-image > img,
.sub-hero-overlay {
  position: absolute;
  inset: 0;
}

.sub-hero.has-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sub-hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 16, 31, 0.9) 0%, rgba(3, 16, 31, 0.58) 48%, rgba(3, 16, 31, 0.42) 100%),
    linear-gradient(180deg, rgba(3, 16, 31, 0.18) 0%, rgba(3, 16, 31, 0.84) 100%);
}

.sub-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: left;
}

.sub-hero-content h1 {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.08;
}

.sub-hero-content p {
  margin: 20px 0 0;
  color: var(--text-dim);
  line-height: 1.9;
  font-size: 1.05rem;
}

.rail-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(4, 15, 29, 0.4);
  text-align: left;
  color: var(--text);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.rail-card.is-current {
  border-color: var(--line-strong);
  background: rgba(10, 34, 62, 0.7);
  box-shadow: var(--shadow);
}

.rail-card span {
  color: #8fc8ff;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.rail-card strong {
  display: block;
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.rail-card small {
  color: var(--text-dim);
  line-height: 1.7;
}

.section {
  position: relative;
  padding: 110px 0;
}

.section-light {
  background:
    radial-gradient(circle at top left, rgba(127, 196, 255, 0.22), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eff5fc 100%);
  color: var(--text-dark);
}

.section-dark {
  background:
    radial-gradient(circle at top right, rgba(45, 132, 236, 0.16), transparent 28%),
    linear-gradient(180deg, #04101f 0%, #07192e 100%);
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 42px;
}

.section-heading.narrow {
  max-width: 760px;
}

.section-heading.light .eyebrow,
.section-heading.light p,
.section-heading.light h2 {
  color: var(--text);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-light .section-heading p,
.section-light .product-card p,
.section-light .solution-card p,
.section-light .news-card p,
.section-light .developer-panel p,
.section-light .about-grid p {
  color: var(--text-dark-dim);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.feature-card,
.product-card,
.solution-card,
.news-card,
.entry-card,
.footer-card,
.about-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.section-light .feature-card,
.section-light .product-card,
.section-light .solution-card,
.section-light .news-card,
.section-light .entry-card,
.section-light .footer-card,
.section-light .about-grid article {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(18, 71, 120, 0.08);
}

.card-index {
  display: inline-flex;
  margin-bottom: 18px;
  color: #8fc8ff;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
}

.feature-card h3,
.product-card h3,
.solution-card h3,
.news-card h3,
.entry-card h3,
.about-grid h3 {
  margin: 0 0 12px;
  font-size: 1.28rem;
}

.feature-card p,
.product-card p,
.solution-card p,
.news-card p,
.entry-card p,
.about-grid p {
  margin: 0;
  line-height: 1.8;
}

.entry-card {
  display: block;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.entry-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 134, 255, 0.2);
}

.split-section {
  background: linear-gradient(180deg, #071527 0%, #04101f 100%);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 38px;
  align-items: center;
}

.split-section.reverse .split-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.split-copy h2 {
  margin: 0 0 16px;
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.bullet-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.bullet-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-dim);
}

.bullet-list li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8fd4ff 0%, #0f86ff 100%);
}

.framed-image {
  position: relative;
}

.framed-image::before {
  content: "";
  position: absolute;
  inset: -18px -18px auto auto;
  width: 160px;
  height: 160px;
  border-top: 1px solid rgba(143, 200, 255, 0.6);
  border-right: 1px solid rgba(143, 200, 255, 0.6);
}

.framed-image img {
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.image-panel {
  overflow: hidden;
}

.image-panel-bg,
.image-panel-bg::after {
  position: absolute;
  inset: 0;
}

.image-panel-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-panel-bg::after {
  content: "";
  background: linear-gradient(180deg, rgba(4, 16, 31, 0.86) 0%, rgba(4, 16, 31, 0.9) 100%);
}

.image-panel .container {
  position: relative;
  z-index: 1;
}

.translucent .solution-card {
  background: rgba(8, 24, 43, 0.5);
  backdrop-filter: blur(18px);
}

.developer-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
}

.text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.text-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.section-light .text-grid article {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(18, 71, 120, 0.08);
}

.text-grid h3 {
  margin: 0 0 12px;
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1.28rem;
}

.text-grid p {
  margin: 0;
  line-height: 1.8;
}

.developer-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.developer-points span {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15, 134, 255, 0.08);
  color: #12518c;
  font-weight: 700;
}

.code-window {
  border-radius: 28px;
  overflow: hidden;
  background: #07111d;
  box-shadow: 0 28px 80px rgba(5, 18, 35, 0.22);
}

.code-window-top {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  background: #0b1725;
}

.code-window-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.code-window pre {
  margin: 0;
  padding: 24px;
  overflow: auto;
  color: #b8d7ff;
  line-height: 1.85;
}

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

.news-card time {
  display: inline-flex;
  margin-bottom: 12px;
  color: #5597d9;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 700;
}

.site-footer {
  padding: 48px 0 70px;
  background: #020916;
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.7fr);
  gap: 28px;
  align-items: end;
}

.site-footer h2 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.footer-card {
  background: rgba(255, 255, 255, 0.04);
}

.footer-card p {
  margin: 0 0 10px;
}

.footer-card .button {
  margin-top: 18px;
}

@media (max-width: 1120px) {
  .cards-4,
  .cards-3,
  .about-grid,
  .text-grid,
  .footer-layout,
  .developer-panel,
  .split-layout,
  .split-section.reverse .split-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --container: min(100vw - 32px, 1180px);
  }

  .site-header {
    top: 18px;
    left: 16px;
    right: 16px;
    gap: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    right: auto;
    min-width: 220px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2, 13, 27, 0.92);
  }

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

  .hero {
    min-height: auto;
    padding-top: 96px;
  }

  .hero-caption {
    top: 50%;
  }

  .hero-caption h1 {
    max-width: 100%;
    font-size: clamp(2rem, 8vw, 3.1rem);
  }

  .hero-caption p {
    margin-top: 14px;
    font-size: 1rem;
    max-width: 24em;
  }

  .hero h1 {
    max-width: 9ch;
    font-size: clamp(2.5rem, 12vw, 4.2rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-metrics,
  .cards-4,
  .cards-3,
  .about-grid,
  .text-grid,
  .footer-layout,
  .developer-panel,
  .split-layout,
  .split-section.reverse .split-layout {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 84px 0;
  }
}
