:root{
  /* ===== Premium 2026 SaaS palette ===== */
  --color-primary: #4F46E5;
  --color-secondary: #0EA5E9;
  --color-accent: #14B8A6;
  --color-bg: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-text: #0F172A;
  --color-muted: #475569;
  --color-border: rgba(15, 23, 42, 0.12);

  --primary-rgb: 79 70 229;
  --secondary-rgb: 14 165 233;
  --accent-rgb: 20 184 166;
  --teal-rgb: 14 165 233;
  --deep-rgb: 29 78 216;
  --aqua-rgb: 224 242 254;
  --navy-rgb: 15 23 42;

  /* legacy aliases for existing sections */
  --brand-navy: #0F172A;
  --brand-teal: var(--color-secondary);
  --brand-deep: #1D4ED8;
  --brand-aqua: #E0F2FE;

  --bg: var(--color-bg);
  --card: var(--color-surface);
  --text: var(--color-text);
  --muted: var(--color-muted);
  --line: var(--color-border);

  --primary: var(--color-primary);
  --primary2: var(--brand-deep);

  --font-heading: "Sora", "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;

  --radius: 20px;
  --shadow: 0 18px 40px rgba(var(--primary-rgb), .12);

  --ease: cubic-bezier(.2,.8,.2,1);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{ height:100%; }

/* --- RESPONSIVE RESET --- */
img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

body{
  margin:0;
  font-family: var(--font-body);
  background:
          radial-gradient(1200px 700px at 18% 0%, rgb(var(--teal-rgb) / .14), transparent 60%),
          radial-gradient(900px 650px at 86% 8%, rgb(var(--deep-rgb) / .10), transparent 55%),
          radial-gradient(900px 650px at 50% 105%, rgb(var(--aqua-rgb) / .25), transparent 55%),
          var(--bg);
  color:var(--text);
  line-height:1.6;
  overflow-x:hidden;
  width: 100%;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 38vmax;
  height: 38vmax;
  border-radius: 50%;
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
  animation: floatAmbient 18s ease-in-out infinite;
}

body::before {
  top: -12vmax;
  left: -10vmax;
  background: rgb(var(--teal-rgb) / .18);
}

body::after {
  bottom: -14vmax;
  right: -12vmax;
  background: rgb(var(--deep-rgb) / .15);
  animation-delay: -7s;
}

a{ color:inherit; text-decoration:none; }

.container{
  width: min(1120px, 92%);
  margin:0 auto;
}

/* ===================== NAV ===================== */
.nav{
  position:sticky;
  top:0;
  z-index:30;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom:1px solid var(--line);
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink: 0;
}

.brand-logo{
  height:42px;
  width:auto;
  object-fit:contain;
}

.nav-links{
  display:flex;
  gap:24px;
  color: rgba(15, 23, 42, .78);
  font-weight:700;
  font-size:14px;
}

.nav-links a{
  position: relative;
  opacity: .85;
  padding: 6px 0;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-deep));
  border-radius: 999px;
  opacity: 0;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-links a:hover {
  opacity: 1;
  color: var(--brand-deep);
}

.nav-links a:hover::after {
  width: 100%;
  opacity: 1;
}

.nav-cta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink: 0;
}

.hamburger{
  display:none;
  background:transparent;
  border:0;
  padding:8px;
  cursor:pointer;
  margin-left: 8px;
}

.hamburger span{
  display:block;
  width:22px;
  height:2px;
  background: rgba(15, 23, 42, .82);
  margin:5px 0;
  border-radius:10px;
}

.mobile-menu{
  display:none;
  border-top:1px solid var(--line);
  padding:14px 20px 18px;
  background: rgba(255,255,255,.98);
  gap:12px;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mobile-menu a{
  display:block;
  padding:10px 0;
  color: rgba(15, 23, 42, .86);
  font-weight:700;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ===================== BUTTONS ===================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:10px 14px;
  font-weight:800;
  font-size:14px;
  border:1px solid transparent;
  cursor:pointer;
  transition: transform .25s var(--ease), filter .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
  white-space: nowrap;
}

.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-deep));
  color:#fff;
  box-shadow: 0 14px 32px rgb(var(--teal-rgb) / .22);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(110deg, transparent 25%, rgb(255 255 255 / .35) 48%, transparent 68%);
  transform: translateX(-160%);
  transition: transform .8s var(--ease);
}

.btn-primary:hover{
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 18px 34px rgb(var(--primary-rgb) / .28);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-ghost{
  background: rgba(255,255,255,.88);
  border-color: rgba(var(--primary-rgb), .28);
  color: var(--brand-deep);
}

.btn-ghost:hover{
  transform: translateY(-2px);
  background: rgba(224,242,254,.72);
  border-color: rgba(var(--primary-rgb), .36);
}

/* ===================== TYPO HELPERS ===================== */
.h2{
  margin:0 0 8px;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 2.2vw, 2.3rem);
  letter-spacing:-.3px;
  color: var(--brand-navy);
  line-height: 1.2;
}

.p{
  margin:0;
  color: rgba(15, 23, 42, .70);
  font-weight:650;
  max-width: 72ch;
}

.grad{
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-deep));
  -webkit-background-clip: text;
  background-clip:text;
  color: transparent;
}

/* ===================== HERO (100vh) ===================== */
.hero.hero-100{
  min-height: calc(100vh - 64px);
  display:flex;
  align-items:center;
  position:relative;
  overflow:hidden;
  padding: 72px 0 56px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgb(var(--teal-rgb) / .08), rgb(var(--deep-rgb) / .07), transparent 55%);
  mix-blend-mode: screen;
  animation: auroraShift 12s linear infinite;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 0;
  opacity: 0.18;
  filter: blur(1px) grayscale(20%);
  pointer-events: none;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
          135deg,
          rgba(248, 250, 252, 0.9) 0%,
          rgba(224, 242, 254, 0.55) 45%,
          rgba(238, 242, 255, 0.85) 100%
  );
  background-size: 200% 200%;
  animation: gradientFloat 15s ease infinite;
  mix-blend-mode: overlay;
}

@keyframes gradientFloat {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-orb {
  position:absolute;
  border-radius:999px;
  filter: blur(34px);
  opacity: 0.45;
  will-change: transform;
  z-index: 2;
  pointer-events: none;
}

.orb1{
  width:520px; height:520px;
  left:-180px; top:-220px;
  background: rgb(var(--teal-rgb) / .18);
}

.orb2{
  width:560px; height:560px;
  right:-220px; top:-260px;
  background: rgb(var(--deep-rgb) / .14);
}

.hero-gridlines{
  position:absolute;
  inset:-2px;
  background:
          linear-gradient(to right, rgba(18,87,117,.10) 1px, transparent 1px),
          linear-gradient(to bottom, rgba(18,87,117,.10) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(700px 350px at 40% 30%, black 20%, transparent 65%);
  opacity: 0.06;
  z-index: 2;
  pointer-events: none;
}

.hero-wrap{
  position:relative;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:34px;
  align-items:center;
  z-index: 3;
}

.eyebrow{
  display:inline-flex;
  padding:6px 10px;
  border:1px solid rgba(18, 87, 117, .18);
  background: rgba(193,233,238,.40);
  border-radius:999px;
  color: rgba(15, 23, 42, .82);
  font-weight:800;
  font-size:13px;
  margin:0 0 14px;
  flex-wrap: wrap;
}

.hero-title{
  font-family: var(--font-heading);
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height:1.04;
  margin:0 0 14px;
  letter-spacing:-.8px;
  color: var(--brand-navy);
}

.hero-subtitle{
  margin:0 0 18px;
  color: rgba(15, 23, 42, .72);
  max-width: 60ch;
  font-weight:650;
}

.hero-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:18px 0 16px;
}

.hero-trust{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.pill{
  border:1px solid rgba(15, 23, 42, .12);
  background: rgba(255,255,255,.72);
  padding:8px 10px;
  border-radius:999px;
  color: rgba(15, 23, 42, .78);
  font-weight:800;
  font-size:13px;
}


/* Hero entrance micro-interactions for premium first impression */
.hero-copy > * {
  backface-visibility: hidden;
}

.hero-visual{
  position:relative;
  transform: translateZ(0);
  will-change: transform;
}

.glass-card{
  border-radius: calc(var(--radius) + 2px);
  background: rgba(255,255,255,.86);
  border:1px solid rgba(15, 23, 42, .12);
  box-shadow: var(--shadow);
  overflow:hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.glass-top{
  display:flex;
  align-items:center;
  gap:8px;
  padding:14px 14px 10px;
  border-bottom:1px solid rgba(15, 23, 42, .10);
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}

.video-container {
  flex: 1;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: oklab(100% 0 -0.00011 / 0.962);
}

.glass-inner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: videoFadeReveal 1.5s ease-out forwards;
  opacity: 0;
}

@keyframes videoFadeReveal {
  0% {
    opacity: 0;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.dot{ width:10px; height:10px; border-radius:999px; opacity:.95; }
.dot.red{ background:#ff5f57; }
.dot.yellow{ background:#febc2e; }
.dot.green{ background:#28c840; }

.glass-title{
  margin-left:6px;
  font-weight:900;
  letter-spacing:.2px;
  font-size:13px;
  color: rgba(15, 23, 42, .78);
}

.float-card{
  position:absolute;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: rgba(255,255,255,.60);
  box-shadow: 0 18px 50px rgba(18, 87, 117, .10);
  will-change: transform;
}

.f1{ width:120px; height:70px; right:-14px; top:46px; opacity:.55; }
.f2{ width:150px; height:90px; left:-18px; bottom:40px; opacity:.50; }

.hero-scrollhint{
  position:absolute;
  left:50%;
  bottom:16px;
  transform: translateX(-50%);
  display:flex;
  align-items:center;
  gap:10px;
  color: rgba(15, 23, 42, .55);
  font-weight:800;
  font-size:12px;
  letter-spacing:.25px;
}

.scroll-line{
  width:72px;
  height:2px;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(15,23,42,.12), rgba(15,23,42,.45), rgba(15,23,42,.12));
  opacity:.6;
}

/* ===================== SECTIONS ===================== */
.section{ padding: 68px 0; }

.section.subtle{
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head{ margin-bottom:22px; }

#features .section-head{
  position: relative;
  top: 75px;
}

/* ===================== FEATURE STAGES (scroll-driven) ===================== */
.feature-stage{
  padding: 84px 0;
  --p: 0;
}

.stage-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items:center;
}

.stage-kicker {
  margin: 0 0 12px;
  font-size: 45px;
  font-weight: 800;
  color: var(--brand-teal);
  letter-spacing: -0.01em;
  line-height: 1.2;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.stage-kicker span.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  filter: blur(4px);
  transition:
          transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
          opacity 0.6s linear,
          filter 0.6s ease-out;
  transition-delay: calc(var(--char-index) * 0.025s);
  will-change: transform, opacity, filter;
}

.stage-kicker.in span.char {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.stage-title{
  margin:0 0 10px;
  font-size: 26px;
  letter-spacing: -.35px;
  color: var(--brand-navy);
  position: relative;
  display: inline-block;
}

.stage-title::after,
.section-head .h2::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-8px;
  height:2px;
  width:100%;
  transform: scaleX(.08);
  transform-origin: left;
  background: linear-gradient(90deg, rgba(14,165,233,.0), rgba(14,165,233,.85), rgba(14,165,233,.0));
  opacity:.0;
  transition: transform .8s var(--ease), opacity .8s var(--ease);
}

.stage-title[data-reveal].in::after{
  transform: scaleX(1);
  opacity:1;
}
.section-head[data-reveal].in .h2::after{
  transform: scaleX(1);
  opacity:1;
}

.stage-text{
  margin:0 0 14px;
  color: rgba(15, 23, 42, .72);
  font-weight:650;
  max-width: 64ch;
}

.stage-points{
  margin:0;
  padding-left:18px;
  color: rgba(15, 23, 42, .72);
  font-weight:700;
}

.stage-points li{ margin:8px 0; }

.stage-copy{
  transform: translateY(calc((1 - var(--p)) * 18px));
  opacity: calc(.30 + (var(--p) * .70));
  transition: opacity .06s linear;
  will-change: transform, opacity;
}

.stage-media{
  position:relative;
}

.media-card{
  position: sticky;
  top: 108px;
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255,255,255,.90);
  border:1px solid rgba(15, 23, 42, .12);
  box-shadow: var(--shadow);
  overflow:hidden;
  transform:
          translateY(calc((1 - var(--p)) * 16px))
          scale(calc(.96 + (var(--p) * .04)));
  opacity: calc(.30 + (var(--p) * .70));
  will-change: transform, opacity;
}

.media-top{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 16px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, .10);
}

.media-dot{
  width:10px; height:10px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-deep));
  box-shadow: 0 0 0 8px rgb(var(--teal-rgb) / .14);
}

.media-label{
  font-weight:900;
  color: rgba(15, 23, 42, .78);
  font-size:13px;
  letter-spacing:.2px;
}

.media-body{ padding: 16px; }

.media-body-chart {
  padding: 10px;
  background: rgba(255,255,255,.9);
  overflow: hidden;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#activity-chart {
  width: 100%;
  height: 100%;
  border-radius: 0 0 16px 16px;
}

.highcharts-background {
  fill: transparent !important;
}

.highcharts-title {
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  fill: var(--brand-navy) !important;
}

.highcharts-axis-title, .highcharts-axis-labels {
  font-family: "Plus Jakarta Sans", sans-serif !important;
  fill: var(--muted) !important;
}

.admin-video-wrapper {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: transparent;
  animation: fadeAdminVideo 1.2s ease-out forwards;
}

.admin-video {
  width: 100%;
  height: auto;
  max-height: 280px;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(18, 36, 62, 0.12);
}

@keyframes fadeAdminVideo {
  from { opacity: 0; }
  to { opacity: 1; }
}


.timesheet-video-wrapper {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: transparent;
  animation: fadeTimesheetVideo 1.2s ease-out forwards;
}

.timesheet-video {
  width: 100%;
  height: auto;
  max-height: 280px;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(18, 36, 62, 0.12);
}

@keyframes fadeTimesheetVideo {
  from { opacity: 0; }
  to { opacity: 1; }
}


.sheet-row{
  display:grid;
  grid-template-columns: 52px 1fr 64px;
  gap:10px;
  align-items:center;
  padding:10px 0;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}
.sheet-row:last-child{ border-bottom: 0; }

.barline{
  height:8px;
  border-radius:999px;
  background: linear-gradient(90deg, rgb(var(--teal-rgb) / .25), rgb(var(--deep-rgb) / .18));
  position:relative;
  overflow:hidden;
}

.barline::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgb(var(--teal-rgb) / .85), rgb(var(--deep-rgb) / .75));
  transform: translateX(calc((-1 + var(--p)) * 30%));
  opacity: calc(.35 + (var(--p) * .65));
  will-change: transform, opacity;
}

.media-foot{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding: 0 16px 16px;
}

.chip{
  border-radius:999px;
  padding:8px 10px;
  border:1px solid rgba(15, 23, 42, .12);
  background: rgba(193,233,238,.35);
  font-weight:900;
  font-size:13px;
  color: rgba(15, 23, 42, .80);
}

.chip2{
  background: rgb(var(--teal-rgb) / .12);
  border-color: rgb(var(--teal-rgb) / .22);
}

.map-box{
  margin: 16px;
  height: 220px;
  border-radius: 16px;
  background: #e0f2fe;
  overflow: hidden;
  position: relative;
}

/* ===================== NEW: Maps & Geofencing Images Section ===================== */
.geo-images{
  margin-top: 56px;
  padding-top: 2px;
}

.section-gallery{
  margin-top: 18px;
  padding-top: 2px;
}

.geo-grid,
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}

.imghvr-reveal-left{
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .12);
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 30px rgba(18, 87, 117, .08);
  transform: translateZ(0);
}

.gallery-card:focus{
  outline: 2px solid rgba(0, 190, 201, 0.45);
  outline-offset: 3px;
}

.imghvr-reveal-left img{
  width:100%;
  height: 180px;
  object-fit: cover;
  display:block;
  transform: scale(1.01);
  transition: transform .55s var(--ease), filter .55s var(--ease);
  will-change: transform;
}

.imghvr-reveal-left figcaption{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:14px;
  background: linear-gradient(90deg, rgb(var(--deep-rgb) / .92), rgb(var(--teal-rgb) / .62));
  color:#fff;
  transform: translateX(-102%);
  transition: transform .55s var(--ease);
  will-change: transform;
  pointer-events:none;
}

.geo-cap-title{ font-weight:950; letter-spacing:-.2px; font-size:14px; }
.geo-cap-sub{ margin-top:2px; font-weight:750; font-size:12px; opacity:.92; }

.imghvr-reveal-left:hover figcaption,
.imghvr-reveal-left:focus figcaption,
.imghvr-reveal-left:focus-within figcaption{
  transform: translateX(0);
}

.imghvr-reveal-left:hover img,
.imghvr-reveal-left:focus-within img{
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.02);
}

@media (hover: none){
  .imghvr-reveal-left:hover figcaption{ transform: translateX(-102%); }
  .imghvr-reveal-left:hover img{ transform: scale(1.01); filter:none; }
}

/* ===================== ADMIN STORY (sticky) ===================== */
.admin-story{ padding-top: 72px; }

.admin-grid{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 22px;
  align-items:start;
  padding-top: 10px;
}

.admin-sticky{ position: relative; }

.admin-panel{
  position: sticky;
  top: 108px;
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255,255,255,.92);
  border:1px solid rgba(15, 23, 42, .12);
  box-shadow: var(--shadow);
  overflow:hidden;
  transform: translateY(calc((1 - var(--ap, 0)) * 16px)) scale(calc(.98 + (var(--ap, 0) * .02)));
  opacity: calc(.35 + (var(--ap, 0) * .65));
  will-change: transform, opacity;
}

.admin-top{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 16px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, .10);
}

.admin-hierarchy{ padding: 16px; }

.node{
  border-radius: 18px;
  border:1px solid rgba(15,23,42,.12);
  background: rgba(193,233,238,.28);
  padding: 14px;
}

.node-title{ font-weight:950; color: var(--brand-navy); letter-spacing:-.2px; }
.node-sub{ font-weight:800; color: rgba(15,23,42,.66); font-size: 12px; margin-top: 2px; }

.link{
  height: 18px;
  width: 2px;
  background: rgba(18,87,117,.22);
  margin: 12px auto;
  border-radius: 999px;
}

.node-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-metrics{
  margin-top: 14px;
  display:grid;
  gap: 10px;
}

.am{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px;
  border-radius: 16px;
  border:1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.85);
}
.am span{ font-weight:900; color: rgba(15,23,42,.70); }
.am strong{ font-weight:950; color: var(--brand-deep); }

.admin-copy{
  display:grid;
  gap: 18px;
  padding-top: 6px;
}

.admin-step{
  border-radius: calc(var(--radius) + 4px);
  padding: 18px;
  border:1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 28px rgba(18, 87, 117, .06);
  transform: translateY(calc((1 - var(--sp, 0)) * 14px));
  opacity: calc(.40 + (var(--sp, 0) * .60));
  will-change: transform, opacity;
}
.admin-step h3{ margin:0 0 8px; font-size: 18px; color: var(--brand-navy); }
.admin-step p{ margin:0; color: rgba(15,23,42,.72); font-weight:650; }

/* ===================== VIDEO ===================== */
.video-wrap{
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(15, 23, 42, .12);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  overflow:hidden;
  transform: translateY(calc((1 - var(--vp, 0)) * 18px)) scale(calc(.985 + (var(--vp, 0) * .015)));
  opacity: calc(.30 + (var(--vp, 0) * .70));
  will-change: transform, opacity;
}

.video-frame{
  background: rgba(193,233,238,.20);
  border-bottom: 1px solid rgba(15, 23, 42, .10);
}

.video{
  width:100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: contain;
  background-color: #000;
  border-radius: 0;
}

.video-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 16px;
}

.video-cta-title{ font-weight:950; color: var(--brand-navy); }
.video-cta-sub{ font-weight:650; color: rgba(15,23,42,.70); margin-top: 2px; }

/* ===================== CONTACT / CTA ===================== */
.cta{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:16px;
  padding: 18px;
  border-radius: calc(var(--radius) + 4px);
  background:
          radial-gradient(700px 300px at 10% 10%, rgb(var(--teal-rgb) / .12), transparent 55%),
          rgba(255,255,255,.90);
  border: 1px solid rgba(15, 23, 42, .12);
  box-shadow: 0 18px 40px rgba(18, 87, 117, .10);
}

.contact-list{
  display:grid;
  gap:10px;
  margin-top:12px;
  max-width: 420px;
}

.contact-item {
  border-radius: 16px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(15, 23, 42, .12);
  padding: 12px;
  transition:
          transform 0.3s var(--ease),
          box-shadow 0.3s var(--ease),
          border-color 0.3s var(--ease);
  cursor: default;
}

.contact-item:hover {
  transform: translateY(-5px);
  border-color: var(--brand-teal);
  box-shadow: 0 12px 24px rgba(44, 146, 159, 0.15);
}

.contact-item:hover .contact-value {
  color: var(--brand-navy);
}

.contact-label{ font-weight:900; font-size:12px; color: rgba(15, 23, 42, .62); }
.contact-value{ font-weight:900; font-size:14px; margin-top:2px; color: var(--brand-deep); }

.note{
  margin-top:12px;
  color: rgba(15, 23, 42, .70);
  font-weight:650;
  font-size:13px;
}

/* ===================== FORM ===================== */
.form{
  border-radius: var(--radius);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15, 23, 42, .12);
  padding: 14px;
  box-shadow: 0 10px 28px rgba(18, 87, 117, .06);
}

label{ display:block; margin-bottom:10px; }

label span{
  display:block;
  font-size:13px;
  color: rgba(15, 23, 42, .78);
  font-weight:900;
  margin-bottom:6px;
}

input, textarea{
  width:100%;
  border-radius: 12px;
  border:1px solid rgba(15, 23, 42, .14);
  background: rgba(255,255,255,.92);
  color: var(--text);
  padding: 10px 12px;
  outline:none;
  font-family: inherit;
  font-weight:700;
}

input:focus, textarea:focus {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 4px rgb(var(--teal-rgb) / .14);
  background: #ffffff;
  transform: scale(1.01);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field-error{
  min-height: 16px;
  margin: 6px 0 0;
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
}

input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 2px rgb(180 35 24 / .14);
}


.form-note{
  margin:10px 0 0;
  color: rgba(15, 23, 42, .60);
  font-weight:650;
  font-size:12px;
}

/* ===================== FOOTER ===================== */
.footer{
  padding: 30px 0;
  border-top: 1px solid rgba(15, 23, 42, .12);
  color: rgba(15, 23, 42, .70);
  background: linear-gradient(180deg, rgb(255 255 255 / .75), rgb(240 249 255 / .88));
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items: center;
  gap:16px;
  flex-wrap:wrap;
  font-weight:800;
  font-size:14px;
}

.footer-brand {
  display: grid;
  gap: 4px;
}

.footer-tagline {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  opacity: .9;
}

.footer-links{ display:flex; gap:14px; }
.footer a{ opacity:.85; transition: color .25s var(--ease), opacity .25s var(--ease), transform .25s var(--ease); }
.footer a:hover{ opacity:1; color: var(--brand-deep); transform: translateY(-2px); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 20px rgb(var(--navy-rgb) / .08);
}

.social-link svg {
  width: 19px;
  height: 19px;
  fill: rgba(15, 23, 42, .74);
  transition: fill .25s var(--ease);
}

.social-link:hover {
  border-color: transparent;
  transform: translateY(-3px) scale(1.03);
}

.social-link.whatsapp:hover { background: linear-gradient(135deg, #22C55E, #16A34A); }
.social-link.phone:hover { background: linear-gradient(135deg, #38BDF8, #2563EB); }
.social-link.email:hover { background: linear-gradient(135deg, #FB7185, #E11D48); }
.social-link.web:hover { background: linear-gradient(135deg, #A78BFA, #6D28D9); }
.social-link:hover svg { fill: #fff; }

/* ===================== REVEAL (IntersectionObserver-ready) ===================== */
[data-reveal]{
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: transform, opacity;
}

[data-reveal].in{
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-reveal="slide-up"] { transform: translate3d(0, 28px, 0); }
[data-reveal="slide-left"] { transform: translate3d(-28px, 10px, 0); }
[data-reveal="slide-right"] { transform: translate3d(28px, 10px, 0); }
[data-reveal="scale-in"] { transform: translate3d(0, 18px, 0) scale(.94); }

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  [data-reveal]{ transition: none; }
  .media-card, .admin-panel, .admin-step, .video-wrap, .hero-orb, .hero-visual, .float-card{
    transition:none !important;
    animation:none !important;
    transform:none !important;
    opacity:1 !important;
  }
  body::before,
  body::after,
  .hero-bg::after {
    animation: none !important;
  }
  .imghvr-reveal-left img,
  .imghvr-reveal-left figcaption{
    transition:none !important;
    transform:none !important;
  }
}

/* ===================== TYPING ANIMATION ===================== */
.hero-title .grad::after {
  content: '|';
  display: inline-block;
  margin-left: 2px;
  opacity: 1;
  color: var(--brand-teal);
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes floatAmbient {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -22px, 0); }
}

@keyframes auroraShift {
  0% { transform: translateX(-2%) scale(1); opacity: .45; }
  50% { transform: translateX(2%) scale(1.05); opacity: .72; }
  100% { transform: translateX(-2%) scale(1); opacity: .45; }
}

.hero-title .grad {
  display: inline-block;
  white-space: nowrap;
  vertical-align: bottom;
}

/* ===================== INFINITE MARQUEE (IPHONE 14 UPGRADE) ===================== */
.marquee-section {
  padding: 60px 0;
  background: linear-gradient(to bottom, var(--bg), rgba(193, 233, 238, 0.15));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.marquee-container {
  width: 100%;
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
  will-change: transform;
  padding: 20px 0;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

.m-item {
  flex: 0 0 auto;
  width: 240px;
  height: 485px;
  background-color: #1c1c1e;
  border-radius: 42px;
  border: 4px solid #4b5563;
  box-shadow:
          inset 0 0 0 2px #000000,
          0 0 0 1px #374151,
          0 25px 50px -12px rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 1;
  padding: 5px;
  box-sizing: border-box;
  cursor: pointer;
  animation: phoneFloat 6s ease-in-out infinite;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.m-item:nth-child(odd) { animation-delay: 0s; }
.m-item:nth-child(even) { animation-delay: 1.5s; }
.m-item:nth-child(3n) { animation-delay: 0.75s; }

.m-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 32px;
  background-color: #000;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

/*.m-item::after {*/
/*  content: '';*/
/*  position: absolute;*/
/*  top: 18px;*/
/*  left: 50%;*/
/*  transform: translateX(-50%);*/
/*  width: 70px;*/
/*  height: 20px;*/
/*  background-color: #000;*/
/*  border-radius: 14px;*/
/*  z-index: 10;*/
/*  pointer-events: none;*/
/*}*/

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.m-item:hover {
  border-color: var(--brand-teal);
  box-shadow:
          inset 0 0 0 2px #000,
          0 0 0 2px var(--brand-teal),
          0 40px 70px -15px rgba(44, 146, 159, 0.3);
  z-index: 10;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===================== LIGHTBOX POPUP ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.95);
  transition: transform 0.4s var(--ease);
  display: flex;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  padding: 4px;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

body.lightbox-open {
  overflow: hidden;
}

/* ===================== DEMO TITLE ===================== */
.demo-title {
  perspective: 1000px;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  display: block;
}

.demo-title .word {
  display: inline-block;
  margin-right: 0.25em;
  transform-origin: bottom center;
  transform: translateY(40px) rotateX(50deg);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.1), opacity 0.8s ease;
  transition-delay: calc(var(--word-index) * 0.12s);
  will-change: transform, opacity;
}

.demo-title.in .word {
  transform: translateY(0) rotateX(0);
  opacity: 1;
}

/* ===  HERO VIDEO REVEAL (GSAP Controlled States)  === */
#heroRevealVideo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transform: scale(0.92);
  filter: blur(10px);
}

.hero-wrap {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
}

/* ===================== MAP ENHANCEMENTS ===================== */
#orixaa-map {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  outline: none;
}

.map-box {
  padding: 0;
  background: #e0f2fe;
  overflow: hidden;
  position: relative;
}

.geofence-pulse {
  position: absolute;
  width: 100px;
  height: 100px;
  background: rgba(44, 146, 159, 0.15);
  border: 1px solid rgba(44, 146, 159, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 0 15px rgba(44, 146, 159, 0.2);
}

.geofence-core {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #2C929F;
  border: 2px solid #ffffff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.geofence-pulse::after {
  content: "";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  border-radius: 50%;
  border: 1px solid rgba(44, 146, 159, 0.6);
  animation: geoRipple 3s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes geoRipple {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ===================== EMOJI MARKER ENHANCEMENTS ===================== */
.emoji-pin {
  position: absolute;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 4px 12px rgba(18, 36, 62, 0.25));
  animation: pinFloat 3s ease-in-out infinite;
  z-index: 10;
}

@keyframes pinFloat {
  0%, 100% { transform: translate(-50%, -100%) translateY(0); }
  50% { transform: translate(-50%, -100%) translateY(-8px); }
}

.emoji-label {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%) translateY(-5px);
  background-color: #12243E;
  color: #4ef94e;
  padding: 5px 10px;
  border-radius: 6px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(18, 36, 62, 0.3);
  pointer-events: none;
  animation: labelPulse 3s ease-in-out infinite;
  -webkit-font-smoothing: antialiased;
}

@keyframes labelPulse {
  0%, 100% { transform: translateX(-50%) translateY(-5px) scale(1); }
  50% { transform: translateX(-50%) translateY(-5px) scale(1.05); box-shadow: 0 8px 20px rgba(44, 146, 159, 0.4); }
}

.emoji-label::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -4px;
  border-width: 4px;
  border-style: solid;
  border-color: #12243E transparent transparent transparent;
}


/* ==========================================================================
   🛠️ RESPONSIVE IMPLEMENTATION (STRICT RULES APPLIED)
   - Mobile (≤480px) | Tablet Portrait (≤920px) | Laptop (≤1024px)
   ========================================================================== */

/* --- Tablet / iPad Pro / Small Laptop (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .container {
    width: 90%;
    max-width: 900px;
  }

  .gallery-grid,
  .geo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .hero-title {
    font-size: 46px;
  }
}

/* --- Tablet Portrait / Large Mobile (max-width: 920px) --- */
@media (max-width: 920px) {
  .hero-wrap,
  .stage-grid,
  .admin-grid,
  .cta {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .media-card,
  .admin-panel {
    position: relative;
    top: 0;
    width: 100%;
    margin-bottom: 24px;
    transform: none !important;
    opacity: 1 !important;
  }

  .stage-copy,
  .admin-step,
  .video-wrap {
    transform: none !important;
    opacity: 1 !important;
  }

  .hero.hero-100 {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
    display: block;
  }

  .hero-bg {
    position: fixed;
  }

  .hero-visual {
    margin-top: 20px;
  }

  .glass-card {
    min-height: 300px;
  }

  .imghvr-reveal-left img {
    height: 200px;
  }

  .marquee-section {
    padding: 40px 0;
  }

  .contact-list {
    max-width: 100%;
  }
}

/* --- Mobile Devices (max-width: 768px) --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: inline-block; }
  .mobile-menu { display: grid; }
  .nav-cta .btn { display: none; }
  .nav-cta .hamburger { display: block; margin-left: 0; }

  .m-item {
    width: 180px;
    height: 360px;
    border-width: 3px;
    border-radius: 30px;
  }

  .m-item img { border-radius: 22px; }

  .marquee-track { gap: 20px; }

  .video-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .video-cta .btn {
    width: 100%;
  }
}

/* --- Small Mobile (max-width: 480px) --- */
@media (max-width: 480px) {
  .container {
    width: 92%;
  }

  .hero-title {
    font-size: 34px;
    word-wrap: break-word;
  }

  .h2 {
    font-size: 24px;
  }

  .stage-title {
    font-size: 22px;
  }

  .gallery-grid,
  .geo-grid {
    grid-template-columns: 1fr;
  }

  .node-row {
    grid-template-columns: 1fr;
  }

  .link {
    height: 12px;
  }

  .hero-orb, .f1, .f2 {
    display: none;
  }

  input, textarea {
    font-size: 16px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}
