:root {
  --bg: #030609;
  --panel: rgba(9, 18, 27, 0.68);
  --line: rgba(143, 223, 255, 0.24);
  --text: #f7fbff;
  --muted: rgba(235, 248, 255, 0.72);
  --cyan: #21ddff;
  --blue: #287aff;
  --coral: #ff674c;
  --gold: #ffd36c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  overflow-x: hidden;
}

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

.ambient {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 18%, rgba(33, 221, 255, 0.24), transparent 28%),
    radial-gradient(circle at 88% 72%, rgba(255, 103, 76, 0.24), transparent 30%),
    linear-gradient(115deg, #030609 0%, #06101d 45%, #110607 100%);
  transition:
    filter 0.5s ease,
    transform 0.5s ease;
}

.ambient img {
  position: absolute;
  inset: -8vh -8vw;
  width: 116vw;
  height: 116vh;
  object-fit: cover;
  opacity: 0.19;
  filter: saturate(1.25) contrast(1.06) blur(1px);
  transform: scale(1.03);
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 82%, transparent);
  opacity: 0.24;
}

.ambient__beam {
  position: absolute;
  width: 44vw;
  height: 120vh;
  top: -10vh;
  transform-origin: center;
  filter: blur(14px);
  opacity: 0.32;
}

.ambient__beam--cyan {
  left: 46%;
  background: linear-gradient(90deg, transparent, rgba(33, 221, 255, 0.24), transparent);
  transform: rotate(22deg);
}

.ambient__beam--coral {
  left: 72%;
  background: linear-gradient(90deg, transparent, rgba(255, 103, 76, 0.2), transparent);
  transform: rotate(-28deg);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px clamp(20px, 5vw, 72px);
  background: linear-gradient(to bottom, rgba(3, 6, 9, 0.86), rgba(3, 6, 9, 0));
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(33, 221, 255, 0.5);
  background: rgba(33, 221, 255, 0.14);
  box-shadow: 0 0 32px rgba(33, 221, 255, 0.28);
  color: var(--cyan);
  font-weight: 900;
}

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

.brand strong {
  font-size: 19px;
  letter-spacing: 0;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.28em;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  color: rgba(247, 251, 255, 0.84);
  font-size: 14px;
}

nav a,
.header-cta,
.primary-action,
.secondary-action,
.contact-card a {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

nav a:hover,
.header-cta:hover,
.primary-action:hover,
.secondary-action:hover,
.contact-card a:hover {
  transform: translateY(-2px);
}

.header-cta,
.primary-action,
.contact-card a {
  border: 1px solid rgba(33, 221, 255, 0.64);
  background: linear-gradient(135deg, rgba(33, 221, 255, 0.9), rgba(40, 122, 255, 0.86));
  color: #00151c;
  box-shadow: 0 0 36px rgba(33, 221, 255, 0.28);
  font-weight: 800;
}

.header-cta {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
}

.scene {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.scene__inner {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 118px 0 96px;
}

.section-index {
  margin: 0 0 22px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  max-width: none;
  font-size: clamp(64px, 7.2vw, 108px);
  line-height: 0.98;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 0 40px rgba(33, 221, 255, 0.18);
}

h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(36px, 5.5vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
  letter-spacing: 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero__lead,
.section-lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 28px);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 30px;
}

.primary-action,
.secondary-action,
.contact-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__signals span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(3, 6, 9, 0.42);
  padding: 9px 13px;
  color: rgba(247, 251, 255, 0.86);
  font-size: 13px;
}

.terminal-visual {
  position: relative;
  min-height: 610px;
  perspective: 1200px;
}

.terminal-visual__halo {
  position: absolute;
  inset: 8% 10% 0 16%;
  background:
    radial-gradient(circle at 50% 72%, rgba(33, 221, 255, 0.55), transparent 18%),
    conic-gradient(
      from 190deg,
      transparent,
      rgba(33, 221, 255, 0.38),
      transparent,
      rgba(255, 103, 76, 0.24),
      transparent
    );
  filter: blur(24px);
  opacity: 0.72;
  animation: pulse 4s ease-in-out infinite;
}

.terminal {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: min(300px, 70vw);
  height: 520px;
  transform: translateX(-50%) rotateY(-6deg);
  border-radius: 24px 24px 18px 18px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(210, 225, 240, 0.94) 48%, #fff), #fff;
  box-shadow:
    0 46px 120px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(33, 221, 255, 0.36);
  color: #06101a;
}

.terminal::before,
.terminal::after {
  content: '';
  position: absolute;
  top: 76px;
  bottom: 90px;
  width: 18px;
  border-radius: 12px;
  background: linear-gradient(#f7fbff, #dce7f3);
  box-shadow: inset 0 0 18px rgba(40, 122, 255, 0.28);
}

.terminal::before {
  left: -16px;
}

.terminal::after {
  right: -16px;
}

.terminal__light {
  width: 110px;
  height: 10px;
  margin: 22px auto 16px;
  border-radius: 999px;
  background: #f8fbff;
  box-shadow: 0 0 20px rgba(33, 221, 255, 0.7);
}

.terminal__screen {
  width: 220px;
  margin: 0 auto;
  padding: 22px 18px;
  min-height: 258px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 36%, rgba(33, 221, 255, 0.26), transparent 28%),
    linear-gradient(180deg, #f7fbff, #e9f3ff);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(40, 122, 255, 0.16);
}

.terminal__screen strong {
  display: block;
  font-size: 22px;
  color: #0b1c2d;
}

.terminal__screen span {
  display: block;
  margin: 6px 0 18px;
  color: #587086;
  font-size: 12px;
}

.screen-orb {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(40, 122, 255, 0.34);
}

.terminal__screen button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2ce5ff, #2479ff);
  color: #fff;
  font-weight: 800;
  padding: 10px 12px;
}

.terminal__slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 142px;
  height: 54px;
  margin: 30px auto 26px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent), #101723;
  color: #fff;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(33, 221, 255, 0.56);
}

.terminal__slot::before {
  content: '';
  width: 96px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  box-shadow: 0 0 12px rgba(33, 221, 255, 0.56);
}

.terminal__logo {
  text-align: center;
  font-weight: 900;
  font-size: 20px;
}

.portrait {
  position: absolute;
  display: grid;
  place-items: center;
  width: 138px;
  height: 92px;
  border: 1px solid rgba(33, 221, 255, 0.48);
  background: linear-gradient(135deg, rgba(33, 221, 255, 0.16), rgba(255, 103, 76, 0.18)), rgba(5, 12, 20, 0.72);
  color: rgba(247, 251, 255, 0.92);
  box-shadow: 0 0 36px rgba(33, 221, 255, 0.28);
  backdrop-filter: blur(14px);
}

.portrait--one {
  top: 70px;
  right: 8px;
}

.portrait--two {
  top: 154px;
  left: 4px;
}

.portrait--three {
  top: 12px;
  left: 28%;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  color: rgba(247, 251, 255, 0.62);
  font-size: 13px;
}

.flow-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 54px;
}

.flow-line article,
.scene-cards article,
.dashboard,
.contact-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.flow-line article {
  min-height: 260px;
  padding: 26px;
}

.flow-line span {
  color: var(--cyan);
  font-size: 48px;
  font-weight: 900;
}

.flow-line p,
.scene-cards p,
.contact-card p {
  color: var(--muted);
  line-height: 1.72;
}

.platform__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
  gap: 48px;
  align-items: center;
}

.dashboard {
  padding: 22px;
}

.dashboard__bar,
.metric-row,
.ops-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard__bar {
  margin-bottom: 18px;
  color: rgba(247, 251, 255, 0.78);
}

.dashboard__bar strong {
  color: var(--text);
}

.dashboard__bar span {
  color: #80ffce;
}

.metric-row {
  align-items: stretch;
}

.metric-row div {
  flex: 1;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.metric-row span,
.contact-card span {
  display: block;
  color: rgba(247, 251, 255, 0.56);
  font-size: 13px;
}

.metric-row strong {
  display: block;
  margin-top: 10px;
  font-size: 32px;
}

.chart {
  height: 210px;
  display: flex;
  align-items: end;
  gap: 16px;
  margin: 24px 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px) 0 0 / 100% 25%,
    rgba(0, 0, 0, 0.24);
}

.chart i {
  flex: 1;
  display: block;
  min-height: 28px;
  background: linear-gradient(to top, var(--blue), var(--cyan));
  box-shadow: 0 0 18px rgba(33, 221, 255, 0.42);
}

.ops-list {
  flex-wrap: wrap;
}

.ops-list span {
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 9px 12px;
  color: rgba(247, 251, 255, 0.76);
}

.scene-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 46px;
}

.scene-cards article {
  min-height: 245px;
  padding: 24px;
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 44px;
  align-items: center;
}

.contact-card {
  padding: 34px;
}

.contact-card strong {
  display: block;
  margin: 10px 0 18px;
  color: #fff;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
}

.contact-card a {
  width: 100%;
  margin-top: 16px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(247, 251, 255, 0.52);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #030609;
}

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--coral), var(--gold));
  box-shadow: 0 0 18px rgba(33, 221, 255, 0.68);
}

body[data-active-scene='workflow'] .ambient {
  filter: hue-rotate(28deg) saturate(1.2);
}

body[data-active-scene='platform'] .ambient {
  filter: hue-rotate(80deg) saturate(1.08);
}

body[data-active-scene='scenes'] .ambient {
  filter: hue-rotate(148deg) saturate(1.12);
}

body[data-active-scene='contact'] .ambient {
  filter: hue-rotate(210deg) saturate(1.2);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.52;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.82;
    transform: scale(1.04);
  }
}

@media (max-width: 980px) {
  nav {
    display: none;
  }

  .hero__inner,
  .platform__grid,
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .terminal-visual {
    min-height: 540px;
  }

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

@media (max-width: 640px) {
  body {
    overflow-x: clip;
  }

  .site-header {
    padding: 16px 18px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .header-cta {
    display: none;
  }

  .scene__inner {
    width: min(100vw - 28px, 1180px);
    padding: 92px 0 70px;
  }

  h1 {
    font-size: clamp(48px, 14.8vw, 60px);
  }

  h2 {
    font-size: clamp(34px, 10vw, 52px);
  }

  .hero__lead,
  .section-lead {
    font-size: 17px;
  }

  .hero__lead {
    max-width: 36ch;
    font-size: 16px;
  }

  .terminal-visual {
    min-height: 520px;
    overflow: hidden;
  }

  .terminal {
    height: 430px;
    width: 232px;
    bottom: 0;
  }

  .terminal__screen {
    width: 174px;
    min-height: 210px;
  }

  .portrait {
    width: 108px;
    height: 72px;
    font-size: 13px;
  }

  .portrait--one {
    right: -14px;
  }

  .portrait--two {
    left: -2px;
  }

  .portrait--three {
    left: 42%;
  }

  .hero__signals {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: calc(100vw - 28px);
    padding-bottom: 6px;
  }

  .hero__signals span {
    flex: 0 0 auto;
  }

  .flow-line,
  .scene-cards,
  .metric-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .flow-line article,
  .scene-cards article {
    min-height: auto;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
