/* Home page sections. */
.rv[data-d="1"] { --d: .08s; } .rv[data-d="2"] { --d: .16s; } .rv[data-d="3"] { --d: .24s; } .rv[data-d="4"] { --d: .32s; }
.sec { padding: clamp(84px, 11vw, 150px) 0; position: relative; }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); display: grid; gap: 18px; }
.sec-head.row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head.row > div { display: grid; gap: 18px; }

/* hero */
.hero { position: relative; padding: 140px 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: float 16s ease-in-out infinite alternate; }
.o1 { width: 620px; height: 620px; background: radial-gradient(circle, rgba(79,70,229,.55), transparent 65%); top: -180px; right: -120px; }
.o2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(45,212,191,.35), transparent 65%); bottom: -220px; left: -160px; animation-delay: -6s; }
:root[data-theme="light"] .orb { opacity: .35; }
.gridlines { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%); }
@keyframes float { to { transform: translate3d(-40px, 50px, 0) scale(1.08); } }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: color-mix(in srgb, var(--card) 70%, transparent); font-size: 13.5px; font-weight: 600; color: var(--fg-2); backdrop-filter: blur(8px); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(45,212,191,.2); animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(45,212,191,0); } }
.hero .lead { max-width: 540px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--fg-2); font-size: 14px; }
.hero-facts li { display: flex; align-items: center; gap: 7px; } .hero-facts .i { color: var(--mint-ink); width: 16px; height: 16px; }
.hero-stage { position: relative; aspect-ratio: 600 / 560; }
#dock { width: 100%; height: 100%; overflow: visible; }
#dock text { font-family: var(--b); }
.stage-cap { position: absolute; left: 50%; bottom: -40px; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; white-space: nowrap; }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }

/* stat strip */
.strip { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 24px; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font: 700 clamp(34px, 3.6vw, 46px)/1 var(--h); letter-spacing: -.04em; }
.stat span { color: var(--fg-2); font-size: 14px; }

/* how */
.how-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.step { display: flex; gap: 22px; padding: 26px 26px; border-radius: var(--r-lg); border: 1px solid transparent; cursor: pointer; transition: background .35s, border-color .35s, opacity .35s; opacity: .5; }
.step:hover { opacity: .8; }
.step.on { opacity: 1; background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
.step .n { font: 700 15px/1.6 var(--h); color: var(--accent); }
.step h3 { font-size: 23px; margin-bottom: 8px; }
.step p { color: var(--fg-2); }
.how-vis { position: sticky; top: 110px; }
.hv-card { border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.hv-top { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--card-2); }
.hv-top span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.hv-name { margin-left: 10px; font: 600 13px var(--b); color: var(--fg-2); transition: color .4s; }
.hv-body { display: grid; grid-template-columns: 150px 1fr; min-height: 360px; }
.hv-side { padding: 18px 14px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 10px; background: var(--card-2); }
.hv-logo { width: 34px; height: 34px; border-radius: 10px; background: var(--indigo); margin-bottom: 8px; transition: background .5s, border-radius .5s; }
.hv-side em { height: 10px; border-radius: 6px; background: var(--line-2); }
.hv-side em.m1, .hv-side em.m2, .hv-side em.m3 { background: var(--indigo); opacity: 0; transform: translateX(-10px); transition: .5s var(--ease); }
.hv-main { position: relative; padding: 22px; }
.hv-mods, .hv-brand, .hv-launch { position: absolute; inset: 22px; transition: opacity .5s var(--ease), transform .5s var(--ease); opacity: 0; transform: translateY(14px); pointer-events: none; }
.hv-mods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.hv-mods span { height: 92px; border-radius: 14px; border: 1.5px dashed var(--line-2); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--fg-2); transition: .5s var(--ease); }
.how[data-step="0"] .hv-mods { opacity: 1; transform: none; }
.how[data-step="0"] .hv-mods span { border-style: solid; border-color: transparent; background: color-mix(in srgb, var(--indigo) 12%, var(--card)); color: var(--fg); }
.how[data-step="0"] .hv-mods span:nth-child(2) { background: color-mix(in srgb, var(--mint) 18%, var(--card)); transition-delay: .1s; }
.how[data-step="0"] .hv-mods span:nth-child(3) { transition-delay: .2s; } .how[data-step="0"] .hv-mods span:nth-child(4) { transition-delay: .3s; background: color-mix(in srgb, var(--mint) 18%, var(--card)); }
.how[data-step="0"] .hv-side em.m1, .how[data-step="0"] .hv-side em.m2 { opacity: .8; transform: none; }
.hv-brand { display: grid; align-content: center; justify-items: center; gap: 22px; }
.hv-brand .sw { display: inline-block; width: 46px; height: 46px; border-radius: 14px; margin: 0 5px; transform: scale(.6); transition: transform .5s var(--ease); }
.sw.s1 { background: #0F766E; } .sw.s2 { background: #B45309; } .sw.s3 { background: #4F46E5; } .sw.s4 { background: #BE123C; }
.hv-url { font: 600 15px var(--b); padding: 10px 16px; border-radius: 999px; background: var(--bg-3); }
.how[data-step="1"] .hv-brand { opacity: 1; transform: none; }
.how[data-step="1"] .hv-brand .sw { transform: none; } .how[data-step="1"] .sw.s1 { transform: scale(1.18); box-shadow: 0 0 0 4px var(--card), 0 0 0 6px #0F766E; }
.how[data-step="1"] .hv-logo { background: #0F766E; border-radius: 50%; }
.how[data-step="1"] .hv-side em.m1, .how[data-step="1"] .hv-side em.m2, .how[data-step="1"] .hv-side em.m3 { opacity: .8; transform: none; background: #0F766E; }
.how[data-step="1"] .hv-name { color: #0F766E; }
.hv-launch { display: flex; align-items: end; justify-content: center; gap: 16px; padding-bottom: 30px; }
.hv-dev { border: 2px solid var(--fg-3); border-radius: 12px; background: linear-gradient(var(--bg-3), var(--card)); transform: translateY(20px); opacity: 0; transition: .6s var(--ease); }
.hv-dev.d1 { width: 190px; height: 128px; } .hv-dev.d2 { width: 92px; height: 120px; transition-delay: .1s; } .hv-dev.d3 { width: 52px; height: 100px; border-radius: 14px; transition-delay: .2s; }
.hv-live { position: absolute; top: 4px; right: 4px; padding: 6px 12px; border-radius: 999px; background: rgba(45,212,191,.16); color: var(--mint-ink); font-weight: 600; font-size: 13px; }
.how[data-step="2"] .hv-launch { opacity: 1; transform: none; } .how[data-step="2"] .hv-dev { opacity: 1; transform: none; }
.how[data-step="2"] .hv-logo { background: #0F766E; border-radius: 50%; } .how[data-step="2"] .hv-side em.m1, .how[data-step="2"] .hv-side em.m2, .how[data-step="2"] .hv-side em.m3 { opacity: .8; transform: none; background: #0F766E; }

/* library teaser */
.fam-rail { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 18px; scrollbar-width: none; }
.fam-rail::-webkit-scrollbar { display: none; }
.fam-rail button { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--fg-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s; }
.fam-rail button:hover { color: var(--fg); border-color: var(--accent); }
.fam-rail button[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.lib-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; min-height: 420px; }
.mcard { position: relative; display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; overflow: hidden; }
.mcard::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), var(--glow), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.mcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.mcard:hover::after { opacity: 1; }
.mcard .mi { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--indigo-2), var(--indigo)); box-shadow: 0 6px 16px rgba(79,70,229,.3); }
.mcard[data-kind="builtin"] .mi { background: linear-gradient(135deg, #5EEAD4, #14B8A6); box-shadow: 0 6px 16px rgba(20,184,166,.3); }
.mcard h3 { font-size: 18px; }
.mcard p { color: var(--fg-2); font-size: 14.5px; line-height: 1.55; }
.mcard .fam { font-size: 12.5px; font-weight: 600; color: var(--fg-3); }
.mcard .tag { position: absolute; top: 22px; right: 22px; font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--bg-3); color: var(--fg-2); }
.lib-cards .mcard { animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--k, 0) * 45ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* case study */
.case { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--indigo) 6%, transparent) 50%, transparent); }
.case-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.case-copy { display: grid; gap: 22px; }
.case-copy h2 { font-size: clamp(30px, 3.6vw, 46px); }
.case-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.case-list li { display: grid; gap: 2px; padding-left: 18px; border-left: 2px solid var(--line-2); }
.case-list b { font-weight: 600; } .case-list span { color: var(--fg-2); font-size: 15px; }
.case-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.case-tabs button, .pg-view button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-weight: 600; font-size: 14px; cursor: pointer; color: var(--fg-2); transition: .2s; }
.case-tabs button[aria-selected="true"], .pg-view button[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.device { position: relative; border-radius: 22px; padding: 10px; background: linear-gradient(145deg, #1B2540, #0B1120); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.08); aspect-ratio: 16 / 11; }
.scr { position: absolute; inset: 10px; border-radius: 14px; overflow: hidden; background: #0F1A2E; color: #DCE3F2; font-size: 11px; opacity: 0; transform: scale(.985); transition: opacity .45s var(--ease), transform .45s var(--ease); display: grid; grid-template-rows: 38px 1fr; }
.device[data-case="map"] .scr.map, .device[data-case="dock"] .scr.dock, .device[data-case="box"] .scr.box { opacity: 1; transform: none; }
.scr-top { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.07); background: #0B1424; font-weight: 600; }
.scr-top .yn { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, #F5B841, #D99A1E); }
.scr-top .chip { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: rgba(245,184,65,.16); color: #F5B841; font-size: 10px; }
.scr-body { padding: 14px; overflow: hidden; }
.scr svg { width: 100%; height: 100%; }
.dk { display: grid; grid-template-columns: 44px repeat(6, 1fr); gap: 4px; }
.dk b { font-weight: 600; color: #8DA0C2; text-align: center; padding: 4px 0; }
.dk i { height: 30px; border-radius: 6px; background: rgba(255,255,255,.04); }
.dk i.a { background: linear-gradient(90deg, #4F46E5, #6D66F0); } .dk i.c { background: linear-gradient(90deg, #14B8A6, #2DD4BF); } .dk i.w { background: linear-gradient(90deg, #D99A1E, #F5B841); }
.dk span { color: #8DA0C2; font-size: 10px; align-self: center; }
.bx { display: grid; gap: 7px; }
.bx-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr .9fr; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 9px; background: rgba(255,255,255,.035); }
.bx-row.h { background: none; color: #8DA0C2; font-weight: 600; padding-block: 2px; }
.bx-row .st { justify-self: start; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; }
.st.w { background: rgba(79,70,229,.25); color: #A5A1FF; } .st.g { background: rgba(45,212,191,.18); color: #5EEAD4; } .st.y { background: rgba(245,184,65,.18); color: #F5B841; }
.bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; } .bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #4F46E5, #2DD4BF); }

/* features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; transition: border-color .3s, transform .35s var(--ease); }
.feat:hover { border-color: var(--accent); transform: translateY(-3px); }
.feat .i { width: 30px; height: 30px; color: var(--accent); margin-bottom: 8px; }
.feat p { color: var(--fg-2); font-size: 15px; }

/* final CTA */
.cta-card { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 80px); text-align: center; display: grid; gap: 22px; justify-items: center; background: radial-gradient(120% 140% at 50% 0%, #2B2690 0%, #0E1525 60%); color: #EEF1FA; }
.cta-card .lead { color: #B9C2DA; max-width: 560px; }
.cta-card .btn-g { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.cta-art { display: grid; grid-template-columns: 34px 34px; gap: 6px; margin-bottom: 6px; }
.cta-art i { width: 34px; height: 34px; border-radius: 10px; background: var(--indigo-2); }
.cta-art i.m { background: var(--mint); animation: dockIn 2.6s var(--ease) infinite; }
@keyframes dockIn { 0%, 20% { transform: translate(26px, 26px); opacity: 0; } 55%, 100% { transform: none; opacity: 1; } }

@media (max-width: 1080px) and (min-width: 901px) {
  .hero-in { grid-template-columns: 1.1fr 1fr; gap: 28px; } .hero h1 { font-size: 56px; }
}
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; } .hero { padding-top: 120px; }
  .hero-stage { max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 1080px) {
  .how-grid, .case-grid { grid-template-columns: 1fr; gap: 40px; }
  .how-vis { position: relative; top: 0; order: -1; }
  .lib-cards, .feat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .strip-in { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; } .stat { padding: 22px 16px; } .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .lib-cards, .feat-grid { grid-template-columns: 1fr; min-height: 0; }
  .hv-body { grid-template-columns: 70px 1fr; min-height: 300px; } .hv-mods span { height: 70px; }
  .hv-dev.d1 { width: 120px; height: 84px; } .hv-dev.d2 { width: 64px; height: 84px; } .hv-dev.d3 { width: 38px; height: 72px; }
  .step { padding: 20px 18px; gap: 14px; } .step h3 { font-size: 20px; }
  .device { aspect-ratio: 4 / 4.2; } .bx-row { grid-template-columns: 1.2fr 1fr .9fr; } .bx-row > :nth-child(3) { display: none; }
  .dk { grid-template-columns: 34px repeat(4, 1fr); } .dk .x5, .dk .x6 { display: none; }
}

/* hero dock (SVG classes; colours follow the theme) */
.d-rail { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 3 6; }
.d-lit { fill: none; stroke: url(#dg-line); stroke-width: 2.5; stroke-linecap: round; }
.d-halo { fill: var(--indigo); opacity: calc(.18 + var(--pk, 0) * .35); }
.d-body { stroke: rgba(255,255,255,.08); }
.d-tile { fill: var(--indigo-2); }
.d-slot { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.5; stroke-dasharray: 4 5; }
.d-mint { fill: var(--mint); }
.d-label { font-size: 12px; font-weight: 600; letter-spacing: .22em; fill: var(--fg-3); }
.d-card { fill: var(--card); stroke: color-mix(in srgb, var(--accent) 35%, var(--line-2)); filter: drop-shadow(0 8px 18px rgba(14,21,37,.16)); }
.d-ico { fill: color-mix(in srgb, var(--indigo) 20%, var(--card)); }
.d-glyph { color: var(--accent); stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.d-name { font-size: 14px; font-weight: 600; fill: var(--fg); }
.d-mod { will-change: transform, opacity; }
