:root {
  color-scheme: dark;
  --background: #07101c;
  --surface: #0b1522;
  --text: #f4f1eb;
  --muted: #c8c8c4;
  --line: rgba(236, 238, 235, 0.3);
  --grid: rgba(208, 218, 225, 0.12);
  --accent: #ff5f5a;
  --accent-hover: #ff746f;
  --focus: #ffc0bd;
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.particle-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.42;
}

.cursor-glow {
  position: fixed;
  top: var(--pointer-y, 42%);
  left: var(--pointer-x, 72%);
  z-index: 0;
  width: 520px;
  height: 520px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 95, 90, 0.09), rgba(255, 95, 90, 0) 68%);
  transform: translate(-50%, -50%);
  transition: top 180ms ease-out, left 180ms ease-out;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 72px, var(--max-width));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  animation: rise-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 11px;
  text-decoration: none;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-slash {
  color: var(--accent);
}

.nav-links {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 48px;
}

.nav-links a {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 72px;
  text-decoration: none;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 5px;
  background: var(--accent);
}

main {
  flex: 1;
}

.hero {
  min-height: 580px;
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(500px, 1.05fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
  padding: 72px 4px 64px;
}

.hero-copy h1 {
  display: flex;
  align-items: baseline;
  gap: 0.28em;
  max-width: 670px;
  margin: 0;
  font-size: clamp(4rem, 6vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
  font-weight: 850;
}

.hero-name {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  animation: name-reveal 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-name:nth-child(2) {
  animation-delay: 130ms;
}

.hero-name::after {
  content: "";
  position: absolute;
  right: 0.02em;
  bottom: -0.13em;
  left: 0.05em;
  height: 0.055em;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: name-line 680ms 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-name:nth-child(2)::after {
  animation-delay: 760ms;
}

.hero-copy > p:not(.connection-result) {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.75vw, 1.42rem);
  line-height: 1.7;
  animation: rise-in 760ms 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 48px;
  animation: rise-in 760ms 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.primary-button {
  position: relative;
  overflow: hidden;
  min-width: 216px;
  min-height: 68px;
  padding: 0 34px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-button::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.3) 50%, transparent 62%);
  transform: translateX(-90%) rotate(8deg);
  transition: transform 620ms ease;
}

.primary-button:hover::after {
  transform: translateX(90%) rotate(8deg);
}

.primary-button:disabled {
  cursor: wait;
  animation: button-breathe 900ms ease-in-out infinite alternate;
}

.primary-button:hover {
  transform: translateY(-2px);
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.primary-button:active {
  transform: translateY(0);
}

.text-link {
  position: relative;
  padding: 12px 0;
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
}

.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: currentColor;
  transform-origin: left;
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: scaleX(0.55);
}

.primary-button:focus-visible,
.text-link:focus-visible,
.brand:focus-visible,
.nav-links a:focus-visible,
.architecture:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

.connection-result {
  min-height: 1.4em;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.architecture {
  position: relative;
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(100px, 1fr) minmax(170px, 1fr);
  align-items: center;
  isolation: isolate;
  animation: rise-in 900ms 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.architecture::after {
  content: "";
  position: absolute;
  right: 8%;
  left: 8%;
  top: 8%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 95, 90, 0.75), transparent);
  opacity: 0;
  animation: grid-scan 4.8s 1.2s ease-in-out infinite;
}

.grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.node {
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--text);
  animation: node-float 4.2s ease-in-out infinite;
}

.cloud-node {
  animation-delay: -2.1s;
}

.node svg {
  width: min(100%, 164px);
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.node span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.tunnel-line {
  position: relative;
  height: 5px;
  overflow: hidden;
  background: rgba(255, 95, 90, 0.3);
}

.tunnel-line span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  animation: connect 2.4s ease-in-out infinite;
}

@keyframes connect {
  0% { transform: translateX(-100%); }
  45%, 70% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes name-reveal {
  from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateY(0.18em); }
  to { opacity: 1; clip-path: inset(0 0 0 0); transform: translateY(0); }
}

@keyframes name-line {
  to { transform: scaleX(1); }
}

@keyframes grid-scan {
  0%, 12% { top: 8%; opacity: 0; }
  24% { opacity: 0.7; }
  70% { opacity: 0.35; }
  86%, 100% { top: 92%; opacity: 0; }
}

@keyframes node-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes button-breathe {
  from { box-shadow: 0 0 0 rgba(255, 95, 90, 0); }
  to { box-shadow: 0 0 28px rgba(255, 95, 90, 0.28); }
}

.status-rail {
  min-height: 108px;
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) 2.2fr;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.status-rail h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  letter-spacing: -0.04em;
}

.status-rail ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-rail li {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-left: 1px solid var(--line);
  color: var(--text);
  font-size: 1rem;
}

.check {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
}

footer {
  min-height: 114px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .page-shell {
    width: min(100% - 40px, 760px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 76px;
  }

  .hero-copy h1 {
    font-size: clamp(3.8rem, 10vw, 5.5rem);
  }

  .architecture {
    min-height: 310px;
  }

  .status-rail {
    grid-template-columns: 1fr;
    padding: 28px 0;
    gap: 26px;
  }

  .status-rail ul {
    gap: 0;
  }

  .status-rail li:first-child {
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 32px, 520px);
  }

  .site-header {
    min-height: 74px;
  }

  .brand {
    gap: 7px;
    font-size: 1.05rem;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    min-width: 56px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: auto;
    padding: 58px 0 48px;
  }

  .hero-copy h1 {
    gap: 0.22em;
    font-size: clamp(2.75rem, 13vw, 3.3rem);
    letter-spacing: -0.09em;
    white-space: nowrap;
  }

  .hero-copy > p:not(.connection-result) {
    margin-top: 24px;
    font-size: 1rem;
  }

  .desktop-break {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
    margin-top: 36px;
  }

  .primary-button {
    width: 100%;
  }

  .text-link {
    align-self: flex-start;
  }

  .architecture {
    min-height: 230px;
    grid-template-columns: 1fr 0.75fr 1.15fr;
  }

  .node svg {
    width: min(100%, 104px);
    stroke-width: 6;
  }

  .grid-lines {
    background-size: 28px 28px;
  }

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

  .status-rail li {
    justify-content: flex-start;
    min-height: 54px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  footer {
    min-height: 90px;
  }
}

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

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

  .particle-field,
  .cursor-glow {
    display: none;
  }
}
