:root {
  --bg: #f4f1ea;
  --ink: #171713;
  --muted: #69645a;
  --line: rgba(23, 23, 19, 0.14);
  --surface: rgba(255, 252, 244, 0.78);
  --surface-strong: #fffaf0;
  --accent: #d84f2a;
  --accent-dark: #9f321c;
  --green: #1f6b52;
  --blue: #244f8f;
  --shadow: 0 22px 70px rgba(50, 42, 28, 0.14);
  --radius: 18px;
  --mono: "SFMono-Regular", "Cascadia Mono", "Liberation Mono", Consolas, monospace;
  --sans: "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 12% 8%, rgba(216, 79, 42, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(31, 107, 82, 0.13), transparent 26rem),
    linear-gradient(135deg, #f7f3eb 0%, #efe8dc 44%, #f7f3ec 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(23, 23, 19, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 19, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(23, 23, 19, 0.13);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.74);
  box-shadow: 0 12px 40px rgba(60, 48, 33, 0.12);
  backdrop-filter: blur(18px) saturate(1.2);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fffaf0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--ink);
  box-shadow: inset 0 -8px 18px rgba(255, 255, 255, 0.12);
}

.brand-text {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.nav-links a,
.header-cta {
  border-radius: 999px;
  padding: 10px 14px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.nav-links a:hover {
  background: rgba(23, 23, 19, 0.07);
  color: var(--ink);
}

.header-cta {
  color: #fffaf0;
  font-size: 13px;
  font-weight: 800;
  background: var(--ink);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 32px;
  min-height: calc(100dvh - 80px);
  padding: 70px 0 42px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.6vw, 76px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 span {
  display: block;
}

h1 .headline-ink {
  max-width: 9em;
}

h1 .headline-accent {
  color: var(--accent-dark);
}

.nowrap {
  white-space: nowrap;
}

.hero-lede {
  max-width: 720px;
  margin-bottom: 28px;
  color: #433d34;
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.72;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 23, 19, 0.16);
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(23, 23, 19, 0.12);
}

.button.primary {
  color: #fffaf0;
  background: var(--accent);
  border-color: var(--accent);
}

.button.secondary {
  background: rgba(255, 250, 240, 0.62);
}

.hero-board {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23, 23, 19, 0.13);
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 250, 240, 0.64);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.12);
}

.hero-board::after {
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  content: "";
  background: rgba(216, 79, 42, 0.14);
  filter: blur(2px);
}

.board-top {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 142px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 20px;
  padding: 22px;
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgba(23, 23, 19, 0.96), rgba(23, 23, 19, 0.84)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 16px);
}

.board-top span,
.board-grid span,
.backend-list span,
.status-strip span {
  color: inherit;
  opacity: 0.62;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.board-top strong {
  max-width: 10em;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
}

.board-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.board-grid div {
  min-height: 116px;
  border: 1px solid rgba(23, 23, 19, 0.11);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 250, 240, 0.76);
}

.board-grid strong {
  display: block;
  margin-top: 18px;
  font-size: 20px;
  line-height: 1.18;
}

.board-note {
  position: relative;
  z-index: 1;
  margin: 14px 4px 0;
  color: #5d554b;
  font-size: 13px;
  line-height: 1.65;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(23, 23, 19, 0.12);
  border-radius: 24px;
  background: rgba(23, 23, 19, 0.9);
  color: #fffaf0;
}

.status-strip div {
  min-height: 92px;
  border-radius: 17px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.status-strip strong {
  display: block;
  margin-top: 17px;
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1.2;
}

.shelf,
.agent,
.gate,
.backend {
  padding-top: 88px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.shelf .section-heading {
  display: block;
  max-width: 980px;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.section-heading h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(32px, 4.6vw, 62px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: 0;
}

.shelf .section-heading h2 {
  max-width: none;
  white-space: nowrap;
}

.agent-title span + span::before {
  content: " · ";
}

.section-heading p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.category-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 18px;
  scrollbar-width: thin;
}

.chip {
  flex: 0 0 auto;
  border: 1px solid rgba(23, 23, 19, 0.14);
  border-radius: 999px;
  padding: 9px 13px;
  color: #4f493f;
  background: rgba(255, 250, 240, 0.62);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.chip.active,
.chip:hover {
  color: #fffaf0;
  border-color: var(--ink);
  background: var(--ink);
}

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

.product-card {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  border: 1px solid rgba(23, 23, 19, 0.13);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: 0 12px 36px rgba(60, 48, 33, 0.08);
  backdrop-filter: blur(16px);
  transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(60, 48, 33, 0.14);
}

.product-card.priority {
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.9), rgba(255, 250, 240, 0.72));
  border-color: rgba(216, 79, 42, 0.32);
}

.product-card.is-hidden {
  display: none;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-meta span:last-child {
  color: var(--accent-dark);
}

.product-card h3 {
  min-height: 72px;
  margin-bottom: 14px;
  font-size: 27px;
  line-height: 1.12;
  letter-spacing: 0;
}

.product-card p {
  min-height: 88px;
  margin-bottom: 16px;
  color: #5e564c;
  font-size: 14px;
  line-height: 1.65;
}

.product-card ul {
  display: grid;
  gap: 7px;
  min-height: 84px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.product-card li {
  position: relative;
  padding-left: 17px;
  color: #3f392f;
  font-size: 13px;
}

.product-card li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--accent);
}

.price-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: auto;
}

.price-row span {
  min-height: 60px;
  border: 1px solid rgba(23, 23, 19, 0.1);
  border-radius: 12px;
  padding: 10px;
  color: var(--muted);
  font-size: 11px;
  background: rgba(244, 241, 234, 0.66);
}

.price-row strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.card-actions a,
.agent-card a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.card-actions a:first-child,
.agent-card a {
  color: #fffaf0;
  background: var(--ink);
}

.card-actions a:last-child {
  border: 1px solid rgba(23, 23, 19, 0.13);
  background: rgba(255, 255, 255, 0.42);
}

.agent-layout {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.agent-card {
  min-height: 420px;
  border: 1px solid rgba(23, 23, 19, 0.13);
  border-radius: 24px;
  padding: 24px;
  background: rgba(255, 250, 240, 0.74);
  box-shadow: 0 16px 44px rgba(60, 48, 33, 0.08);
}

.agent-card.basic {
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgba(31, 107, 82, 0.95), rgba(23, 23, 19, 0.9)),
    #1f6b52;
}

.agent-card.advanced {
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgba(216, 79, 42, 0.96), rgba(23, 23, 19, 0.9)),
    var(--accent);
}

.tier-label {
  display: inline-block;
  margin-bottom: 48px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  opacity: 0.66;
  text-transform: uppercase;
}

.agent-card h3 {
  margin-bottom: 14px;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1;
}

.agent-card p {
  min-height: 92px;
  color: inherit;
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.76;
}

.agent-card ul {
  display: grid;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.agent-card li {
  border-top: 1px solid currentColor;
  padding-top: 9px;
  font-size: 14px;
  opacity: 0.8;
}

.agent-card a {
  width: 100%;
  margin-top: 28px;
  color: var(--ink);
  background: #fffaf0;
}

.gate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.gate-grid div {
  min-height: 268px;
  border-top: 2px solid rgba(23, 23, 19, 0.84);
  padding: 16px 8px 0;
}

.gate-grid span {
  display: block;
  margin-bottom: 44px;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.gate-grid h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.gate-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.backend {
  padding-bottom: 48px;
}

.backend-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 28px;
  border: 1px solid rgba(23, 23, 19, 0.13);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 46px);
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgba(23, 23, 19, 0.96), rgba(23, 23, 19, 0.88)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 18px);
}

.backend-panel .eyebrow {
  color: #f28a6c;
}

.backend-panel h2 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(32px, 4.6vw, 62px);
  line-height: 1.03;
}

.backend-panel p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 250, 240, 0.72);
  font-size: 16px;
  line-height: 1.72;
}

.backend-list {
  display: grid;
  gap: 10px;
}

.backend-list div {
  min-height: 96px;
  border: 1px solid rgba(255, 250, 240, 0.13);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 250, 240, 0.06);
}

.backend-list strong {
  display: block;
  margin-top: 20px;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: clamp(17px, 1.8vw, 23px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
  border-top: 1px solid rgba(23, 23, 19, 0.16);
  padding-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.product-page .site-header {
  position: relative;
}

.product-detail-shell {
  padding: 34px 0 0;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
  gap: 24px;
  align-items: stretch;
  padding-top: 36px;
}

.product-detail-hero,
.product-detail-panel,
.product-order-note {
  border: 1px solid rgba(23, 23, 19, 0.13);
  background: rgba(255, 250, 240, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.08);
}

.product-detail-hero {
  border-radius: 28px;
  padding: clamp(24px, 4vw, 46px);
}

.back-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid rgba(23, 23, 19, 0.14);
  border-radius: 999px;
  margin-bottom: 28px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.36);
}

.product-detail h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 72px);
}

.product-detail-lede {
  max-width: 780px;
  margin-bottom: 26px;
  color: #433d34;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.68;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-safe-note {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.product-detail-panel {
  display: grid;
  gap: 10px;
  border-radius: 24px;
  padding: 14px;
}

.product-detail-panel div {
  min-height: 128px;
  border-radius: 18px;
  padding: 18px;
  color: #fffaf0;
  background: rgba(23, 23, 19, 0.91);
}

.product-detail-panel div:nth-child(2) {
  background: var(--green);
}

.product-detail-panel div:nth-child(3) {
  background: var(--accent);
}

.product-detail-panel span,
.detail-blocks span {
  color: inherit;
  opacity: 0.64;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-detail-panel strong {
  display: block;
  margin-top: 28px;
  font-size: clamp(21px, 2.2vw, 32px);
  line-height: 1.18;
}

.detail-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 38px;
}

.detail-blocks article {
  min-height: 360px;
  border: 1px solid rgba(23, 23, 19, 0.13);
  border-radius: 24px;
  padding: 24px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: 0 16px 44px rgba(60, 48, 33, 0.08);
}

.detail-blocks span {
  display: block;
  margin-bottom: 42px;
  color: var(--accent-dark);
}

.detail-blocks h2 {
  margin-bottom: 18px;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.05;
}

.detail-blocks ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-blocks li {
  position: relative;
  padding-left: 18px;
  color: #50483e;
  font-size: 14px;
  line-height: 1.72;
}

.detail-blocks li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--accent);
}

.product-order-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  border-radius: 28px;
  margin-top: 18px;
  margin-bottom: 48px;
  padding: clamp(24px, 4vw, 42px);
}

.product-order-note h2 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.04;
}

.product-order-note p:not(.eyebrow) {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

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

  .hero,
  .section-heading,
  .backend-panel,
  .product-detail,
  .product-order-note {
    grid-template-columns: 1fr;
  }

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

  .hero-board {
    max-width: 720px;
  }

  .status-strip,
  .product-grid,
  .agent-layout,
  .gate-grid,
  .detail-blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-layout .retail {
    grid-column: 1 / -1;
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .site-header {
    top: 10px;
    width: min(100% - 20px, 1180px);
  }

  .brand-text {
    display: none;
  }

  .header-cta {
    padding-inline: 12px;
  }

  .section {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    gap: 20px;
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 60px);
    line-height: 1.02;
  }

  .hero-lede {
    font-size: 15px;
  }

  .hero-actions,
  .card-actions {
    grid-template-columns: 1fr;
  }

  .button,
  .hero-actions .button,
  .product-detail-actions .button,
  .product-order-note .button {
    width: 100%;
  }

  .board-grid,
  .status-strip,
  .product-grid,
  .agent-layout,
  .gate-grid,
  .detail-blocks,
  .price-row,
  .card-actions {
    grid-template-columns: 1fr;
  }

  .product-detail {
    padding-top: 22px;
  }

  .product-detail h1 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .product-detail-panel div {
    min-height: 112px;
  }

  .detail-blocks article {
    min-height: auto;
  }

  .status-strip div {
    min-height: 76px;
  }

  .shelf,
  .agent,
  .gate,
  .backend {
    padding-top: 64px;
  }

  .section-heading h2,
  .backend-panel h2 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .shelf .section-heading h2 {
    white-space: normal;
  }

  .agent-title span {
    display: block;
  }

  .agent-title span + span::before {
    content: "";
  }

  .product-card {
    min-height: auto;
  }

  .product-card h3,
  .product-card p,
  .product-card ul {
    min-height: 0;
  }

  .agent-card {
    min-height: auto;
  }

  .tier-label {
    margin-bottom: 34px;
  }

  .agent-card p {
    min-height: 0;
  }

  .gate-grid div {
    min-height: auto;
  }

  .gate-grid span {
    margin-bottom: 28px;
  }

  .site-footer {
    width: min(100% - 22px, 1180px);
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
