:root {
  color-scheme: light dark;
  --bg: #f8f9fc;
  --bg-alt: #eef1f8;
  --surface: #ffffff;
  --ink: #0b1220;
  --ink-muted: #5c6778;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #7c3aed;
  --accent-soft: rgba(124, 58, 237, 0.12);
  --glow: rgba(37, 99, 235, 0.35);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 24px 60px rgba(11, 18, 32, 0.12);
  --font: "DM Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(720px, calc(100% - 2rem));
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(248, 249, 252, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header.is-scrolled {
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(11, 18, 32, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
}

.brand em {
  font-style: normal;
  color: var(--primary);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}

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

.nav__cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
}

.nav__cta:hover {
  background: #121b2f;
  color: #fff !important;
}

.nav > a.is-active {
  color: var(--ink);
  font-weight: 600;
}

.nav__ia {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav__ia:hover,
.nav__ia.is-active,
.nav__ia-trigger:hover,
.nav__ia-trigger.is-active {
  color: #5b21b6;
}

.nav__ia-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav__menu-tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: #7c3aed;
  margin-left: 0.25rem;
}

.page-hero--mcp {
  background: linear-gradient(135deg, #f5f3ff 0%, #ecfeff 50%, #f8f9fc 100%);
}

.section--mcp-teaser {
  background: linear-gradient(180deg, #faf5ff 0%, var(--bg) 100%);
  border-block: 1px solid #ede9fe;
}

.explore-card--mcp {
  border-color: #c4b5fd;
  background: linear-gradient(180deg, #f5f3ff 0%, #fff 100%);
}

.mcp-compat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.mcp-compat__item {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.mcp-compat__name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.mcp-compat__desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.steps-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--ink-muted);
}

.steps-list li {
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.showcase--reverse .showcase__grid {
  direction: rtl;
}

.showcase--reverse .showcase__grid > * {
  direction: ltr;
}

.nav__badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
}

.nav-mobile__ia {
  font-weight: 600;
  color: #5b21b6 !important;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
}

.nav-dropdown__trigger:hover,
.nav-dropdown.is-open .nav-dropdown__trigger {
  color: var(--ink);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 200px;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(11, 18, 32, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-dropdown__menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a.is-active {
  background: var(--bg-alt);
  color: var(--ink);
}

.nav-mobile__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin: 0.75rem 0 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.nav-mobile__label:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.nav-mobile__cta {
  margin-top: 0.5rem;
  padding: 0.65rem 1rem !important;
  text-align: center;
  background: var(--ink);
  color: #fff !important;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav-mobile a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  padding: 0.5rem 0;
}

.nav-mobile.is-open {
  display: flex;
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, var(--glow), transparent 70%);
  pointer-events: none;
  animation: pulse-glow 8s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  from { opacity: 0.5; transform: scale(1); }
  to { opacity: 0.9; transform: scale(1.05); }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.eyebrow--light {
  color: #93c5fd;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 700;
  margin: 0 0 1rem;
}

h1 .serif,
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.lead {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 32rem;
  margin: 0 0 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

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

.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn--primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--ink-muted);
  color: var(--ink);
}

.btn--lg {
  padding: 0.85rem 1.6rem;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.hero__stats strong {
  display: block;
  font-size: 1.35rem;
  color: var(--ink);
  font-weight: 700;
}

/* Mock app preview */
.mock-app {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--surface);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.mock-app:hover {
  transform: perspective(1200px) rotateY(0) rotateX(0);
}

.mock-app__bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}

.mock-app__bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.mock-app__bar .dot:nth-child(1) { background: #f87171; }
.mock-app__bar .dot:nth-child(2) { background: #fbbf24; }
.mock-app__bar .dot:nth-child(3) { background: #4ade80; }

.mock-app__title {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.mock-app__body {
  display: grid;
  grid-template-columns: 72px 1fr;
  min-height: 280px;
}

.mock-sidebar {
  background: var(--ink);
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mock-sidebar__brand {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  margin: 0 auto 0.5rem;
}

.mock-sidebar__item {
  font-size: 0.65rem;
  color: #94a3b8;
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
  text-align: center;
}

.mock-sidebar__item.is-active {
  background: #121b2f;
  color: #fff;
}

.mock-main {
  padding: 0.75rem;
}

.mock-toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mock-search {
  flex: 1;
  font-size: 0.7rem;
  padding: 0.4rem 0.6rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #94a3b8;
}

.mock-btn {
  font-size: 0.65rem;
  padding: 0.4rem 0.55rem;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.mock-tile {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  padding-bottom: 0.4rem;
}

.mock-tile__img {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}

.mock-tile__img--alt {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
}

.mock-tile__img--muted {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.mock-tile__sku,
.mock-tile__name {
  margin: 0;
  padding: 0 0.35rem;
  font-size: 0.6rem;
}

.mock-tile__sku {
  color: #94a3b8;
  margin-top: 0.25rem;
}

.mock-tile__name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.pill {
  display: inline-block;
  margin: 0 0.35rem;
  font-size: 0.55rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
}

.pill--on {
  background: #ecfdf5;
  color: #065f46;
}

.pill--off {
  background: #fef2f2;
  color: #7f1d1d;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--ink);
  color: #e2e8f0;
}

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

.section__head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section__head--center {
  text-align: center;
  margin-inline: auto;
}

.section__head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin: 0 0 0.75rem;
}

.section__lead {
  color: var(--ink-muted);
  font-size: 1.05rem;
  margin: 0;
}

.cards {
  display: grid;
  gap: 1.25rem;
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 12px 32px rgba(11, 18, 32, 0.08);
  transform: translateY(-2px);
}

.card__icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.2s;
}

.feature:hover::before {
  opacity: 1;
}

.feature__num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.feature code {
  font-size: 0.85em;
  background: var(--accent-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step {
  text-align: center;
}

.step__badge {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.step h3 {
  color: #fff;
  margin: 0 0 0.5rem;
}

.step p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.95rem;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
}

.split p {
  color: var(--ink-muted);
}

.checklist {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
  color: var(--ink-muted);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.code-block {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow: auto;
  box-shadow: var(--shadow);
}

.code-block pre {
  margin: 0;
}

.code-block code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.8rem;
  color: #a5b4fc;
  line-height: 1.5;
}

/* CTA band */
.cta-band {
  padding: 3.5rem 0;
  background: linear-gradient(135deg, var(--accent-soft), rgba(37, 99, 235, 0.08));
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.cta-band p {
  margin: 0;
  color: var(--ink-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-intro h2 {
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  margin: 0 0 0.75rem;
}

.contact-intro p {
  color: var(--ink-muted);
}

.muted {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-top: 1rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 16px 48px rgba(11, 18, 32, 0.06);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field--checkbox {
  margin-bottom: 1.25rem;
}

.field--checkbox .field-hint {
  margin: 0.35rem 0 0 1.75rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-label span {
  color: var(--ink);
  line-height: 1.4;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  color-scheme: light;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px #fff inset;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: #dc2626;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-status {
  min-height: 1.25rem;
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.form-status.is-ok {
  color: #059669;
}

.form-status.is-error {
  color: #dc2626;
}

/* Hero large */
.hero--large {
  padding-bottom: 2rem;
}

.hero__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.hero__badges li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Trust strip */
.trust {
  padding: 1.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.trust__label {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}

.trust__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust__logos li {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
}

/* Lifecycle */
.lifecycle {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.lifecycle__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.lifecycle__card:hover {
  box-shadow: 0 16px 40px rgba(11, 18, 32, 0.08);
  transform: translateY(-3px);
}

.lifecycle__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.lifecycle__icon--blue { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.lifecycle__icon--purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.lifecycle__icon--cyan { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.lifecycle__icon--green { background: linear-gradient(135deg, #059669, #34d399); }

.lifecycle__card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.lifecycle__card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.section__lead--center {
  margin-inline: auto;
  text-align: center;
}

.section__cta-link {
  text-align: center;
  margin: 2rem 0 0;
  font-weight: 600;
}

.section__cta-link a {
  text-decoration: none;
}

.section__cta-link a:hover {
  text-decoration: underline;
}

/* Showcase */
.showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.showcase--reverse .showcase__grid {
  direction: rtl;
}

.showcase--reverse .showcase__grid > * {
  direction: ltr;
}

.showcase__visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.showcase__copy h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

.showcase__copy > p {
  color: var(--ink-muted);
  margin: 0 0 1rem;
}

.link-arrow {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

.code-block--inline {
  margin: 1rem 0;
}

.demo-panel {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  color: #e2e8f0;
  box-shadow: var(--shadow);
}

.demo-panel__head {
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #334155;
}

.demo-panel__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid #1e293b;
  font-size: 0.9rem;
}

.demo-panel__foot {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #64748b;
}

.tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: #1e293b;
  color: #94a3b8;
}

.tag--purple { background: rgba(124, 58, 237, 0.3); color: #c4b5fd; }
.tag--cyan { background: rgba(8, 145, 178, 0.3); color: #67e8f9; }

.card__icon--svg {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--primary);
}

.feature-grid--9 {
  grid-template-columns: repeat(3, 1fr);
}

.feature__icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Capabilities */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cap-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: background 0.2s;
}

.cap-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cap-card h3 {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.cap-card p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.92rem;
}

/* Stats */
.stats-section {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stat__value {
  display: block;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Sectors */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.sector {
  display: block;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
}

.sector:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

/* Roles */
.roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-top: 3px solid var(--primary);
}

.role-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.role-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th {
  background: var(--bg-alt);
  font-weight: 600;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table__highlight {
  background: rgba(37, 99, 235, 0.06);
  font-weight: 600;
  color: var(--primary);
}

/* Testimonials */
.muted-note {
  font-size: 0.85rem !important;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.testimonial p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.testimonial strong {
  font-size: 0.95rem;
}

.testimonial span {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq__item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq__item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 400;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.faq__item code {
  font-size: 0.85em;
  background: var(--accent-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* CTA large */
.cta-band--large {
  padding: 4.5rem 0;
  background: linear-gradient(135deg, #0b1220 0%, #1e3a5f 50%, #312e81 100%);
  color: #e2e8f0;
}

.cta-band--large h2 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0 0 0.5rem;
}

.cta-band--large p {
  color: #94a3b8;
  margin: 0 0 1.5rem;
}

.cta-band__inner--center {
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.cta-band--large .btn--ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.cta-band--large .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Footer expanded */
.footer {
  background: var(--ink);
  color: #94a3b8;
  padding: 3rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #1e293b;
}

.footer__brand-col .brand--footer {
  justify-content: flex-start;
}

.brand--footer {
  color: #fff;
}

.brand--footer .brand__mark {
  background: #fff;
  color: var(--ink);
}

.footer__tag {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  max-width: 260px;
  line-height: 1.5;
}

.footer__col h4 {
  color: #fff;
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer__col a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  padding: 1.25rem 0 1.5rem;
}

.footer__copy {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.7;
  text-align: center;
}

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--header-h) + 2.5rem) 0 3rem;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero--marketing { background: linear-gradient(135deg, #eff6ff 0%, #f8f9fc 60%); }
.page-hero--tecnologia { background: linear-gradient(135deg, #f5f3ff 0%, #f8f9fc 60%); }
.page-hero--producto { background: linear-gradient(135deg, #ecfdf5 0%, #f8f9fc 60%); }
.page-hero--direccion { background: linear-gradient(135deg, #fff7ed 0%, #f8f9fc 60%); }
.page-hero--pim { background: linear-gradient(135deg, #ecfeff 0%, #f8f9fc 60%); }
.page-hero--funciones { background: linear-gradient(135deg, #eef2ff 0%, #f8f9fc 60%); }
.page-hero--contacto { background: var(--bg-alt); }

.page-hero__inner {
  max-width: 720px;
}

.page-hero__inner--short h1 {
  margin-bottom: 0.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  margin: 0 0 1rem;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--ink-muted);
}

.breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* Profile hub */
.profile-hub {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.profile-hub__card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.profile-hub__card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.profile-hub__card.is-current {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.04);
}

.profile-hub__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.profile-hub__card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.profile-hub__card p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  flex: 1;
}

.profile-hub__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* Explore cards (home) */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (min-width: 1100px) {
  .explore-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.explore-card--ia {
  border-color: #ddd6fe;
  background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
}

.explore-card--ia:hover {
  border-color: #7c3aed;
}

.section--ai-teaser {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(37, 99, 235, 0.04) 100%);
  border-block: 1px solid #ede9fe;
}

.eyebrow--ai {
  color: #7c3aed;
}

.page-hero--ia {
  background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 50%, #f8f9fc 100%);
}

.page-hero__inner--wide {
  max-width: 800px;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ai-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.ai-card:hover {
  border-color: #c4b5fd;
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.08);
}

.ai-card__icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.ai-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.ai-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.ai-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ai-trust__item {
  text-align: center;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.ai-trust__item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.ai-trust__item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.cta-band--ai {
  background: linear-gradient(135deg, #4c1d95 0%, #312e81 40%, #1e3a5f 100%);
}

.explore-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.explore-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(11, 18, 32, 0.06);
}

.explore-card h3 {
  margin: 0 0 0.35rem;
}

.explore-card p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.explore-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* Benefits (profile pages) */
.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.benefit {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.benefit h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.benefit p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.inline-quote {
  margin: 1.5rem 0 0;
  padding: 1.25rem;
  border-left: 3px solid var(--primary);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.inline-quote p {
  margin: 0 0 0.5rem;
  font-style: italic;
}

.inline-quote footer {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.demo-panel--light {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  max-width: 480px;
  margin-inline: auto;
}

.demo-panel--light .demo-panel__head {
  border-color: var(--border);
  color: var(--ink);
}

.demo-panel--light .demo-panel__row {
  border-color: var(--border);
}

.demo-panel--light .demo-panel__foot {
  color: var(--ink-muted);
}

.demo-panel--light .tag {
  background: var(--bg-alt);
  color: var(--ink-muted);
}

.contact-links {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.contact-links a {
  color: var(--primary);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .lifecycle,
  .cap-grid,
  .roles,
  .stats,
  .profile-hub,
  .explore-grid,
  .ai-grid,
  .ai-trust,
  .mcp-compat {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-list,
  .benefit-list--2 {
    grid-template-columns: 1fr;
  }

  .sector-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .hero__grid,
  .split,
  .contact-grid,
  .showcase__grid {
    grid-template-columns: 1fr;
  }

  .showcase--reverse .showcase__grid {
    direction: ltr;
  }

  .hero__preview {
    order: -1;
    max-width: 520px;
    margin-inline: auto;
  }

  .mock-app {
    transform: none;
  }

  .cards--3,
  .feature-grid,
  .feature-grid--9,
  .steps {
    grid-template-columns: 1fr;
  }

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

  .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .cta-band__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .lifecycle,
  .cap-grid,
  .roles,
  .stats,
  .sector-grid,
  .feature-grid--9,
  .profile-hub,
  .explore-grid,
  .ai-grid,
  .ai-trust,
  .mcp-compat {
    grid-template-columns: 1fr;
  }

  .showcase--reverse .showcase__grid {
    direction: ltr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand-col .brand--footer {
    justify-content: center;
  }

  .footer__tag {
    margin-inline: auto;
  }

  .mock-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__stats {
    gap: 1rem;
  }

  .nav .nav__cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__glow,
  .reveal,
  .mock-app {
    animation: none;
    transition: none;
  }
}
