:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #5f665f;
  --line: #d9ded6;
  --paper: #f7f7f2;
  --wash: #eeefe8;
  --white: #ffffff;
  --green: #1f8f59;
  --blue: #2563eb;
  --red: #d8422f;
  --shadow: 0 28px 90px rgba(26, 31, 25, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.topbar {
  position: fixed;
  z-index: 40;
  top: 14px;
  left: 50%;
  display: grid;
  width: min(1180px, calc(100% - 28px));
  min-height: 54px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  background: rgba(247, 247, 242, 0.86);
  padding: 7px 8px 7px 14px;
  box-shadow: 0 16px 60px rgba(17, 17, 17, 0.1);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 70px rgba(17, 17, 17, 0.14);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.brand img {
  width: 30px;
  height: 30px;
}

.desktop-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.desktop-nav a,
.mobile-nav a {
  border-radius: 6px;
  color: rgba(17, 17, 17, 0.72);
  font-size: 14px;
  font-weight: 850;
  padding: 10px 11px;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  background: rgba(31, 143, 89, 0.1);
  color: var(--ink);
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-button,
.menu-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.lang-button {
  font-size: 12px;
  font-weight: 950;
}

.menu-button {
  display: none;
  gap: 4px;
}

.menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.mobile-nav {
  position: fixed;
  z-index: 39;
  top: 76px;
  right: 14px;
  left: 14px;
  display: none;
  flex-direction: column;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  padding: 10px;
  box-shadow: var(--shadow);
}

.mobile-nav.is-open {
  display: flex;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 94svh;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  background: #1b1f1a;
}

.hero-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.9;
  filter: saturate(0.94) contrast(0.96);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 8, 0.92) 0%, rgba(8, 10, 8, 0.72) 42%, rgba(8, 10, 8, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 10, 8, 0.2) 0%, rgba(8, 10, 8, 0.15) 66%, rgba(247, 247, 242, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 32px));
  padding: clamp(112px, 15vh, 150px) 0 120px;
  margin-left: max(16px, calc((100% - 1180px) / 2));
}

.label,
.section-label {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
}

.label {
  color: #9ef0bd;
}

.label::before,
.section-label::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.hero h1 {
  margin: 18px 0 0;
  color: #ffffff;
  font-size: clamp(52px, 6.4vw, 94px);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

html[lang="en"] .hero h1 {
  max-width: 820px;
  font-size: clamp(44px, 5.2vw, 78px);
  line-height: 1;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 650;
  line-height: 1.62;
  text-wrap: pretty;
}

html[lang="en"] .hero-copy {
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.56;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.text-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 950;
  padding: 0 18px;
}

.primary-link {
  background: #ffffff;
  color: #111111;
}

.primary-link.dark {
  background: #111111;
  color: #ffffff;
}

.text-link {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

.hero-strip {
  position: absolute;
  z-index: 3;
  right: max(16px, calc((100% - 1180px) / 2));
  bottom: 22px;
  left: max(16px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
}

.hero-strip span {
  min-height: 58px;
  background: rgba(247, 247, 242, 0.88);
  color: #111111;
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 950;
  padding: 17px 16px;
}

.manifest,
.module-band,
.assistant-stage,
.api-section,
.install-section {
  padding: clamp(72px, 9vw, 124px) max(16px, calc((100% - 1180px) / 2));
}

.manifest {
  background: var(--paper);
}

.manifest-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(24px, 5vw, 86px);
  align-items: start;
}

.manifest h2,
.section-heading h2,
.assistant-copy h2,
.install-copy h2 {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: clamp(36px, 4.4vw, 66px);
  font-weight: 950;
  line-height: 1.03;
  letter-spacing: 0;
  text-wrap: balance;
}

.manifest p:last-child,
.assistant-copy > p,
.install-copy > p,
.api-points > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 650;
  line-height: 1.8;
}

.module-band {
  background: var(--wash);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 42px;
}

.module-grid article,
.install-steps article {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  padding: 22px;
}

.module-grid span,
.install-steps span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
}

.module-grid article:nth-child(2) span {
  background: var(--blue);
}

.module-grid article:nth-child(3) span {
  background: var(--red);
}

.module-grid article:nth-child(4) span {
  background: var(--green);
}

.module-grid h3 {
  margin: 34px 0 0;
  color: var(--ink);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.12;
}

.module-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.72;
}

.gallery-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 12px;
  margin-top: 18px;
}

.gallery-row figure,
.api-layout figure,
.assistant-stack figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(17, 17, 17, 0.08);
}

.gallery-row img,
.api-layout img,
.assistant-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.gallery-row figure {
  aspect-ratio: 1.35;
  position: relative;
}

.gallery-row figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  padding: 8px 10px;
}

.assistant-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(28px, 5vw, 82px);
  align-items: center;
  background: #111111;
  color: #ffffff;
}

.assistant-stage .section-label,
.assistant-copy h2 {
  color: #ffffff;
}

.assistant-copy > p {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.76);
}

.ai-prompts {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.ai-prompts li {
  border-left: 4px solid #8ee4b5;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 8px 8px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.55;
  padding: 14px 16px;
}

.assistant-stack {
  position: relative;
  min-height: 520px;
}

.assistant-stack figure {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.assistant-stack figure.is-active {
  opacity: 1;
  transform: none;
}

.carousel-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.72);
  color: #ffffff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  transform: translateY(-50%);
}

.carousel-control.prev {
  left: 12px;
}

.carousel-control.next {
  right: 12px;
}

.api-section {
  background: #ffffff;
}

.api-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: stretch;
  margin-top: 42px;
}

.api-layout figure {
  min-height: 500px;
}

.api-points {
  display: grid;
  align-content: center;
}

.api-points dl {
  display: grid;
  gap: 1px;
  margin: 26px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.api-points dl div {
  background: var(--paper);
  padding: 18px;
}

.api-points dt {
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.api-points dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.65;
}

.install-section {
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(0, 0.48fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  background: var(--paper);
}

.install-copy > p {
  margin-top: 22px;
}

.install-copy .primary-link {
  margin-top: 28px;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.install-steps article {
  min-height: 180px;
}

.install-steps strong {
  display: block;
  margin-top: 34px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.22;
}

.footer {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  padding: 0 max(16px, calc((100% - 1180px) / 2));
}

.footer a {
  color: var(--ink);
}

@media (max-width: 1120px) {
  .desktop-nav {
    display: none;
  }

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

  .menu-button {
    display: inline-grid;
  }

  .manifest-inner,
  .section-heading,
  .assistant-stage,
  .api-layout,
  .install-section {
    grid-template-columns: 1fr;
  }

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

  .assistant-stack {
    min-height: 460px;
  }

  .api-layout figure {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .topbar {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand span {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: auto;
  }

  .hero-shot {
    object-position: 62% top;
  }

  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(8, 10, 8, 0.92) 0%, rgba(8, 10, 8, 0.7) 58%, rgba(8, 10, 8, 0.28) 100%),
      linear-gradient(180deg, transparent 0%, rgba(247, 247, 242, 0.94) 100%);
  }

  .hero-content {
    width: calc(100% - 28px);
    padding: 104px 0 154px;
    margin: 0 auto;
  }

  .hero h1,
  html[lang="en"] .hero h1 {
    font-size: clamp(42px, 12vw, 58px);
    line-height: 1;
  }

  .hero-copy,
  html[lang="en"] .hero-copy {
    font-size: 17px;
    line-height: 1.62;
  }

  .hero-strip {
    grid-template-columns: 1fr 1fr;
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .hero-strip span {
    min-height: 48px;
    padding: 13px 12px;
  }

  .manifest,
  .module-band,
  .assistant-stage,
  .api-section,
  .install-section {
    padding: 62px 14px;
  }

  .manifest h2,
  .section-heading h2,
  .assistant-copy h2,
  .install-copy h2 {
    font-size: 36px;
    line-height: 1.06;
  }

  .manifest p:last-child,
  .assistant-copy > p,
  .install-copy > p,
  .api-points > p {
    font-size: 17px;
    line-height: 1.72;
  }

  .module-grid,
  .gallery-row,
  .install-steps {
    grid-template-columns: 1fr;
  }

  .module-grid article,
  .install-steps article {
    min-height: auto;
  }

  .gallery-row figure {
    aspect-ratio: 1.2;
  }

  .assistant-stack {
    min-height: 330px;
  }

  .api-layout figure {
    min-height: 320px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 22px 14px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
