:root {
  color-scheme: light;
  --ink: #081421;
  --muted: #53647a;
  --subtle: #758297;
  --line: #dde6f2;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --blue: #0069ff;
  --blue-deep: #0757db;
  --cyan: #05b7e8;
  --green: #20c77b;
  --orange: #ff8a3d;
  --purple: #7d4dff;
  --navy: #07111f;
  --navy-2: #0d1b34;
  --shadow: 0 24px 70px rgba(23, 43, 77, 0.16);
  --radius: 8px;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --text-xs: 13px;
  --text-base: 16px;
  --text-title: 32px;
  --text-hero: 64px;
}

* {
  box-sizing: border-box;
}

html {
  overscroll-behavior-y: none;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  overscroll-behavior-y: none;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% -10%, rgba(0, 105, 255, 0.18), transparent 30rem),
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 34%, #f7f9fc 100%);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

pre {
  margin: 0;
}

code {
  font-family: var(--font-mono);
}

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: 50%;
  display: grid;
  width: min(1160px, calc(100% - 32px));
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 46px rgba(36, 54, 85, 0.12);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(209, 220, 235, 0.82);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(30, 46, 70, 0.14);
}

.brand img,
.footer-brand img {
  width: 150px;
  height: auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: #284056;
  font-size: var(--text-base);
  font-weight: 600;
}

.nav-links a,
.ghost-link,
.footer-column a,
.footer-contact {
  transition: color 160ms ease;
}

.nav-links a:hover,
.ghost-link:hover,
.footer-column a:hover,
.footer-contact:hover {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ghost-link {
  color: #29435d;
  font-size: var(--text-base);
  font-weight: 600;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), #6938ff);
  color: #fff;
  font-size: var(--text-base);
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(0, 105, 255, 0.28);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.button:hover {
  box-shadow: 0 20px 42px rgba(0, 105, 255, 0.34);
  filter: saturate(1.08);
  transform: translateY(-1px);
}

.button-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: var(--text-base);
}

.button-secondary {
  border: 1px solid rgba(0, 105, 255, 0.2);
  background: rgba(255, 255, 255, 0.76);
  color: #0f4fd9;
  box-shadow: none;
}

.hero {
  position: relative;
  display: block;
  min-height: 1080px;
  overflow: hidden;
  padding: 134px 0 72px;
  text-align: center;
}

.hero-shell {
  position: relative;
  z-index: 2;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.54) 60%, rgba(247, 250, 255, 0));
  pointer-events: none;
}

/* Static fallback ribbon for reduced-motion, no-WebGL, and small phones.
   Modern phones (>480px) get the live WebGL ribbon. Tablet/desktop fallback
   images are here only for the rare case of WebGL2 unavailable. */
.hero-gradient.use-static-fallback {
  background-image:
    image-set(
      url("/assets/hero/hero-ribbon-fallback-d1x.webp") 1x,
      url("/assets/hero/hero-ribbon-fallback-d2x.webp") 2x
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.54) 60%, rgba(247, 250, 255, 0));
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Tablet and small phones share the tablet-size fallback (lightweight, 7.5-17KB) */
@media (max-width: 1024px) {
  .hero-gradient.use-static-fallback {
    background-image:
      image-set(
        url("/assets/hero/hero-ribbon-fallback-t1x.webp") 1x,
        url("/assets/hero/hero-ribbon-fallback-t2x.webp") 2x
      ),
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.54) 60%, rgba(247, 250, 255, 0));
  }
}

.hero-ribbon-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 1;
}

.hero-content,
.hero-product-stage {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 1040px;
  margin: 0 auto;
  padding-top: 68px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 15ch;
  margin: 0 auto 24px;
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: var(--text-title);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 26px;
  color: #31465d;
  font-size: var(--text-base);
  line-height: 1.72;
}

.hero-actions {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 0;
}

.hero-product-stage {
  margin: 116px auto 0;
}

.product-hero {
  position: relative;
  display: grid;
  width: min(940px, calc(100vw - 40px));
  grid-template-columns: 1fr 236px;
  align-items: end;
  gap: 24px;
  margin: 0 auto;
  text-align: left;
}

.product-hero::before {
  position: absolute;
  inset: 16% 5% -12%;
  z-index: -1;
  border-radius: 42px;
  background:
    radial-gradient(circle at 74% 10%, rgba(0, 105, 255, 0.22), transparent 22rem),
    radial-gradient(circle at 22% 80%, rgba(255, 138, 61, 0.16), transparent 20rem),
    linear-gradient(135deg, rgba(5, 11, 24, 0.96), rgba(10, 20, 40, 0.96));
  box-shadow: 0 44px 110px rgba(7, 17, 31, 0.24);
  content: "";
}

.product-hero-main {
  overflow: hidden;
  border: 1px solid rgba(119, 153, 255, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(12, 26, 48, 0.98), rgba(7, 15, 29, 0.98)),
    #07111f;
  box-shadow: 0 24px 70px rgba(7, 17, 31, 0.24);
}

.mock-window-bar,
.terminal-top {
  display: flex;
  gap: 7px;
}

.mock-window-bar {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-window-bar span,
.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b6b;
}

.mock-window-bar span:nth-child(2),
.terminal-top span:nth-child(2) {
  background: #ffd166;
}

.mock-window-bar span:nth-child(3),
.terminal-top span:nth-child(3) {
  background: #2fd780;
}

.product-hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  color: #88a5d5;
  font-size: var(--text-xs);
}

.product-hero-nav strong {
  color: #55d7ff;
  letter-spacing: 0;
}

.product-hero-nav span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 12px;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 24px 18px;
}

.metric-panel {
  min-height: 96px;
  border: 1px solid rgba(107, 125, 255, 0.25);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.metric-panel span,
.order-table span,
.phone-title {
  color: #91a4c2;
  font-size: var(--text-xs);
}

.metric-panel strong {
  display: block;
  margin-top: 10px;
  color: #eef6ff;
  font-size: 22px;
  line-height: 1.1;
}

.metric-panel em {
  display: block;
  margin-top: 9px;
  color: #36d38b;
  font-style: normal;
  font-size: var(--text-xs);
}

.order-table {
  display: grid;
  gap: 0;
  padding: 0 24px 28px;
}

.order-table div {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.72fr 0.72fr;
  gap: 12px;
  min-height: 40px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.order-table div:first-child {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.order-table div:not(:first-child) span {
  color: #d9e6f8;
}

.order-table div:not(:first-child) span:nth-child(3) {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(54, 211, 139, 0.12);
  color: #8af0ba;
}

.checkout-card {
  margin: 0;
  transform: translateY(28px);
}

.checkout-phone {
  width: 236px;
  border: 1px solid rgba(9, 20, 36, 0.1);
  border-radius: 30px;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 80px rgba(28, 57, 104, 0.2);
}

.checkout-phone strong {
  display: block;
  margin-top: 24px;
  color: #081421;
  font-size: 28px;
  line-height: 1;
}

.checkout-phone p {
  margin: 9px 0 20px;
  color: #6a7890;
  font-size: var(--text-xs);
}

.pay-method {
  border: 1px solid #e4ebf4;
  border-radius: 12px;
  padding: 13px 14px;
  color: #394a5e;
  font-size: var(--text-xs);
  font-weight: 700;
}

.pay-method + .pay-method {
  margin-top: 10px;
}

.pay-method.active {
  border-color: rgba(0, 105, 255, 0.26);
  background: #f0f6ff;
  color: #0b54d6;
}

.checkout-phone button {
  width: 100%;
  min-height: 44px;
  margin-top: 20px;
  border: 0;
  border-radius: 999px;
  background: #081421;
  color: #fff;
  font: inherit;
  font-weight: 700;
}

.intro {
  padding: 58px 0 98px;
  background: #fff;
}

.intro-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  column-gap: 70px;
  row-gap: 44px;
  align-items: start;
}

.section-heading {
  max-width: 680px;
}

.section-heading.wide {
  max-width: 820px;
}

.section-heading p,
.intro-copy {
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.8;
}

.intro-copy {
  max-width: 760px;
  margin-bottom: 0;
}

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

.case-grid article,
.capability-card {
  border: 1px solid rgba(23, 43, 77, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 48px rgba(35, 53, 82, 0.08);
}

.capability-card p,
.case-grid p,
.faq-list p,
.final-cta p {
  color: var(--muted);
}

.capabilities {
  position: relative;
  overflow: hidden;
  padding: 104px 0;
  background:
    linear-gradient(180deg, #f6f9fd 0%, #fff 42%, #f7f9fc 100%),
    radial-gradient(circle at 80% 10%, rgba(0, 183, 232, 0.12), transparent 32rem);
}

.capability-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 18px;
  margin-top: 42px;
}

.capability-card {
  min-height: 200px;
  padding: 26px;
}

.capability-card.large-card {
  display: grid;
  min-height: 418px;
  grid-column: span 1;
  grid-row: span 2;
  grid-template-columns: 1fr;
  align-content: space-between;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 247, 255, 0.88)),
    radial-gradient(circle at 90% 0%, rgba(0, 105, 255, 0.14), transparent 20rem);
}

.capability-card.tall-card {
  background: #081421;
  color: #fff;
}

.capability-card.tall-card p {
  color: #aebbd0;
}

.checkout-preview {
  margin: 24px 0 0;
  overflow: hidden;
  border-radius: 8px;
  background: #ffd43f;
  box-shadow: 0 26px 70px rgba(25, 49, 83, 0.16);
}

.checkout-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.infrastructure {
  overflow: hidden;
  padding: 108px 0;
  background: #fff;
}

.infra-layout {
  display: grid;
  width: min(1160px, calc(100% - 40px));
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 56px;
}

.infra-visual {
  margin: 0;
}

.infra-visual img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(7, 17, 31, 0.2);
}

.developer-section {
  overflow: hidden;
  padding: 112px 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(125, 77, 255, 0.32), transparent 28rem),
    radial-gradient(circle at 15% 82%, rgba(0, 183, 232, 0.22), transparent 24rem),
    linear-gradient(180deg, #07111f 0%, #0a1730 58%, #07111f 100%);
  color: #fff;
}

.developer-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  align-items: center;
  gap: 64px;
}

.developer-layout h2 {
  color: #fff;
}

.developer-layout p {
  color: #aebbd0;
  font-size: var(--text-base);
  line-height: 1.8;
}

.integration-modes {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.integration-modes article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.07);
}

.integration-modes h3 {
  margin: 8px 0 7px;
  color: #fff;
  font-size: var(--text-base);
}

.integration-modes p {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.7;
}

.terminal-stack {
  position: relative;
  min-height: 380px;
}

.terminal {
  position: absolute;
  top: 0;
  right: 0;
  width: min(590px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(6, 12, 24, 0.88);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.terminal-secondary {
  top: 210px;
  right: 72px;
  width: min(430px, 72%);
  background: rgba(10, 24, 46, 0.94);
}

.terminal-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 16px;
}

.terminal pre {
  overflow-x: auto;
  padding: 22px;
  color: #dbeafe;
  font-size: var(--text-xs);
  line-height: 1.8;
}

.use-cases {
  padding: 88px 0 96px;
}

.compact-heading {
  max-width: 620px;
}

.case-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
}

.case-grid article {
  min-height: 172px;
  padding: 24px;
}

.faq-section {
  padding: 96px 0 104px;
  background: #fff;
}

.faq-heading {
  margin-bottom: 32px;
}

.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.faq-card {
  border: 1px solid rgba(23, 43, 77, 0.1);
  border-radius: 14px;
  background: #f8fafd;
  padding: 24px;
  box-shadow: 0 18px 44px rgba(35, 53, 82, 0.06);
}

.faq-card h3 {
  position: relative;
  margin-bottom: 12px;
  padding-left: 28px;
  color: #13283f;
  font-size: var(--text-base);
  font-weight: 700;
}

.faq-card h3::before {
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  content: "";
  box-shadow: 0 0 0 6px rgba(0, 105, 255, 0.08);
}

.faq-card p {
  margin: 0;
  line-height: 1.8;
}

.final-cta {
  padding: 104px 0;
}

.cta-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  border-radius: 28px;
  padding: 54px;
  background:
    radial-gradient(circle at 92% 18%, rgba(0, 183, 232, 0.32), transparent 18rem),
    radial-gradient(circle at 18% 20%, rgba(255, 138, 61, 0.28), transparent 18rem),
    linear-gradient(135deg, #07111f, #132e62 58%, #1f155f);
  color: #fff;
  box-shadow: 0 30px 80px rgba(7, 17, 31, 0.22);
}

.cta-card p {
  max-width: 680px;
  color: #d4e2f5;
  font-size: var(--text-base);
}

.cta-card h2 {
  color: #fff;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.site-footer {
  border-top: 1px solid rgba(23, 43, 77, 0.1);
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 105, 255, 0.12), transparent 26rem),
    linear-gradient(180deg, #fff 0%, #f4f8fd 100%);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.6fr);
  align-items: start;
  gap: 70px;
  padding: 58px 0 34px;
}

.footer-brand-block {
  max-width: 390px;
}

.footer-brand-block p {
  margin: 20px 0 18px;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.76;
}

.footer-contact {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid rgba(0, 105, 255, 0.18);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.74);
  color: #0f4fd9;
  font-size: var(--text-xs);
  font-weight: 800;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 36px;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column h3 {
  margin: 0 0 4px;
  color: #081421;
  font-size: var(--text-xs);
  font-weight: 900;
}

.footer-column a {
  color: #4f6077;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.45;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(23, 43, 77, 0.1);
  padding: 18px 0 30px;
  color: #7b8797;
  font-size: var(--text-xs);
  font-weight: 700;
}

.footer-bottom span:last-child {
  color: #53647a;
}

/* Comparison landing pages */
.comparison-page {
  background:
    radial-gradient(circle at 14% 0%, rgba(0, 105, 255, 0.12), transparent 26rem),
    radial-gradient(circle at 88% 8%, rgba(255, 138, 61, 0.12), transparent 24rem),
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 30%, #f7f9fc 100%);
}

.comparison-page .site-header {
  position: sticky;
  top: 16px;
  transform: none;
  left: auto;
  margin: 16px auto 0;
}

.comparison-page h1 {
  max-width: 920px;
}

.comparison-hero {
  padding: 94px 0 74px;
  text-align: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 105, 255, 0.16);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.82);
  color: #0f4fd9;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 12px 30px rgba(40, 64, 94, 0.08);
}

.comparison-hero h1 {
  margin-bottom: 20px;
}

.comparison-hero h1 .title-line {
  display: block;
}

.accent-text {
  color: var(--blue);
}

.accent-text.green {
  color: #0faa6b;
}

.accent-text.orange {
  color: var(--orange);
}

.comparison-copy {
  max-width: 760px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.76;
}

.comparison-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.table-hint,
.compare-card p,
.benefit-card p,
.mini-feature p,
.timeline-step p,
.alternatives-card p,
.comparison-table p {
  color: var(--muted);
}

.comparison-section {
  padding: 92px 0;
}

.comparison-section.white {
  background: #fff;
}

.comparison-section.dark {
  background:
    radial-gradient(circle at 80% 18%, rgba(0, 105, 255, 0.2), transparent 24rem),
    linear-gradient(180deg, #07111f 0%, #0b1830 100%);
  color: #fff;
}

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

.center-heading h2 {
  margin-bottom: 12px;
}

.center-heading p {
  margin: 0;
  color: var(--muted);
}

.comparison-section.dark .center-heading p {
  color: #aebbd0;
}

.comparison-table {
  display: grid;
  gap: 10px;
  max-width: 980px;
  margin: 0 auto;
}

.comparison-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.24fr) minmax(150px, 0.88fr) minmax(150px, 0.88fr);
  gap: 10px;
  align-items: stretch;
}

.comparison-row > div {
  min-height: 58px;
  border: 1px solid rgba(23, 43, 77, 0.1);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(35, 53, 82, 0.05);
}

.comparison-row.header > div {
  min-height: 52px;
  background: #081421;
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.comparison-row.header > div:first-child {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}

.comparison-row .feature-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #13283f;
  font-weight: 800;
}

.value-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25384e;
  font-weight: 800;
  text-align: center;
}

.value-cell.good {
  border-color: rgba(32, 199, 123, 0.44);
  background: rgba(32, 199, 123, 0.09);
  color: #087b4f;
}

.value-cell.warn {
  border-color: rgba(255, 138, 61, 0.42);
  background: rgba(255, 138, 61, 0.1);
  color: #a34c0f;
}

.value-cell.unknown {
  border-color: rgba(117, 130, 151, 0.24);
  background: #f7f9fc;
  color: #5a687c;
}

.table-hint {
  max-width: 980px;
  margin: 16px auto 0;
  font-size: var(--text-xs);
  text-align: center;
}

.winner-callout {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin: 24px auto 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: #20c77b;
  color: #062b1b;
  font-size: var(--text-xs);
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(32, 199, 123, 0.24);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.benefit-card,
.mini-feature,
.alternatives-card,
.compare-card,
.timeline-step {
  border: 1px solid rgba(23, 43, 77, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(35, 53, 82, 0.08);
}

.benefit-card {
  min-height: 190px;
  padding: 24px;
}

.card-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(0, 105, 255, 0.1);
  color: var(--blue);
  font-weight: 900;
}

.card-icon.green {
  background: rgba(32, 199, 123, 0.14);
  color: #087b4f;
}

.card-icon.orange {
  background: rgba(255, 138, 61, 0.16);
  color: #a34c0f;
}

.card-icon.purple {
  background: rgba(125, 77, 255, 0.14);
  color: var(--purple);
}

.mini-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mini-feature {
  min-height: 136px;
  padding: 20px;
}

.mini-feature h3,
.benefit-card h3,
.compare-card h3,
.alternatives-card h3,
.timeline-step h3 {
  font-weight: 800;
}

.savings-panel {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  border-radius: 26px;
  padding: 44px;
  background:
    radial-gradient(circle at 98% 14%, rgba(0, 105, 255, 0.16), transparent 18rem),
    #fff;
  box-shadow: 0 28px 74px rgba(35, 53, 82, 0.12);
}

.savings-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  color: #25384e;
  font-weight: 700;
}

.savings-list span::before {
  content: "✓";
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(32, 199, 123, 0.18);
  color: #087b4f;
  font-size: 12px;
}

.savings-number {
  border-radius: 18px;
  padding: 28px;
  background: linear-gradient(135deg, #20c77b, #05b7e8);
  color: #062b1b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.savings-number span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 900;
  text-transform: uppercase;
}

.savings-number strong {
  display: block;
  margin: 8px 0;
  color: #061829;
  font-size: 44px;
  line-height: 1;
}

.savings-number p {
  margin: 0;
  color: rgba(6, 24, 41, 0.72);
  font-size: var(--text-xs);
  font-weight: 800;
}

.dark-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}

.dark-cta h2 {
  color: #fff;
}

.dark-cta p {
  max-width: 680px;
  margin-bottom: 0;
  color: #aebbd0;
}

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

.alternatives-card {
  display: grid;
  min-height: 280px;
  padding: 26px;
}

.alternatives-card .button {
  width: fit-content;
  align-self: end;
}

.compare-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.compare-card {
  padding: 26px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.timeline-step {
  padding: 22px;
}

.timeline-step span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #081421;
  color: #fff;
  font-weight: 900;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 170px 1fr;
  }

  .nav-links {
    display: none;
  }

  .header-actions {
    justify-content: flex-end;
  }

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

  .product-hero {
    grid-template-columns: 1fr;
  }

  .checkout-card {
    display: none;
  }

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

  .intro-layout,
  .infra-layout,
  .developer-layout,
  .cta-card,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .terminal-stack {
    min-height: 420px;
  }

  .footer-inner {
    justify-items: start;
    gap: 34px;
  }

  .savings-panel,
  .dark-cta {
    grid-template-columns: 1fr;
  }

  .mini-feature-grid,
  .alternatives-grid,
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --text-xs: 12px;
    --text-base: 15px;
    --text-title: 28px;
    --text-hero: 52px;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .section-shell {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 9px 10px 9px 14px;
  }

  .brand img {
    width: 132px;
  }

  .header-actions {
    display: none;
  }

  .ghost-link {
    display: none;
  }

  .button-small {
    min-height: 34px;
    padding: 0 12px;
    font-size: var(--text-xs);
  }

  .hero {
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    gap: 28px;
    padding: 88px 0 48px;
    overflow: hidden;
  }

  .hero-shell {
    display: flex;
    min-height: calc(100vh - 136px);
    min-height: calc(100svh - 136px);
    flex-direction: column;
    justify-content: flex-start;
  }

  .hero-content {
    display: flex;
    min-height: 58vh;
    min-height: 58svh;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
  }

  h1 {
    max-width: 100%;
    font-size: var(--text-hero);
    line-height: 1.06;
    margin-bottom: 18px;
    white-space: nowrap;
  }

  h2 {
    font-size: var(--text-title);
  }

  .hero-copy,
  .section-heading p,
  .intro-copy,
  .developer-layout p,
  .cta-card p {
    font-size: var(--text-base);
  }

  .hero-copy {
    max-width: 100%;
    margin-bottom: 22px;
    line-height: 1.68;
  }

  .hero-copy br {
    display: none;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .button {
    flex: 1 1 132px;
    max-width: 154px;
    min-height: 42px;
    padding: 0 16px;
  }

  .hero-product-stage {
    margin-top: 20px;
    transform: scale(0.9);
    transform-origin: top center;
  }

  .product-hero {
    width: min(640px, calc(100vw - 44px));
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

  .product-hero::before {
    inset: 10% -4% -6%;
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(7, 17, 31, 0.2);
  }

  .product-hero-main {
    border-radius: 18px;
  }

  .mock-window-bar {
    padding: 12px 14px;
  }

  .product-hero-nav {
    gap: 10px;
    padding: 14px 16px;
  }

  .product-hero-nav span {
    padding: 5px 10px;
  }

  .product-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 14px 14px;
  }

  .product-hero-grid .metric-panel:first-child {
    grid-column: 1 / -1;
  }

  .metric-panel {
    min-height: 84px;
    border-radius: 12px;
    padding: 12px;
  }

  .metric-panel strong {
    margin-top: 8px;
    font-size: 16px;
  }

  .metric-panel em {
    margin-top: 7px;
  }

  .order-table {
    padding: 0 14px 18px;
  }

  .order-table div {
    grid-template-columns: 1.12fr 0.82fr 0.78fr;
    gap: 8px;
    min-height: 36px;
  }

  .order-table span:nth-child(4) {
    display: none;
  }

  .terminal pre {
    padding: 16px;
    font-size: var(--text-xs);
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

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

  .intro,
  .capabilities,
  .infrastructure,
  .developer-section,
  .use-cases,
  .faq-section,
  .final-cta {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .intro-layout {
    row-gap: 24px;
  }

  .section-heading p,
  .intro-copy {
    line-height: 1.72;
  }

  .capability-grid {
    gap: 14px;
    margin-top: 30px;
  }

  .capability-card {
    min-height: auto;
    padding: 22px;
  }

  .capability-card.large-card {
    min-height: auto;
  }

  .capability-card.large-card,
  .capability-card.tall-card {
    grid-column: auto;
    grid-row: auto;
  }

  .checkout-preview {
    margin-top: 20px;
  }

  .infra-layout {
    gap: 30px;
  }

  .infra-visual img {
    border-radius: 16px;
    box-shadow: 0 20px 54px rgba(7, 17, 31, 0.18);
  }

  .developer-layout {
    gap: 34px;
  }

  .intro-layout > *,
  .infra-layout > *,
  .developer-layout > *,
  .cta-card > * {
    min-width: 0;
  }

  .integration-modes article {
    padding: 16px;
  }

  .terminal-stack {
    min-height: auto;
  }

  .terminal,
  .terminal-secondary {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-bottom: 14px;
  }

  .case-grid article,
  .faq-card {
    min-height: auto;
    padding: 20px;
  }

  .cta-card {
    border-radius: 20px;
    gap: 22px;
    padding: 26px;
  }

  .cta-actions {
    justify-content: flex-start;
  }

  .cta-actions .button {
    flex: 1 1 150px;
  }

  .footer-inner {
    padding: 28px 0;
  }

  .footer-nav {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    padding-bottom: 26px;
  }

  .comparison-page .site-header {
    top: 10px;
    margin-top: 10px;
  }

  .comparison-hero {
    padding: 58px 0 54px;
  }

  .comparison-page h1 {
    white-space: normal;
  }

  .comparison-copy {
    font-size: var(--text-base);
  }

  .comparison-section {
    padding: 62px 0;
  }

  .comparison-row {
    grid-template-columns: 1fr;
    gap: 6px;
    border: 1px solid rgba(23, 43, 77, 0.1);
    border-radius: 14px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.78);
  }

  .comparison-row.header {
    display: none;
  }

  .comparison-row > div {
    min-height: auto;
    box-shadow: none;
  }

  .value-cell::before {
    display: block;
    margin-bottom: 6px;
    color: var(--subtle);
    font-size: 12px;
    font-weight: 800;
  }

  .value-cell:nth-child(2)::before {
    content: "KyrenPay";
  }

  .value-cell:nth-child(3)::before {
    content: "对比平台";
  }

  .benefit-grid,
  .mini-feature-grid,
  .alternatives-grid,
  .compare-card-grid,
  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .savings-panel {
    border-radius: 20px;
    padding: 26px;
  }

  .savings-number strong {
    font-size: 34px;
  }

  .winner-callout {
    width: 100%;
    justify-content: center;
    border-radius: 16px;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .comparison-page h1 {
    font-size: 42px;
    line-height: 1.08;
  }
}

@media (max-width: 480px) {
  :root {
    --text-title: 26px;
    --text-hero: 38px;
  }

  .comparison-page h1 {
    font-size: 34px;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 76px;
    padding-bottom: 40px;
  }

  .hero-shell {
    min-height: calc(100vh - 116px);
    min-height: calc(100svh - 116px);
  }

  .hero-content {
    min-height: calc(100vh - 116px);
    min-height: calc(100svh - 116px);
    padding-top: 0;
  }

  .hero-product-stage {
    display: none;
  }
}

@media (max-width: 380px) {
  :root {
    --text-hero: 36px;
  }
}

@media (max-width: 340px) {
  :root {
    --text-hero: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
