/* css/home.css: the landing page. Hero sky + 3D mark + dock, the embedded app window, pillars, live feed,
   access, connect, install, questions. */

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: max(720px, 100svh); display: flex; align-items: stretch; overflow: hidden; isolation: isolate; }
.hero-sky {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 46% at 50% 30%, rgba(246, 248, 252, .62), rgba(246, 248, 252, 0) 70%),
    radial-gradient(40% 30% at 18% 88%, rgba(233, 228, 218, .5), transparent 70%),
    radial-gradient(42% 34% at 86% 84%, rgba(160, 186, 226, .45), transparent 70%),
    linear-gradient(180deg, #7d92bc 0%, #a6b4ce 34%, #c2c9d6 64%, #b7c1d0 100%);
}
.hero-sky::after {
  content: ''; position: absolute; inset: 0; opacity: .12; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-in {
  width: 100%; max-width: 1180px; margin: 0 auto; padding: calc(var(--head-h) + 18px) var(--gut) 34px;
  display: flex; flex-direction: column; align-items: center; text-align: center; position: relative;
}
.orb { width: min(400px, 66vw); aspect-ratio: 1; margin: -10px 0 clamp(-112px, -8vw, -48px); position: relative; z-index: 0; }
.orb canvas { width: 100%; height: 100%; }
.orb:not([data-ready]) { background: url(/brand/mark-512.png) center/72% no-repeat; }
.orb[data-ready] { background: none; }
.orb.no-gl { background: url(/brand/mark-512.png) center/72% no-repeat; }
.hero-name {
  position: relative; z-index: 1; color: #fff; font-size: clamp(64px, 11.2vw, 150px); font-weight: 600; letter-spacing: -.035em; line-height: .95;
  text-shadow: 0 2px 30px rgba(40, 60, 100, .18);
}
.hero-tag { margin-top: clamp(22px, 3.2vw, 40px); font: 500 clamp(19px, 2vw, 26px)/1.3 var(--text); color: #fff; letter-spacing: .005em; text-shadow: 0 1px 18px rgba(40, 60, 100, .2); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero-meander { position: absolute; left: 0; right: 0; bottom: 10px; opacity: .45; }

/* the dock */
.dock-wrap { margin-top: auto; padding-top: 44px; width: 100%; display: flex; justify-content: center; }
.dock {
  --dk: 46px; --dk-gap: 9px;
  position: relative; display: flex; align-items: flex-end; gap: var(--dk-gap); padding: 8px 10px 10px;
  border-radius: 20px; background: rgba(255, 255, 255, .26); border: 1px solid rgba(255, 255, 255, .55);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 20px 50px -22px rgba(30, 50, 90, .5), 0 1px 0 rgba(255, 255, 255, .7) inset;
}
.dk-btn {
  position: relative; width: var(--dk); height: var(--dk); border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  color: #1a2232; background: linear-gradient(180deg, #ffffff, #eef1f6);
  box-shadow: 0 1px 0 #fff inset, 0 6px 14px -8px rgba(30, 50, 90, .55), 0 0 0 1px rgba(20, 30, 50, .06);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.dk-btn::after { content: ''; position: absolute; bottom: -7px; left: 50%; width: 3px; height: 3px; border-radius: 50%; background: rgba(20, 30, 50, .45); transform: translateX(-50%); }
.dk-btn:hover, .dk-btn.is-on { transform: translateY(-9px) scale(1.06); box-shadow: 0 1px 0 #fff inset, 0 14px 24px -10px rgba(30, 50, 90, .6), 0 0 0 1px rgba(20, 30, 50, .06); }
.dk-sep { width: 1px; align-self: stretch; margin: 4px 4px; background: rgba(20, 30, 50, .16); }
.dk-coin { background: #07080b url(/brand/mark-64.png) center/88% no-repeat; }
.dk-ca {
  display: inline-flex; align-items: center; gap: 8px; height: var(--dk); padding: 0 12px 0 14px; border-radius: 13px;
  background: rgba(24, 28, 36, .78); color: #eef1f5; font: 500 15px/1 var(--text); font-variant-numeric: tabular-nums;
}
.dk-ca small { font-size: 11px; letter-spacing: .08em; color: #8f97a4; }
.dk-ca .copy-btn { color: #8f97a4; }
.dk-tip {
  position: absolute; left: 0; bottom: calc(100% + 14px); transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  padding: 9px 13px; border-radius: 10px; background: rgba(40, 46, 58, .9); color: #fff; font: 600 14px/1 var(--text);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .25s var(--ease), left .35s var(--ease);
}
.dk-tip span { font-weight: 400; color: #d6dbe4; margin-left: 8px; font-variant-numeric: tabular-nums; }
.dk-tip::after { content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: rgba(40, 46, 58, .9); }
.dk-tip.show { opacity: 1; }
@media (max-width: 760px) {
  .dock { --dk: clamp(26px, 7.4vw, 38px); --dk-gap: clamp(3px, 1.2vw, 7px); padding: 6px 7px 8px; border-radius: 16px; }
  .dk-btn { border-radius: 10px; }
  .dk-btn svg { width: 15px; height: 15px; }
  .dk-ca { display: none; }
  .dk-tip { font-size: 12px; padding: 7px 10px; }
}

/* ---------------------------------------------------------------- the embedded app */
.showcase { border-top: 0; padding-top: clamp(90px, 10vw, 140px); }
.showcase-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.showcase-head .lede { margin: 22px auto 0; }
.window {
  position: relative; border-radius: 18px; overflow: hidden; background: #15181e;
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .5), 0 0 120px -40px rgba(46, 94, 189, .35);
}
.window-bar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #1b1f26; border-bottom: 1px solid var(--line); }
.window-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ef6a5e; }
.window-bar i:nth-child(2) { background: #f4bf4f; }
.window-bar i:nth-child(3) { background: #61c554; }
.window-title { margin: 0 auto; padding-right: 60px; font: 500 12px/1 var(--text); color: var(--ink-3); }
.window .window-body { height: min(720px, 82vh); position: relative; }
.embed-wait { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 14px; }

/* ---------------------------------------------------------------- pillars */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar p { color: var(--ink-2); font-size: 15px; margin-top: 10px; }
.pillar .h-s { margin-top: 6px; }
.pillar-n { display: block; margin-top: 22px; font-size: 13px; color: var(--ink-3); }
.pillar-art {
  height: 270px; border-radius: var(--r-card); background: linear-gradient(180deg, #161a21, #12151b); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; padding: 18px; position: relative; overflow: hidden;
}
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; height: 100%; }
.tool-tile {
  border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; font-size: 11.5px; color: var(--ink-2);
  transition: background .3s, border-color .3s;
}
.tool-tile svg { color: var(--accent); }
.tool-tile:nth-child(3n+1) svg { color: var(--glaze); }
.tool-tile:nth-child(3n+3) svg { color: var(--gilt); }
.tool-tile:hover { background: rgba(122, 162, 220, .08); border-color: rgba(122, 162, 220, .3); }
.clients { position: relative; width: 100%; display: grid; grid-template-columns: 1fr 70px 64px; align-items: center; }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.clients li span { white-space: nowrap; }
.clients li { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 34px; padding: 0 10px; border-radius: 9px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font-size: 13px; }
.clients li b { font-weight: 400; font-size: 11px; color: var(--ink-3); }
.clients li .chip-ok { font-weight: 600; }
.clients-lines { width: 70px; height: 172px; }
.clients-lines path { fill: none; stroke: rgba(189, 210, 236, .3); stroke-width: 1; stroke-dasharray: 3 4; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -14; } }
.clients-hub { width: 64px; height: 64px; border-radius: 16px; background: #07080b url(/brand/mark-64.png) center/86% no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 0 40px -6px rgba(122, 162, 220, .5); }
.tiers { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tier { width: 100%; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.tier b { color: var(--ink); font-weight: 600; }
.tier.is-h { border-color: rgba(122, 162, 220, .35); background: rgba(122, 162, 220, .07); }
.tier-gate { position: relative; padding: 5px 10px; border-radius: 8px; font-size: 11.5px; color: var(--ink-2); background: #1d222b; border: 1px solid var(--line); }
.tier-gate::before, .tier-gate::after { content: ''; position: absolute; left: 50%; width: 1px; height: 10px; background: var(--line-2); }
.tier-gate::before { bottom: 100%; }
.tier-gate::after { top: 100%; }

/* ---------------------------------------------------------------- live feed */
.feed .h-l { margin-bottom: 48px; }
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 40px; }
.feed-h { display: flex; align-items: center; gap: 8px; font: 600 15px/1 var(--mono); color: var(--ink); }
.feed-h svg { color: var(--accent); }
.feed-sub { font-size: 12.5px; color: var(--ink-3); margin: 6px 0 14px; min-height: 18px; }
.feed-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.feed-list li { display: grid; grid-template-columns: 22px auto 1fr auto; align-items: center; gap: 9px; height: 46px; border-bottom: 1px solid var(--line); font-size: 13px; }
.feed-list .lg { width: 22px; height: 22px; border-radius: 50%; background: #20252e center/cover no-repeat; display: inline-flex; align-items: center; justify-content: center; font-size: 8.5px; font-weight: 600; color: var(--ink-3); }
.feed-list b { font-weight: 600; white-space: nowrap; }
.feed-list .nm { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.feed-list .v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.feed-list .up { color: var(--ok); }
.feed-list .dn { color: var(--bad); }
.feed-list li.skel { opacity: .5; }
.feed-list li.skel span { height: 10px; border-radius: 5px; background: var(--fill-2); }

/* ---------------------------------------------------------------- access */
.access .lede { margin-top: 18px; }
.hold { margin-top: 40px; padding: 20px 22px; }
.hold-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.hold-bar { position: relative; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.hold-bar i { position: absolute; left: 0; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-30%, -50%); background: var(--face); box-shadow: 0 0 0 4px rgba(122, 162, 220, .18); }
.hold-v { font: 600 24px/1 var(--display); }
.hold-note { margin-top: 10px; font-size: 13px; }
.limits { margin-top: 18px; overflow-x: auto; }
.limits .tbl { min-width: 560px; }
.limits .tbl tbody th { color: var(--ink-3); }

/* ---------------------------------------------------------------- connect */
.connect-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.connect-grid .lede { margin: 18px 0 28px; }
.snip { padding: 14px; }
.snip .tabs { margin-bottom: 12px; }
.snip .codebox { min-height: 92px; }
.snip-note { font-size: 12.5px; margin: 12px 4px 2px; line-height: 1.6; }

/* ---------------------------------------------------------------- install */
.install-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.install-art { border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 50px 100px -40px rgba(46, 94, 189, .45); background: #0a0c10; aspect-ratio: 1000 / 1200; max-height: 560px; }
.install-art img { width: 100%; height: 100%; object-fit: cover; }
.install .lede { margin: 18px 0 30px; }

/* ---------------------------------------------------------------- questions */
.questions .faq summary { font-size: 17px; }

@media (max-width: 960px) {
  .pillar-grid, .feed-grid { grid-template-columns: 1fr; }
  .connect-grid, .install-grid { grid-template-columns: 1fr; gap: 40px; }
  .install-art { max-width: 420px; }
  .window .window-body { height: 640px; }
}
@media (max-width: 600px) {
  .clients { grid-template-columns: 1fr 44px 56px; }
  .clients-lines { width: 44px; }
  .clients-hub { width: 56px; height: 56px; }
  .hero-cta .go { height: 50px; font-size: 16px; }
  .window { border-radius: 14px; margin: 0 calc(var(--gut) * -0.5); }
  .window .window-body { height: 620px; }
}

/* ---------------------------------------------------------------- phone */
.dk-tip::after { left: var(--ax, 50%); }
@media (max-width: 600px) {
  .hero { min-height: auto; }
  .hero-in { padding-bottom: 40px; }
  .orb { width: min(330px, 78vw); }
  .hero-tag { max-width: 320px; }
  .hero-cta { width: 100%; }
  .hero-cta .go { flex: 1 1 0; justify-content: space-between; min-width: 0; }
  .dock-wrap { margin-top: 0; padding-top: 52px; }
  .dock { --dk: 35px; --dk-gap: 4px; padding: 6px 6px 8px; }
  .dk-sep, .dk-coin { display: none; }
  .dk-btn svg { width: 17px; height: 17px; }
  .showcase-head { margin-bottom: 36px; }
  .pillar-art { height: auto; min-height: 220px; }
  .tool-tile { min-height: 66px; font-size: 12px; }
  .feed-list li { height: 50px; }
  .limits .tbl { min-width: 0; font-size: 13px; }
  .limits .tbl th, .limits .tbl td { padding: 12px 10px; vertical-align: top; }
  .limits .tbl tbody th { width: 38%; }
  .hold-row { gap: 12px; }
  .install-art { margin: 0 auto; }
}
@media (max-width: 360px) {
  .dock { --dk: 31px; --dk-gap: 3px; }
  .hero-cta .go { padding-left: 18px; font-size: 15px; }
}
