:root {
  color-scheme: light;
  --blue: #506fc2;
  --red: #c8472d;
  --ink: #0e1116;
  --muted: #62666d;
  --line: #e1e2e5;
  --paper: #f4f4f5;
  --max: 1170px;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: white;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.topbar {
  min-height: 26px;
  padding: 5px 16px;
  background: var(--blue);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
}

.site-header,
.nav-inner,
.hero,
.facts,
.section,
.footer-inner {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand img {
  width: 244px;
  height: auto;
}

.brand span {
  padding: 0.22rem 0.52rem;
  background: var(--red);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.shop-link {
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.shop-link span {
  margin-left: 0.65rem;
  font-size: 1.5rem;
  line-height: 0;
  vertical-align: -0.08em;
}

nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.2rem);
}

nav a {
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
.shop-link:hover {
  color: var(--red);
}

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.75fr);
  margin-top: 30px;
  background: var(--ink);
  color: white;
  overflow: hidden;
}

.hero-copy {
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(2rem, 6vw, 5.2rem);
}

.eyebrow,
.section-heading > p:first-child,
.connection-card > p:first-child {
  margin: 0 0 1.25rem;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

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

h1 {
  max-width: 690px;
  margin-bottom: 1.5rem;
  font-size: clamp(2.8rem, 5.5vw, 4.9rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.lead {
  max-width: 670px;
  margin-bottom: 2.7rem;
  color: #d6d7da;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.actions,
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.actions a {
  padding: 0.88rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.primary {
  background: var(--red);
  color: white;
}

.primary:hover {
  background: #ad3822;
}

.secondary {
  border: 1px solid #71747a;
  color: white;
}

.secondary:hover {
  border-color: white;
  background: white;
  color: var(--ink);
}

.hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(145deg, #607dcc 0%, #4d6bbd 62%, #38539f 100%);
}

.hero-panel::before {
  content: "MP";
  position: absolute;
  top: 1rem;
  right: -0.8rem;
  color: rgba(255, 255, 255, 0.08);
  font-size: 9rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
}

.hero-panel > p {
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.hero-panel > code {
  max-width: 100%;
  overflow-x: auto;
  font-size: clamp(0.95rem, 1.55vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.hero-panel dl {
  margin: 2.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-panel dt {
  color: #dce4ff;
}

.hero-panel dd {
  margin-bottom: 0;
  font-weight: 700;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-top: 0;
}

.facts p {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 1.55rem 1.7rem;
  border-right: 1px solid var(--line);
}

.facts p:last-child {
  border-right: 0;
}

.facts strong {
  font-size: 1.45rem;
}

.facts span {
  color: var(--muted);
  font-size: 0.78rem;
}

.demo {
  align-items: center;
}

.conversation {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid #dfe4f3;
  border-radius: 1.75rem;
  background: linear-gradient(180deg, #f0f3fc 0%, #f7f7f8 100%);
  box-shadow: 0 1.4rem 3.5rem rgba(14, 17, 22, 0.08);
}

.demo-disclaimer {
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--red);
  border-radius: 0.85rem;
  background: white;
}

.demo-disclaimer strong,
.demo-disclaimer span {
  display: block;
}

.demo-disclaimer strong {
  margin-bottom: 0.25rem;
  color: var(--red);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
}

.demo-disclaimer span {
  color: var(--muted);
  font-size: 0.85rem;
}

.chat-message {
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
}

.chat-message-user {
  flex-direction: row-reverse;
}

.chat-avatar {
  flex: 0 0 auto;
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.chat-message-user .chat-avatar {
  background: var(--ink);
}

.chat-bubble {
  max-width: min(80%, 580px);
  padding: 1rem 1.15rem;
  border: 1px solid #e0e2e8;
  border-radius: 1.15rem 1.15rem 1.15rem 0.3rem;
  background: white;
  box-shadow: 0 0.45rem 1.3rem rgba(14, 17, 22, 0.07);
}

.chat-message-user .chat-bubble {
  border: 0;
  border-radius: 1.15rem 1.15rem 0.3rem 1.15rem;
  background: var(--blue);
  color: white;
}

.chat-bubble > span,
.prompt-label {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.chat-bubble > span {
  color: var(--blue);
}

.chat-message-user .chat-bubble > span {
  color: #dce4ff;
}

.chat-bubble > p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.chat-note {
  margin: 0.1rem 0 0 3.15rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.section {
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(0, 1.7fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  border-bottom: 1px solid var(--line);
}

.section > * {
  min-width: 0;
}

.section-heading h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.section-heading > p:last-child {
  max-width: 460px;
  margin-bottom: 0;
  color: var(--muted);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.tool {
  min-height: 205px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.tool:last-child {
  grid-column: 1 / -1;
}

.tool span {
  display: block;
  margin-bottom: 2.8rem;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 800;
}

.tool code {
  display: block;
  margin-bottom: 0.8rem;
  font: 800 0.95rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
}

.tool p {
  margin-bottom: 0;
  color: var(--muted);
}

.connection {
  align-items: center;
}

.connection-card {
  padding: clamp(1.6rem, 4vw, 2.8rem);
  background: var(--blue);
  color: white;
}

.connection-card > p:first-child {
  color: white;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
  padding: 1.2rem;
  background: white;
  color: var(--ink);
}

.endpoint span {
  padding: 0.2rem 0.5rem;
  background: var(--red);
  color: white;
  font: 800 0.66rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.endpoint code {
  font: 700 0.88rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.assistant-prompt {
  margin-top: 1.5rem;
}

.prompt-label {
  color: white;
}

.prompt-instruction {
  margin: 0 0 0.8rem;
  color: #edf0fb;
  font-size: 0.88rem;
  font-weight: 700;
}

.assistant-prompt blockquote {
  margin: 0;
  padding: 1.2rem;
  border-left: 4px solid var(--red);
  border-radius: 0.65rem;
  background: #3e5dad;
  font: 700 0.88rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.benefit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.benefit-list p {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 700;
}

.benefit-list span {
  flex: 0 0 auto;
  display: inline-grid;
  width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  background: var(--blue);
  color: white;
  font-weight: 900;
}

footer {
  background: var(--ink);
  color: white;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2.5rem;
  font-size: 0.82rem;
}

.footer-inner p {
  margin: 0;
  color: #c6c8cc;
}

.footer-inner strong {
  color: white;
}

.footer-inner a {
  color: white;
  font-weight: 700;
}

@media (max-width: 800px) {
  .site-header,
  .nav-inner,
  .hero,
  .facts,
  .section,
  .footer-inner {
    width: min(calc(100% - 30px), var(--max));
  }

  .site-header {
    min-height: 82px;
  }

  .brand img {
    width: 185px;
  }

  .shop-link {
    display: none;
  }

  .nav-inner {
    min-height: 46px;
    gap: 1.4rem;
    overflow-x: auto;
  }

  .nav-inner a {
    flex: 0 0 auto;
  }

  .hero {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .hero-copy {
    padding: 3.5rem 1.5rem;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.6rem);
  }

  .hero-panel {
    min-height: 300px;
    padding: 1.5rem;
  }

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

  .facts p {
    padding: 1.2rem;
    border-bottom: 1px solid var(--line);
  }

  .facts p:nth-child(even) {
    border-right: 0;
  }

  .facts p:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .endpoint {
    align-items: flex-start;
    flex-direction: column;
    overflow-x: visible;
  }

  .endpoint code {
    max-width: 100%;
    font-size: clamp(0.66rem, 3.2vw, 0.78rem);
    letter-spacing: -0.035em;
    white-space: nowrap;
  }

  .chat-bubble {
    max-width: calc(100% - 3.15rem);
  }

  .chat-note {
    margin-left: 0;
  }

  .tool:last-child {
    grid-column: auto;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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