/* ai-os.my hero v3 "The gaps in your city": pre-rendered isometric city scrubbed by scroll, with every piece of
   information as an HTML glass overlay (Ruby's AIOS-1904 mock, notes in design/landing-3d-v3/notes.md). */
.hero3 { --navy: #060a14; --ink: #eef2fb; --mute: #9aa8c4; --blue: #6e9bff; --amber: #ffbf47; --green: #3ee08f; --red: #ff5a4f;
  --glass: rgba(255,255,255,.08); --edge: rgba(210,228,255,.42);
  --disp: 'Space Grotesk', system-ui, sans-serif; --body: 'Inter', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  position: relative; z-index: 2; height: 100vh; height: 100svh; overflow: hidden; background: var(--navy); color: var(--ink); font-family: var(--body); }
.hero3 .h3-stage { position: absolute; inset: 0; transform: translate3d(var(--px, 0), var(--py, 0), 0); will-change: transform; }
/* the 4K still, moved and scaled as one GPU layer: the ortho camera's pan and zoom */
.hero3 .h3-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.hero3 .h3-world img { display: block; width: 100%; height: 100%; user-select: none; }
.hero3 .h3-world svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hero3 .h3-world path { fill: none; stroke: #9fc0ff; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px #6e9bff) drop-shadow(0 0 14px rgba(110,155,255,.7)); transition: opacity .5s; }
.hero3 .h3-life { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero3 .h3-pins, .hero3 .h3-cards { position: absolute; inset: 0; pointer-events: none; }
.hero3 .h3-pin { position: absolute; left: 0; top: 0; --c: var(--amber); opacity: 0; transition: opacity .4s; }
.hero3 .h3-pin.on { opacity: 1; }
.hero3 .h3-pin.bad { --c: var(--red); } .hero3 .h3-pin.ok { --c: var(--green); }
.hero3 .h3-pin b { position: absolute; left: -2px; bottom: 0; width: 4px; height: var(--h, 40px); border-radius: 3px;
  background: linear-gradient(0deg, var(--c), transparent); box-shadow: 0 0 12px var(--c); transition: background .4s, box-shadow .4s; }
.hero3 .h3-pin i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 0 22px var(--c); transition: background .4s, box-shadow .4s; }
.hero3 .h3-pin.bad i::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--red); animation: ping 1.4s ease-out infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* the problems, as WhatsApp messages (WhatsApp dark palette), popping out of their pins; the replies close them */
.hero3 .h3-wa { position: absolute; left: 0; top: 0; width: max-content; max-width: 280px; padding: 8px 10px 6px; border-radius: 10px;
  font: 400 14px/1.35 var(--body); color: #e9edef; box-shadow: 0 10px 34px rgba(0,0,0,.5);
  opacity: 0; transform: translate(-22px, calc(-100% - 18px)) scale(.6); transform-origin: 22px 100%;
  transition: opacity .3s, transform .5s cubic-bezier(.2,1.4,.3,1); }
.hero3 .h3-wa.on { opacity: 1; transform: translate(-22px, calc(-100% - 18px)) scale(1); }
.hero3 .h3-wa::after { content: ''; position: absolute; left: 14px; bottom: -9px; border: 9px solid transparent; border-bottom: 0; border-top-color: var(--bg); }
.hero3 .h3-wa.h3-in { --bg: #202c33; background: var(--bg); max-width: 250px; }
.hero3 .h3-wa.h3-out { --bg: #005c4b; background: var(--bg); max-width: 232px; }
.hero3 .h3-wa .h3-wh { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.hero3 .h3-wa .h3-av { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--body); background: #6a7175; color: #fff; }
.hero3 .h3-wa .h3-wh b { font: 600 13px var(--body); color: #53bdeb; }
.hero3 .h3-wa.h3-out .h3-wh b { color: #9ff5c9; }
.hero3 .h3-wa .h3-wt { margin-left: auto; padding-left: 10px; font-size: 11px; color: #8696a0; }
.hero3 .h3-wa .h3-wp { margin: 0; }
.hero3 .h3-wa.h3-in .h3-wf { margin-top: 5px; padding-top: 5px; border-top: 1px solid rgba(255,255,255,.08); font: 600 12px var(--body); color: #ff8a80; }
.hero3 .h3-wa.h3-in .h3-wf::before { content: '● '; color: var(--red); }
.hero3 .h3-wa.h3-out .h3-wf { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 11px; color: #9fd8c8; }
.hero3 .h3-wa .h3-tk { width: 16px; height: 10px; fill: none; stroke: #53bdeb; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero3 .h3-shade { position: absolute; inset: -20px; pointer-events: none;
  background: linear-gradient(90deg, rgba(6,10,20,.82) 0%, rgba(6,10,20,.4) 30%, rgba(6,10,20,0) 50%), linear-gradient(0deg, rgba(6,10,20,.7) 0%, rgba(6,10,20,0) 20%); }
.hero3 .h3-dim { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: rgba(4,7,14,.55); opacity: 0; backdrop-filter: blur(2px); }

/* floating glass cards over the city, positioned per frame from overlay.json */
.hero3 .h3-gc { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 9px 14px 9px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--edge);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 14px 40px rgba(0,0,0,.45);
  font: 600 14px/1.2 var(--body); color: var(--ink); opacity: 0; transform: translate(-50%, -100%) scale(.85);
  transition: opacity .35s, transform .45s cubic-bezier(.2,.9,.2,1.2); }
.hero3 .h3-gc.on { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.hero3 .h3-gc i { width: 4px; align-self: stretch; border-radius: 3px; background: var(--c, var(--blue)); box-shadow: 0 0 12px var(--c, var(--blue)); }
.hero3 .h3-gc svg { width: 18px; height: 18px; flex: none; stroke: var(--c, var(--ink)); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero3 .h3-gc b { font: 500 13px var(--mono); color: var(--ink); }
.hero3 .h3-gc .h3-t { color: var(--c, var(--ink)); }
.hero3 .h3-gc.h3-tool { --c: var(--amber); font-size: 13px; padding: 7px 12px; }
.hero3 .h3-gc.h3-gap { --c: var(--red); border-color: rgba(255,120,110,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 34px rgba(255,90,79,.28), 0 14px 40px rgba(0,0,0,.45); }
.hero3 .h3-gc.h3-fixed { --c: var(--green); border-color: rgba(90,240,160,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 34px rgba(62,224,143,.28), 0 14px 40px rgba(0,0,0,.45); }
.hero3 .h3-gc.h3-consent { --c: var(--blue); font-size: 15px; }
.hero3 .h3-gc.h3-lock { --c: var(--mute); font-size: 13px; transform: translate(-85%, -100%) scale(.85); }
.hero3 .h3-gc.h3-lock.on { transform: translate(-85%, -100%) scale(1); }
.hero3 .h3-gc.h3-question { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  font: 600 22px var(--disp); color: rgba(220,228,245,.75); letter-spacing: -.01em; }

/* beats: the copy, left */
.hero3 .h3-beat { position: absolute; z-index: 3; left: clamp(20px, 6vw, 96px); bottom: 15vh; max-width: min(560px, 40vw); opacity: 0; transform: translateY(20px); pointer-events: none; }
.hero3 .h3-beat.h3-b1 { opacity: 1; transform: none; }
.hero3 .h3-beat.live .h3-cta { pointer-events: auto; }
.hero3 h1, .hero3 .h3-bh { margin: 0; font: 700 clamp(38px, 4.6vw, 76px)/1.03 var(--disp); letter-spacing: -.03em; }
.hero3 em { font-style: normal; color: var(--amber); }
.hero3 .h3-cta { display: flex; gap: 22px; align-items: center; margin-top: 30px; flex-wrap: wrap; }
.hero3 .h3-btn { font: 600 17px var(--disp); color: var(--ink); text-decoration: none; }
.hero3 .h3-btn-p { padding: 14px 28px; border-radius: 999px; background: linear-gradient(100deg, #3d6df2, #6e9bff); box-shadow: 0 16px 50px rgba(61,109,242,.45); }
.hero3 .h3-btn-l { border-bottom: 1px solid rgba(238,242,251,.5); padding-bottom: 3px; }
.hero3 .h3-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

/* act 5: the OMH glass panel (Ruby's mock, real demo figures) */
.hero3 .h3-b5 { max-width: 28vw; }
.hero3 .h3-b5 .h3-bh { font-size: clamp(34px, 3.8vw, 64px); }
.hero3 .h3-omh { position: absolute; z-index: 4; right: clamp(20px, 3vw, 56px); top: 50%; width: min(60vw, 920px);
  transform: translateY(-46%) scale(.96); opacity: 0; pointer-events: none; transition: opacity .6s, transform .8s cubic-bezier(.2,.8,.2,1);
  padding: 22px; border-radius: 26px; background: rgba(255,255,255,.07); border: 1px solid rgba(210,228,255,.45);
  backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 60px rgba(110,155,255,.06), 0 28px 70px rgba(0,0,0,.55);
  display: grid; gap: 14px; }
.hero3 .h3-omh.on { opacity: 1; transform: translateY(-50%) scale(1); pointer-events: auto; }
.hero3 .h3-omh .h3-top { display: flex; align-items: center; gap: 12px; }
.hero3 .h3-omh .h3-top img { height: 30px; width: auto; }
.hero3 .h3-omh .h3-top span { font: 500 12px var(--mono); color: var(--mute); }
.hero3 .h3-omh .h3-demo { margin-left: auto; font: 500 11px var(--mono); color: var(--amber); border: 1px solid rgba(255,191,71,.4); border-radius: 999px; padding: 3px 10px; }
.hero3 .h3-pane { background: rgba(255,255,255,.05); border: 1px solid rgba(210,228,255,.22); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.hero3 .h3-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hero3 .h3-kpi b { display: block; font: 600 clamp(22px, 2.2vw, 32px)/1.1 var(--mono); letter-spacing: -.02em; }
.hero3 .h3-kpi span { font-size: 13px; color: #c3cbe0; }
.hero3 .h3-feeds { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero3 .h3-feeds .h3-l { font: 600 14px var(--body); }
.hero3 .h3-feeds .h3-l small { display: block; font-weight: 400; font-size: 12px; color: var(--mute); }
.hero3 .h3-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.hero3 .h3-chips u { text-decoration: none; font: 500 11px var(--mono); padding: 4px 6px; border-radius: 7px; color: #9ff5c9; background: rgba(62,224,143,.12); border: 1px solid rgba(62,224,143,.4); }
.hero3 .h3-chips u.h3-late { color: #ffd88a; background: rgba(255,191,71,.12); border-color: rgba(255,191,71,.45); }
.hero3 .h3-chips u.h3-miss { color: #ffaaa4; background: rgba(255,90,79,.12); border-color: rgba(255,90,79,.45); }
.hero3 .h3-feeds .h3-sum { margin-left: auto; font: 500 12px var(--mono); color: var(--mute); }
.hero3 .h3-one-h { display: flex; align-items: baseline; gap: 10px; font: 600 14px var(--disp); }
.hero3 .h3-one-h small { font: 500 11px var(--mono); color: var(--mute); }
.hero3 .h3-ask { justify-self: center; margin: 10px auto; padding: 9px 16px; border-radius: 12px; background: rgba(110,155,255,.16); border: 1px solid rgba(110,155,255,.35); font-size: 14px; width: fit-content; max-width: 100%; }
.hero3 .h3-ans { font: 600 17px var(--disp); margin: 4px 0 8px; }
.hero3 table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.hero3 th { text-align: left; font: 500 10.5px var(--mono); letter-spacing: .08em; color: var(--mute); padding: 4px 6px; border-bottom: 1px solid rgba(210,228,255,.18); }
.hero3 td { padding: 6px; border-bottom: 1px solid rgba(210,228,255,.08); }
.hero3 .h3-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.hero3 .h3-acts span { font-size: 13px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(210,228,255,.35); }
.hero3 .h3-acts span.h3-p { border-color: rgba(62,224,143,.7); color: #b9f7d6; box-shadow: 0 0 18px rgba(62,224,143,.25); }
.hero3 .h3-res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hero3 .h3-res div { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #c3cbe0; min-width: 0; }
.hero3 .h3-res b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }
.hero3 .h3-res i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(62,224,143,.6); margin-top: 1px;
  -webkit-mask: radial-gradient(circle, #000 60%, transparent 61%); }
.hero3 .h3-scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 24px; transform: translateX(-50%); font: 12px var(--mono); letter-spacing: 4px; text-transform: uppercase; color: var(--mute); transition: opacity .4s; }
.hero3 .h3-loader { position: absolute; inset: 0; z-index: 5; background: var(--navy); transition: opacity .6s; }
.hero3 .h3-loader.done { opacity: 0; pointer-events: none; }

/* phones (portrait render, the city sits low): copy on top, OMH as a compact bottom sheet under it */
@media (max-aspect-ratio: 4/5) {
  .hero3 .h3-shade { background: linear-gradient(180deg, rgba(6,10,20,.88) 0%, rgba(6,10,20,.45) 30%, rgba(6,10,20,0) 48%); }
  .hero3 .h3-beat, .hero3 .h3-b5 { top: max(96px, calc(env(safe-area-inset-top) + 88px)); bottom: auto; left: 20px; right: 20px; max-width: none; }
  .hero3 h1, .hero3 .h3-bh, .hero3 .h3-b5 .h3-bh { font-size: clamp(30px, 8.4vw, 40px); }
  .hero3 .h3-b5 .h3-bh br { display: none; }
  .hero3 .h3-cta { margin-top: 18px; gap: 18px; }
  .hero3 .h3-btn { font-size: 15px; } .hero3 .h3-btn-p { padding: 12px 22px; }
  .hero3 .h3-omh { left: 12px; right: 12px; width: auto; top: auto; bottom: max(12px, env(safe-area-inset-bottom));
    transform: translateY(14px); padding: 12px; gap: 10px; border-radius: 20px; }
  .hero3 .h3-omh.on { transform: none; }
  .hero3 .h3-omh .h3-top img { height: 22px; } .hero3 .h3-omh .h3-top > span:not(.h3-demo) { display: none; }
  .hero3 .h3-omh .h3-feeds, .hero3 .h3-omh .h3-res, .hero3 .h3-acts span:not(.h3-p) { display: none; }
  .hero3 .h3-pane { padding: 10px 12px; border-radius: 12px; }
  .hero3 .h3-kpis { gap: 6px; } .hero3 .h3-kpi b { font-size: 16px; } .hero3 .h3-kpi span { font-size: 11px; line-height: 1.25; display: block; }
  .hero3 .h3-ask { font-size: 12.5px; margin: 8px 0; padding: 7px 10px; } .hero3 .h3-ans { font-size: 15px; }
  .hero3 table { font-size: 12px; } .hero3 td, .hero3 th { padding: 4px; }
  .hero3 th:nth-child(4), .hero3 td:nth-child(4) { display: none; }
  .hero3 .h3-gc { font-size: 12px; padding: 6px 10px; gap: 7px; } .hero3 .h3-gc svg { width: 15px; height: 15px; }
  .hero3 .h3-gc.h3-question { font-size: 15px; }
  /* phones: the messages stack under the headline like WhatsApp notifications; the pins still mark each shop */
  .hero3 .h3-wa { left: 16px !important; right: 16px; max-width: none; width: auto; font-size: 13px; transform: translateY(-14px) scale(.96); transform-origin: 50% 0; }
  .hero3 .h3-wa.on { transform: none; }
  .hero3 .h3-wa::after { display: none; }
  .hero3 .h3-wa.h3-out { max-width: none; }
}
/* frames: < dashes > at the bottom (Master, 3 Nov) */
.hero3 .h3-scroll-cue { display: none; }
.hero3 .h3-nav { position: absolute; z-index: 6; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 999px; background: rgba(8,13,26,.5);
  border: 1px solid rgba(210,228,255,.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity .5s; }
.hero3.ready .h3-nav { opacity: 1; }
.hero3 .h3-nav button { appearance: none; border: 0; background: none; padding: 0; margin: 0; color: var(--ink); cursor: pointer; }
.hero3 .h3-prev, .hero3 .h3-next { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; transition: background .2s, opacity .2s; }
.hero3 .h3-prev:hover, .hero3 .h3-next:hover { background: rgba(255,255,255,.1); }
.hero3 .h3-prev:disabled { opacity: .3; cursor: default; background: none; }
.hero3 .h3-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero3 .h3-dots { display: flex; align-items: center; }
.hero3 .h3-dots button { height: 28px; padding: 0 3px; display: grid; place-items: center; }
.hero3 .h3-dots i { display: block; width: 18px; height: 3px; border-radius: 3px; background: rgba(210,228,255,.32); transition: width .35s, background .35s; }
.hero3 .h3-dots button:hover i { background: rgba(210,228,255,.7); }
.hero3 .h3-dots button.on i { width: 34px; background: var(--amber); box-shadow: 0 0 10px rgba(255,191,71,.6); }
.hero3 .h3-nav button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 999px; }
@media (max-aspect-ratio: 4/5) {
  .hero3 .h3-nav { bottom: max(14px, env(safe-area-inset-bottom)); gap: 6px; padding: 4px; }
  .hero3 .h3-prev, .hero3 .h3-next { width: 32px; height: 32px; }
  .hero3 .h3-dots button { padding: 0 2px; } .hero3 .h3-dots i { width: 12px; } .hero3 .h3-dots button.on i { width: 24px; }
  .hero3 .h3-omh { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 52px); }
}
@media (prefers-reduced-motion: reduce) { .hero3 .h3-gc, .hero3 .h3-omh, .hero3 .h3-wa { transition: none; } .hero3 .h3-pin.bad i::after { animation: none; } }
.aios-home.present ~ .hero3, body.aios-present .hero3 { display: none; }
