:root { --ink3:#596f80; }
html { scroll-padding-top: 90px; }
[hidden] { display: none !important; }
.skip-link {
  position: absolute;
  z-index: 100;
  left: 16px;
  top: 12px;
  transform: translateY(-160%);
  background: var(--bg);
  padding: 8px 14px;
  border-radius: 6px;
}
.skip-link:focus { transform: translateY(0); }
.hero { padding: 78px 0 82px; }
.hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4.5vw, 72px); }
.hero h1 { font-size: clamp(2.8rem, 4.4vw, 3.8rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; text-wrap: initial; }
.hero h1 span { text-wrap: initial; }
.hero-sub strong { color: var(--ink); }
.hero-meta { color: var(--ink2); }
.product-preview {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #191e27;
  border: 1px solid #455364;
  border-radius: 13px;
  box-shadow: 0 24px 72px -27px #0a223e85;
}
.product-preview-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  color: #dce6f1;
  background: #171d27;
  border-bottom: 1px solid #39424e;
  font-size: .8rem;
  font-weight: 600;
}
.product-preview-bar code { justify-self: end; font: .74rem var(--mono); color: #a9c8e4; }
.preview-dots { display: flex; gap: 5px; }
.preview-dots i { width: 6px; height: 6px; border-radius: 50%; background: #7992ab; }
.product-preview-image { display:block; }
.product-preview-image:focus-visible { outline:3px solid #70c8ff; outline-offset:-3px; }
.product-preview img { width: 100%; height: auto; display: block; }

#solution-formats { padding: 38px 0 8px; }
.solution-feature {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 32px;
  padding: clamp(22px, 4vw, 48px);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.solution-feature h2 { font-size: clamp(1.65rem, 3.6vw, 2.45rem); line-height: 1.2; }
.solution-feature p { color: var(--ink2); margin-top: 12px; }
.solution-feature code { font-family: var(--mono); color: var(--violet-deep); }
.solution-example { overflow: hidden; background: #101d2b; color: #e6eef7; border-radius: 9px; font: .85rem/1.65 var(--mono); }
.solution-example div { padding: 10px 14px; background: #192b3e; border-bottom: 1px solid #30475f; color: #c4d7e9; }
.solution-example pre { padding: 12px 14px; overflow-x: auto; margin: 0; }
.solution-example code { color: #ddeafa; }
.solution-example span { color: #80d9c8; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.workflow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.workflow h3 { font-size: 1.12rem; line-height: 1.35; }
.workflow p { color: var(--ink2); font-size: .92rem; margin-top: 8px; flex: 1; }
.workflow a, .platform-note a, #quickstart a {
  color: var(--violet-deep);
  font-weight: 600;
  text-underline-offset: 3px;
}
.workflow a { font-size: .88rem; margin-top: 16px; }
.platform-note { color: var(--ink2); font-size: .9rem; margin-top: 24px; }

.rel-card { overflow-wrap: anywhere; }
.rel-archive summary { cursor: pointer; color: var(--violet-deep); font-weight: 600; margin: 8px 0; }
.rel-archive > .rel-list { margin-top: 14px; }

.index-col h3 { font-family: var(--sans); font-size: 1.08rem; text-transform: none; letter-spacing: -.015em; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.index-col { scroll-margin-top: 100px; }

.feature-search { max-width: 38rem; margin-bottom: 25px; }
.feature-search label { font-weight: 600; font-size: .92rem; }
.feature-search-row { display: flex; gap: 8px; margin-top: 7px; }
.feature-search input {
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  color: var(--ink);
  background: var(--bg);
  font: inherit;
  font-size: .95rem;
}
.feature-search input:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.feature-search button { cursor: pointer; padding: 8px 14px; }
#feature-results { color: var(--ink2); font-size: .88rem; margin-top: 6px; }
#feature-results:empty { display: none; }

@media (prefers-color-scheme: dark) {
  :root { --ink3:#9db2c7; }
  nav .nav-links { background: transparent; }
  .btn-solid, .nav-cta { background: #146ba7; }
  .btn-solid:hover, .nav-cta:hover { background: #0c568c; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-color-scheme: dark) and (max-width: 980px) {
  nav .nav-links { background: #0b1524; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 80px; }
  .hero { padding: 46px 0 48px; }
  .hero h1 { font-size: clamp(2.6rem, 10vw, 3.7rem); }
  .hero-grid { gap: 27px; }
  .solution-feature, .workflow-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #solution-formats { padding: 24px 0 0; }
  .solution-example { display: none; }
  .product-preview-bar { font-size: .73rem; }
  .product-preview-bar code { font-size: .67rem; }
}
