:root {
  --product-bg: #f5f7f4;
  --product-surface: #eef2ed;
  --product-surface-strong: #e3eae3;
  --product-ink: #141817;
  --product-muted: #5e6762;
  --product-line: rgba(20, 24, 23, 0.13);
  --product-accent: #607a68;
  --product-accent-strong: #405848;
  --product-white: #fcfdfb;
  --product-radius: 24px;
  --product-shadow: 0 28px 80px rgba(46, 61, 51, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --product-bg: #101412;
    --product-surface: #171d19;
    --product-surface-strong: #202a23;
    --product-ink: #eef3ef;
    --product-muted: #aeb9b1;
    --product-line: rgba(238, 243, 239, 0.14);
    --product-accent: #91b49a;
    --product-accent-strong: #b6d0bc;
    --product-white: #141916;
    --product-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  }
}

html {
  scroll-behavior: smooth;
}

body.product-page {
  margin: 0;
  color: var(--product-ink);
  background: var(--product-bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.product-page .nav {
  background: color-mix(in srgb, var(--product-bg) 88%, transparent);
  border-bottom-color: var(--product-line);
  backdrop-filter: blur(18px);
}

.product-page .nav a,
.product-page .brand-copy strong {
  color: var(--product-ink);
}

.product-page .brand-copy small,
.product-page .nav-links > a:not(.active):not(.nav-cta) {
  color: var(--product-muted);
}

.product-page .nav-links .active {
  color: var(--product-accent-strong);
}

.product-page .nav-cta {
  color: #f8fbf8;
  background: var(--product-accent-strong);
}

.product-hero,
.product-section,
.router-section,
.product-cta,
.metric-rail,
.product-footer {
  width: min(1440px, calc(100% - 64px));
  margin-inline: auto;
}

.product-hero {
  min-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(480px, 1.22fr);
  align-items: center;
  gap: clamp(36px, 6vw, 104px);
  padding: clamp(48px, 7vw, 96px) 0;
}

.product-hero-copy {
  max-width: 620px;
}

.product-eyebrow {
  margin: 0 0 22px;
  color: var(--product-accent-strong);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(48px, 5.8vw, 88px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.product-intro {
  max-width: 590px;
  margin: 28px 0 0;
  color: var(--product-muted);
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.6;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.product-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--product-accent-strong);
  border-radius: 999px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

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

.product-button:active {
  transform: translateY(1px) scale(0.98);
}

.product-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--product-accent) 48%, transparent);
  outline-offset: 3px;
}

.product-button-primary {
  color: #f8fbf8;
  background: var(--product-accent-strong);
}

.product-button-secondary {
  color: var(--product-accent-strong);
  background: transparent;
}

.product-hero-media {
  overflow: hidden;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius);
  background: #f7f8f6;
  box-shadow: var(--product-shadow);
}

.product-hero-media video {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
}

.metric-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--product-line);
  border-bottom: 1px solid var(--product-line);
}

.metric-rail > div {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 24px clamp(16px, 2.2vw, 34px);
}

.metric-rail > div + div {
  border-left: 1px solid var(--product-line);
}

.metric-rail strong {
  font-size: clamp(25px, 2.4vw, 38px);
  letter-spacing: -0.045em;
}

.metric-rail span {
  color: var(--product-muted);
  font-size: 14px;
}

.product-section {
  padding: clamp(96px, 12vw, 172px) 0;
}

.product-story {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(44px, 8vw, 120px);
}

.story-media,
.architecture-figure,
.cooling-media {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius);
  background: #f7f8f6;
}

.story-media img,
.architecture-figure img,
.cooling-media img {
  width: 100%;
  height: auto;
  display: block;
}

.story-copy h2,
.product-heading h2,
.cooling-copy h2,
.router-copy h2,
.product-cta h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 620;
  letter-spacing: -0.058em;
  line-height: 1.02;
}

.story-copy > p,
.product-heading p,
.cooling-copy > p,
.router-copy > p,
.product-cta > p {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--product-muted);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.68;
}

.story-facts {
  display: grid;
  gap: 0;
  margin: 44px 0 0;
}

.story-facts div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  border-bottom: 1px solid var(--product-line);
  padding: 18px 0;
}

.story-facts dt {
  color: var(--product-muted);
}

.story-facts dd {
  margin: 0;
  font-weight: 650;
}

.product-heading {
  max-width: 860px;
  margin-bottom: clamp(44px, 6vw, 80px);
}

.architecture-figure {
  box-shadow: 0 24px 70px rgba(46, 61, 51, 0.08);
}

.spec-section {
  border-top: 1px solid var(--product-line);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, auto);
  gap: 18px;
}

.spec-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--product-line);
  border-radius: 20px;
  padding: clamp(26px, 3vw, 42px);
  background: var(--product-surface);
}

.spec-card span {
  margin-bottom: auto;
  color: var(--product-muted);
  font-size: 14px;
  font-weight: 600;
}

.spec-card strong {
  margin-top: 56px;
  font-size: clamp(30px, 3vw, 48px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.spec-card p {
  margin: 14px 0 0;
  color: var(--product-muted);
  line-height: 1.5;
}

.spec-card-memory {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-column: span 7;
  grid-row: span 2;
  min-height: 500px;
  color: #f5f8f5;
  background: #4c5551;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.spec-card-memory::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(58, 67, 63, 0.14) 0%, rgba(45, 54, 50, 0.22) 46%, rgba(35, 43, 39, 0.94) 100%),
    linear-gradient(135deg, rgba(126, 145, 133, 0.14), transparent 54%);
  pointer-events: none;
}

.memory-media {
  position: absolute;
  inset: -5%;
  z-index: -2;
  margin: 0;
  transform-origin: 52% 52%;
}

.memory-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.58) contrast(0.94) brightness(0.9);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), filter 700ms ease;
}

.spec-card-memory:hover .memory-media img {
  transform: scale(1.025);
  filter: saturate(0.64) contrast(0.98) brightness(0.94);
}

.memory-copy {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.memory-copy strong {
  display: block;
}

.spec-card-memory span,
.spec-card-memory p {
  position: relative;
  z-index: 1;
  color: rgba(248, 251, 248, 0.78);
}

@media (prefers-reduced-motion: no-preference) {
  .memory-media {
    animation: memory-drift 9s ease-in-out infinite alternate;
    will-change: transform;
  }

  @keyframes memory-drift {
    from { transform: translate3d(-0.35%, 0.2%, 0) rotate(-0.65deg) scale(1.015); }
    to { transform: translate3d(0.45%, -0.25%, 0) rotate(0.75deg) scale(1.025); }
  }
}

.spec-card-compute {
  grid-column: span 5;
  background: linear-gradient(145deg, var(--product-surface-strong), var(--product-surface));
}

.spec-card-storage {
  grid-column: span 5;
}

.spec-card-network {
  grid-column: span 5;
}

.spec-card-physical {
  grid-column: span 7;
  background: var(--product-surface-strong);
}

.cooling {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(48px, 9vw, 132px);
}

.cooling-media {
  max-width: 760px;
  justify-self: end;
}

.io-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
  padding: 0;
  list-style: none;
}

.io-list li {
  border: 1px solid var(--product-line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--product-muted);
  background: var(--product-surface);
  font-size: 13px;
  font-weight: 600;
}

.applications {
  border-top: 1px solid var(--product-line);
}

.application-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(40px, 9vw, 140px);
}

.application-list article {
  min-height: 220px;
  border-bottom: 1px solid var(--product-line);
  padding: 38px 0;
}

.application-list h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.035em;
}

.application-list p {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--product-muted);
  font-size: 17px;
  line-height: 1.6;
}

.router-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
  align-items: center;
  gap: clamp(44px, 8vw, 120px);
  border-radius: var(--product-radius);
  padding: clamp(54px, 8vw, 110px);
  color: #f3f7f3;
  background: #18241c;
}

.router-copy > p {
  color: #c0cec3;
}

.router-copy .product-button {
  margin-top: 34px;
  color: #142118;
  border-color: #d9e5da;
  background: #d9e5da;
}

.router-map {
  display: grid;
  grid-template-columns: 1fr minmax(48px, 0.4fr) 90px minmax(48px, 0.4fr) 1fr;
  align-items: center;
}

.router-node,
.router-core {
  min-height: 110px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 229, 218, 0.24);
  border-radius: 20px;
  color: #d9e5da;
  background: rgba(217, 229, 218, 0.06);
  font-weight: 650;
}

.router-core {
  min-height: 90px;
  border-radius: 50%;
  color: #142118;
  background: #d9e5da;
}

.router-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 229, 218, 0.18), #d9e5da, rgba(217, 229, 218, 0.18));
}

.product-cta {
  padding: clamp(120px, 15vw, 220px) 0;
  text-align: center;
}

.product-cta h2,
.product-cta p {
  max-width: 860px;
  margin-inline: auto;
}

.product-cta .product-button {
  margin-top: 34px;
}

.product-footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--product-line);
}

.product-footer p {
  margin: 0;
  color: var(--product-muted);
  font-size: 13px;
}

.js .product-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms cubic-bezier(0.16, 1, 0.3, 1), transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js .product-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .product-hero,
  .product-story,
  .cooling,
  .router-section {
    grid-template-columns: 1fr;
  }

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

  .product-hero-copy {
    max-width: 760px;
  }

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

  .metric-rail > div:nth-child(4) {
    border-left: 0;
  }

  .metric-rail > div:nth-child(n + 4) {
    border-top: 1px solid var(--product-line);
  }

  .cooling-media {
    justify-self: stretch;
    max-width: none;
  }

  .router-map {
    min-height: 160px;
  }
}

@media (max-width: 767px) {
  .product-hero,
  .product-section,
  .router-section,
  .product-cta,
  .metric-rail,
  .product-footer {
    width: min(100% - 32px, 1440px);
  }

  .product-hero {
    gap: 38px;
    padding: 52px 0 64px;
  }

  .product-hero h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .product-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .metric-rail > div {
    min-height: 120px;
  }

  .metric-rail > div:nth-child(3),
  .metric-rail > div:nth-child(5) {
    border-left: 0;
  }

  .metric-rail > div:nth-child(n + 3) {
    border-top: 1px solid var(--product-line);
  }

  .product-section {
    padding: 88px 0;
  }

  .story-copy h2,
  .product-heading h2,
  .cooling-copy h2,
  .router-copy h2,
  .product-cta h2 {
    font-size: clamp(38px, 11.5vw, 52px);
  }

  .spec-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .spec-card,
  .spec-card-memory,
  .spec-card-compute,
  .spec-card-storage,
  .spec-card-network,
  .spec-card-physical {
    grid-column: auto;
    grid-row: auto;
    min-height: 250px;
  }

  .spec-card-memory {
    min-height: 420px;
  }

  .application-list {
    grid-template-columns: 1fr;
  }

  .router-section {
    padding: 48px 24px;
  }

  .router-map {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .router-line {
    width: 1px;
    height: 34px;
    justify-self: center;
    background: linear-gradient(180deg, rgba(217, 229, 218, 0.18), #d9e5da, rgba(217, 229, 218, 0.18));
  }

  .router-core {
    width: 90px;
    justify-self: center;
  }

  .product-footer {
    min-height: 160px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

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

  .product-button,
  .js .product-reveal {
    transition: none;
  }

  .js .product-reveal {
    opacity: 1;
    transform: none;
  }
}
