/* The public pages: the landing page and the sample of the catalogue.
   Dark, built on the portal's tokens. Motion is an extra: everything reads
   without it, and prefers-reduced-motion turns it off. */

.developer-main:has(.sc) { max-width: 1240px; padding-top: 0; }
/* The light may spread past the column, but never past the window. */
.portal-root:has(.sc) .portal-page { overflow-x: clip; }
/* The bar stays a solid bar: the light behind the page starts beneath it. */
.portal-root:has(.sc) .business-header { position: relative; z-index: 3; background: var(--biz-bar); }
.sc {
  --sc-blue: #147ce5; --sc-sky: #70b3ff; --sc-mint: #7fe0bd; --sc-violet: #b79cff;
  --sc-card: #171a20; --sc-card-2: #1c2028; --sc-line: #2a2f39; --sc-line-strong: #3a4250;
  --sc-ease: cubic-bezier(.2, .8, .2, 1);
  --sc-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  position: relative; color: var(--biz-text); padding-bottom: 72px;
}
.sc a { text-decoration: none; }
.sc h1, .sc h2, .sc h3, .sc p { margin: 0; }
.sc :focus-visible { outline: 2px solid var(--sc-sky); outline-offset: 4px; border-radius: 6px; }
.sc code { font-family: var(--sc-mono); }
.sc-muted { color: var(--biz-text-muted); font-weight: 500; }
.sc-empty { color: var(--biz-text-muted); padding: 40px 0; }

/* ---- the light behind the page ---- */
.sc-glow {
  position: absolute; inset: 0 -20vw auto; height: 760px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(520px 320px at 22% 18%, #147ce533, transparent 70%),
    radial-gradient(460px 300px at 78% 8%, #7f5cff26, transparent 70%),
    radial-gradient(380px 260px at 60% 62%, #22c79a1a, transparent 70%);
  animation: sc-drift 18s ease-in-out infinite alternate;
}
.sc-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(#ffffff0a 1px, transparent 1px), linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 20%, #000 20%, transparent 75%);
}
.sc > :not(.sc-glow) { position: relative; z-index: 1; }
.sc-page .sc-glow { height: 420px; opacity: .7; }
@keyframes sc-drift { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(3%, 14px, 0) scale(1.06); } }

/* ---- words ---- */
.sc-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #8fc0ff; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px !important; }
.sc-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--sc-mint); box-shadow: 0 0 0 0 #7fe0bd88; animation: sc-pulse 2.4s ease-out infinite; }
@keyframes sc-pulse { to { box-shadow: 0 0 0 9px #7fe0bd00; } }
.sc h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.05; letter-spacing: -.045em; font-weight: 660; }
.sc h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.16; letter-spacing: -.03em; font-weight: 620; }
.sc h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.sc-gradient {
  background: linear-gradient(100deg, #70b3ff, #b79cff 45%, #7fe0bd 90%, #70b3ff);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sc-sheen 9s linear infinite;
}
@keyframes sc-sheen { to { background-position: -220% 0; } }
.sc-lead { max-width: 520px; font-size: 18px; line-height: 1.65; color: var(--biz-text-secondary); margin-top: 24px !important; }
.sc-section-lead { max-width: 640px; font-size: 16px; line-height: 1.65; color: var(--biz-text-secondary); margin-top: 14px !important; }
.sc-section-lead code { font-size: .92em; color: #c5ddff; background: #26374d80; border: 1px solid #36465c; border-radius: 5px; padding: 1px 6px; }

/* ---- buttons ---- */
.sc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 16px; margin-top: 32px; }
.sc .sc-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 9px;
  border: 1px solid var(--sc-line-strong); background: #ffffff08; color: var(--biz-text);
  font-size: 14px; font-weight: 600; transition: transform .25s var(--sc-ease), border-color .2s, background .2s, box-shadow .25s;
}
.sc .sc-btn:hover { transform: translateY(-2px); border-color: #5b6b83; background: #ffffff10; }
.sc .sc-btn:active { transform: translateY(0); }
.sc .sc-btn-primary { background: var(--sc-blue); border-color: #3a92ee; color: #fff; box-shadow: 0 8px 24px -10px #147ce5; }
.sc .sc-btn-primary:hover { background: #2289f0; border-color: #62aaf5; box-shadow: 0 14px 30px -10px #147ce5; }
.sc .sc-btn span { transition: transform .25s var(--sc-ease); }
.sc .sc-btn:hover span { transform: translate(2px, -1px); }
.sc .sc-link { color: #9dc7ff; font-size: 14px; }
.sc .sc-link:hover { text-decoration: underline; }

/* ---- hero ---- */
.sc-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 64px; padding: 88px 0 64px; }
.sc-hero-copy > * { animation: sc-rise .8s var(--sc-ease) both; }
.sc-hero-copy > :nth-child(2) { animation-delay: .06s; }
.sc-hero-copy > :nth-child(3) { animation-delay: .12s; }
.sc-hero-copy > :nth-child(4) { animation-delay: .18s; }
@keyframes sc-rise { from { opacity: 0; transform: translateY(18px); } }

.sc-terminal {
  border: 1px solid #334156; border-radius: 14px; overflow: hidden; min-width: 0;
  background: linear-gradient(180deg, #161b24, #12151b);
  box-shadow: 0 40px 80px -30px #000c, 0 0 0 1px #ffffff08 inset, 0 0 90px -30px #147ce566;
  animation: sc-rise .9s var(--sc-ease) .15s both, sc-float 7s ease-in-out 1.2s infinite alternate;
}
@keyframes sc-float { to { transform: translateY(-8px); } }
.sc-terminal-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #2a3443; background: #ffffff05; }
.sc-terminal-bar > span { width: 9px; height: 9px; border-radius: 50%; background: #3d4758; }
.sc-terminal-bar > span:nth-child(1) { background: #ff6b6b99; }
.sc-terminal-bar > span:nth-child(2) { background: #ffcf5c99; }
.sc-terminal-bar > span:nth-child(3) { background: #5fd38d99; }
.sc-terminal-tabs { margin-left: auto; display: flex; gap: 4px; }
.sc-terminal-tabs button {
  border: 1px solid transparent; background: none; color: #8a96a8; font: 500 11px var(--sc-mono);
  padding: 4px 9px; border-radius: 6px; transition: color .2s, background .2s, border-color .2s;
}
.sc-terminal-tabs button:hover { color: #d5deeb; }
.sc-terminal-tabs button[aria-selected="true"] { color: #d9e8ff; background: #26374d; border-color: #3b5273; }
.sc-terminal-pane { padding: 16px 18px 18px; animation: sc-fade .35s ease both; }
/* Alternatives share one cell, so the box is as tall as the tallest of them
   and nothing below it moves when they change. */
.sc-stack { display: grid; }
.sc-stack > * { grid-area: 1 / 1; min-width: 0; }
.sc-stack > [hidden] { display: block; visibility: hidden; animation: none; }
@keyframes sc-fade { from { opacity: 0; transform: translateY(4px); } }
.sc-terminal-request { font: 12.5px/1.6 var(--sc-mono); color: #e6edf7; overflow-wrap: anywhere; }
.sc-untyped { visibility: hidden; }
.sc-prompt { color: var(--sc-mint); user-select: none; }
.sc-caret { display: inline-block; width: 7px; height: 1.05em; margin: 0 -9px 0 2px; vertical-align: -2px; background: var(--sc-sky); animation: sc-blink 1s steps(2) infinite; }
@keyframes sc-blink { 50% { opacity: 0; } }
.sc-terminal pre { margin: 12px 0 0; padding: 0; background: none; border: 0; overflow: auto; max-height: 330px; scrollbar-width: thin; }
.sc-terminal pre code { font-size: 12.5px; line-height: 1.6; color: #c9d3e0; }
.sc-terminal-more { margin-top: 8px; font: 12.5px var(--sc-mono); color: var(--code-com, #929ca9); }
.sc .tok-key, .sc .code-key { color: var(--code-key); }

/* ---- numbers ---- */
.sc-stats { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--sc-line); border-radius: 14px; background: #ffffff05; backdrop-filter: blur(6px); overflow: hidden; }
.sc-stats > div { padding: 22px 20px; border-left: 1px solid var(--sc-line); display: grid; gap: 4px; }
.sc-stats > div:first-child { border-left: 0; }
.sc-stats strong { font-size: clamp(20px, 2.2vw, 28px); font-weight: 640; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sc-stats span { font-size: 12px; color: var(--biz-text-muted); }

/* ---- sections ---- */
.sc-section { padding-top: 96px; }
.sc-section-tight { padding-top: 40px; }
.sc-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 32px; }
.sc-count { font: 12px var(--sc-mono); color: var(--biz-text-muted); }

.sc-switch { display: inline-flex; padding: 4px; border: 1px solid var(--sc-line); border-radius: 11px; background: #ffffff06; }
.sc-switch button { border: 0; background: none; color: var(--biz-text-secondary); font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 8px; transition: color .2s, background .25s; }
.sc-switch button small { margin-left: 6px; font: 11px var(--sc-mono); color: var(--biz-text-muted); }
.sc-switch button[aria-selected="true"] { color: #fff; background: #26374d; box-shadow: 0 0 0 1px #3b5273 inset; }

/* ---- the grid of makes ---- */
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; perspective: 1100px; }
.sc-grid[hidden] { display: none; }
.sc .sc-tile {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--sc-line); border-radius: 16px; color: var(--biz-text);
  background: linear-gradient(160deg, var(--sc-card-2), var(--sc-card));
  transform: translateY(0) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d; will-change: transform;
  transition: transform .45s var(--sc-ease), box-shadow .45s var(--sc-ease), border-color .25s, background .25s;
}
.sc .sc-tile:hover, .sc .sc-tile:focus-visible {
  transform: translateY(-8px) scale(1.04) rotateX(var(--rx)) rotateY(var(--ry));
  border-color: #4d6b96; z-index: 2;
  box-shadow: 0 26px 44px -18px #000d, 0 10px 18px -10px #0009, 0 0 0 1px #70b3ff22, 0 0 44px -12px #147ce588;
  transition-duration: .18s, .3s, .2s, .2s;
}
.sc-tile-shine { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx) var(--my), #ffffff1f, transparent 60%); }
.sc-tile:hover .sc-tile-shine { opacity: 1; }
.sc-tile img { position: absolute; inset: 22%; width: 56%; height: 56%; object-fit: contain; transform: translateZ(26px); transition: transform .45s var(--sc-ease), filter .3s; filter: drop-shadow(0 6px 10px #0006); }
.sc-tile:hover img, .sc-tile:focus-visible img { transform: translateZ(26px) translateY(-9px) scale(.94); }
.sc-tile-name, .sc-tile-meta { position: absolute; left: 8px; right: 8px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .35s var(--sc-ease); }
.sc-tile-name { bottom: 24px; font-size: 12.5px; font-weight: 600; }
.sc-tile-meta { bottom: 9px; font: 10.5px var(--sc-mono); color: var(--biz-text-muted); transition-delay: .03s; }
.sc-tile:hover .sc-tile-name, .sc-tile:hover .sc-tile-meta, .sc-tile:focus-visible .sc-tile-name, .sc-tile:focus-visible .sc-tile-meta { opacity: 1; transform: none; }
.sc .sc-tile-more { border-style: dashed; border-color: #3f5576; background: linear-gradient(160deg, #1a2638, #141a24); }
.sc-tile-more strong { font-size: 22px; letter-spacing: -.03em; color: #9dc7ff; transform: translateY(-8px); }
.sc-tile-more .sc-tile-name, .sc-tile-more .sc-tile-meta { opacity: 1; transform: none; }
.sc-lock { vertical-align: -2px; opacity: .8; }

/* ---- capabilities ---- */
.sc-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sc-feature {
  position: relative; padding: 26px; border: 1px solid var(--sc-line); border-radius: 16px; overflow: hidden;
  background: linear-gradient(170deg, var(--sc-card-2), var(--sc-card)); display: flex; flex-direction: column; gap: 10px;
  transition: transform .35s var(--sc-ease), border-color .25s, box-shadow .35s;
}
.sc-feature:hover { transform: translateY(-4px); border-color: #45597a; box-shadow: 0 22px 40px -22px #000c; }
.sc-feature::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, #70b3ff88, transparent); opacity: 0; transition: opacity .3s; }
.sc-feature:hover::before { opacity: 1; }
.sc-feature-wide { grid-column: span 2; }
.sc-feature p { font-size: 14px; line-height: 1.7; color: var(--biz-text-secondary); }
.sc-snippet { margin-top: auto; display: block; font-size: 12.5px; line-height: 1.75; color: #c5ddff; background: #0e1116; border: 1px solid var(--sc-line); border-radius: 9px; padding: 11px 13px; overflow-wrap: anywhere; }
.sc-tree { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 13px var(--sc-mono); }
.sc-tree span { padding: 8px 11px; border: 1px solid #3b5273; border-radius: 8px; background: #26374d66; color: #c5ddff; animation: sc-step 6s ease-in-out infinite; }
.sc-tree span:nth-of-type(2) { animation-delay: .5s; }
.sc-tree span:nth-of-type(3) { animation-delay: 1s; }
.sc-tree span:nth-of-type(4) { animation-delay: 1.5s; }
.sc-tree i { color: #5f7396; font-style: normal; }
@keyframes sc-step { 0%, 30%, 100% { border-color: #3b5273; box-shadow: none; } 10% { border-color: #70b3ff; box-shadow: 0 0 18px -4px #70b3ff; } }
.sc-pair { margin-top: auto; display: flex; gap: 10px; }
.sc-pair-dark { display: flex; gap: 14px; padding: 12px 16px; border-radius: 10px; background: #0e1116; border: 1px solid var(--sc-line); }
.sc-pair img { width: 36px; height: 36px; object-fit: contain; }

/* ---- languages ---- */
.sc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.sc-langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 26px; align-items: center; }
.sc-langs button { border: 1px solid var(--sc-line); background: #ffffff06; color: var(--biz-text-secondary); font: 600 12px var(--sc-mono); text-transform: uppercase; padding: 7px 11px; border-radius: 8px; transition: all .2s; }
.sc-langs button:hover { border-color: #4d6b96; color: #fff; transform: translateY(-2px); }
.sc-langs button[aria-selected="true"] { background: var(--sc-blue); border-color: #3a92ee; color: #fff; }
.sc-langs-more { font: 12px var(--sc-mono); color: var(--biz-text-muted); margin-left: 6px; }
.sc-lang-card { border: 1px solid #334156; border-radius: 14px; background: linear-gradient(180deg, #161b24, #12151b); box-shadow: 0 30px 60px -30px #000c; padding: 18px 20px 12px; min-width: 0; }
.sc-lang-request { font: 12.5px var(--sc-mono); color: #e6edf7; padding-bottom: 12px; border-bottom: 1px solid #2a3443; }
.sc-lang-request b { color: var(--sc-mint); font-weight: 600; }
.sc-lang-card dl { margin: 0; animation: sc-fade .35s ease both; }
.sc-lang-card dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid #222a36; }
.sc-lang-card dl > div:last-child { border-bottom: 0; }
.sc-lang-card dt { font: 12px var(--sc-mono); color: var(--code-key, #94c6ff); }
.sc-lang-card dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }

/* ---- a specification, in part ---- */
.sc-spec { columns: 3 300px; column-gap: 14px; }
.sc-spec-group { break-inside: avoid; margin-bottom: 14px; padding: 18px 20px 10px; border: 1px solid var(--sc-line); border-radius: 14px; background: linear-gradient(170deg, var(--sc-card-2), var(--sc-card)); }
.sc-spec-group h3 { display: flex; align-items: center; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #8fc0ff; margin-bottom: 8px; }
.sc-spec-group.is-locked h3 { color: var(--biz-text-muted); }
.sc-spec dl { margin: 0; }
.sc-spec dl > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; border-top: 1px solid #232934; font-size: 13.5px; }
.sc-spec dt { color: var(--biz-text-secondary); }
.sc-spec dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sc-spec .is-withheld dt { color: var(--biz-text-muted); }
.sc-spec .is-withheld dd { flex: 0 0 38%; display: flex; justify-content: flex-end; }
.sc-bar { display: block; width: var(--w, 60%); height: 9px; border-radius: 5px; background: linear-gradient(90deg, #2a313d, #3b4556, #2a313d); background-size: 200% 100%; animation: sc-shimmer 2.6s linear infinite; }
@keyframes sc-shimmer { to { background-position: -200% 0; } }
.sc-chip { display: inline-flex; align-items: center; gap: 5px; font: 600 10px var(--sc-mono); letter-spacing: .06em; padding: 3px 7px; border-radius: 999px; text-transform: uppercase; }
.sc-chip-lock { color: #c9d3e0; background: #ffffff0d; border: 1px solid var(--sc-line-strong); }
.sc-chip-live { color: #0d2a1f; background: var(--sc-mint); }

.sc-meter { margin-top: 28px; display: grid; gap: 10px; }
.sc-meter-track { height: 6px; border-radius: 4px; background: #232934; overflow: hidden; }
.sc-meter-track span { display: block; height: 100%; width: var(--share); border-radius: 4px; background: linear-gradient(90deg, var(--sc-blue), var(--sc-mint)); transform-origin: left; animation: sc-grow 1.2s var(--sc-ease) .2s both; }
@keyframes sc-grow { from { transform: scaleX(0); } }
.sc-meter p { font-size: 13.5px; color: var(--biz-text-secondary); }
.sc-meter strong { color: var(--biz-text); }

/* ---- ideas and the closing call ---- */
.sc-ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sc-ideas article { padding: 24px; border: 1px solid var(--sc-line); border-radius: 16px; background: var(--sc-card); display: flex; flex-direction: column; gap: 10px; transition: transform .35s var(--sc-ease), border-color .25s; }
.sc-ideas article:hover { transform: translateY(-4px); border-color: #45597a; }
.sc-idea-number { font: 12px var(--sc-mono); color: #7c9cc7; }
.sc-ideas p { font-size: 14px; line-height: 1.7; color: var(--biz-text-secondary); }
.sc-ideas small { margin-top: auto; padding-top: 10px; font-size: 11px; color: #849bb9; }
.sc-cta { margin-top: 96px; padding: 40px 44px; border: 1px solid #334156; border-radius: 20px; display: flex; align-items: center; justify-content: space-between; gap: 28px 40px; flex-wrap: wrap;
  background: radial-gradient(600px 200px at 10% 0%, #147ce52e, transparent 70%), radial-gradient(500px 220px at 95% 100%, #7f5cff24, transparent 70%), var(--sc-card); }
.sc-cta p { margin-top: 10px; color: var(--biz-text-secondary); font-size: 15px; }
.sc-cta p a { color: #9dc7ff; }
.sc-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- catalogue pages ---- */
.sc-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 36px; font-size: 13px; color: var(--biz-text-muted); }
.sc .sc-crumbs a { color: var(--biz-text-secondary); }
.sc .sc-crumbs a:hover { color: #fff; }
.sc-crumbs [aria-current] { color: var(--biz-text); }
.sc-entity { display: flex; align-items: center; gap: 24px; padding: 28px 0 8px; animation: sc-rise .7s var(--sc-ease) both; }
.sc-entity h1 { font-size: clamp(30px, 4.2vw, 50px); }
/* A version's name is a sentence, not a word: it gets a size it can wrap at. */
.sc-entity h1.sc-entity-long { font-size: clamp(21px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.sc-entity-over { font-size: 14px; font-weight: 550; color: var(--biz-text-muted); margin-bottom: 4px !important; }
.sc-entity-logo { flex: 0 0 auto; width: 92px; height: 92px; display: grid; place-items: center; border: 1px solid var(--sc-line); border-radius: 20px; background: linear-gradient(160deg, var(--sc-card-2), var(--sc-card)); box-shadow: 0 20px 40px -22px #000c; transition: transform .35s var(--sc-ease); }
a.sc-entity-logo:hover { transform: translateY(-3px) rotate(-3deg); }
.sc-entity-logo img { width: 62%; height: 62%; object-fit: contain; }
.sc-entity-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 12px !important; font-size: 13px; color: var(--biz-text-secondary); }
.sc-entity-meta > span { padding: 4px 10px; border: 1px solid var(--sc-line); border-radius: 999px; background: #ffffff05; }
.sc-entity-meta .sc-code { font-family: var(--sc-mono); color: #c5ddff; border-color: #3b5273; }
.sc-request { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; border: 1px solid var(--sc-line); border-radius: 12px; background: #0e1116; }
.sc-request-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--biz-text-muted); }
.sc-request code { font-size: 13px; color: #c5ddff; overflow-wrap: anywhere; }

.sc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.sc .sc-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--sc-line); border-radius: 14px; color: var(--biz-text); background: linear-gradient(170deg, var(--sc-card-2), var(--sc-card)); transition: transform .35s var(--sc-ease), border-color .2s, box-shadow .35s; }
.sc .sc-card:hover { transform: translateY(-5px); border-color: #4d6b96; box-shadow: 0 22px 36px -20px #000d, 0 0 34px -14px #147ce588; }
.sc-card strong { font-size: 15px; font-weight: 600; }
.sc-card-meta { font-size: 12.5px; color: var(--biz-text-muted); }
.sc-card-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font: 11px var(--sc-mono); color: var(--biz-text-muted); }

.sc-more { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 16px 20px; border: 1px dashed #3f5576; border-radius: 14px; background: linear-gradient(160deg, #1a263866, transparent); color: var(--biz-text-secondary); font-size: 14px; }
.sc-more-count { font-size: 20px; font-weight: 640; letter-spacing: -.02em; color: #9dc7ff; }
.sc .sc-more a { margin-left: auto; color: #9dc7ff; font-weight: 600; }
.sc-inline-more { margin-top: 10px !important; font: 12px var(--sc-mono); color: var(--biz-text-muted); }

.sc-timeline { display: grid; gap: 14px; }
.sc-generation { padding: 22px 24px; border: 1px solid var(--sc-line); border-radius: 16px; background: linear-gradient(170deg, var(--sc-card-2), var(--sc-card)); }
.sc-generation > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.sc-generation h2 { font-size: 20px; letter-spacing: -.015em; }
.sc-versions { list-style: none; margin: 16px 0 0; padding: 0; }
.sc .sc-versions a { display: flex; align-items: center; gap: 14px; padding: 11px 12px; margin: 0 -12px; border-radius: 10px; color: var(--biz-text); border-top: 1px solid #232934; transition: background .2s, transform .3s var(--sc-ease); }
.sc-versions li:first-child a { border-top-color: transparent; }
.sc .sc-versions a:hover { background: #ffffff0a; transform: translateX(4px); }
.sc-versions strong { font-size: 14px; font-weight: 550; min-width: 0; overflow-wrap: anywhere; }
.sc-figures { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sc-figures span { font: 11.5px var(--sc-mono); color: var(--biz-text-secondary); padding: 3px 8px; border: 1px solid var(--sc-line); border-radius: 999px; white-space: nowrap; }
.sc-arrow { color: #5f7396; transition: transform .3s var(--sc-ease), color .2s; }
.sc-versions a:hover .sc-arrow { transform: translateX(3px); color: #9dc7ff; }

/* ---- appearing on scroll: only once the script has said it is running ---- */
.sc-js .sc [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--sc-ease), transform .7s var(--sc-ease); transition-delay: calc(var(--i, 0) * 45ms); }
.sc-js .sc [data-reveal].is-in { opacity: 1; transform: none; }
.sc-js .sc .sc-grid .sc-tile { opacity: 0; }
.sc-js .sc .sc-grid.is-in .sc-tile { animation: sc-pop .55s var(--sc-ease) both; animation-delay: calc(min(var(--i), 60) * 14ms); opacity: 1; }
@keyframes sc-pop { from { opacity: 0; transform: translateY(16px) scale(.94); } }

@media (max-width: 1000px) {
  .sc-hero { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 48px; }
  .sc-stats { grid-template-columns: repeat(3, 1fr); }
  .sc-stats > div:nth-child(4) { border-left: 0; }
  .sc-stats > div:nth-child(n+4) { border-top: 1px solid var(--sc-line); }
  .sc-features, .sc-ideas { grid-template-columns: repeat(2, 1fr); }
  .sc-split { grid-template-columns: 1fr; gap: 32px; }
  .sc-section { padding-top: 72px; }
}
@media (max-width: 620px) {
  .sc-features, .sc-ideas { grid-template-columns: 1fr; }
  .sc-feature-wide { grid-column: auto; }
  .sc-stats { grid-template-columns: repeat(2, 1fr); }
  .sc-stats > div { border-left: 0; border-top: 1px solid var(--sc-line); }
  .sc-stats > div:nth-child(even) { border-left: 1px solid var(--sc-line); }
  .sc-stats > div:nth-child(-n+2) { border-top: 0; }
  .sc-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 9px; }
  .sc-tile-name, .sc-tile-meta { display: none; }
  .sc-tile-more .sc-tile-name, .sc-tile-more .sc-tile-meta { display: block; }
  .sc-entity { gap: 16px; }
  .sc-entity-logo { width: 68px; height: 68px; border-radius: 16px; }
  .sc-cta { padding: 28px 24px; }
  .sc-figures span:nth-child(n+2) { display: none; }
  .sc-terminal pre { max-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .sc *, .sc *::before, .sc *::after { animation: none !important; transition: none !important; }
  .sc-js .sc [data-reveal], .sc-js .sc .sc-grid .sc-tile { opacity: 1; transform: none; }
  .sc-caret { display: none; }
}
.sc-slow { padding: 96px 0 40px; max-width: 720px; }
