:root {
  --pub-bg: #ffffff;
  --pub-bg-subtle: #f8fafc;
  --pub-bg-muted: #f1f5f9;
  --pub-surface: #ffffff;
  --pub-surface-elevated: #ffffff;

  --pub-text: #0f172a;
  --pub-text-muted: #64748b;
  --pub-text-soft: #334155;

  --pub-primary: #0b5fff;
  --pub-primary-hover: #094ee0;
  --pub-primary-soft: rgba(11, 95, 255, 0.08);
  --pub-accent-teal: #21c99a;
  --pub-accent-cyan: #0891b2;

  --pub-border: #e2e8f0;
  --pub-border-strong: #cbd5e1;
  --pub-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.03);
  --pub-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
  --pub-shadow-lg: 0 18px 44px rgba(15, 23, 42, 0.08);

  --pub-radius-sm: 10px;
  --pub-radius-md: 14px;
  --pub-radius-lg: 16px;
  --pub-radius-xl: 24px;
  --pub-section-gap: 72px;
  --pub-shell-max: 1160px;

  --pub-font-sans: "Inter", "IBM Plex Sans", "Segoe UI", sans-serif;
  --pub-font-display: "Inter", "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--pub-text);
  font-family: var(--pub-font-sans);
  background:
    radial-gradient(820px 380px at 10% -6%, rgba(11, 95, 255, 0.05), transparent 64%),
    radial-gradient(700px 340px at 94% 2%, rgba(124, 58, 237, 0.035), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fafbfd 48%, #f8fafc 100%);
  overflow-x: hidden;
}

.shell {
  width: min(var(--pub-shell-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0 48px;
  position: relative;
  z-index: 1;
}

/* Header (S0) */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  padding: 14px 0;
  margin-bottom: 12px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.top > .btn.top-cta-compact {
  display: none !important; /* desktop: CTA lives in .header-ctas; do not fight iuve-buttons !important */
}

.top > .nav-toggle {
  display: none;
}

.top-drawer {
  display: contents;
}

.nav-backdrop {
  display: none;
}

.nav-toggle {
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius-sm);
  background: var(--pub-surface);
  color: var(--pub-text);
  cursor: pointer;
  flex-shrink: 0;
  gap: 5px;
  flex-direction: column;
  box-shadow: var(--pub-shadow-sm);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  border-color: var(--pub-border-strong);
  background: var(--pub-bg-subtle);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--pub-primary);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.top.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.top.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.top.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-ctas .btn-primary {
  padding: 10px 16px;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.top-cta-compact {
  padding: 8px 12px;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.top.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(226, 232, 240, 0.9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 8px 32px rgba(15, 23, 42, 0.05);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--pub-text);
  font-weight: 700;
  font-family: var(--pub-font-display);
  letter-spacing: -0.02em;
}

.brand-link img {
  width: 34px;
  height: 34px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px 12px;
  flex-wrap: nowrap;
  min-width: 0;
}

.main-nav a {
  color: var(--pub-text-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 8px;
  border-radius: 9px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
  color: var(--pub-primary);
  background: rgba(37, 99, 235, 0.07);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.lang-box {
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--pub-radius-sm);
  padding: 6px 10px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.lang-box label {
  font-size: 13px;
  color: var(--pub-text-muted);
}

.lang-box select {
  border: 1px solid var(--pub-border);
  border-radius: 8px;
  padding: 5px 8px;
  background: var(--pub-bg-subtle);
  color: var(--pub-text);
  font-size: 13px;
}

.header-ctas {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Sections */
.pub-section {
  margin-bottom: var(--pub-section-gap);
}

.section-head {
  margin-bottom: 32px;
  max-width: 640px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-family: var(--pub-font-display);
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.03em;
  color: var(--pub-text);
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--pub-text-muted);
  font-size: 17px;
  line-height: 1.5;
}

/* Hero (S1) */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
  padding: 48px 0 24px;
}

.hero-brand-slogan {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 7px 12px;
  border: 1px solid rgba(11, 95, 255, 0.2);
  border-radius: 999px;
  color: var(--pub-primary);
  background: rgba(11, 95, 255, 0.06);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--pub-font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--pub-text);
  max-width: 720px;
}

.lead {
  margin: 18px 0 10px;
  color: var(--pub-text-soft);
  max-width: 640px;
  font-size: 18px;
  line-height: 1.58;
}

.lead2 {
  margin: 0 0 28px;
  color: var(--pub-text-muted);
  font-size: 16px;
  line-height: 1.55;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

/* Desktop: header already shows the primary CTA — hide the twin in hero.
   Mobile (≤768px): primary lives in the drawer, so keep it in hero. */
@media (min-width: 769px) {
  .hero .cta > .btn-primary.hero-cta-primary {
    display: none !important;
  }
}

.cta-text-link {
  color: var(--pub-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cta-text-link:hover {
  color: var(--pub-primary-hover);
  border-bottom-color: rgba(11, 95, 255, 0.35);
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--pub-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.btn-primary {
  /* Visual SSOT: app/static/css/iuve-buttons.css (Talent gradient pill) */
  background: var(--iuve-btn-grad, linear-gradient(120deg, #ff2d8f, #8b5cf6 48%, #2de2ff));
  color: #ffffff;
  border-color: rgba(109, 40, 217, 0.32);
  box-shadow: 0 10px 28px rgba(109, 40, 217, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.03);
  box-shadow: 0 14px 32px rgba(109, 40, 217, 0.34);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  color: #5b21b6;
  border-color: rgba(139, 92, 246, 0.4);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--pub-primary);
  padding-left: 8px;
  padding-right: 8px;
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--pub-primary-soft);
  box-shadow: none;
}

.hero-visual {
  margin: 0;
  border-radius: var(--pub-radius-xl);
  border: 1px solid var(--pub-border-strong);
  background: #ffffff;
  box-shadow:
    var(--pub-shadow-lg),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 300px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hero-visual:hover {
  border-color: rgba(11, 95, 255, 0.28);
  box-shadow:
    0 24px 56px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(11, 95, 255, 0.08) inset;
  transform: translateY(-2px);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  filter: none;
}

/* Ecosystem Energy Orb (replaces hero mockup image) */
.hero-viz{
  margin:0;
  min-height:360px;
  display:grid;
  justify-items:center;
  align-content:center;
  gap:10px;
  overflow:visible;
}
.eco-orbit{
  position:relative;
  width:100%;
  max-width:560px;
  min-height:380px;
  height:380px;
  display:grid;
  grid-template-columns:minmax(110px,1fr) auto minmax(110px,1fr);
  gap:4px 6px;
  align-items:center;
  isolation:isolate;
  overflow:visible;
}
.eco-orbit-links{
  position:absolute;inset:0;width:100%;height:100%;
  pointer-events:none;z-index:1;overflow:visible;
}
.eco-link-path{
  fill:none;stroke:url(#ecoStroke);stroke-width:1.35;
  stroke-dasharray:2.4 5;stroke-linecap:round;opacity:.88;
}
.eco-link-node{
  fill:#0b5fff;stroke:#fff;stroke-width:1.4;
  filter:drop-shadow(0 0 4px rgba(11,95,255,.75));
}
.eco-link-node--mid{fill:#8b5cf6;stroke-width:1}
.eco-orbit-stage{
  position:relative;z-index:2;width:min(100%,280px);height:min(100%,280px);
  display:grid;place-items:center;justify-self:center;overflow:visible;
}
/* Prevent vendor --iuveai-orb-size:560px from blowing layout / ResizeObserver loop */
.eco-orb-mount,
#iuveEcosystemOrb.iuveai-orb{
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  aspect-ratio:1;
  --iuveai-orb-size:100%!important;
}
.eco-orb-mount .iuveai-orb__canvas{
  width:100%!important;
  height:auto!important;
  aspect-ratio:1;
}
.eco-col{
  display:flex;flex-direction:column;gap:12px;z-index:3;position:relative;
}
.eco-col--left{align-items:flex-end;padding-right:6px}
.eco-col--right{align-items:flex-start;padding-left:6px}
.eco-pill{
  display:inline-flex;padding:10px 14px;border-radius:999px;background:#fff;
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 10px 26px rgba(15,23,42,.07);
  font:600 12.5px/1.2 Inter,system-ui,sans-serif;color:#1e293b;white-space:nowrap;
}
.eco-col--left .eco-pill:nth-child(odd){transform:translateX(-10px)}
.eco-col--right .eco-pill:nth-child(even){transform:translateX(10px)}
.eco-status-pill{
  display:inline-flex;align-items:center;gap:9px;
  padding:11px 16px;border-radius:999px;background:#fff;
  border:1px solid rgba(15,23,42,.08);box-shadow:0 10px 24px rgba(15,23,42,.07);
  font:700 13px/1.2 Inter,system-ui,sans-serif;color:#0f172a;
}
.eco-live-dot{
  width:8px;height:8px;border-radius:50%;background:#12b76a;
  box-shadow:0 0 0 0 rgba(18,183,106,.45);
  animation:ecoLivePing 1.8s infinite;
}
@keyframes ecoLivePing{
  70%{box-shadow:0 0 0 10px transparent}
  100%{box-shadow:0 0 0 0 transparent}
}

@media (max-width:1100px){
  .eco-orbit{max-width:500px;min-height:320px;height:320px}
  .eco-orbit-stage{width:min(100%,240px);height:min(100%,240px)}
}
@media (max-width:720px){
  .hero-viz{min-height:auto;order:-1;overflow-x:hidden;width:100%}
  .eco-orbit{
    grid-template-columns:1fr;justify-items:center;height:auto;min-height:auto;gap:12px;
    max-width:100%;padding:0 4px;
  }
  .eco-orbit-links{display:none}
  .eco-orbit-stage{order:-1;width:min(72vw,220px);height:min(72vw,220px)}
  .eco-col{flex-direction:row;flex-wrap:wrap;justify-content:center;padding:0;gap:6px;max-width:100%}
  .eco-col .eco-pill{transform:none!important;padding:7px 10px;font-size:11px}
  /* hide secondary pills on very small screens to reduce clutter */
  .eco-col .eco-pill:nth-child(n+5){display:none}
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual:hover,
  .card:hover,
  .btn:hover {
    transform: none;
  }
}

/* Trust strip (S2) — production status panel */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 28px 26px;
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius-lg);
  background: var(--pub-surface);
  box-shadow:
    var(--pub-shadow-sm),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  position: relative;
}

.trust-strip::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2de2ff 0%, #8b5cf6 48%, #ff2d8f 100%);
  opacity: 0.85;
}

.trust-metric {
  text-align: center;
  padding: 12px 14px;
}

.trust-metric strong {
  display: block;
  font-family: var(--pub-font-display);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  color: var(--pub-text);
  margin-bottom: 6px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.trust-metric strong a {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--pub-text);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.trust-metric strong a:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(124, 58, 237, 0.12));
  border-color: rgba(37, 99, 235, 0.24);
  transform: translateY(-1px);
  text-decoration: none;
}

.trust-metric span {
  display: block;
  font-size: 14px;
  color: var(--pub-text-muted);
  line-height: 1.45;
}

/* Features grid (S3) */
#capabilities {
  padding-top: 8px;
}

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

.card {
  border: 1px solid var(--pub-border);
  background: var(--pub-surface);
  border-radius: var(--pub-radius-lg);
  padding: 22px;
  box-shadow: var(--pub-shadow-sm);
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card:hover {
  box-shadow: var(--pub-shadow-md);
  border-color: rgba(37, 99, 235, 0.22);
  transform: translateY(-3px);
}

.card h3 {
  margin: 0;
  color: var(--pub-text);
  font-size: 16.5px;
  font-weight: 650;
  font-family: var(--pub-font-display);
  letter-spacing: -0.02em;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.card:hover .card-icon {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(124, 58, 237, 0.1));
  border-color: rgba(37, 99, 235, 0.16);
}

.card-icon img {
  display: block;
  width: 24px;
  height: 24px;
}

.card p {
  margin: 0;
  color: var(--pub-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Showcase (S4) */
.showcase {
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius-xl);
  background: var(--pub-surface);
  box-shadow: var(--pub-shadow-md);
  overflow: hidden;
}

.showcase-tabs input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.showcase-tab-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 16px 0;
  border-bottom: 1px solid var(--pub-border);
  background: var(--pub-bg-subtle);
}

.showcase-tab-labels label {
  padding: 10px 14px;
  border-radius: var(--pub-radius-sm) var(--pub-radius-sm) 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--pub-text-muted);
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  margin-bottom: -1px;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.showcase-tab-labels label:hover {
  color: var(--pub-text);
  background: rgba(255, 255, 255, 0.6);
}

#showcase-tab-cloud:checked ~ .showcase-tab-labels label[for="showcase-tab-cloud"],
#showcase-tab-connect:checked ~ .showcase-tab-labels label[for="showcase-tab-connect"],
#showcase-tab-desktop:checked ~ .showcase-tab-labels label[for="showcase-tab-desktop"] {
  color: var(--pub-primary);
  background: var(--pub-surface);
  border-color: var(--pub-border);
  box-shadow: inset 0 -2px 0 var(--pub-primary);
}

.showcase-panels {
  position: relative;
  min-height: 280px;
}

.showcase-panel {
  display: none;
  padding: 24px;
}

#showcase-tab-cloud:checked ~ .showcase-panels .showcase-panel-cloud,
#showcase-tab-connect:checked ~ .showcase-panels .showcase-panel-connect,
#showcase-tab-desktop:checked ~ .showcase-panels .showcase-panel-desktop {
  display: block;
}

.showcase-media {
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius-md);
  background: var(--pub-bg-subtle);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.showcase-media img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.showcase-media--photo {
  background: #ffffff;
  border-radius: var(--pub-radius-lg);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  min-height: 0;
  padding: 0;
}

.showcase-media--photo img {
  border-radius: calc(var(--pub-radius-lg) - 1px);
  object-fit: contain;
}

.showcase-panel-desktop .showcase-media--photo {
  aspect-ratio: 1024 / 520;
}

.showcase-panel-connect .showcase-media--photo {
  aspect-ratio: 1024 / 722;
}

.showcase-caption {
  margin: 14px 0 0;
  color: var(--pub-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Marketplace highlights */
.marketplace-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.marketplace-product-card {
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius-lg);
  background: var(--pub-surface);
  box-shadow: var(--pub-shadow-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.marketplace-product-card:hover {
  box-shadow: var(--pub-shadow-md);
  border-color: var(--pub-primary);
}

.marketplace-product-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.marketplace-highlights .marketplace-public-logo {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.marketplace-highlights .marketplace-public-title-wrap {
  display: flex;
  flex: 1;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.marketplace-product-head h3 {
  margin: 0;
  font-family: var(--pub-font-display);
  font-size: 18px;
  color: var(--pub-text);
}

.marketplace-product-version {
  font-size: 13px;
  font-weight: 600;
  color: var(--pub-primary);
  background: var(--pub-primary-soft);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.marketplace-product-card p {
  margin: 0;
  color: var(--pub-text-muted);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}

.marketplace-product-link {
  color: var(--pub-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.marketplace-product-link:hover {
  text-decoration: underline;
}

.marketplace-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-top: 4px;
}

.marketplace-product-ask {
  display: inline-flex;
  font: 600 13px/1.3 Inter, system-ui, sans-serif;
  color: #0f172a;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.25);
}

.marketplace-product-ask:hover {
  border-bottom-color: #0f172a;
}

.eco-status-pill.is-degraded .eco-live-dot,
.eco-live-dot.is-degraded {
  background: #f79009;
  box-shadow: 0 0 0 0 rgba(247, 144, 9, 0.4);
}

.eco-status-pill.is-ok .eco-live-dot {
  background: #12b76a;
}

.pairing-demo {
  padding-top: 8px;
}

.pairing-demo-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pairing-demo-steps li {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 14px 14px 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 108px;
}

.pairing-demo-steps strong {
  font: 700 14px/1.25 Inter, system-ui, sans-serif;
  color: #0f172a;
}

.pairing-demo-steps span {
  font: 500 13px/1.45 Inter, system-ui, sans-serif;
  color: #475569;
}

.pairing-demo-note {
  margin: 14px 0 0;
  font: 500 13px/1.45 Inter, system-ui, sans-serif;
  color: #64748b;
}

@media (max-width: 900px) {
  .pairing-demo-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .pairing-demo-steps {
    grid-template-columns: 1fr;
  }
}

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

/* Pillars (S5) */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius-lg);
  padding: 20px;
  background: var(--pub-surface);
  box-shadow: var(--pub-shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pillar-card:hover {
  box-shadow: var(--pub-shadow-md);
  border-color: var(--pub-primary);
  transform: translateY(-2px);
}

.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--pub-primary-soft);
  color: var(--pub-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-icon img {
  display: block;
  width: 24px;
  height: 24px;
}

.pillar-card h3 {
  margin: 0;
  font-size: 17px;
  font-family: var(--pub-font-display);
  color: var(--pub-text);
}

.pillar-card p {
  margin: 0;
  font-size: 14px;
  color: var(--pub-text-muted);
  line-height: 1.55;
}

/* Positioning narrative (S7) */
.narrative-section {
  margin-bottom: var(--pub-section-gap);
}

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

.narrative-block {
  position: relative;
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius-xl);
  background: var(--pub-surface);
  box-shadow: var(--pub-shadow-sm);
  padding: 28px 28px 28px 32px;
  overflow: hidden;
}

.narrative-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: var(--pub-radius-xl) 0 0 var(--pub-radius-xl);
}

.narrative-block--production::before {
  background: linear-gradient(180deg, var(--pub-primary), var(--pub-accent-cyan));
}

.narrative-block--agent::before {
  background: linear-gradient(180deg, var(--pub-accent-teal), var(--pub-primary));
}

.narrative-block h2 {
  margin: 0 0 12px;
  font-family: var(--pub-font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--pub-text);
  max-width: 36ch;
}

.narrative-block p {
  margin: 0;
  color: var(--pub-text-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 58ch;
}

/* Use cases (S6) */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.use-case-card {
  border: 1px solid var(--pub-border);
  background: var(--pub-surface);
  border-radius: var(--pub-radius-lg);
  padding: 24px;
  box-shadow: var(--pub-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.use-case-card:hover {
  box-shadow: var(--pub-shadow-md);
  border-color: var(--pub-border-strong);
}

.use-case-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--pub-primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.use-case-icon img {
  display: block;
  width: 24px;
  height: 24px;
}

.use-case-card h3 {
  margin: 0;
  font-size: 17px;
  font-family: var(--pub-font-display);
  color: var(--pub-text);
}

.use-case-card p {
  margin: 0;
  font-size: 14px;
  color: var(--pub-text-muted);
  line-height: 1.55;
}

/* Pricing teaser (S8) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
  align-items: stretch;
}

.pricing-card {
  border: 1px solid var(--pub-border);
  background: var(--pub-surface);
  border-radius: var(--pub-radius-lg);
  padding: 24px;
  box-shadow: var(--pub-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.pricing-card--highlight {
  border-color: rgba(11, 95, 255, 0.45);
  background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 42%);
  box-shadow:
    var(--pub-shadow-md),
    0 0 0 1px rgba(11, 95, 255, 0.08);
  transform: translateY(-6px);
  padding-top: 32px;
  z-index: 1;
}

.pricing-card--highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--pub-radius-lg) var(--pub-radius-lg) 0 0;
  background: linear-gradient(90deg, #0b5fff 0%, #7c3aed 48%, #21c99a 100%);
}

.pricing-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(11, 95, 255, 0.12), rgba(124, 58, 237, 0.12));
  border: 1px solid rgba(11, 95, 255, 0.22);
  color: #1e3a8a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pricing-card h3 {
  margin: 0;
  font-size: 18px;
  font-family: var(--pub-font-display);
  color: var(--pub-text);
}

.pricing-card--highlight h3 {
  color: #0f172a;
}

.pricing-price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-amount {
  font-family: var(--pub-font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--pub-primary);
  letter-spacing: -0.03em;
}

.pricing-period {
  font-size: 14px;
  color: var(--pub-text-muted);
}

.pricing-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--pub-text-muted);
  line-height: 1.45;
  padding-left: 18px;
  position: relative;
}

.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pub-primary);
}

.pricing-cta {
  display: flex;
  justify-content: center;
}

/* FAQ accordion (S9) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius-lg);
  background: var(--pub-surface);
  box-shadow: var(--pub-shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--pub-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--pub-bg-muted);
  color: var(--pub-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease;
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--pub-primary-soft);
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--pub-text-muted);
}

.faq-item a {
  color: var(--pub-primary);
  text-decoration: none;
}

.faq-item a:hover {
  text-decoration: underline;
}

/* Final CTA band (S10) */
.cta-band {
  margin-bottom: var(--pub-section-gap);
}

.cta-band-inner {
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--pub-radius-xl);
  border: 1px solid var(--pub-border);
  background: linear-gradient(180deg, var(--pub-bg-muted) 0%, var(--pub-bg-subtle) 100%);
  box-shadow: var(--pub-shadow-sm);
}

.cta-band-inner h2 {
  margin: 0 0 12px;
  font-family: var(--pub-font-display);
  font-size: clamp(24px, 3.5vw, 32px);
  letter-spacing: -0.03em;
  color: var(--pub-text);
}

.cta-band-inner p {
  margin: 0 auto 24px;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--pub-text-muted);
}

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

/* Footer (S11) */
.site-footer {
  margin-top: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--pub-border);
}

.tagline {
  margin: 0 0 16px;
  color: var(--pub-text-soft);
  font-size: 14px;
  font-style: italic;
  border-left: 3px solid var(--pub-primary);
  padding-left: 12px;
  line-height: 1.5;
  max-width: 720px;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 13px;
  margin-bottom: 16px;
}

.legal a {
  color: var(--pub-primary);
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--pub-text-muted);
}

.footer-meta a {
  color: var(--pub-primary);
  text-decoration: none;
}

.footer-meta a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .hero-visual,
  .hero-viz {
    order: -1;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .trust-strip,
  .grid,
  .pillar-grid,
  .narrative-grid,
  .use-case-grid,
  .marketplace-product-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card--highlight {
    transform: none;
    padding-top: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --pub-section-gap: 48px;
    --pub-mobile-header-pad-x: max(16px, env(safe-area-inset-left, 0px));
    --pub-mobile-header-pad-r: max(16px, env(safe-area-inset-right, 0px));
    --pub-header-offset: 56px;
  }

  body.home-nav-open-lock {
    overflow: hidden;
  }

  .shell {
    width: min(var(--pub-shell-max), calc(100% - 32px));
    padding-top: 10px;
  }

  .top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand toggle";
    gap: 12px;
    align-items: center;
    min-height: 56px;
    margin-bottom: 12px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-top: max(10px, env(safe-area-inset-top, 0px));
    padding-bottom: 10px;
    padding-left: calc(50vw - 50% + var(--pub-mobile-header-pad-x));
    padding-right: calc(50vw - 50% + var(--pub-mobile-header-pad-r));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.96);
    position: sticky;
    z-index: 22;
  }

  .top.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
  }

  .brand-link {
    grid-area: brand;
    min-width: 0;
    align-self: center;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
    min-height: 36px;
    padding: 0;
  }

  .brand-link img {
    display: block;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin: 0;
  }

  .brand-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 17px;
  }

  .top > .btn.top-cta-compact {
    display: none !important;
  }

  .top > .nav-toggle {
    display: inline-flex;
    grid-area: toggle;
    align-self: center;
    justify-self: end;
    position: relative;
    z-index: 23;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 19;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-backdrop[hidden] {
    display: none;
  }

  .top-drawer {
    position: fixed;
    top: var(--pub-header-offset, 56px);
    left: 0;
    right: 0;
    z-index: 21;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 6px var(--pub-mobile-header-pad-r) 20px var(--pub-mobile-header-pad-x);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--pub-border);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(100dvh - var(--pub-header-offset, 56px));
    -webkit-overflow-scrolling: touch;
  }

  .top.nav-open .top-drawer {
    display: flex;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex-wrap: nowrap;
    padding: 4px 0;
  }

  .main-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--pub-text);
    border-radius: var(--pub-radius-sm);
    transition: color 0.15s ease, background 0.15s ease;
  }

  .main-nav a:hover,
  .main-nav a:active {
    color: var(--pub-primary);
    background: rgba(37, 99, 235, 0.06);
  }

  .main-nav a:focus-visible {
    outline: 2px solid var(--pub-primary);
    outline-offset: 1px;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--pub-border);
  }

  .lang-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 16px;
    border: 0;
    border-radius: var(--pub-radius-sm);
    background: var(--pub-bg-subtle);
    box-shadow: none;
  }

  .lang-box label {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--pub-text-soft);
  }

  .lang-box select {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 58%;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--pub-border);
    border-radius: 999px;
    padding: 8px 32px 8px 14px;
    background-color: var(--pub-surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    color: var(--pub-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
  }

  .lang-box select:focus-visible {
    outline: 2px solid var(--pub-primary);
    outline-offset: 1px;
  }

  .header-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    padding: 14px 0 4px;
  }

  .header-ctas .btn {
    width: 100%;
    min-height: 44px;
    text-align: center;
    justify-content: center;
    margin: 0;
  }

  .header-ctas .btn:hover {
    transform: none;
  }

  .hero {
    padding: 20px 0 16px;
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(28px, 8.2vw, 40px);
    line-height: 1.08;
  }

  .lead {
    font-size: 16px;
    margin-top: 14px;
  }

  .lead2 {
    font-size: 15px;
    margin-bottom: 22px;
  }

  .hero-visual {
    min-height: 0;
    max-width: 100%;
    aspect-ratio: 4 / 3;
  }

  .hero-visual img {
    min-height: 0;
  }

  .hero-visual:hover {
    transform: none;
  }

  .narrative-block {
    padding: 22px 20px 22px 24px;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .section-head p {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(var(--pub-shell-max), calc(100% - 24px));
  }

  .top > .btn.top-cta-compact {
    padding: 7px 10px;
    font-size: 12px;
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cta {
    flex-direction: column;
    align-items: stretch;
  }

  .cta .btn {
    width: 100%;
    text-align: center;
  }

  .btn-ghost {
    width: auto;
    align-self: flex-start;
  }

  .cta-text-link {
    width: 100%;
    text-align: left;
    padding-left: 2px;
  }

  .showcase-tab-labels {
    flex-direction: column;
    gap: 4px;
    padding-bottom: 8px;
  }

  .showcase-tab-labels label {
    border-radius: var(--pub-radius-sm);
    border: 1px solid var(--pub-border);
    margin-bottom: 0;
  }

  #showcase-tab-cloud:checked ~ .showcase-tab-labels label[for="showcase-tab-cloud"],
  #showcase-tab-connect:checked ~ .showcase-tab-labels label[for="showcase-tab-connect"],
  #showcase-tab-desktop:checked ~ .showcase-tab-labels label[for="showcase-tab-desktop"] {
    border-color: var(--pub-primary);
    box-shadow: none;
    background: var(--pub-primary-soft);
  }

  .cta-band-inner {
    padding: 32px 20px;
  }

  .cta-band-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-band-actions .btn {
    width: 100%;
    white-space: normal;
    line-height: 1.35;
    min-height: 44px;
  }
}
