/* ============================================================
   WinFlows — bespoke product-UI widgets (hero dashboard,
   floating cards, bento mini-widgets, phone screen).
   Base state = final/visible. Entrance is layered on via
   .reveal.in and disabled under body.no-anim (frozen clock).
   ============================================================ */

/* ---------- shared widget chrome ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  border: 1px solid var(--hairline);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.w-label { font-family: "JetBrains Mono"; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 1;
}
.pill .pdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ok   { color: #5fe3a1; background: rgba(95,227,161,.12); }
.pill--warn { color: #ffc46b; background: rgba(255,196,107,.12); }
.pill--bad  { color: #ff7a8a; background: rgba(255,122,138,.12); }
.pill--info { color: var(--blue-soft); background: rgba(125,172,255,.12); }

.live-badge {
  display: inline-flex; align-items: center; gap: 7px; font-family: "JetBrains Mono"; font-size: 11px;
  letter-spacing: .12em; color: #5fe3a1; padding: 4px 10px; border-radius: 999px;
  background: rgba(95,227,161,.1); border: 1px solid rgba(95,227,161,.2);
}
.live-badge .ld { width: 7px; height: 7px; border-radius: 50%; background: #5fe3a1;
  box-shadow: 0 0 0 0 rgba(95,227,161,.6); animation: live 2s infinite; }

/* ============================================================
   HERO — bespoke live dashboard
   ============================================================ */

.dash {
  position: relative; padding: 22px; border-radius: 20px; overflow: hidden;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(77,139,255,.10), transparent 50%),
    linear-gradient(180deg, rgba(12,17,33,.92), rgba(6,9,20,.92));
  display: grid; gap: 18px;
}
.dash-kpis > *, .dash-main > * { min-width: 0; }
.dash-top { display: flex; align-items: center; justify-content: space-between; }
.dash-title { font-family: "Space Grotesk"; font-weight: 600; font-size: 18px; }
.dash-title small { display: block; font-family: "Manrope"; font-weight: 500; font-size: 12px; color: var(--muted-2); margin-top: 2px; }

.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--hairline); }
.kpi .w-label { display: block; }
.kpi-val { font-family: "Space Grotesk"; font-weight: 600; font-size: 26px; margin-top: 8px; line-height: 1; }
.kpi-val .u { font-size: 14px; color: var(--muted); margin-left: 2px; }
.kpi-trend { margin-top: 8px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.kpi-trend.up { color: #5fe3a1; }
.kpi-trend.down { color: #ff7a8a; }

.dash-main { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; }

.dash-chart { padding: 16px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--hairline); position: relative; overflow: hidden; }
.dash-chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dash-chart svg { display: block; width: 100%; height: 130px; }
.chart-line { fill: none; stroke: url(#wfStroke); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 4px 10px rgba(77,139,255,.5)); }
.chart-dot { fill: #fff; filter: drop-shadow(0 0 6px rgba(125,172,255,.9)); }
.reveal.in .chart-line { stroke-dasharray: 600; animation: draw 1.8s var(--ease) forwards; }
@keyframes draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }

.dash-side { display: grid; gap: 8px; align-content: start; }
.ord-row { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 11px; border-radius: 11px; background: rgba(255,255,255,.025); border: 1px solid var(--hairline); }
.ord-id { font-family: "JetBrains Mono"; font-size: 12px; color: var(--blue-soft); }
.ord-row .sub { font-size: 11px; color: var(--muted-2); margin-top: 1px; }

/* floating glass cards around the hero frame */
.float-card {
  position: absolute; z-index: 4; padding: 13px 15px; border-radius: 14px; min-width: 150px;
  background: linear-gradient(180deg, rgba(18,24,44,.92), rgba(10,14,28,.92));
  border: 1px solid var(--hairline-strong); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; gap: 11px; will-change: transform;
}
.float-card .fc-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.float-card .fc-ic svg { width: 17px; height: 17px; }
.fc-ic--ok { background: rgba(95,227,161,.14); color: #5fe3a1; }
.fc-ic--up { background: rgba(125,172,255,.14); color: var(--blue-soft); }
.fc-ic--pin { background: rgba(155,123,255,.14); color: var(--violet); }
.float-card .fc-big { font-family: "Space Grotesk"; font-weight: 600; font-size: 17px; line-height: 1.1; }
.float-card .fc-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.float-card--a { top: 6%; left: -46px; animation: floaty 6s ease-in-out infinite; }
.float-card--b { top: -28px; right: -46px; animation: floaty 7s ease-in-out infinite .6s; }
.float-card--c { bottom: 7%; left: -38px; animation: floaty 6.5s ease-in-out infinite .3s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 920px) { .float-card { display: none; } }

/* ============================================================
   BENTO mini-widgets
   ============================================================ */
.wv { margin-top: 20px; border-radius: 14px; border: 1px solid var(--hairline);
  background: rgba(4,6,15,.5); padding: 16px; position: relative; overflow: hidden; }
.wv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

/* --- map widget --- */
.w-map { height: 196px; }
.w-map .mapgrid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(125,172,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(125,172,255,.07) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 78%); }
.w-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-route { fill: none; stroke: rgba(125,172,255,.4); stroke-width: 1.5; stroke-dasharray: 5 6; }
.map-pin { position: absolute; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%,-50%); }
.map-pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2.4s ease-out infinite; }
.map-pin.ok  { background: #5fe3a1; box-shadow: 0 0 10px rgba(95,227,161,.8); }
.map-pin.warn{ background: #ffc46b; box-shadow: 0 0 10px rgba(255,196,107,.8); }
.map-pin.info{ background: var(--blue-soft); box-shadow: 0 0 10px rgba(125,172,255,.8); }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.4); opacity: 0; } }
.map-truck { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #fff; transform: translate(-50%,-50%);
  box-shadow: 0 0 10px #fff; offset-path: path("M 20 150 C 90 60, 180 200, 300 90"); offset-distance: 0%; }
.reveal.in .map-truck { animation: drive 5s linear infinite; }
@keyframes drive { to { offset-distance: 100%; } }

/* --- bars widget --- */
.w-bars { display: flex; align-items: flex-end; gap: 9px; height: 150px; padding-top: 8px; margin-bottom: 20px; }
.bar { flex: 1; border-radius: 6px 6px 3px 3px; height: var(--h); align-self: flex-end;
  background: linear-gradient(180deg, var(--blue-soft), rgba(77,139,255,.25)); position: relative; }
.bar.hot { background: linear-gradient(180deg, #7fe4ee, rgba(47,217,230,.3)); box-shadow: 0 0 20px rgba(47,217,230,.5); }
.bar::after { content: attr(data-d); position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 9px; color: var(--muted-2); }
.reveal.in .bar { animation: grow .9s var(--ease) backwards; transform-origin: bottom; }
.reveal.in .bar:nth-child(2){animation-delay:.06s}.reveal.in .bar:nth-child(3){animation-delay:.12s}
.reveal.in .bar:nth-child(4){animation-delay:.18s}.reveal.in .bar:nth-child(5){animation-delay:.24s}
.reveal.in .bar:nth-child(6){animation-delay:.3s}.reveal.in .bar:nth-child(7){animation-delay:.36s}
.reveal.in .bar:nth-child(8){animation-delay:.42s}
@keyframes grow { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

/* --- route / list shared rows --- */
.w-rows { display: grid; gap: 8px; }
.r-row { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 13px; border-radius: 11px; background: rgba(255,255,255,.025); border: 1px solid var(--hairline);
  position: relative; overflow: hidden; }
.r-row .r-id { font-family: "JetBrains Mono"; font-size: 12px; color: var(--blue-soft); }
.r-row .r-name { font-size: 13px; }
.r-row > div:first-child { min-width: 0; }
.r-row .r-name, .r-row .r-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-row .pill { flex-shrink: 0; }
.r-row .r-sub { font-size: 11px; color: var(--muted-2); margin-top: 1px; }
.r-row.sweep::before { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(125,172,255,.12), transparent); }
.reveal.in .r-row.sweep::before { animation: sweep 3.2s ease-in-out infinite; }
@keyframes sweep { 0%{transform:translateX(-100%)} 60%,100%{transform:translateX(100%)} }

/* --- cost trend widget --- */
.w-cost { position: relative; }
.w-cost .cost-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.cost-big { font-family: "Space Grotesk"; font-weight: 600; font-size: 30px; }
.cost-down { color: #5fe3a1; font-size: 13px; font-weight: 600; }
.w-cost svg { display: block; width: 100%; height: 92px; }
.cost-area { fill: url(#wfCostFill); opacity: .9; }
.cost-stroke { fill: none; stroke: #5fe3a1; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 4px 8px rgba(95,227,161,.4)); }
.reveal.in .cost-stroke { stroke-dasharray: 400; animation: draw2 1.6s var(--ease) forwards; }
@keyframes draw2 { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }

/* progress ring */
.ring { --p: 0.98; width: 78px; height: 78px; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring .ring-bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 7; }
.ring .ring-fg { fill: none; stroke: url(#wfStroke); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 220; stroke-dashoffset: calc(220 - 220 * var(--p)); }
.reveal.in .ring .ring-fg { animation: ringfill 1.6s var(--ease) backwards; }
@keyframes ringfill { from { stroke-dashoffset: 220; } }
.ring-wrap { position: relative; display: inline-grid; place-items: center; }
.ring-num { position: absolute; font-family: "Space Grotesk"; font-weight: 600; font-size: 18px; }

/* ============================================================
   PHONE (mobile section, bespoke screen)
   ============================================================ */
.device {
  width: 296px; border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #1a2236, #0a0e1c); border: 1px solid var(--hairline-strong);
  box-shadow: 0 50px 130px -30px rgba(77,139,255,.45), inset 0 1px 0 rgba(255,255,255,.08);
  position: relative;
}
.device::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 22px; background: #05070f; border-radius: 999px; z-index: 3; }
.device-screen { border-radius: 32px; overflow: hidden; background: #060912; padding: 30px 16px 18px; position: relative; min-height: 500px; }
.scr-top { display: flex; align-items: center; justify-content: space-between; margin: 8px 2px 16px; }
.scr-title { font-family: "Space Grotesk"; font-weight: 600; font-size: 16px; }
.scr-card { border-radius: 14px; border: 1px solid var(--hairline); background: rgba(255,255,255,.03); padding: 13px; margin-bottom: 10px; }
.scr-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.scr-row > span:first-child { white-space: nowrap; }
.scr-bar { height: 7px; border-radius: 999px; background: rgba(255,255,255,.08); margin-top: 11px; overflow: hidden; }
.scr-bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad-blue); width: var(--w,60%); }
.reveal.in .scr-bar i { animation: barw 1.2s var(--ease) backwards; }
@keyframes barw { from { width: 0; } }
.scr-cat { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 11px; }
.scr-cat .sq { width: 14px; height: 14px; border-radius: 4px; background: rgba(95,227,161,.8); flex-shrink: 0; }
.scr-cat .scr-cat-n { margin-left: auto; color: var(--muted-2); white-space: nowrap; }
.scr-cat span:not(.sq):not(.scr-cat-n) { white-space: nowrap; }

/* ============================================================
   SHOWCASE — browser frame, laptop frame, auto-scroll, tabs
   ============================================================ */

/* browser chrome */
.browser { position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--hairline); background: #0a0e1c; box-shadow: var(--shadow-lg); }
.glowframe { position: relative; border-radius: 18px; padding: 1.5px; }
.glowframe::before { content: ""; position: absolute; inset: 0; border-radius: 18px; padding: 1.5px;
  background: conic-gradient(from var(--gfang, 0deg), #4d8bff, #2fd9e6, #9b7bff, #4d8bff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7;
  pointer-events: none; animation: gfspin 9s linear infinite; }
@property --gfang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes gfspin { to { --gfang: 360deg; } }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: rgba(255,255,255,.04); border-bottom: 1px solid var(--hairline); }
.browser-dots { display: flex; gap: 7px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser-dots i:nth-child(1){ background:#ff5f57 } .browser-dots i:nth-child(2){ background:#febc2e } .browser-dots i:nth-child(3){ background:#28c840 }
.browser-url { flex: 1; max-width: 360px; margin: 0 auto; display: flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 8px; background: rgba(4,6,15,.7); border: 1px solid var(--hairline);
  font-family: "JetBrains Mono"; font-size: 12px; color: var(--muted); }
.browser-url svg { width: 12px; height: 12px; color: #5fe3a1; }
.browser-url .browser-fav { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0;
  display: block; filter: drop-shadow(0 0 5px rgba(77,139,255,.35)); }

.browser-view { position: relative; --vh: 600px; height: var(--vh); overflow: hidden; background: #060912; }
.scroll-shot { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease); }
.scroll-shot.active { opacity: 1; visibility: visible; }
.scroll-shot img { width: 100%; display: block; will-change: transform; }
.scroll-shot.active img { animation: autoscroll var(--as, 26s) ease-in-out infinite; }
.browser-view:hover .scroll-shot.active img { animation-play-state: paused; }
@keyframes autoscroll {
  0%, 7%   { transform: translateY(0); }
  50%, 57% { transform: translateY(min(0px, calc(-100% + var(--vh)))); }
  100%     { transform: translateY(0); }
}
/* scroll hint cursor */
.browser-view::after { content: ""; position: absolute; right: 14px; bottom: 14px; width: 5px; height: 46px;
  border-radius: 4px; background: linear-gradient(180deg, rgba(125,172,255,.6), transparent);
  opacity: .5; pointer-events: none; }

/* tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  font-family: "Manrope"; font-weight: 600; font-size: 14px; color: var(--muted);
  background: var(--panel); border: 1px solid var(--hairline); cursor: pointer;
  transition: color .25s, background .25s, border-color .25s, transform .25s var(--ease); }
.tab:hover { color: var(--text); transform: translateY(-2px); border-color: var(--hairline-strong); }
.tab.active { color: #04060f; background: var(--grad-blue); border-color: transparent; box-shadow: 0 8px 26px -8px rgba(47,160,230,.55); }
.tab .tdot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; }

/* laptop frame for video */
.laptop { max-width: 1000px; margin: 0 auto; }
.laptop-lid { position: relative; border-radius: 18px; padding: 14px; z-index: 2;
  background: linear-gradient(160deg, #232b3e, #0b0f1c); border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-lg), 0 0 90px -20px rgba(77,139,255,.5); }
.laptop-screen { position: relative; border-radius: 9px; overflow: hidden; background: #04060d; }
.laptop-screen video, .laptop-screen img { width: 100%; display: block; }
.laptop-cam { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px;
  border-radius: 50%; background: #1b2233; z-index: 3; }
.laptop-base { position: relative; z-index: 1; height: 16px; width: 116%; left: -8%; margin-top: -2px;
  border-radius: 0 0 16px 16px; background: linear-gradient(180deg, #2b3346, #11141f);
  box-shadow: 0 22px 40px -18px rgba(0,0,0,.8); }
.laptop-base::after { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 110px; height: 7px; border-radius: 0 0 9px 9px; background: #0a0d16; }
.video-badge { position: absolute; top: 16px; right: 16px; z-index: 4; }

/* feature cards (3D + map) */
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feat { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lg); background: #060912; transition: transform .45s var(--ease), border-color .45s; }
.feat:hover { transform: translateY(-4px); border-color: var(--hairline-strong); }
.feat--wide { grid-column: 1 / -1; }
.feat-media { position: relative; overflow: hidden; }
.feat-media img, .feat-media video { width: 100%; display: block; }
.reveal.in .feat-media img { animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.01); } to { transform: scale(1.06); } }
/* sheen sweep across feature media */
.feat-media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 36%, rgba(255,255,255,.13) 50%, transparent 64%);
  transform: translateX(-130%); }
.reveal.in .feat-media::after { animation: sheen 6.5s ease-in-out infinite; animation-delay: var(--shd, 0s); }
@keyframes sheen { 0%, 72%, 100% { transform: translateX(-130%); } 86% { transform: translateX(130%); } }
.feat-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 24px 22px;
  background: linear-gradient(0deg, rgba(4,6,13,.95) 18%, rgba(4,6,13,.55) 55%, transparent); }
.badge3d { display: inline-flex; align-items: center; gap: 6px; font-family: "JetBrains Mono";
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-soft); white-space: nowrap;
  padding: 4px 9px; border-radius: 999px; background: rgba(125,172,255,.12); border: 1px solid rgba(125,172,255,.25); margin-bottom: 10px; }
.feat-cap h3 { font-family: "Space Grotesk"; font-weight: 600; font-size: 22px; }
.feat-cap p { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 520px; }

/* split feature (video + text panel) */
.feat-split { display: grid; grid-template-columns: 1.3fr 1fr; align-items: stretch; }
.feat-media--video { position: relative; }
.feat-media--video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge3d--corner { position: absolute; top: 16px; right: 16px; z-index: 3; margin: 0; white-space: nowrap;
  background: rgba(4,6,13,.72); backdrop-filter: blur(8px); }
.feat-panel { padding: 38px 36px; display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid var(--hairline); background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.feat-panel .badge3d { align-self: flex-start; margin-bottom: 14px; white-space: nowrap; }
.feat-panel h3 { font-family: "Space Grotesk"; font-weight: 600; font-size: 27px; line-height: 1.1; }
.feat-panel > p { color: var(--muted); font-size: 16px; margin-top: 14px; }
.feat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--hairline); font-size: 13px; font-weight: 600; color: var(--text); }
.chip svg { width: 15px; height: 15px; color: var(--blue-soft); }
.feat-note { color: var(--muted-2); font-size: 13px; margin-top: 18px; }
@media (max-width: 760px) {
  .feat-split { grid-template-columns: 1fr; }
  .feat-panel { border-left: none; border-top: 1px solid var(--hairline); }
}

@media (max-width: 900px) {
  .feats { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .browser-view { --vh: 440px; }
  .browser-url { display: none; }
}

/* ============================================================
   ANYWHERE — globe + orbit + iPhone (control from anywhere)
   ============================================================ */
.anywhere-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.anywhere-copy .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: "JetBrains Mono";
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-soft);
  padding: 7px 14px; border-radius: 999px; background: rgba(125,172,255,.1); border: 1px solid rgba(125,172,255,.22); }
.anywhere-copy h2 { font-size: clamp(34px, 4.6vw, 56px); margin-top: 22px; line-height: 1.04; }
.anywhere-copy h2 .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.anywhere-copy p.lead { color: var(--muted); font-size: 19px; margin-top: 22px; max-width: 520px; }
.anywhere-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.anywhere-pills .ap { display: inline-flex; align-items: center; gap: 9px; padding: 11px 17px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--hairline); font-weight: 600; font-size: 14px; }
.anywhere-pills .ap svg { width: 17px; height: 17px; color: var(--cyan); }

/* stage */
.globe-stage { position: relative; height: 600px; display: grid; place-items: center; }
.globe-stage::before { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(77,139,255,.28), transparent 62%); filter: blur(40px); }

/* globe sphere */
.globe { position: relative; width: 380px; height: 380px; border-radius: 50%; overflow: hidden;
  background:
    radial-gradient(circle at 32% 28%, rgba(125,172,255,.55), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(47,217,230,.35), transparent 55%),
    radial-gradient(circle at 50% 50%, #0e1830, #060c1a 75%);
  box-shadow: inset -28px -28px 70px rgba(0,0,0,.7), inset 18px 18px 60px rgba(77,139,255,.22),
    0 0 80px -8px rgba(77,139,255,.5); border: 1px solid rgba(125,172,255,.2); }
/* longitudes — rotating texture */
.globe-tex { position: absolute; inset: 0; border-radius: 50%; opacity: .55;
  background-image: repeating-linear-gradient(90deg, transparent 0 28px, rgba(125,172,255,.22) 28px 29px);
  background-size: 200px 100%; animation: globespin 18s linear infinite; }
.globe-tex2 { position: absolute; inset: 0; border-radius: 50%; opacity: .4;
  background-image: repeating-linear-gradient(0deg, transparent 0 34px, rgba(125,172,255,.16) 34px 35px); }
@keyframes globespin { to { background-position: 200px 0; } }
.globe-shine { position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, rgba(255,255,255,.28), transparent 40%); pointer-events: none; }

/* location pings on globe */
.geo { position: absolute; z-index: 4; }
.geo .pin { width: 11px; height: 11px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 12px 2px rgba(47,217,230,.8); position: relative; }
.geo .pin::after { content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--cyan); opacity: .8; animation: ping 2.2s ease-out infinite; animation-delay: var(--pd, 0s); }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }

/* orbit rings (3D) */
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(125,172,255,.22);
  width: 520px; height: 520px; transform-style: preserve-3d; }
.orbit--1 { transform: rotateX(74deg) rotateZ(0deg); animation: orbz 16s linear infinite; }
.orbit--2 { width: 470px; height: 470px; transform: rotateX(68deg) rotateZ(60deg); border-color: rgba(47,217,230,.2); animation: orbz 22s linear infinite reverse; }
@keyframes orbz { to { transform: rotateX(74deg) rotateZ(360deg); } }
.orbit .sat { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 14px 3px rgba(125,172,255,.9); }

/* iPhone overlapping the globe */
.iphone { position: absolute; right: 4%; bottom: 2%; z-index: 6; width: 232px; border-radius: 40px; padding: 9px;
  background: linear-gradient(160deg, #20283c, #090d18); border: 1px solid var(--hairline-strong);
  box-shadow: 0 60px 130px -28px rgba(0,0,0,.8), 0 0 70px -10px rgba(77,139,255,.5), inset 0 1px 0 rgba(255,255,255,.08);
  animation: phonefloat 6s ease-in-out infinite; }
@keyframes phonefloat { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(-2deg); } }
.iphone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 20px; background: #05070f; border-radius: 999px; z-index: 5; }
.iphone-screen { border-radius: 32px; overflow: hidden; background: #060912; padding: 28px 13px 14px; position: relative; min-height: 440px; }
.signal-arc { position: absolute; z-index: 5; pointer-events: none; }

@media (max-width: 980px) {
  .anywhere-grid { grid-template-columns: 1fr; gap: 10px; }
  .globe-stage { height: 540px; }
}
@media (max-width: 560px) {
  .globe { width: 280px; height: 280px; }
  .globe-stage { height: 480px; }
  .globe-stage::before { width: 380px; height: 380px; }
  .orbit { width: 360px; height: 360px; }
  .orbit--1 { width: 360px; height: 360px; } .orbit--2 { width: 320px; height: 320px; }
  .iphone { width: 208px; bottom: 0; left: 50%; right: auto; margin-left: -104px; }
  .iphone-screen { min-height: 380px; padding: 26px 12px 13px; }
}

/* ---------- mobile layout fixes (overflow / scaling) ---------- */
.tap-fs { position: absolute; z-index: 6; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: none; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  font-family: "Manrope"; font-weight: 600; font-size: 12px; white-space: nowrap; color: #04060f;
  background: rgba(255,255,255,.9); backdrop-filter: blur(6px); pointer-events: none; }
.laptop { position: relative; }
@media (max-width: 760px) {
  .tap-fs { display: inline-flex; }
  /* laptop frame: 116%-wide base caused horizontal overflow -> page zoom-out */
  .laptop-base { width: 100%; left: 0; }
  .laptop-lid { padding: 9px; }
  /* video card: when split stacks, give the media a real height */
  .feat-split { grid-template-columns: 1fr; }
  .feat-media--video { aspect-ratio: 16 / 10; }
  .feat-media--video video { height: 100%; }
  .feat-panel { padding: 26px 22px; }
  .feat-panel h3 { font-size: 22px; }
  /* dashboards browser: comfortable height, hide hover-only hint */
  .browser-view { --vh: 420px; }
  .tabs { gap: 7px; }
  .tab { padding: 9px 14px; font-size: 13px; }
  /* anywhere copy spacing */
  .anywhere-copy p.lead { font-size: 17px; }
  .anywhere-pills .ap { font-size: 13px; padding: 10px 14px; }
  /* shorter auto-scroll so even the shortest dashboard never exposes background */
  .browser-view { --vh: 320px; }
  /* hero dashboard: clamp every row so nothing spills past the rounded frame */
  .dash { overflow: hidden; }
  .dash-main { grid-template-columns: 1fr; }
  .dash-side, .ord-row { min-width: 0; }
  .ord-row > div:first-child { min-width: 0; }
  .ord-row .ord-id, .ord-row .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ord-row .pill { flex-shrink: 0; }
  .dash-chart { min-width: 0; }
  .dash-chart svg, .dash-chart canvas { width: 100% !important; height: auto; }
  /* phone screen widget: keep labels inside the screen */
  .scr-row, .scr-cat { min-width: 0; }
  .scr-row > span:first-child { overflow: hidden; text-overflow: ellipsis; }
  .scr-row .pill, .scr-cat .scr-cat-n, .scr-cat .sq { flex-shrink: 0; }
  .scr-cat span:not(.sq):not(.scr-cat-n) { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}
@media (max-width: 380px) {
  .browser-view { --vh: 280px; }
  .globe { width: 240px; height: 240px; }
  .iphone { width: 188px; margin-left: -94px; }
  .orbit, .orbit--1 { width: 300px; height: 300px; } .orbit--2 { width: 270px; height: 270px; }
}
