body.product-center {
  --product-accent: #8a5de8;
  --product-accent-strong: #7048d7;
  --product-soft: rgba(138, 93, 232, 0.12);
  --product-glow: rgba(138, 93, 232, 0.2);
  --product-warm: rgba(255, 213, 125, 0.22);
  background:
    radial-gradient(circle at top right, var(--product-glow), transparent 24%),
    radial-gradient(circle at 12% 12%, var(--product-warm), transparent 26%),
    linear-gradient(180deg, #fffaf2 0%, #faf8ff 34%, #f5f6fb 100%);
}

body.product-story {
  --product-accent: #b27a30;
  --product-accent-strong: #8d5f21;
  --product-soft: rgba(178, 122, 48, 0.13);
  --product-glow: rgba(255, 206, 116, 0.24);
  --product-warm: rgba(255, 221, 154, 0.26);
}

body.product-dict {
  --product-accent: #7f57ea;
  --product-accent-strong: #6541ca;
  --product-soft: rgba(127, 87, 234, 0.13);
  --product-glow: rgba(173, 129, 255, 0.22);
  --product-warm: rgba(255, 215, 140, 0.18);
}

body.product-live {
  --product-accent: #9d6a35;
  --product-accent-strong: #7b5127;
  --product-soft: rgba(157, 106, 53, 0.14);
  --product-glow: rgba(214, 175, 114, 0.22);
  --product-warm: rgba(255, 218, 151, 0.24);
}

body.product-center .page-shell {
  max-width: 1240px;
  padding-bottom: 64px;
}

.product-header {
  margin-bottom: 18px;
}

.product-header .site-nav a {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(23, 33, 43, 0.08);
  box-shadow: 0 10px 28px rgba(23, 33, 43, 0.05);
}

.product-header .site-nav a[aria-current="page"] {
  background: linear-gradient(135deg, var(--product-accent), var(--product-accent-strong));
  border-color: var(--product-accent);
}

.product-center-layout {
  display: grid;
  gap: 24px;
}

.product-hero,
.product-docs,
.product-summary-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(216, 221, 227, 0.92);
  box-shadow: 0 24px 68px rgba(23, 33, 43, 0.08);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  gap: 28px;
  padding: 34px;
  background:
    radial-gradient(circle at top right, var(--product-glow), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.72));
}

.product-hero::before,
.product-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.product-hero::before {
  width: 360px;
  height: 360px;
  right: -120px;
  top: -160px;
  background: radial-gradient(circle, var(--product-glow), transparent 72%);
}

.product-hero::after {
  width: 320px;
  height: 320px;
  left: -120px;
  bottom: -160px;
  background: radial-gradient(circle, var(--product-warm), transparent 72%);
}

.product-hero-copy,
.product-hero-media,
.product-section-heading {
  position: relative;
  z-index: 1;
}

.product-hero h1 {
  margin-bottom: 0;
  max-width: 14ch;
}

.product-hero .eyebrow,
.product-section-heading .eyebrow {
  color: var(--product-accent-strong);
}

.product-summary {
  max-width: 720px;
}

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

.product-action {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 54px;
  padding: 12px 18px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
}

.product-action:hover,
.product-action:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
}

.product-action-primary {
  background: linear-gradient(135deg, var(--product-accent), var(--product-accent-strong));
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(23, 33, 43, 0.14);
}

.product-action-primary .en {
  color: rgba(255, 255, 255, 0.82);
}

.product-action-secondary {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(23, 33, 43, 0.08);
  color: var(--text);
}

.product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.product-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 33, 43, 0.06);
  box-shadow: 0 8px 22px rgba(23, 33, 43, 0.04);
}

.product-hero-media {
  min-height: 440px;
}

.product-device {
  position: absolute;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 28px 64px rgba(23, 33, 43, 0.16);
}

.product-device img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-device-main {
  inset: 0 10% 0 0;
}

.product-device-floating {
  width: 40%;
  right: 0;
  bottom: -10px;
  aspect-ratio: 9 / 16;
}

.product-overview-grid .tile,
.product-docs .doc-card,
.product-summary-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(23, 33, 43, 0.07);
  box-shadow: 0 22px 46px rgba(23, 33, 43, 0.06);
}

.product-overview-grid .tile {
  position: relative;
  overflow: hidden;
}

.product-overview-grid .tile::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--product-soft), transparent 72%);
}

.product-docs {
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(250, 251, 255, 0.88), rgba(255, 255, 255, 0.76));
}

.product-section-heading h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.8rem, 2.2vw, 2.7rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.product-section-heading p:last-child {
  max-width: 760px;
}

.product-docs .doc-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.product-docs .tag {
  background: var(--product-soft);
  color: var(--product-accent-strong);
}

.product-summary-card {
  padding: 24px 26px;
}

.product-footer {
  margin-top: 28px;
}

@media (max-width: 1120px) {
  .product-hero {
    grid-template-columns: 1fr;
  }

  .product-hero h1,
  .product-section-heading h2 {
    max-width: none;
  }

  .product-hero-media {
    min-height: 520px;
  }
}

@media (max-width: 980px) {
  .product-docs .doc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .product-hero,
  .product-docs,
  .product-summary-card {
    padding: 24px;
    border-radius: 26px;
  }

  .product-hero-media {
    min-height: 0;
    display: grid;
    gap: 16px;
  }

  .product-device {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .product-device-main {
    aspect-ratio: 4 / 3;
  }

  .product-device-floating {
    aspect-ratio: 9 / 16;
    max-width: 340px;
  }
}
