:root {
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --blue: #1a5276;
  --blue-2: #2e86c1;
  --cyan: #23b6c6;
  --green: #36b37e;
  --cream: #fffaf2;
  --paper: #f8fafc;
  --dark: #0b1220;
  --dark-2: #101b31;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(16, 24, 40, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(228, 231, 236, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #344054;
  font-size: 12px;
  font-weight: 650;
}

.nav-links a,
.text-link {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--blue-2);
}

.header-actions,
.hero-actions,
.demo-actions,
.final-cta-inner > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.text-link {
  color: #475467;
  font-size: 14px;
  font-weight: 700;
}

.language-select {
  min-height: 38px;
  padding: 0 34px 0 12px;
  color: #344054;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--blue-2);
  box-shadow: 0 10px 24px rgba(46, 134, 193, 0.24);
}

.button-primary:hover {
  background: var(--blue);
}

.button-dark {
  color: var(--white);
  background: var(--dark);
}

.button-light {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 54px;
  min-height: calc(100vh - 64px);
  padding: 70px 0 80px;
}

.hero-copy h1,
.section-heading h2,
.demo-copy h2,
.security-card h2,
.final-cta h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 620px;
  font-size: clamp(30px, 3.3vw, 48px);
  font-weight: 850;
}

.hero-copy h1 span {
  display: block;
  white-space: normal;
}

.lang-lines {
  display: block;
}

.lang-lines > span {
  display: block;
}

.lang-lines > span + span {
  margin-top: 0.28em;
}

h1.lang-lines > span + span {
  margin-top: 0.18em;
}

.lang-lines > span:nth-child(2),
.lang-lines > span:nth-child(3) {
  color: inherit;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 830;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-lede {
  max-width: 600px;
  margin: 22px 0 28px;
  color: #475467;
  font-size: 16px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.trust-strip span {
  padding: 8px 12px;
  color: #344054;
  background: #f2f4f7;
  border: 1px solid #eaecf0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-console {
  overflow: hidden;
  min-width: 0;
  color: var(--white);
  background: radial-gradient(circle at 20% 10%, rgba(35, 182, 198, 0.24), transparent 34%),
    linear-gradient(145deg, var(--dark), var(--dark-2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.console-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.console-topbar span {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.console-topbar strong {
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.console-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  gap: 18px;
  padding: 18px;
}

.art-preview {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 420px;
  background: #fff7e6;
  border-radius: 8px;
}

.art-preview img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
  background: #fff7e6;
}

.scan-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0 46%, rgba(35, 182, 198, 0.05) 46%, rgba(35, 182, 198, 0.6) 49%, rgba(35, 182, 198, 0.04) 52%, transparent 52% 100%);
  animation: scan 3.2s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { transform: translateY(-38%); }
  50% { transform: translateY(38%); }
}

.score-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.score-head,
.metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.score-head {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.score-head strong {
  color: #8ff0c3;
}

.metric {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

.metric b {
  color: #8ff0c3;
  font-size: 20px;
}

.score-panel p {
  margin: auto 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.platform-flow,
.dimensions-section,
.developer-section,
.cases-section,
.security-section {
  padding: 90px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.demo-copy h2,
.security-card h2,
.final-cta h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 840;
}

.section-heading p:not(.eyebrow),
.demo-copy p,
.security-card p,
.final-cta p {
  color: var(--muted);
  font-size: 15px;
}

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

.flow-grid article,
.case-grid article {
  min-height: 250px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.flow-grid span {
  color: var(--blue-2);
  font-size: 11px;
  font-weight: 850;
}

.flow-grid h3,
.case-grid h3 {
  margin: 42px 0 10px;
  font-size: 21px;
  line-height: 1.2;
}

.flow-grid p,
.case-grid p {
  margin: 0;
  color: var(--muted);
}

.dimensions-section {
  padding-top: 0;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dimension-grid article {
  min-height: 230px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.06);
}

.dimension-grid span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border-radius: 8px;
  font-size: 20px;
  font-weight: 850;
}

.dimension-grid h3 {
  margin: 34px 0 10px;
  font-size: 18px;
  line-height: 1.25;
}

.dimension-grid p {
  margin: 0;
  color: var(--muted);
}

.demo-band {
  color: var(--white);
  background: var(--dark);
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 54px;
  padding: 88px 0;
}

.demo-copy .eyebrow {
  color: #8fe7ef;
}

.demo-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.playground-card,
.code-window {
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.upload-zone {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-icon {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  border-radius: 8px;
}

.upload-zone strong {
  color: var(--white);
}

.upload-zone small {
  color: rgba(255, 255, 255, 0.55);
}

pre {
  margin: 0;
  overflow: auto;
  color: #d9e8ff;
  font-size: 14px;
  line-height: 1.7;
}

.playground-card pre {
  min-height: 330px;
  padding: 22px;
}

.developer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 26px;
  align-items: stretch;
}

.code-tabs {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-tabs span {
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.58);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 750;
}

.code-tabs .active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.code-window pre {
  padding: 24px;
}

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

.docs-list a {
  display: block;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.docs-list a:hover {
  border-color: rgba(46, 134, 193, 0.42);
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
  transform: translateY(-1px);
}

.docs-list span {
  display: block;
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-list strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
}

.cases-section {
  background: #f8fafc;
  max-width: none;
  width: 100%;
  padding-left: max(20px, calc((100% - 1180px) / 2));
  padding-right: max(20px, calc((100% - 1180px) / 2));
}

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

.case-grid article {
  background: var(--white);
}

.sample-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: 32px;
  align-items: center;
  margin-top: 28px;
  padding: 32px;
  color: var(--white);
  background: linear-gradient(145deg, var(--dark), var(--dark-2));
  border-radius: 8px;
  overflow: hidden;
}

.sample-showcase h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.12;
}

.sample-showcase p:not(.eyebrow) {
  max-width: 540px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.sample-showcase .eyebrow {
  color: #8fe7ef;
}

.sample-images {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.38fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.sample-images img {
  width: 100%;
  object-fit: contain;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.sample-feature {
  max-height: 500px;
  object-position: center;
}

.sample-mobile {
  max-height: 500px;
  object-position: top;
}

.security-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 38px;
  align-items: center;
  padding: 38px;
  color: var(--white);
  background: linear-gradient(135deg, #13233f, #0b1220);
  border-radius: 8px;
}

.security-card .eyebrow {
  color: #8fe7ef;
}

.security-card p {
  color: rgba(255, 255, 255, 0.72);
}

.security-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.security-points span {
  padding: 18px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-weight: 750;
}

.final-cta {
  padding: 90px 0;
  text-align: center;
  background: #f7fbff;
}

.final-cta-inner {
  display: grid;
  justify-items: center;
}

.final-cta p {
  margin: 18px 0 28px;
}

.site-footer {
  color: #475467;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0;
  font-size: 14px;
}

.footer-inner a {
  color: var(--blue-2);
  font-weight: 750;
}

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

  .hero,
  .demo-layout,
  .developer-grid,
  .sample-showcase,
  .security-card {
    grid-template-columns: 1fr;
  }

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

  .console-body {
    grid-template-columns: 1fr;
  }

  .art-preview,
  .art-preview img {
    min-height: 320px;
  }

  .flow-grid,
  .dimension-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 1180px) and (min-width: 981px) {
  .dimension-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) and (min-width: 981px) {
  .console-body {
    grid-template-columns: 1fr;
  }

  .art-preview,
  .art-preview img {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .button,
  .hero-actions .button,
  .demo-actions .button,
  .final-cta .button {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy h1 span {
    white-space: normal;
  }

  .flow-grid article,
  .case-grid article,
  .sample-showcase,
  .security-card {
    padding: 22px;
  }

  .sample-images {
    grid-template-columns: 1fr;
  }

  .sample-feature,
  .sample-mobile {
    max-height: 420px;
  }

  .security-points {
    grid-template-columns: 1fr;
  }
}
