/* Landing-page refresh: sticky navigation, one hero console, a use-case
   explorer, and a sunrise closing. Colours come from the tokens in
   experience.css (mist, night, ember, iris, mint). Loaded last. */

/* Navigation stays within reach on a long page. */
body { background: var(--paper); }
.site-header {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
}
.nav-links a[aria-current] { color: var(--ink); }
@media (min-width: 561px) {
  .nav-links a { position: relative; padding-block: 8px; }
  .nav-links a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; border-radius: 2px; background: var(--ember); content: ''; opacity: 0; transform: scaleX(.4); transition: opacity .2s, transform .25s var(--ease); }
  .nav-links a[aria-current]::after { opacity: 1; transform: scaleX(1); }
}
@media (max-width: 560px) {
  html { scroll-padding-top: 88px; }
  .site-header { background: color-mix(in srgb, var(--paper) 94%, transparent); }
  .nav-links a[aria-current] { color: var(--ember-deep); }
}

/* Hero console: request, then the three runtime steps, then the response. */
.hero-atmosphere { background: radial-gradient(ellipse at 66% 58%, #ffb98a70, #ffd9c43d 34%, transparent 62%), radial-gradient(ellipse at 96% 8%, #cab7ff4d, transparent 46%); }
.code-window .code-content { min-height: 0; padding-bottom: 18px; }
.code-window .runtime-flow { justify-content: flex-start; gap: 10px; max-width: none; margin: 0 17px 14px; padding: 12px 0 0; border-top: 1px solid #ffffff12; }
.code-window .runtime-step { flex: none; gap: 8px; color: #a8a0c4; font-size: 12.5px; }
.code-window .step-icon { width: 28px; height: 28px; border-color: #ffffff1f; border-radius: 8px; background: #ffffff0a; }
.code-window .runtime-step.is-active { color: #ffd6bd; }
.code-window .runtime-step.is-active .step-icon { border-color: #ffb38a8c; background: #ff9b6229; box-shadow: none; }
.code-window .flow-connector { flex: 1 1 12px; width: auto; min-width: 8px; background: #ffffff21; }
.code-window .flow-connector::after { border-color: #ffffff59; }
.code-window .flow-pause { position: static; flex: none; width: 30px; height: 30px; margin-left: 2px; color: #a8a0c4; }
.code-window .flow-pause:hover { background: #ffffff14; color: #fff; }
.code-window .code-result { margin-bottom: 16px; }

@media (max-width: 560px) {
  .code-window .runtime-flow { align-items: flex-start; gap: 6px; margin-inline: 12px; }
  .code-window .runtime-step { flex-direction: column; gap: 5px; min-width: 0; font-size: 11px; }
  .code-window .step-icon { width: 26px; height: 26px; }
  .code-window .flow-connector { margin-top: 13px; }
  .code-window .flow-pause { width: 26px; height: 26px; }
}

/* Use cases: pick on the left, read the conversation on the right. */
.case-explorer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr); gap: 20px; align-items: stretch; }
.case-explorer .use-case-grid { grid-template-columns: 1fr; gap: 10px; }
.case-explorer .use-case-grid article:nth-child(n) { display: grid; grid-template-columns: 48px minmax(0, 1fr) 36px; column-gap: 18px; row-gap: 2px; align-items: center; padding: 17px 18px 17px 20px; border: 1px solid #1f1a3e17; border-radius: 18px; background: transparent; transform: none; transition: background-color .2s, border-color .2s; }
.case-explorer .use-case-grid article:nth-child(1) { --case-tint: #e6e1f7; }
.case-explorer .use-case-grid article:nth-child(2) { --case-tint: #d6f1e7; }
.case-explorer .use-case-grid article:nth-child(3) { --case-tint: #ffe1cf; }
.case-explorer .use-case-grid article:nth-child(4) { --case-tint: #faecca; }
.case-explorer .use-case-grid article:nth-child(n):hover { background: #1f1a3e08; }
.case-explorer .use-case-grid article:nth-child(n).is-selected { border-color: transparent; background: var(--case-tint); }
.case-explorer .use-case-grid .case-icon { grid-row: 1 / span 2; width: 48px; height: 48px; margin: 0; padding: 12px; border-radius: 14px; background: var(--case-tint); transition: background-color .2s; }
.case-explorer .use-case-grid article.is-selected .case-icon { background: #ffffffb8; }
.case-explorer .use-case-grid h3 { grid-column: 2; align-self: end; margin: 0; font-size: 17px; line-height: 1.35; }
.case-explorer .use-case-grid p { grid-column: 2; align-self: start; margin: 0; font-size: 13.5px; line-height: 1.6; }
.case-explorer .case-select { grid-column: 3; grid-row: 1 / span 2; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0; border-radius: 50%; color: #4d4675; transition: background-color .2s, color .2s; }
.case-explorer .case-select::after { border-radius: 18px; }
.case-explorer .case-select .icon { width: 16px; height: 16px; }
.case-explorer article.is-selected .case-select { background: var(--ink); color: #fff; }
.case-select-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.case-explorer .case-preview { --preview-tint: #e6e1f7; display: flex; flex-direction: column; gap: 30px; min-height: 100%; padding: 32px 36px 36px; border-radius: 24px; background: var(--preview-tint); transition: background-color .35s; }
.case-explorer:has(article:nth-child(2).is-selected) .case-preview { --preview-tint: #d6f1e7; }
.case-explorer:has(article:nth-child(3).is-selected) .case-preview { --preview-tint: #ffe1cf; }
.case-explorer:has(article:nth-child(4).is-selected) .case-preview { --preview-tint: #faecca; }
.case-explorer .case-preview-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 16px; align-items: center; align-self: stretch; }
.case-explorer .case-preview-label { color: #4d4675; font-weight: 700; }
.case-explorer .case-preview-note { grid-column: 2; grid-row: 1; padding: 4px 11px; border-radius: 999px; background: #ffffff8f; color: #4d4675; font-size: 12px; }
.case-explorer .case-preview h3 { grid-column: 1 / -1; margin: 0; color: var(--ink); font-size: 32px; line-height: 1.2; }
.case-explorer .case-conversation { align-items: stretch; gap: 12px; margin-top: auto; }
.case-explorer .case-user { align-self: flex-end; max-width: 86%; padding: 12px 18px; background: #ffffffc7; color: var(--ink); font-size: 14.5px; line-height: 1.55; }
.case-explorer .case-response { align-self: flex-start; max-width: 94%; padding: 16px 20px 17px; border-radius: 18px 18px 18px 4px; background: var(--night); color: #f4f1fb; font-size: 16px; line-height: 1.55; }
.case-explorer .case-response .icon { margin-top: 3px; color: var(--apricot); }

@media (max-width: 800px) {
  .case-explorer { grid-template-columns: 1fr; gap: 16px; }
  .case-explorer .use-case-grid { grid-template-columns: 1fr 1fr; }
  .case-explorer .use-case-grid article:nth-child(n) { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 16px; }
  .case-explorer .use-case-grid .case-icon { width: 44px; height: 44px; padding: 11px; }
  .case-explorer .use-case-grid h3 { font-size: 16px; }
  .case-explorer .case-select { position: static; grid-column: 1 / -1; grid-row: auto; width: 0; height: 0; }
  .case-explorer .case-select .icon { display: none; }
  .case-explorer .case-preview { padding: 28px; }
  .case-explorer .case-preview h3 { font-size: 28px; }
}
@media (max-width: 560px) {
  .case-explorer .use-case-grid { grid-template-columns: 1fr; gap: 8px; }
  .case-explorer .use-case-grid article:nth-child(n) { align-items: center; padding: 14px 16px; }
  .case-explorer .use-case-grid p { font-size: 13px; }
  .case-explorer .case-preview { gap: 26px; padding: 24px 20px; border-radius: 20px; }
  .case-explorer .case-preview h3 { font-size: 26px; }
  .case-explorer .case-preview-note { grid-column: 1; grid-row: 3; justify-self: start; }
  .case-explorer .case-response { font-size: 15px; }
}

/* Closing: a sunrise over the footer's horizon. */
.closing-section { padding-block: 112px 132px; background: radial-gradient(ellipse 76% 104% at 50% 124%, #ff7a38 0%, #ff9d63 22%, #ffc7a2 42%, #f8dfe4 62%, var(--paper) 86%); }
.closing-inner h2 span { color: var(--ember); }
.closing-inner p { color: #4d4675; font-size: 15px; }
.closing-inner .button { min-height: 52px; padding-inline: 24px; font-size: 14.5px; }
@media (max-width: 560px) {
  .closing-section { padding-block: 76px 96px; background: radial-gradient(ellipse 130% 82% at 50% 118%, #ff7a38 0%, #ff9d63 24%, #ffc7a2 46%, #f8dfe4 68%, var(--paper) 90%); }
}

@media (max-width: 560px) {
  .footer-bottom .card-brands { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links a::after, .case-explorer .case-preview { transition: none; }
}
