:root {
  color-scheme: dark;
  --bg: #06111d;
  --bg-deep: #030914;
  --surface: rgba(8, 18, 33, 0.78);
  --surface-strong: rgba(6, 14, 27, 0.92);
  --surface-soft: rgba(12, 26, 48, 0.88);
  --border: rgba(119, 170, 255, 0.16);
  --border-strong: rgba(119, 170, 255, 0.3);
  --text: #eef4ff;
  --muted: #8ca5c7;
  --accent: #3d86ff;
  --accent-2: #2ad2ff;
  --accent-soft: rgba(61, 134, 255, 0.16);
  --success: #32d296;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.44);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

:root[data-theme="studio-light"] {
  color-scheme: light;
  --bg: #edf4ff;
  --bg-deep: #dce9ff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --surface-soft: rgba(246, 250, 255, 0.94);
  --border: rgba(30, 87, 190, 0.14);
  --border-strong: rgba(30, 87, 190, 0.26);
  --text: #13233d;
  --muted: #607392;
  --accent: #2468df;
  --accent-2: #2a99ff;
  --accent-soft: rgba(36, 104, 223, 0.12);
  --success: #198754;
  --shadow: 0 20px 54px rgba(67, 100, 159, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(58, 122, 255, 0.22), transparent 26%),
    radial-gradient(circle at 84% 9%, rgba(42, 210, 255, 0.16), transparent 20%),
    linear-gradient(180deg, #081321 0%, var(--bg) 42%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

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

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

p,
li,
small,
span {
  line-height: 1.7;
}

p,
li,
small {
  color: var(--muted);
}

h1,
h2,
h3,
h4,
.nav a,
.brand strong,
.feature-stat strong {
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "DIN Alternate", "PingFang SC", sans-serif;
}

.site-shell {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.ambient-grid,
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient-grid {
  background-image:
    linear-gradient(rgba(126, 176, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 176, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
}

.ambient-glow {
  filter: blur(100px);
  opacity: 0.55;
}

.ambient-glow-a {
  width: 360px;
  height: 360px;
  top: 10%;
  left: 4%;
  background: rgba(63, 134, 255, 0.14);
}

.ambient-glow-b {
  width: 280px;
  height: 280px;
  right: 8%;
  top: 18%;
  background: rgba(42, 210, 255, 0.12);
}

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), var(--surface));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar,
.footer,
.hero-panel,
.page-head,
.detail-hero,
.detail-links,
.detail-section,
.rich-article,
.contact-banner,
.metric-card,
.value-card,
.product-card,
.article-card,
.sidebar-card,
.studio-card,
.principle-card,
.page-side-card,
.feature-frame,
.about-panel,
.docs-panel,
.contact-list {
  border-radius: var(--radius-xl);
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex: 0 0 auto;
}

.brand-copy strong {
  display: block;
  font-size: 1.08rem;
}

.brand-copy small {
  display: block;
  margin-top: 3px;
}

.nav,
.topbar-actions,
.hero-actions,
.card-actions,
.detail-links,
.footer-links,
.chip-row,
.article-meta,
.feature-meta,
.sidebar-list,
.locale-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav {
  gap: 18px;
  justify-content: center;
  flex: 1 1 auto;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.status-chip,
.locale-switch,
.tag,
.chip,
.sidebar-list span,
.feature-meta span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
}

.locale-switch {
  padding: 4px 5px 4px 12px;
}

.locale-switch span {
  font-size: 0.82rem;
  color: var(--muted);
}

.locale-switch button,
.carousel-nav button {
  cursor: pointer;
  color: var(--muted);
}

.locale-switch button {
  min-width: 48px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
}

.locale-switch button.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}

main {
  display: grid;
  gap: 28px;
  margin: 28px 0 34px;
}

.hero-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.hero-panel-head,
.section-heading,
.contact-banner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.hero-panel-head {
  align-items: flex-end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--accent) 74%, white 26%);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel-head h1,
.page-head h1,
.detail-copy h1 {
  margin: 12px 0 14px;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-panel-head p,
.page-head p,
.detail-copy p {
  max-width: 62ch;
  font-size: 1rem;
}

.carousel-nav {
  display: flex;
  gap: 10px;
}

.carousel-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.5rem;
}

.carousel-stage {
  position: relative;
}

.feature-slide {
  display: none;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 22px;
  align-items: center;
}

.feature-slide.active {
  display: grid;
}

.feature-copy {
  padding: 12px 4px 12px 6px;
}

.feature-copy h2 {
  margin: 12px 0 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.feature-lead {
  color: var(--text);
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.feature-media {
  display: grid;
  align-items: center;
}

.feature-frame {
  padding: 14px;
  overflow: hidden;
}

.feature-image,
.detail-image,
.cover-image,
.about-logo,
.footer-logo {
  width: 100%;
  height: auto;
}

.about-logo,
.footer-logo {
  width: auto;
  height: 54px;
  max-width: 100%;
}

.feature-stats,
.metrics-grid,
.value-grid,
.product-grid,
.article-grid,
.principle-grid,
.fact-grid {
  display: grid;
  gap: 18px;
}

.feature-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.feature-stat,
.fact-card {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.feature-stat strong,
.metric-card strong,
.fact-card strong {
  display: block;
  color: var(--text);
}

.feature-stat span,
.metric-card h3,
.fact-card span {
  color: var(--muted);
}

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

.metric-card,
.value-card,
.product-card,
.article-card,
.sidebar-card,
.studio-card,
.principle-card {
  padding: 18px;
}

.value-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
}

.value-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  color: color-mix(in srgb, var(--accent) 70%, white 30%);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
}

.metric-card strong {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.metric-card h3,
.value-card h3,
.product-card h3,
.article-card h3,
.sidebar-card h3,
.page-side-card h3,
.studio-card h3,
.principle-card h3,
.docs-panel h3 {
  margin: 0 0 10px;
}

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

.product-card,
.article-card {
  display: grid;
  gap: 14px;
}

.product-card-image,
.article-card-image {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.tag,
.chip,
.sidebar-list span,
.feature-meta span {
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-arrow {
  color: color-mix(in srgb, var(--accent) 70%, white 30%);
  font-size: 1.05rem;
}

.button,
.card-actions a,
.detail-links a,
.contact-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.button.primary,
.card-actions .secondary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border-color: transparent;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}

.section-main {
  display: grid;
  gap: 20px;
}

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  padding: 24px;
}

.page-head.single {
  grid-template-columns: minmax(0, 1fr);
}

.page-side-card,
.about-panel,
.docs-panel,
.contact-list {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), var(--surface-strong));
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 22px;
  padding: 24px;
  align-items: center;
}

.detail-links,
.detail-section,
.rich-article,
.contact-banner {
  padding: 22px;
}

.detail-links {
  justify-content: center;
}

.detail-media {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.rich-article,
.detail-section {
  max-width: 960px;
}

.detail-section h2,
.rich-article h2 {
  margin-top: 0;
}

.lead {
  color: var(--text);
}

.rich-article ul,
.detail-section ul {
  padding-left: 20px;
}

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

.theme-hint {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list a {
  justify-content: space-between;
}

.footer-logo {
  margin-bottom: 10px;
}

@media (max-width: 1120px) {
  .feature-slide,
  .split-section,
  .page-head,
  .detail-hero,
  .metrics-grid,
  .value-grid,
  .principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-slide,
  .split-section,
  .page-head,
  .detail-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar,
  .footer,
  .hero-panel-head,
  .section-heading,
  .contact-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 18px, 1280px);
    padding-top: 18px;
  }

  .topbar,
  .footer,
  .hero-panel,
  .page-head,
  .detail-hero,
  .detail-links,
  .detail-section,
  .rich-article,
  .contact-banner {
    padding: 18px;
  }

  .topbar-actions,
  .nav {
    width: 100%;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-panel-head h1,
  .page-head h1,
  .detail-copy h1,
  .feature-copy h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .feature-stats,
  .metrics-grid,
  .value-grid,
  .product-grid,
  .article-grid,
  .principle-grid,
  .fact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .locale-switch {
    width: 100%;
    justify-content: space-between;
  }
}
