/* Product pages (PMINI, PMAXI). Loaded after styles.css and reuses its tokens. */

:root {
  /* brand palette only: light blue, white and black (Figma + brochure) */
  --tint: #EEF5FF;
  --tint-2: #DCEAFE;
  --line: rgba(34, 34, 35, .1);
  --shadow-blue: rgba(45, 127, 253, .22);
  --diagram-halo: #E6F0FE;
}
:root[data-theme="dark"] {
  --tint: #1E1E20;
  --tint-2: #232326;
  --shadow-blue: rgba(0, 0, 0, .5);
  --diagram-halo: #212124;
}

/* ---------- Product sub navigation ---------- */

.p-subnav {
  position: sticky; top: 72px; z-index: 40;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.p-subnav__inner { display: flex; align-items: center; gap: 32px; height: 56px; }
.p-subnav__name { font: 600 18px/1 var(--font-display); letter-spacing: .02em; color: var(--ink); }
.p-subnav__links { display: flex; gap: 4px; margin-inline-end: auto; overflow-x: auto; scrollbar-width: none; }
.p-subnav__links::-webkit-scrollbar { display: none; }
.p-subnav__links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.p-subnav__links a:hover { color: var(--ink); }
.p-subnav__links a.is-current { color: var(--ink); background: rgba(45, 127, 253, .1); }
.p-subnav .btn { height: 38px; padding: 0 18px; font-size: 14px; }

/* ---------- Hero ---------- */

.p-hero {
  position: relative; overflow: hidden;
  margin-top: -176px; padding: 236px 0 96px;
  background:
    radial-gradient(70% 80% at 78% 42%, #FFFFFF 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #F4F8FD 0%, #E3EEFC 100%);
}
:root[data-theme="dark"] .p-hero {
  background: radial-gradient(70% 80% at 78% 42%, rgba(45, 127, 253, .22) 0%, transparent 60%), linear-gradient(180deg, #19191A 0%, #1E1E20 100%);
}
.p-hero::after { /* soft floor line under the product */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.p-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 24px; }
/* centred hero (PMINI page in Figma): blue name, grey-gradient tagline, drone in flight below */
.p-hero--center { padding-bottom: 40px; }
.p-hero__center { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.p-hero--center .p-hero__title { margin-top: 0; font-weight: 500; font-size: clamp(76px, 8vw, 116px); line-height: 1; letter-spacing: -.01em; }
.p-hero--center .p-hero__tagline {
  margin-top: 18px; font: 500 clamp(32px, 4.3vw, 62px)/1.1 var(--font-display);
  background: linear-gradient(90deg, var(--muted) 0%, var(--ink) 22%, var(--ink) 78%, var(--muted) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.p-hero--center .p-hero__text { max-width: 640px; margin-top: 22px; font-size: 18px; }
.p-hero--center .p-hero__cta { justify-content: center; margin-top: 28px; }
.p-hero__fly { width: min(1230px, 100%); height: auto; margin-top: 24px; animation: p-float 7s ease-in-out infinite; }
.p-hero__flight { aspect-ratio: 1600 / 620; background: transparent; background-image: none !important; overflow: visible; }
.p-hero__flight > video, .p-hero__flight > img { object-fit: contain; }
.p-hero__flight > video { visibility: hidden; }
.p-hero__flight.has-video > video { visibility: visible; }
.p-hero__flight.has-video > img { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .p-hero__fly { animation: none; } }
.p-eyebrow { font: 600 13px/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.p-hero__title {
  margin-top: 14px;
  font: 700 clamp(76px, 10.5vw, 156px)/.9 var(--font-display); letter-spacing: -.03em;
  background: linear-gradient(100deg, var(--blue) 0%, var(--sky) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.p-hero__title small { display: block; margin-top: 10px; font-size: .28em; font-weight: 500; letter-spacing: 0; -webkit-text-fill-color: var(--ink); }
.p-hero__tagline { margin-top: 22px; font: 500 clamp(24px, 2.3vw, 32px)/1.2 var(--font-display); color: var(--ink); }
.p-hero__text { margin-top: 16px; max-width: 470px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.p-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 22%, transparent); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.p-hero__media { position: relative; margin-inline-end: calc(-1 * var(--gutter) - 6%); }
.p-hero__media img { width: 100%; height: auto; animation: p-float 7s ease-in-out infinite; }
.p-hero__media--fit { margin-inline-end: 0; } /* complete render, no need to bleed off the edge */
.p-hero__note { position: absolute; inset-inline-end: calc(var(--gutter) + 8%); bottom: -6px; font-size: 12px; color: var(--ink-2); opacity: .8; }
@keyframes p-float { 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .p-hero__media img { animation: none; } }

/* ---------- Key numbers ---------- */

.p-stats { position: relative; z-index: 2; margin-top: -24px; }
.p-stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius); background: var(--card);
  box-shadow: 0 0 0 1px var(--blue-100), 0 30px 60px -40px var(--shadow-blue);
}
.p-stat { padding: 30px 28px 28px; }
.p-stat + .p-stat { border-inline-start: 1px solid var(--blue-100); }
.p-stat__value {
  display: block; font: 600 clamp(34px, 3.4vw, 48px)/1 var(--font-display); letter-spacing: -.02em;
  background: linear-gradient(100deg, var(--blue), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.p-stat__label { display: block; margin-top: 10px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }

/* ---------- Sections ---------- */

.p-section { padding: 140px 0; }
.p-section--tight { padding-top: 96px; }
.p-section--tint { overflow: hidden; background: linear-gradient(180deg, var(--tint) 0%, var(--tint-2) 100%); }
.p-section--tint + .p-section--tint { padding-top: 40px; background: linear-gradient(180deg, var(--tint-2) 0%, var(--tint) 100%); }
.p-head { max-width: 760px; margin-bottom: 64px; }
.p-head--center { max-width: 880px; margin-left: auto; margin-right: auto; text-align: center; }
.p-kicker { font: 600 13px/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.p-title { margin-top: 14px; font: 500 clamp(34px, 3.9vw, 56px)/1.12 var(--font-display); letter-spacing: -.01em; }
.p-lead { margin-top: 18px; font-size: 19px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Feature tiles ---------- */

.p-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-tiles--4 { grid-template-columns: repeat(4, 1fr); }
.p-stats__grid + .p-tiles { margin-top: 16px; }
.p-tile {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(180deg, #F6F9FE 0%, #EAF2FD 100%); box-shadow: inset 0 0 0 1px var(--blue-100);
}
:root[data-theme="dark"] .p-tile { background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%); box-shadow: inset 0 0 0 1px var(--line);
}
.p-tile__media { display: grid; place-items: center; height: 240px; padding: 24px; }
.p-tile__media img { width: auto; max-width: 100%; height: 100%; object-fit: contain; }
.p-tile__media--icon span {
  display: grid; place-items: center; width: 112px; height: 112px; border-radius: 32px;
  background: linear-gradient(140deg, var(--sky), var(--blue)); box-shadow: 0 24px 40px -20px rgba(45, 127, 253, .7);
}
.p-tile__media--icon img { width: 112px; height: 112px; filter: brightness(0) invert(1); }
.p-tile__body { padding: 0 28px 30px; }
.p-tile__tag { font: 600 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.p-tile__title { margin-top: 10px; font: 500 26px/1.2 var(--font-display); color: var(--ink); }
.p-tile__text { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.p-tile--text .p-tile__body { padding-top: 30px; }

/* ---------- Dark showcase with tabs ---------- */

.showcase { display: grid; gap: 28px; }
.showcase__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.showcase__tab {
  height: 42px; padding: 0 18px; border: 0; border-radius: 999px;
  font: 500 15px/1 var(--font-body); color: var(--ink-2); background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: color .2s ease, background-color .2s ease;
}
.showcase__tab:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--blue-200); }
.showcase__tab[aria-selected="true"] { color: #fff; background: linear-gradient(115deg, var(--sky), var(--blue)); box-shadow: none; }
.showcase__stage {
  position: relative; aspect-ratio: 1232 / 640; overflow: hidden; border-radius: 28px;
  background:
    radial-gradient(75% 90% at 62% 40%, #FFFFFF 0%, rgba(255, 255, 255, .18) 55%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, #E4F0FF 0%, var(--blue-200) 100%);
  box-shadow: inset 0 0 0 1px var(--blue-100);
}
:root[data-theme="dark"] .showcase__stage {
  background: radial-gradient(75% 90% at 62% 40%, rgba(45, 127, 253, .2) 0%, transparent 70%), linear-gradient(180deg, #232326 0%, #1A1A1C 100%);
  box-shadow: inset 0 0 0 1px var(--line);
}
:root[data-theme="dark"] .showcase__stage::before { opacity: .12; }
.showcase__stage::before { /* faint grid floor */
  content: ""; position: absolute; inset: 45% -10% -30%;
  background:
    linear-gradient(rgba(255, 255, 255, .55) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255, 255, 255, .55) 1px, transparent 1px) 0 0 / 64px 64px;
  transform: perspective(700px) rotateX(62deg); transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: linear-gradient(180deg, #000, transparent 80%);
}
/* the PMINI rear render is cut at its bottom edge, so it sits on the bottom of the stage */
.showcase__img { position: absolute; inset-inline-end: 5%; bottom: -1px; width: 60%; height: auto; }
.showcase__img--center { inset-inline-end: 6%; bottom: 50%; width: 58%; transform: translateY(50%); }
.showcase__panel { position: absolute; inset: 0; padding: 34px 38px; pointer-events: none; }
.showcase__panel[hidden] { display: none; }
.showcase__label { display: flex; align-items: center; gap: 12px; font: 500 26px/1.2 var(--font-display); color: var(--ink); }
.showcase__chip { padding: 5px 10px; border-radius: 999px; font: 500 12px/1 var(--font-body); color: var(--blue); background: var(--card); }
.showcase__text {
  position: absolute; inset-inline-start: 38px; bottom: 34px; max-width: 420px;
  font-size: 17px; line-height: 1.5; color: var(--ink-2);
}

/* ---------- Phone carousel ---------- */

.phones { position: relative; }
.phones__stage { position: relative; height: clamp(260px, 32vw, 460px); perspective: 1600px; }
.phone {
  position: absolute; left: 50%; top: 50%; width: min(62%, 760px);
  padding: 10px 14px; border-radius: 38px; background: var(--ink);
  box-shadow: inset 0 0 0 2px #4F4F52, 0 50px 90px -40px rgba(45, 127, 253, .45);
  transform: translate(-50%, -50%) scale(.6); opacity: 0;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .5s ease, filter .5s ease;
  cursor: pointer;
}
.phone::before { /* camera cut-out on the short side */
  content: ""; position: absolute; inset-inline-start: 6px; top: 50%; width: 4px; height: 44px; border-radius: 4px;
  transform: translateY(-50%); background: #4F4F52;
}
.phone img { width: 100%; height: auto; border-radius: 28px; }
.phone[data-pos="0"] { transform: translate(-50%, -50%) scale(1); opacity: 1; z-index: 3; cursor: default; }
.phone[data-pos="-1"] { transform: translate(-100%, -50%) scale(.62) rotateY(18deg); opacity: .5; z-index: 2; filter: saturate(.6); }
.phone[data-pos="1"] { transform: translate(0%, -50%) scale(.62) rotateY(-18deg); opacity: .5; z-index: 2; filter: saturate(.6); }
.phones__caption { min-height: 108px; margin-top: 34px; text-align: center; }
.phones__title { font: 500 26px/1.25 var(--font-display); color: var(--ink); }
.phones__text { max-width: 620px; margin: 10px auto 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.phones__nav { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 20px; }
.phones__dots { display: flex; gap: 8px; }
.phones__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(45, 127, 253, .25); transition: width .3s ease, background-color .3s ease; }
.phones__dot[aria-current="true"] { width: 26px; background: var(--blue); }

/* ---------- Journey (assembly to autonomy) ---------- */

.journey { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.journey::before { /* connecting line behind the step numbers */
  content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px;
  background: linear-gradient(90deg, var(--blue-100), var(--blue), var(--blue-100));
}
.journey li { position: relative; text-align: center; }
.journey li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 18px;
  font: 600 18px/1 var(--font-display); color: #fff; background: linear-gradient(140deg, var(--sky), var(--blue));
  box-shadow: 0 0 0 6px var(--bg), 0 18px 30px -16px rgba(45, 127, 253, .8);
}
.journey strong { display: block; font: 500 21px/1.25 var(--font-display); color: var(--ink); }
.journey span { display: block; max-width: 220px; margin: 8px auto 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }

/* ---------- Chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 14px; border-radius: 999px;
  font-size: 16px; color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(140deg, var(--sky), var(--blue)); }

/* ---------- Split block ---------- */

.p-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 64px; }
.p-split--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.p-split--rev > :first-child { order: 2; }
.p-split__media { overflow: hidden; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--blue-100), 0 40px 80px -50px var(--shadow-blue); }
.p-split__media img { width: 100%; height: auto; }
.p-split .chips { margin-top: 28px; }
.p-split .btn { margin-top: 32px; }
.p-mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.p-mini-card { padding: 20px 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.p-mini-card strong { display: block; font: 600 20px/1.2 var(--font-display); color: var(--ink); }
.p-mini-card span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }

/* ---------- Diagram (PMAXI) ---------- */

.diagram { margin-top: 8px; }
.diagram svg { width: 100%; height: auto; }
.diagram .node rect { fill: var(--card); stroke: var(--line); }
.diagram .node--core rect { fill: url(#coreFill); stroke: none; }
.diagram .node text { fill: var(--ink); font: 600 17px var(--font-display); }
.diagram .node.node--core text { fill: #fff; }
.diagram .node.node--core .sub { fill: rgba(255, 255, 255, .85); }
.diagram .node .sub { fill: var(--ink-2); font: 400 13px var(--font-body); }
.diagram .link { stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 5 6; fill: none; animation: dash 1.6s linear infinite; }
.diagram .link-label { paint-order: stroke; stroke: var(--diagram-halo); stroke-width: 8px; stroke-linejoin: round; fill: var(--blue); font: 500 13px var(--font-body); }
@keyframes dash { to { stroke-dashoffset: -22; } }
@media (prefers-reduced-motion: reduce) { .diagram .link { animation: none; } }
.links-table { width: 100%; margin-top: 40px; border-collapse: collapse; font-size: 16px; }
.links-table th, .links-table td { padding: 16px 0; text-align: start; vertical-align: top; border-top: 1px solid var(--line); }
.links-table th { width: 34%; padding-inline-end: 24px; font: 600 16px/1.4 var(--font-display); color: var(--ink); }
.links-table td { color: var(--ink-2); line-height: 1.5; }

/* ---------- In the box ---------- */

.box-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.box-item { padding: 22px 20px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.box-item strong { display: block; font: 600 17px/1.3 var(--font-display); color: var(--ink); }
.box-item span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.box-item::before {
  content: ""; display: block; width: 22px; height: 22px; margin-bottom: 14px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.6 10.3l2.9 2.9 5.9-6.1' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

/* ---------- Specs ---------- */

.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 48px; }
.spec-group { padding-top: 26px; border-top: 1px solid var(--line); }
.spec-group h3 { font: 600 20px/1.3 var(--font-display); color: var(--ink); }
.spec-group dl { display: grid; grid-template-columns: minmax(140px, 40%) 1fr; gap: 12px 24px; margin: 18px 0 26px; }
.spec-group dt { font-size: 15px; color: var(--ink-2); }
.spec-group dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.specs__note { margin-top: 28px; font-size: 14px; color: var(--ink-2); }

/* ---------- Call to action ---------- */

.p-cta {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  min-height: 380px; padding: 64px; border-radius: 32px; color: #fff;
  background: radial-gradient(80% 120% at 85% 15%, rgba(147, 197, 253, .9) 0%, rgba(147, 197, 253, 0) 60%), linear-gradient(120deg, var(--blue) 0%, var(--sky) 100%);
}
.p-cta__title { font: 500 clamp(32px, 3.4vw, 48px)/1.15 var(--font-display); }
.p-cta__text { margin-top: 14px; max-width: 460px; font-size: 18px; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.p-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.p-cta .btn--light { background: #fff; color: #222223; }
.p-cta .btn--outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.p-cta .btn--outline-light:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.p-cta__img { position: absolute; inset-inline-end: -6%; bottom: -12%; width: 58%; height: auto; filter: drop-shadow(0 30px 40px rgba(34, 34, 35, .35)); }
.p-cta__img--center { inset-inline-end: 4%; bottom: 50%; width: 44%; transform: translateY(50%); }

/* ---------- Gallery of placeholders ---------- */

.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 16px; }
.bento > * { aspect-ratio: auto; height: 100%; }
.bento > :first-child { grid-column: span 2; grid-row: span 2; }
.bento > .media-ph--wide { grid-column: span 2; }
.bento > :first-child .media-ph__play { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
.bento > :first-child .media-ph__title { font-size: 26px; }
.bento > :not(:first-child) .media-ph__play, .bento > :not(:first-child) .media-ph__icon { top: 34%; width: 54px; height: 54px; margin: -27px 0 0 -27px; }
.bento > :not(:first-child) .media-ph__play::before { width: 16px; height: 18px; }

/* ---------- Illustrated animation cards ---------- */

.anim-card {
  position: relative; overflow: hidden; border-radius: 28px;
  background:
    radial-gradient(75% 90% at 50% 40%, #FFFFFF 0%, rgba(255, 255, 255, .25) 60%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, #E4F0FF 0%, var(--blue-200) 100%);
  box-shadow: inset 0 0 0 1px var(--blue-100);
}
.anim-card > svg { display: block; width: 100%; height: auto; }
.anim-card__tag {
  position: absolute; inset-inline-start: 22px; top: 20px; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px; font: 600 12px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue); background: var(--chip-solid);
}
.anim-card__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: tag-blink 1.6s ease-in-out infinite; }
.anim-card__tag--plain::before { content: none; }
@keyframes tag-blink { 50% { opacity: .25; } }

.p-checks { display: grid; gap: 14px; margin-top: 28px; }
.p-checks li { position: relative; padding-inline-start: 34px; font-size: 17px; line-height: 1.45; color: var(--ink); }
.p-checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.6 10.3l2.9 2.9 5.9-6.1' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.p-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* guards: rings fly in and snap on, then a bump test against a wall */
.rotor .prop { transform-box: fill-box; transform-origin: center; animation: spin .3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.guard__ring {
  transform-box: fill-box; transform-origin: center; opacity: 0;
  transform: translate(var(--gx), var(--gy)) scale(1.15) rotate(-25deg);
  transition: transform .85s cubic-bezier(.3, 1.45, .5, 1) var(--d), opacity .35s ease var(--d);
}
.is-on .guard__ring { opacity: 1; transform: none; }
.guard__pulse { transform-box: fill-box; transform-origin: center; opacity: 0; }
.is-on .guard__pulse { animation: snap-pulse .9s ease-out calc(var(--d) + .6s) both; }
@keyframes snap-pulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
.guards__move { transform-box: view-box; }
.is-on .guards__move { animation: bump 6.5s cubic-bezier(.45, 0, .55, 1) 2.2s infinite; }
@keyframes bump { 0%, 38% { transform: translateX(0); } 50% { transform: translateX(30px); } 54% { transform: translateX(16px); } 72%, 100% { transform: translateX(0); } }
.guards__impact { opacity: 0; transform-box: fill-box; transform-origin: left center; }
.is-on .guards__impact { animation: impact 6.5s ease-out 2.2s infinite; }
@keyframes impact { 0%, 48% { opacity: 0; transform: scaleX(.4); } 50% { opacity: 1; transform: none; } 62%, 100% { opacity: 0; transform: scaleX(1.2); } }
.guards__label { opacity: 0; transition: opacity .4s ease 1.6s; }
.is-on .guards__label { opacity: 1; }

/* camera: rotates 90 degrees from forward to down, the preview follows */
.cam { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; }
.cam__pivot { transform-origin: 452px 196px; animation: cam-turn 9s ease-in-out infinite; }
@keyframes cam-turn { 0%, 30% { transform: rotate(0deg); } 45%, 80% { transform: rotate(90deg); } 95%, 100% { transform: rotate(0deg); } }
.cam__screen { position: relative; overflow: hidden; border-radius: 22px; background: var(--ink); box-shadow: 0 30px 60px -36px rgba(45, 127, 253, .5); }
.cam__screen svg { display: block; width: 100%; height: 100%; }
.cam__view { position: absolute; inset: 0; }
.cam__view--fwd { animation: cam-fwd 9s ease-in-out infinite; }
.cam__view--down { animation: cam-down 9s ease-in-out infinite; }
@keyframes cam-fwd { 0%, 33% { opacity: 1; } 40%, 86% { opacity: 0; } 93%, 100% { opacity: 1; } }
@keyframes cam-down { 0%, 33% { opacity: 0; } 40%, 86% { opacity: 1; } 93%, 100% { opacity: 0; } }
.cam__detect { transform-box: fill-box; transform-origin: center; animation: cam-detect 9s ease-out infinite; }
@keyframes cam-detect { 0%, 46% { opacity: 0; transform: scale(1.25); } 52%, 82% { opacity: 1; transform: none; } 86%, 100% { opacity: 0; } }
.cam__hud { position: absolute; inset-inline: 14px; top: 14px; display: flex; justify-content: flex-end; font: 600 12px/1 var(--font-body); color: var(--ink); }
.cam__mode span { padding: 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .88); }
.cam__mode { height: 26px; }
.cam__mode { position: relative; }
.cam__mode span { position: absolute; inset-inline-end: 0; white-space: nowrap; }
.cam__mode span:first-child { animation: cam-fwd 9s ease-in-out infinite; }
.cam__mode span:last-child { animation: cam-down 9s ease-in-out infinite; }
.cam__caption { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* Real product models occupy the existing illustration frames. */
.model-view { position: relative; min-width: 0; }
.model-view > canvas, .model-fallback { display: block; width: 100%; height: 100%; }
.model-view > canvas { position: absolute; inset: 0; }
.model-fallback { object-fit: contain; transition: opacity .25s; }
.has-model > .model-fallback { opacity: 0; }
.model-view--card { width: 100%; aspect-ratio: 560 / 340; }
.model-view--card .model-fallback { position: absolute; inset: 0; padding: 40px; }
.model-view--showcase { position: absolute; inset-inline-end: 4%; top: 24%; width: 62%; height: 60%; }
.model-view--explode { width: 100%; max-width: 1080px; aspect-ratio: 1080 / 720; max-height: calc(100vh - 170px); }
.model-view--explode > .model-fallback { position: absolute; inset: 0; padding: 12%; }
.model-view--explode .model-callouts { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; pointer-events: none; }
.model-callouts path { fill: none; stroke: var(--blue); stroke-width: 1.2; }
.model-callouts circle { fill: var(--blue); }
.model-label { position: absolute; inset-inline-start: 64%; width: 35%; transform: translateY(-50%); opacity: 0; pointer-events: none; }
.model-label strong { display: block; font: 600 17px/1.25 var(--font-body); color: var(--ink); }
.model-label span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
[dir="rtl"] .model-label { inset-inline-start: auto; inset-inline-end: 64%; text-align: start; }
.has-camera-model .cam__view { visibility: hidden; }
.cam__screen > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cam__detection { display: none; position: absolute; border: 3px solid var(--sky); border-radius: 10px; }
.cam__detection > span { position: absolute; bottom: calc(100% + 7px); inset-inline-start: 0; padding: 6px 12px; border-radius: 8px; background: var(--sky); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.has-camera-model[data-marker-visible="true"] .cam__detection { display: block; }
.cam__reticle { display: none; position: absolute; inset-inline: 0; margin-inline: auto; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); }
.cam__reticle::before, .cam__reticle::after { content: ""; position: absolute; background: #4F4F52; }
.cam__reticle::before { inset-inline-start: 8px; top: 0; width: 2px; height: 18px; }
.cam__reticle::after { inset-inline-start: 0; top: 8px; width: 18px; height: 2px; }
.has-camera-model[data-camera-mode="forward"] .cam__reticle { display: block; }
.has-camera-model .cam__mode span { animation: none; }
.has-camera-model[data-camera-mode="forward"] .cam__mode span:last-child,
.has-camera-model[data-camera-mode="down"] .cam__mode span:first-child { opacity: 0; }
.has-camera-model[data-camera-mode="forward"] .cam__mode span:first-child,
.has-camera-model[data-camera-mode="down"] .cam__mode span:last-child { opacity: 1; }

@media (max-width: 720px) {
  .model-view--showcase { inset-inline-end: 0; top: auto; bottom: 5%; width: 100%; height: 60%; }
  .model-view--explode { aspect-ratio: 1; max-height: none; }
  .model-label, .model-view--explode .model-callouts { display: none; }
  .model-view--card { aspect-ratio: 1.3; }
}

/* sensor HUD cards inside the PMINI hardware showcase */
.hud {
  position: absolute; inset-inline-end: 30px; top: 30px; width: 236px; padding: 14px 16px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -24px rgba(45, 127, 253, .55), inset 0 0 0 1px rgba(255, 255, 255, .9);
}
:root[data-theme="dark"] .hud {
  background: rgba(34, 34, 35, .86); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .7), inset 0 0 0 1px var(--line);
}
.hud__title { display: flex; justify-content: space-between; font: 600 12px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.hud__title b { font-weight: 600; color: var(--ink); letter-spacing: 0; text-transform: none; }
.hud__body { position: relative; height: 92px; margin-top: 12px; overflow: hidden; border-radius: 12px; background: var(--card-2); }
.hud__body svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hud--flow .hud__body { background: radial-gradient(circle, rgba(45, 127, 253, .45) 1.6px, transparent 2px) 0 0 / 14px 14px, var(--card-2); animation: flow-drift 2.4s linear infinite; }
@keyframes flow-drift { to { background-position: 28px 14px, 0 0; } }
.hud-wave { animation: wave-scroll 3s linear infinite; }
@keyframes wave-scroll { to { transform: translateX(-220px); } }
.hud-gizmo { transform-origin: 110px 46px; animation: gizmo 4s ease-in-out infinite; }
@keyframes gizmo { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
.hud-bar { transform-box: fill-box; transform-origin: bottom; animation: baro 3.6s ease-in-out infinite; }
@keyframes baro { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(.85); } }
.hud-data { stroke-dasharray: 4 10; animation: data-flow .8s linear infinite; }
@keyframes data-flow { to { stroke-dashoffset: -14; } }
.hud-arc { transform-origin: 70px 20px; animation: cam-turn 9s ease-in-out infinite; }
.hud-shield { transform-box: fill-box; transform-origin: center; animation: shield 2.4s ease-in-out infinite; }
@keyframes shield { 50% { transform: scale(1.08); } }

/* sensor swap on PMAXI */
.sensors { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; }
.sensor-mod { opacity: 0; transform: translateY(-130px); transition: transform .75s cubic-bezier(.3, 1.35, .5, 1), opacity .35s ease; }
.sensor-mod.is-active { opacity: 1; transform: none; }
.sensor-click { transform-box: fill-box; transform-origin: center; opacity: 0; }
.is-click .sensor-click { animation: snap-pulse .8s ease-out .45s both; }
.sensor-link { stroke-dasharray: 5 9; animation: data-flow .9s linear infinite; }
.sensor-beam { animation: tag-blink 1.4s ease-in-out infinite; }
.readout {
  display: flex; flex-direction: column; padding: 28px; border-radius: 28px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.readout__tag { font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.readout__name { margin-top: 12px; font: 500 28px/1.2 var(--font-display); color: var(--ink); }
.readout__desc { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.readout__value { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 24px; font: 600 48px/1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.readout__value small { font-size: 18px; font-weight: 500; color: var(--ink-2); }
.readout__swatch { width: 30px; height: 30px; border-radius: 10px; align-self: center; box-shadow: inset 0 0 0 1px rgba(34, 34, 35, .1); }
.readout__chart { width: 100%; height: 90px; margin-top: 16px; }
.sensor-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.sensor-chips button {
  height: 42px; padding: 0 18px; border: 0; border-radius: 999px; font: 500 15px/1 var(--font-body);
  color: var(--ink-2); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: color .2s ease, background-color .2s ease;
}
.sensor-chips button:hover { color: var(--ink); }
.sensor-chips button[aria-pressed="true"] { color: #fff; background: linear-gradient(115deg, var(--sky), var(--blue)); box-shadow: none; }

/* exploded view on PMAXI: layers move apart with --p (0 assembled, 1 exploded) */
.explode { --p: 0; position: relative; height: 210vh; }
.explode__stage { position: sticky; top: 140px; display: grid; place-items: center; }
.explode__stage svg { display: block; width: 100%; max-width: 1080px; height: auto; max-height: calc(100vh - 170px); }
.ex-layer { transform: translateY(calc(var(--p) * var(--dy))); }
/* assembled drone sits in the middle; it slides left to make room for the labels */
.ex-all { transform: translateX(calc((1 - var(--p)) * 170px)); }
.ex-label { opacity: calc((var(--p) - .5) * 2.4); }
.ex-label text { font-family: var(--font-display); }
.ex-label .t { fill: var(--ink); font-size: 19px; font-weight: 600; }
.ex-label .s { fill: var(--ink-2); font-size: 14px; font-family: var(--font-body); }
.ex-label line { stroke: var(--blue); stroke-width: 1.4; }
.ex-label circle { fill: var(--blue); }
.explode__hint { margin-top: 6px; font-size: 14px; color: var(--ink-2); text-align: center; opacity: calc(1 - var(--p) * 2); }
.explode__legend { display: none; }

/* film dialog */
.film { width: min(1100px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; border-radius: 28px; background: transparent; overflow: visible; }
.film::backdrop { background: rgba(34, 34, 35, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.film .media-ph { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); }
.film__close {
  position: absolute; inset-inline-end: -8px; top: -52px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
  background: var(--card); color: var(--ink);
}
.film__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.btn--play { gap: 10px; }
.btn--play::before { content: ""; width: 10px; height: 12px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .p-hero { margin-top: -144px; padding-top: 180px; }
  .p-hero__inner, .p-split, .p-split--rev { grid-template-columns: 1fr; }
  .p-split--rev > :first-child { order: 0; }
  .p-hero__media { margin: 8px calc(-1 * var(--gutter) - 12%) 0 8%; }
  .p-tiles, .p-tiles--4 { grid-template-columns: 1fr 1fr; }
  .box-grid { grid-template-columns: repeat(3, 1fr); }
  .journey { grid-template-columns: 1fr; gap: 28px; }
  .journey::before { inset-inline-start: 27px; inset-inline-end: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .journey li { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; text-align: start; }
  .journey li::before { grid-row: span 2; margin: 0; }
  .journey span { margin: 6px 0 0; max-width: none; }
  .specs { grid-template-columns: 1fr; }
  .p-cta { grid-template-columns: 1fr; padding: 48px 40px 220px; }
  .p-cta__img { width: 70%; inset-inline-end: -10%; bottom: -10%; }
  .p-cta__img--center { inset-inline-end: 15%; bottom: 24px; width: 70%; transform: none; }
  .phone { width: 78%; }
}

@media (max-width: 720px) {
  .p-subnav__links { display: none; }
  .p-subnav__inner { justify-content: space-between; }
  .p-section { padding: 96px 0; }
  .p-head { margin-bottom: 40px; }
  .p-stats__grid { grid-template-columns: 1fr 1fr; }
  .p-stat:nth-child(3) { border-inline-start: 0; }
  .p-stat:nth-child(n + 3) { border-top: 1px solid var(--blue-100); }
  .p-stat { padding: 22px 18px; }
  .p-tiles, .p-tiles--4 { grid-template-columns: 1fr; }
  .p-tile__media { height: 200px; }
  .showcase__stage { aspect-ratio: 4 / 5; }
  .showcase__img { width: 100%; inset-inline-end: 0; }
  .showcase__panel { padding: 22px; }
  .showcase__label { font-size: 21px; }
  .showcase__text { position: static; margin-top: 10px; font-size: 15px; }
  .showcase__img--center { inset-inline-end: 0; bottom: 6%; width: 100%; transform: none; }
  .phone { width: 92%; padding: 6px 9px; border-radius: 26px; }
  .phone img { border-radius: 20px; }
  .phone[data-pos="-1"], .phone[data-pos="1"] { opacity: 0; }
  .phones__stage { height: 52vw; }
  .p-mini-cards { grid-template-columns: 1fr; }
  .box-grid { grid-template-columns: 1fr 1fr; }
  .spec-group dl { grid-template-columns: 1fr; gap: 2px; }
  .spec-group dd { margin-bottom: 10px; }
  .diagram { display: none; }
  .p-cta { padding: 40px 24px 200px; border-radius: 24px; }
}

.phone[data-pos="2"], .phone[data-pos="-2"] { pointer-events: none; }
@media (max-width: 720px) { .phone[data-pos="-1"], .phone[data-pos="1"] { pointer-events: none; } }

@media (max-width: 1024px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .cam, .sensors { grid-template-columns: 1fr; }
  .cam__screen { aspect-ratio: 16 / 10; }
  .explode { height: auto; }
  .explode__stage { position: static; }
}
@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento > * { aspect-ratio: 16 / 10; height: auto; }
  .bento > :first-child, .bento > .media-ph--wide { grid-column: auto; grid-row: auto; }
  .hud { display: none; }
  .anim-card__tag { inset-inline-start: 14px; top: 14px; }
  .readout { padding: 22px; }
  .readout__value { font-size: 40px; }
  .ex-label { display: none; }
  /* labels are listed below instead, so the drone is centred and drawn larger */
  .explode__stage { overflow: hidden; }
  .explode__stage svg { width: 150%; max-width: none; max-height: none; margin-left: -4%; }
  .ex-all { transform: translateX(170px); }
  .explode__hint { display: none; }
  .explode__legend { display: grid; gap: 10px; margin-top: 20px; counter-reset: ex; }
  .explode__legend li { position: relative; padding-inline-start: 40px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
  .explode__legend li::before {
    counter-increment: ex; content: counter(ex); position: absolute; inset-inline-start: 0; top: -1px; display: grid; place-items: center; width: 26px; height: 26px;
    border-radius: 8px; font: 600 13px/1 var(--font-display); color: #fff; background: var(--blue);
  }
  .explode__legend strong { color: var(--ink); font-weight: 600; }
  .film__close { inset-inline-end: 0; top: -50px; }
}
