/* BlinkFree — small custom layer that complements Tailwind.
   Keep heavy styling in Tailwind utilities; this file is only for
   global resets and effects that are awkward as utilities. */

/* ---- Self-hosted Inter (latin subset) ----
   Replaces the Google Fonts CDN: removes 2 DNS lookups + a render-blocking
   stylesheet with a 1-day cache, and serves fonts under our own 1-year cache.
   Only the weights the site actually uses (400/500/600/700/800). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/inter-800.woff2") format("woff2");
}

:root {
  --brand-purple: #7c3aed;
  --brand-pink: #ec4899;
}

html {
  -webkit-font-smoothing: antialiased;
}

/* Branded scrollbar (WebKit) */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0d0b16;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-purple), var(--brand-pink));
  border-radius: 999px;
}

/* Reusable gradient text helper if you prefer a class over utilities */
.text-gradient {
  background: linear-gradient(90deg, var(--brand-purple), var(--brand-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Inline Microsoft Bookings section ---- */
.booking-section {
  display: grid;
  grid-template-rows: 0fr;
  scroll-margin-top: 76px;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(124, 58, 237, 0.2), transparent 70%),
    #0d0b16;
  transition: grid-template-rows 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.booking-section--open {
  grid-template-rows: 1fr;
  border-top: 1px solid rgba(167, 139, 250, 0.25);
}

.booking-section__clip {
  min-height: 0;
  overflow: hidden;
}

.booking-section__inner {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 88px;
}

.booking-section__glow {
  position: absolute;
  top: 100px;
  left: 50%;
  width: 70%;
  height: 380px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.16);
  filter: blur(100px);
  pointer-events: none;
  transform: translateX(-50%);
}

.booking-section__header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto 32px;
  text-align: center;
}

.booking-section__intro {
  max-width: 800px;
  margin: 0 auto;
}

.booking-section__intro h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.booking-section__intro > p {
  max-width: 672px;
  margin: 16px auto 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.625;
}

.booking-section__intro h2 + p {
  margin-top: 16px;
}

.booking-section__intro a {
  color: #c4b5fd;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(196, 181, 253, 0.45);
  text-underline-offset: 3px;
}

.booking-section__intro a:hover {
  color: #e9d5ff;
  text-decoration-color: currentColor;
}

.booking-section__close {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.booking-section__close:hover,
.booking-section__close:focus-visible {
  border-color: rgba(167, 139, 250, 0.8);
  background: rgba(124, 58, 237, 0.2);
  outline: none;
  transform: rotate(4deg);
}

.booking-section__close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.booking-section__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55), 0 0 60px rgba(124, 58, 237, 0.14);
}

.booking-section__frame::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 3px;
  background: linear-gradient(90deg, #5b21b6, #7c3aed, #c026d3);
  content: "";
}

.booking-section__body {
  position: relative;
  height: min(820px, 80vh);
  min-height: 680px;
  background: #fff;
}

.booking-section__body iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  opacity: 0;
  transition: opacity 180ms ease;
}

.booking-section--loaded .booking-section__body iframe {
  opacity: 1;
}

.booking-section__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: #5b5568;
  font-size: 14px;
}

.booking-section__loading span {
  width: 34px;
  height: 34px;
  border: 3px solid #e9e5f0;
  border-top-color: var(--brand-purple);
  border-radius: 999px;
  animation: booking-spin 700ms linear infinite;
}

@keyframes booking-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .booking-section {
    scroll-margin-top: 64px;
  }
  .booking-section__inner {
    width: min(100% - 24px, 1180px);
    padding: 48px 0 56px;
  }
  .booking-section__header {
    margin-bottom: 24px;
    padding-top: 54px;
  }
  .booking-section__intro h2 {
    font-size: 30px;
  }
  .booking-section__close {
    width: 42px;
    height: 42px;
  }
  .booking-section__frame {
    border-radius: 16px;
  }
  .booking-section__body {
    height: 780px;
    min-height: 0;
  }
}

/* ---- "How It Works" gradient flowing arrows ---- */
.flow-arrow .chev {
  animation: chev-flow 1.6s ease-in-out infinite;
}
@keyframes chev-flow {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* ---- Cyber/tech faded pattern (replaces traditional grid) ---- */
/* Faint circuit-board traces + nodes — echoes "AI wired into your cameras". */
.cyber-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.8' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M0 24 H34 L46 36 H78'/%3E%3Cpath d='M46 36 V70 L58 82 V120'/%3E%3Cpath d='M120 50 H92 L80 38 V8'/%3E%3Cpath d='M120 96 H86 L74 84'/%3E%3Cpath d='M16 0 V22'/%3E%3Cpath d='M0 92 H22 L34 104 H64'/%3E%3Ccircle cx='88' cy='64' r='10'/%3E%3Ccircle cx='88' cy='64' r='4'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='0.9'%3E%3Ccircle cx='34' cy='24' r='2.4'/%3E%3Ccircle cx='78' cy='36' r='2.4'/%3E%3Ccircle cx='58' cy='82' r='2.4'/%3E%3Ccircle cx='80' cy='8' r='2.4'/%3E%3Ccircle cx='64' cy='104' r='2.4'/%3E%3Ccircle cx='22' cy='92' r='2.4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 132px 132px;
}

/* ---- Trusted-by logos: uniform white silhouettes on dark ---- */
.logo-mark {
  filter: brightness(0) invert(1);
  opacity: 0.65;
  transition: opacity 0.2s ease;
}
.logo-mark:hover {
  opacity: 1;
}

/* ---- Shared soft float ---- */
@keyframes soft-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---- Founder portrait: float + text wrap ----
   Floated box includes the stripe peek so wrapping text never underlaps.
   Peek is small (0.55rem) so photo and stripe overlap more. */
.founder-photo {
  float: left;
  position: relative;
  z-index: 1;
  width: 12.55rem;  /* 12rem photo + 0.55rem stripe peek */
  height: 15.55rem; /* 15rem photo + 0.55rem stripe peek */
  margin: 0 2rem 1.25rem 0;
}
.founder-photo__stripe {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12rem;
  height: 15rem;
  border-radius: 1rem;
  background: linear-gradient(to bottom right, #7c3aed, #c026d3);
}
.founder-photo__frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 12rem;
  height: 15rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: #17141f;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}
.founder-card__name {
  white-space: nowrap;
}
.founder-photo__frame picture,
.founder-photo__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.founder-card__clear {
  clear: both;
}
@media (max-width: 639px) {
  .founder-photo {
    float: none;
    display: block;
    margin: 0 auto 1.25rem;
  }
}

/* ---- Hero AI x CCTV animated graphic ---- */
@keyframes hero-dash { to { stroke-dashoffset: -40; } }
.hero-link { stroke-dasharray: 4 7; animation: hero-dash 1.6s linear infinite; }
.hero-bbox { stroke-dasharray: 7 6; animation: hero-dash 1.1s linear infinite; }

.hero-node { animation: hero-node 2.2s ease-in-out infinite; }
@keyframes hero-node { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

/* Per-camera field-of-view cone — gentle "scanning" breathe (works at any position) */
.hero-fov { animation: hero-fov 3.4s ease-in-out infinite; }
@keyframes hero-fov { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.55; } }

/* Detection sequence — subjects appear one after another (A, B, Weapon,
   Injured, Fire), all hold, then fade out together and repeat. Each subject's
   floor box + its pane readout share one class so they reveal in lockstep. */
.hd1, .hd2, .hd3, .hd4, .hd5 {
  animation-duration: 16s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.hd1 { animation-name: hd1; }
.hd2 { animation-name: hd2; }
.hd3 { animation-name: hd3; }
.hd4 { animation-name: hd4; }
.hd5 { animation-name: hd5; }
@keyframes hd1 { 0%, 3% { opacity: 0; transform: translateY(10px); } 10%, 84% { opacity: 1; transform: translateY(0); } 94%, 100% { opacity: 0; } }
@keyframes hd2 { 0%, 16% { opacity: 0; transform: translateY(10px); } 23%, 84% { opacity: 1; transform: translateY(0); } 94%, 100% { opacity: 0; } }
@keyframes hd3 { 0%, 29% { opacity: 0; transform: translateY(10px); } 36%, 84% { opacity: 1; transform: translateY(0); } 94%, 100% { opacity: 0; } }
@keyframes hd4 { 0%, 42% { opacity: 0; transform: translateY(10px); } 49%, 84% { opacity: 1; transform: translateY(0); } 94%, 100% { opacity: 0; } }
@keyframes hd5 { 0%, 55% { opacity: 0; transform: translateY(10px); } 62%, 84% { opacity: 1; transform: translateY(0); } 94%, 100% { opacity: 0; } }

.hero-cone {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: hero-cone 5s ease-in-out infinite alternate;
}
@keyframes hero-cone {
  0% { transform: rotate(-9deg); opacity: 0.3; }
  50% { opacity: 0.5; }
  100% { transform: rotate(9deg); opacity: 0.3; }
}

.hero-radar {
  transform-box: fill-box;
  transform-origin: center;
  animation: hero-radar 3s ease-out infinite;
}
@keyframes hero-radar {
  0% { transform: scale(0.25); opacity: 0.7; }
  100% { transform: scale(2.6); opacity: 0; }
}

.hero-scanline { animation: hero-scan 4.5s ease-in-out infinite alternate; }
/* Travel matches the cropped floor plan (bottom empty Entrance strip removed) */
@keyframes hero-scan { 0% { transform: translateY(0); } 100% { transform: translateY(280px); } }

.hero-chip { animation: soft-float 5s ease-in-out infinite; }

.hero-fire {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: hero-fire 1.1s ease-in-out infinite alternate;
}
@keyframes hero-fire {
  0% { transform: scale(1, 0.92); opacity: 0.85; }
  100% { transform: scale(0.94, 1.12); opacity: 1; }
}

.hero-alert { animation: hero-alert 1s ease-in-out infinite; }
@keyframes hero-alert {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* ---- Investor market-trajectory chart ---- */
/* Bars + trend line draw ONCE on load and stay put (no reset). A traveling
   pulse (SVG animateMotion) keeps drawing the eye up the growth curve. */
.inv-bar {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: inv-grow 1.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes inv-grow {
  0% { transform: scaleY(0); opacity: 0.3; }
  100% { transform: scaleY(1); opacity: 1; }
}
.inv-trend {
  stroke-dasharray: 540;
  stroke-dashoffset: 540;
  animation: inv-draw 2.1s ease-out 1.6s both;
}
@keyframes inv-draw {
  to { stroke-dashoffset: 0; }
}

/* ---- Partnership CTA animated visuals ---- */
.cta-icon { animation: soft-float 4.5s ease-in-out infinite; }

.cta-orb { animation: cta-orb 8s ease-in-out infinite; }
@keyframes cta-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -14px) scale(1.1); }
}

.cta-scan { animation: cta-scan 6s ease-in-out infinite; }
@keyframes cta-scan {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(420px); opacity: 0; }
}

/* ---- "CCTV, Re-Imagined" card mini-scenes ----
   Four compact animated illustrations, one per value card. They reuse the
   hero visual grammar (flowing dashed links, pulsing nodes, radar rings,
   scanline sweep, blinking alert) so the section stays on-brand. */
.rc-link { stroke-dasharray: 4 6; animation: hero-dash 1.5s linear infinite; }
.rc-node { animation: hero-node 2.2s ease-in-out infinite; }

/* Card 1/2 alternating "either place" glow (cloud vs on-prem, any camera) */
.rc-alt { animation: rc-alt 4s ease-in-out infinite; }
@keyframes rc-alt { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* Card 3 live scanline sweep (scoped to the ~88px mini view) */
.rc-scan { animation: rc-scan 3.2s ease-in-out infinite alternate; }
@keyframes rc-scan { 0% { transform: translateY(0); } 100% { transform: translateY(54px); } }

/* Card 3 locked-on detection box */
.rc-bbox { stroke-dasharray: 6 5; animation: hero-dash 1.1s linear infinite; }

/* Card 3/4 radar ping (transform-origin center) */
.rc-radar { transform-box: fill-box; transform-origin: center; animation: rc-radar 3s ease-out infinite; }
@keyframes rc-radar { 0% { transform: scale(0.3); opacity: 0.7; } 100% { transform: scale(2.4); opacity: 0; } }

/* Card 3 alert chip blink */
.rc-alert { animation: hero-alert 1s ease-in-out infinite; }

/* Card 2 deployment toggle: knob slides between CLOUD and ON-PREM, and the
   two destinations light up in lockstep, so only ONE is ever active. */
.rc-knob { transform-box: fill-box; animation: rc-knob 4.4s ease-in-out infinite; }
@keyframes rc-knob { 0%, 42% { transform: translateX(0); } 50%, 92% { transform: translateX(58px); } 100% { transform: translateX(0); } }
.rc-side-a { animation: rc-side-a 4.4s ease-in-out infinite; }
.rc-side-b { animation: rc-side-b 4.4s ease-in-out infinite; }
@keyframes rc-side-a { 0%, 42% { opacity: 1; } 50%, 92% { opacity: 0.16; } 100% { opacity: 1; } }
@keyframes rc-side-b { 0%, 42% { opacity: 0.16; } 50%, 92% { opacity: 1; } 100% { opacity: 0.16; } }

/* Card 3 full-height scanline sweeping the whole scene */
.rc-scan-full { animation: rc-scan-full 3.4s ease-in-out infinite alternate; }
@keyframes rc-scan-full { 0% { transform: translateY(0); } 100% { transform: translateY(72px); } }

/* Card 4 attribute chips reveal one-by-one, hold, then repeat */
.rc-chip { transform-box: fill-box; animation: rc-chip 5s ease-in-out infinite; }
@keyframes rc-chip {
  0%, 8% { opacity: 0; transform: translateX(-6px); }
  18%, 82% { opacity: 1; transform: translateX(0); }
  92%, 100% { opacity: 0; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
