/* The hero: words on the left, the system (planet, orbits, models and tools going round) behind and to the right. */
.hero { position: relative; text-align: left; padding: 0; min-height: clamp(640px, 58vw, 860px); overflow: hidden; }
.hero-copy { position: relative; z-index: 8; width: min(600px, calc(100% - 48px)); margin-left: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); padding-top: clamp(110px, 13vw, 190px); pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero .hero-copy h1 { font-size: clamp(46px, 6.2vw, 88px); line-height: .98; }
.hero .hero-copy p { margin: 22px 0 0; padding: 0; font-size: clamp(17px, 1.5vw, 20px); color: #b7c4d1; }
.hero .hero-copy .cta { justify-content: flex-start; margin-top: 30px; }
.facts { display: flex; gap: 40px; margin-top: 44px; }
.facts b { display: block; font: 600 22px var(--display); letter-spacing: -.03em; }
.facts span { display: block; color: var(--mute); font-size: 13.5px; margin-top: 2px; }
html.js .hero .facts { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: .7s; }
html.intro-on .hero .facts { animation-play-state: paused; }

.system { position: absolute; inset: 0; height: auto; margin: 0; pointer-events: auto; }
.system::before { display: none; }
.system canvas { width: clamp(360px, 30vw, 640px); z-index: 2; pointer-events: none; }
.system .orbits { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: visible; }
.system .orbits path { fill: none; stroke: rgba(214, 226, 240, .14); stroke-width: 1; vector-effect: non-scaling-stroke; }
.system .orbits path.far { stroke: rgba(214, 226, 240, .08); }
/* the words stay readable where the orbits pass under them */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none; background: linear-gradient(90deg, var(--bg) 0%, rgba(5, 8, 11, .86) 26%, rgba(5, 8, 11, 0) 52%), linear-gradient(0deg, var(--bg) 0%, rgba(5, 8, 11, 0) 16%); }

.node { position: absolute; left: 0; top: 0; display: grid; place-items: center; opacity: 0; will-change: transform, opacity; text-decoration: none; }
.node .disc { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #0a0e13; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 10px 24px -10px rgba(0, 0, 0, .7); transition: box-shadow .2s; }
.node .disc img, .node .disc svg { width: 20px; height: 20px; color: #f4f3f1; }
.node:hover { z-index: 20 !important; opacity: 1 !important; }
.node:hover .disc { box-shadow: inset 0 0 0 1px rgba(255, 140, 70, .95), 0 0 30px -4px rgba(255, 110, 40, .65); }
.node .name { position: absolute; top: calc(50% + 36px); left: 50%; transform: translateX(-50%); white-space: nowrap; font: 500 12.5px var(--sans); color: #dfe6ee; transition: opacity .2s; }
/* a model is a small world of its own: a burst of points around it, turning slowly, lighting up under the pointer */
.node .burst { position: absolute; left: 50%; top: 50%; width: 170px; height: 170px; margin: -85px 0 0 -85px; pointer-events: none; animation: turn 100s linear infinite; }
.node .burst line { stroke: rgba(214, 226, 240, .15); stroke-width: 1; transition: stroke .25s; }
.node .burst circle { fill: #e8eef5; transition: fill .25s; }
.node:hover .burst line { stroke: rgba(255, 130, 60, .55); }
.node:hover .burst circle { fill: #ff8a3c; }
.node.model .disc { width: 52px; height: 52px; background: radial-gradient(circle at 36% 30%, #1c242d, #05080b 70%); }
.node.model .disc img { width: 24px; height: 24px; }
.node.tool .disc { width: 36px; height: 36px; }
.node.tool .disc svg { width: 16px; height: 16px; color: #c5d0dc; }
.node.tool .name { top: calc(50% + 26px); font-weight: 400; font-size: 11.5px; color: var(--mute); opacity: 0; }
.node.tool:hover .name { opacity: 1; }
.node.dot .disc { width: 6px; height: 6px; background: #c5d0dc; box-shadow: none; opacity: .5; }
/* what a model is, on hover */
.node .card { position: absolute; left: calc(50% + 44px); top: 50%; transform: translateY(-50%) translateX(-6px); width: 250px; padding: 16px 18px; border-radius: 14px; background: rgba(8, 12, 16, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 24px 50px -20px rgba(0, 0, 0, .8); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; text-align: left; }
.node:hover .card { opacity: 1; transform: translateY(-50%); }
.node:hover .name { opacity: 0; }
.node .card small { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: 12.5px; }
.node .card small img { width: 14px; height: 14px; }
.node .card b { display: block; font: 600 17px var(--display); letter-spacing: -.02em; margin: 6px 0 12px; color: var(--ink); }
.node .card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 13px; }
.node .card dt { color: var(--mute); }
.node .card dd { margin: 0; font-family: var(--mono); color: var(--ink); }
@keyframes turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .node .burst { animation: none; } }

@media (max-width: 900px) {
  .hero { min-height: 0; text-align: center; }
  .hero-copy { margin: 0 auto; padding-top: 96px; }
  .hero .hero-copy .cta, .facts { justify-content: center; }
  .facts { gap: 26px; }
  .system { position: relative; inset: auto; height: 440px; margin-top: 10px; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(5, 8, 11, 0) 12%); }
  .node .name, .node.dot, .node .card { display: none; }
  .node .burst { transform: scale(.7); animation: none; }
}

/* feature rows: a short claim beside a working piece of the product */
.feat { display: grid; grid-template-columns: 1fr 1.18fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding: 64px 0; }
.feat.flip > .feat-copy { order: 2; }
.feat h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.04; }
.feat p { color: #b7c4d1; font-size: 18px; margin-top: 16px; }
.feat .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: #dfe6ee; font-size: 15px; transition: gap .2s, color .2s; }
.feat .go:hover { gap: 12px; color: #fff; }
.feat .go::after { content: "\2192"; }
.feat .console { width: auto; margin: 0; animation: none !important; background: var(--panel); border: 1px solid var(--line); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 18px; }
.feat .console-body { min-height: 262px; font-size: 13px; }
.feat .code { border-radius: 18px; }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr; padding: 44px 0; } .feat.flip > .feat-copy { order: 0; } }

/* the keys panel: each key with its own cap, filling as it spends */
.panel { border-radius: 18px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.panel-bar { display: flex; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.panel-bar span { color: var(--mute); }
.keys { padding: 8px 20px 18px; }
.keyrow { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.keyrow:last-child { border-bottom: 0; }
.keyrow .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.keyrow .top code { font-size: 13px; color: #dfe6ee; }
.keyrow .top span { font-family: var(--mono); font-size: 13px; color: var(--mute); }
.keyrow .top span b { color: var(--ink); font-weight: 400; }
.meter { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .07); margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #ff7a2e, #ff5a1f); width: var(--w); transform-origin: 0 50%; }
html.js .rv .meter i { transform: scaleX(0); transition: transform 1.3s cubic-bezier(.2, .7, .2, 1) .35s; }
html.js .rv.in .meter i { transform: none; }
.keyrow.stopped .meter i { background: #6f8296; }
.keyrow.stopped .top span { color: #ffb08a; }
.panel-foot { padding: 14px 20px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; }
