:root {
  --bg: #ffffff;
  --ink: #101319;
  --muted: #626b78;
  --line: #dde4ec;
  --soft: #f5f8fb;
  --panel: #ffffff;
  --cyan: #10c7df;
  --coral: #ff6759;
  --lime: #b9f24b;
  --shadow: 0 20px 60px rgba(16, 19, 25, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui,
    sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 7px;
  box-shadow: inset -8px -8px 0 rgba(16, 199, 223, 0.55);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.main-nav a:hover {
  color: var(--ink);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
}

.header-action,
.button.primary {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}

.button.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(560px, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  min-height: auto;
  padding: clamp(46px, 5vw, 72px) clamp(20px, 4vw, 64px) 56px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(16, 199, 223, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 199, 223, 0.08) 1px, transparent 1px),
    #fff;
  background-size: 38px 38px;
  overflow: hidden;
}

.hero > *,
.studio-shell > *,
.prompt-panel,
.studio-topbar,
.studio-side,
textarea,
select,
input,
pre {
  min-width: 0;
}

.hero-copy h1 {
  margin: 0;
  max-width: 660px;
  font-size: clamp(44px, 5.3vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

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

.hero-copy p {
  margin: 24px 0 0;
  max-width: 590px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.55;
}

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

.trust-row {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.trust-row span {
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.studio-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 14px;
  padding: 14px;
  background: #121821;
  border: 1px solid #222d3a;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.studio-topbar,
.prompt-panel,
.result-grid {
  grid-column: 1;
}

.studio-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #1b2430;
  border: 1px solid #2c3847;
  border-radius: 7px;
  color: #fff;
}

.studio-topbar div {
  display: grid;
  gap: 3px;
}

.studio-topbar span {
  color: #92a1b4;
  font-size: 12px;
}

.studio-topbar select,
.control-grid select,
.control-grid input {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #dbe3ec;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}

.prompt-panel {
  padding: 14px;
  background: #f8fbfd;
  border-radius: 7px;
}

.prompt-panel label,
.control-grid label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

textarea {
  width: 100%;
  min-height: 104px;
  padding: 14px;
  resize: vertical;
  border: 1px solid #dbe3ec;
  border-radius: 7px;
  color: var(--ink);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.chip-row {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.chip {
  min-height: 32px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  color: #536070;
  font-size: 12px;
  font-weight: 750;
}

.chip.active {
  background: #dffaff;
  border-color: var(--cyan);
  color: #07606c;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.generate-button {
  width: 100%;
}

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

.result-card {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--soft);
}

.result-card span {
  position: absolute;
  left: 10px;
  top: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}

.product-a {
  background:
    radial-gradient(circle at 45% 38%, rgba(255, 255, 255, 0.9) 0 10%, transparent 11%),
    linear-gradient(145deg, #95e8f2, #eefcff 45%, #ffb7ae);
}

.product-b {
  background:
    linear-gradient(90deg, transparent 42%, rgba(255, 255, 255, 0.9) 43% 58%, transparent 59%),
    linear-gradient(145deg, #101319, #23bfd4 55%, #f7ffaf);
}

.product-c {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0 16%, transparent 17%),
    linear-gradient(145deg, #ff6759, #fff3ef 48%, #10c7df);
}

.product-d {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0 18%, transparent 19%),
    linear-gradient(145deg, #b9f24b, #f4ffce 38%, #0c2b35);
}

.studio-side {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: grid;
  gap: 14px;
}

.credit-card,
pre {
  margin: 0;
  padding: 14px;
  background: #1b2430;
  border: 1px solid #2c3847;
  border-radius: 7px;
  color: #fff;
}

.credit-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.credit-card span,
.credit-card small {
  color: #92a1b4;
}

.credit-card strong {
  font-size: 36px;
}

pre {
  overflow: auto;
  color: #b9f24b;
  font-size: 12px;
  line-height: 1.55;
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 4vw, 64px);
}

.section-heading,
.split-heading {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin-bottom: 36px;
}

.split-heading {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  max-width: none;
  align-items: end;
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

.section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.capabilities {
  background: #fff;
}

.capability-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.capability-layout article {
  min-height: 190px;
  padding: clamp(22px, 4vw, 42px);
  background: #fff;
}

.capability-layout h3,
.case-card h3,
.doc-column h3,
.article-list h3,
.price-cards h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.use-cases,
.content-center,
.faq {
  background: var(--soft);
}

.case-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 14px;
}

.case-card {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border-radius: 8px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 14px 44px rgba(16, 19, 25, 0.14);
}

.case-card span {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  opacity: 0.78;
}

.ecom {
  background: linear-gradient(145deg, #0d1117, #11c7df 56%, #fff 57%, #ff6759);
}

.ads {
  background: linear-gradient(150deg, #ff6759, #ffcab7 48%, #101319);
}

.social {
  background: linear-gradient(150deg, #18313b, #b9f24b 52%, #ffffff);
  color: #101319;
}

.api {
  background: linear-gradient(145deg, #101319, #26384a 58%, #10c7df);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-left: 0;
}

.doc-column {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 340px;
  padding: 26px;
  border-left: 1px solid var(--line);
  background: #fff;
}

.doc-column a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.doc-column a:hover {
  color: var(--coral);
}

.content-center {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(26px, 5vw, 64px);
}

.article-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.article-list article {
  padding: 24px;
  background: #fff;
}

.article-list span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-pages {
  background: #101319;
  color: #fff;
}

.product-pages p {
  color: #acb7c5;
}

.page-map {
  display: grid;
  gap: 1px;
  background: #2b3542;
  border: 1px solid #2b3542;
}

.page-map div {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 22px 24px;
  background: #151b24;
}

.page-map strong {
  color: var(--lime);
  font-size: 18px;
}

.page-map span {
  color: #d6dde7;
  line-height: 1.7;
}

.pricing {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

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

.price-cards article {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.price-cards strong {
  display: block;
  margin: 16px 0;
  font-size: 32px;
}

.price-cards .featured {
  background: #101319;
  color: #fff;
  border-color: #101319;
  transform: translateY(-12px);
}

.price-cards .featured p {
  color: #d6dde7;
}

.faq-list {
  max-width: 920px;
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
}

details p {
  padding-top: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(20px, 4vw, 64px);
  background: #0f1319;
  color: #fff;
}

.page-main {
  background:
    linear-gradient(90deg, rgba(16, 199, 223, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 199, 223, 0.06) 1px, transparent 1px),
    #fff;
  background-size: 38px 38px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(56px, 8vw, 110px) clamp(20px, 4vw, 64px);
}

.page-hero > * {
  min-width: 0;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 5.4vw, 74px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.page-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.page-hero h1 span {
  display: block;
}

.page-panel {
  padding: 22px;
  background: #101319;
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.page-panel ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: #d7e0ea;
}

.mini-tool {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-tool textarea,
.mini-tool input,
.mini-tool select {
  width: 100%;
}

.content-band {
  padding: clamp(54px, 7vw, 92px) clamp(20px, 4vw, 64px);
  background: #fff;
  border-top: 1px solid var(--line);
}

.content-band.soft {
  background: var(--soft);
}

.content-band.dark {
  background: #101319;
  color: #fff;
}

.content-band.dark p,
.content-band.dark .matrix-card p {
  color: #c4ceda;
}

.band-heading {
  max-width: 900px;
  margin-bottom: 28px;
}

.band-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
}

.band-heading p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.matrix-card {
  min-height: 220px;
  padding: 24px;
  background: #fff;
}

.dark .matrix-card {
  background: #151b24;
}

.matrix-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
}

.matrix-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.matrix-card p,
.route-table p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.route-table {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.route-table article {
  display: grid;
  grid-template-columns: 240px 1fr 220px;
  gap: 20px;
  padding: 20px 22px;
  background: #fff;
  align-items: start;
}

.route-table strong {
  font-size: 17px;
}

.route-table code,
.code-block {
  color: #066876;
  font-weight: 800;
}

.step-list {
  display: grid;
  gap: 14px;
  counter-reset: steps;
}

.step-list article {
  position: relative;
  padding: 22px 22px 22px 70px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-list article::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 22px;
  top: 22px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: #101319;
  color: #fff;
  border-radius: 7px;
  font-weight: 900;
}

.code-sample {
  overflow: auto;
  padding: 22px;
  background: #101319;
  color: #b9f24b;
  border-radius: 8px;
  line-height: 1.65;
}

.cta-strip {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px;
  background: #dffaff;
  border: 1px solid rgba(16, 199, 223, 0.45);
  border-radius: 8px;
}

.cta-strip h2 {
  margin: 0 0 8px;
}

.cta-strip p {
  margin: 0;
  color: #34606b;
}

.site-footer p {
  color: #aeb8c4;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: #d6dde7;
}

@media (max-width: 1100px) {
  .hero,
  .pricing,
  .content-center,
  .page-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .docs-grid,
  .price-cards,
  .matrix-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .main-nav,
  .header-action {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .site-header.nav-open .main-nav {
    position: absolute;
    inset: 72px 16px auto 16px;
    display: grid;
    gap: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .main-nav a {
    padding: 14px;
  }

  .studio-shell,
  .studio-side,
  .studio-topbar,
  .prompt-panel,
  .result-grid {
    grid-column: 1;
  }

  .studio-shell {
    grid-template-columns: 1fr;
  }

  .studio-topbar {
    display: grid;
    gap: 12px;
  }

  .studio-topbar select {
    width: 100%;
  }

  .studio-side {
    grid-row: auto;
  }

  .control-grid,
  .result-grid,
  .docs-grid,
  .price-cards,
  .matrix-grid,
  .split-heading,
  .capability-layout,
  .page-map div,
  .route-table article {
    grid-template-columns: 1fr;
  }

  .cta-strip {
    display: grid;
  }

  .case-gallery {
    grid-template-columns: 1fr;
  }

  .case-card {
    min-height: 220px;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 14px 16px;
  }

  .hero,
  .section,
  .page-hero,
  .content-band {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-main,
  .page-panel,
  .matrix-card,
  .route-table,
  .route-table article {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .page-hero > *,
  .page-panel,
  .page-hero p {
    width: calc(100vw - 48px);
  }

  .hero-copy h1 {
    font-size: 38px;
    line-height: 1.06;
  }

  .page-hero h1 {
    font-size: 38px;
    line-height: 1.08;
  }

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

  .studio-shell {
    margin-left: -6px;
    margin-right: -6px;
    padding: 10px;
  }

  .hero-actions .button {
    width: 100%;
  }
}
