:root {
  color-scheme: light;
  --ink: #101217;
  --muted: #5f6673;
  --line: #d8dde6;
  --panel: #ffffff;
  --soft: #f4f6f9;
  --red: #d71920;
  --red-dark: #a90f15;
  --blue: #0c5fa8;
  --teal: #087f7b;
  --gold: #f0b429;
  --shadow: 0 18px 48px rgba(16, 18, 23, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
textarea,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.support-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 36px;
  padding: 8px 18px;
  color: #ffffff;
  background: #171b22;
  font-size: 13px;
  font-weight: 750;
}

.support-strip a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px 36px;
  border-bottom: 1px solid rgba(216, 221, 230, 0.86);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 184px;
  font-weight: 800;
}

.brand img {
  width: 74px;
  max-height: 32px;
}

.brand span {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #303540;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  padding: 8px 0;
}

.header-action,
.primary-action,
.secondary-action,
.agent-form button {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 800;
}

.header-action,
.primary-action,
.agent-form button {
  border: 0;
  color: #ffffff;
  background: var(--red);
}

.header-action {
  padding: 0 18px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 78vh;
  padding: 96px 8vw 90px;
  color: var(--ink);
  background:
    linear-gradient(110deg, #ffffff 0%, #ffffff 47%, rgba(247, 249, 252, 0.86) 47%, #e9eef6 100%),
    #ffffff;
  overflow: hidden;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(215, 25, 32, 0.08), rgba(255, 255, 255, 0) 32%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--red);
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 72px;
  line-height: 0.95;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.secondary-action {
  color: #1b2430;
  border: 1px solid rgba(16, 18, 23, 0.24);
  background: rgba(255, 255, 255, 0.72);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 650px;
  margin: 40px 0 0;
}

.hero-stats div {
  padding: 14px 16px;
  border-top: 2px solid rgba(215, 25, 32, 0.72);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 38px rgba(16, 18, 23, 0.08);
}

.hero-stats dt {
  color: #5d6470;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 900;
}

.hero-visual {
  position: absolute;
  right: 4vw;
  bottom: 2vh;
  z-index: 1;
  width: min(54vw, 760px);
  height: min(62vh, 560px);
  pointer-events: none;
}

.hero-device {
  position: absolute;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 24px 34px rgba(16, 18, 23, 0.18));
}

.hero-device-monitor {
  right: 20%;
  bottom: 13%;
  width: 44%;
}

.hero-device-laptop {
  right: 0;
  bottom: 34%;
  width: 32%;
}

.hero-device-case {
  left: 4%;
  bottom: 0;
  width: 38%;
}

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

.intent {
  min-height: 74px;
  padding: 16px;
  border: 0;
  background: #ffffff;
  color: #1f2530;
  font-weight: 850;
}

.intent:hover {
  color: var(--red-dark);
  background: #fff7f7;
}

.stores-section,
.catalog-section,
.agent-section,
.zendesk-section {
  padding: 82px 8vw;
}

.catalog-section,
.zendesk-section {
  background: var(--soft);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
}

.section-heading p:last-child {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

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

.store-card,
.arch-card,
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.store-card {
  padding: 20px;
}

.store-card h3,
.arch-card h3,
.product-card h3 {
  margin: 0;
  font-size: 18px;
}

.store-card p,
.arch-card p,
.product-card p {
  color: var(--muted);
  line-height: 1.5;
}

.store-meta {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: #303540;
  font-size: 14px;
}

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

.product-card {
  display: grid;
  grid-template-rows: 190px auto;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  padding: 18px;
  background: #ffffff;
}

.product-body {
  padding: 18px;
  border-top: 1px solid var(--line);
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
}

.price {
  color: var(--red);
  font-size: 24px;
  font-weight: 950;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin-top: 12px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0c5a3c;
  background: #dcf7eb;
  font-size: 12px;
  font-weight: 900;
}

.category-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.category-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #303540;
  font-size: 13px;
  font-weight: 750;
}

.arch-card {
  padding: 22px;
}

.step-number {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
}

.ops-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.ops-table > div {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.ops-table > div:last-child {
  border-bottom: 0;
}

.ops-table span {
  color: var(--muted);
}

.agent-shell {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  justify-items: end;
  pointer-events: none;
}

.agent-launcher {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 86px;
  height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red);
  box-shadow: var(--shadow);
  font-weight: 950;
  pointer-events: auto;
}

.launcher-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #44e6a9;
}

.agent-panel {
  width: min(430px, calc(100vw - 32px));
  border: 1px solid rgba(16, 18, 23, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
  pointer-events: auto;
}

.agent-shell:not(.is-open) .agent-panel {
  display: none;
}

.agent-shell:not(.is-open) .agent-launcher {
  display: flex;
}

.agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  color: #ffffff;
  background: #171b22;
}

.agent-header p {
  margin: 0;
  font-weight: 950;
}

.agent-header span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 20px;
}

.agent-messages {
  display: grid;
  align-content: start;
  gap: 12px;
  height: 340px;
  padding: 16px;
  overflow: auto;
  background: #f7f8fa;
}

.message {
  max-width: 88%;
  padding: 12px 13px;
  border-radius: 8px;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.45;
}

.message.user {
  justify-self: end;
  color: #ffffff;
  background: var(--red);
}

.message.assistant {
  justify-self: start;
  border: 1px solid var(--line);
  background: #ffffff;
}

.source-tray {
  display: flex;
  gap: 8px;
  min-height: 45px;
  padding: 10px 12px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.source-tray:empty {
  display: none;
}

.source-chip {
  flex: 0 0 auto;
  max-width: 220px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #303540;
  background: #fbfcfd;
  font-size: 12px;
}

.source-chip strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-chip span {
  color: var(--muted);
}

.agent-form {
  display: grid;
  grid-template-columns: 1fr 78px;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.agent-form textarea {
  width: 100%;
  min-height: 52px;
  max-height: 110px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
}

.agent-form button {
  align-self: stretch;
}

@media (max-width: 960px) {
  .support-strip {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .site-header {
    padding: 12px 18px;
  }

  .nav-links {
    display: none;
  }

  h1 {
    font-size: 52px;
  }

  .hero-stats,
  .quick-band,
  .store-grid,
  .product-strip,
  .architecture-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    opacity: 0.22;
    right: -10vw;
    width: 72vw;
  }

  .ops-table > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-action {
    display: none;
  }

  .hero {
    min-height: 82vh;
    padding: 72px 22px 82px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-stats,
  .quick-band,
  .store-grid,
  .product-strip,
  .architecture-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .stores-section,
  .catalog-section,
  .agent-section,
  .zendesk-section {
    padding: 62px 22px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .agent-shell {
    right: 12px;
    bottom: 12px;
  }

  .agent-panel {
    width: calc(100vw - 24px);
  }
}
