/* ══════════════════════════════════════════════════════════════════
   Attendance One — Premium CSS Design System
   Antigravity Technologies
══════════════════════════════════════════════════════════════════ */

/* ── PERFORMANCE DIRECTIVES ──────────────────────────────────────── */
#hero-img,
#exploded-img,
.ind-img,
.mobile-ui-img,
.buy-product-img {
  will-change: transform, opacity;
  transform: translateZ(0);
}

.section-showcase,
.section-dashboard,
.section-specs {
  contain: layout;
}

/* ── RESET & VARIABLES ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root,
[data-theme="dark"] {
  --white: #ffffff;
  --text-rgb: 255, 255, 255;
  --white: #eaeaea;
  /* Radian Off-white background */
  --black: #000000;
  --void: #0b0c10;
  /* Radian Dark Charcoal background */
  --dark-gray: #111111;
  /* Radian Solid Dark Card backing */
  --panel-bg: rgba(255, 255, 255, 0.02);
  --panel-border: rgba(255, 255, 255, 0.06);
  --blue: #888888;
  /* Neutral Gray for eyebrows */
  --cyan: #00f0ff;
  /* Glowing Electric Cyan/Blue accent (replaced yellow) */
  --silver: #eaeaea;
  /* Crisp silver/white text */
  --silver-dim: #9aa0aa;
  --green: #27ae60;
  --red: #eb5757;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-w: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Attendance Theme Accents (Neon Green) */
  --accent: #7fff3a;
  --accent-2: #00f0ff;
  --accent-rgb: 127, 255, 58;
  --accent-dim: rgba(127, 255, 58, 0.12);
  --border-acc: rgba(127, 255, 58, 0.38);
  --accent-gradient: linear-gradient(135deg, #7fff3a 0%, #00f0ff 100%);
}

[data-theme="light"] {
  --white: #000000;
  --text-rgb: 0, 0, 0;
  --white: #000000;
  --black: #ffffff;
  --void: #f5f5f7;
  --dark-gray: #e8e8ed;
  --panel-bg: rgba(0, 0, 0, 0.02);
  --panel-border: rgba(0, 0, 0, 0.08);
  --blue: #888888;
  --cyan: #008899;
  --silver: #1d1d1f;
  --silver-dim: #86868b;
  --green: #2e7d32;
  --red: #c62828;
  
  --accent: #008899;
  --accent-2: #0056b3;
  --accent-rgb: 0, 136, 153;
  --accent-dim: rgba(0, 136, 153, 0.1);
  --border-acc: rgba(0, 136, 153, 0.3);
  --accent-gradient: linear-gradient(135deg, #008899 0%, #00f0ff 100%);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--void);
}

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ──────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--void);
}

::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════════════
   ADVANCED ANIMATION SYSTEM
══════════════════════════════════════════════════════ */

/* ── CUSTOM CURSOR ─────────────────────────────────── */
body {
  cursor: none;
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }
}

#cursor-orb {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s, border-color 0.25s, opacity 0.2s;
  mix-blend-mode: normal;
}

#cursor-orb.hovering {
  width: 60px;
  height: 60px;
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.8);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.3), inset 0 0 10px rgba(0, 240, 255, 0.08);
}

#cursor-orb.clicking {
  width: 24px;
  height: 24px;
  background: rgba(0, 240, 255, 0.25);
}

#cursor-trail {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  opacity: 0.7;
  transition: opacity 0.1s;
  box-shadow: 0 0 8px var(--cyan);
}

/* ── HEADLINE SPLIT CHARS ──────────────────────────── */
.headline-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
}

.headline-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%) skewX(-8deg);
  will-change: transform, opacity;
  transition: none;
}

.headline-char.revealed {
  opacity: 1;
  transform: translateY(0) skewX(0deg);
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}

/* ── EYEBROW LINE WIPE ─────────────────────────────── */
.eyebrow-line {
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--cyan);
  vertical-align: middle;
  margin-right: 0;
  transition: width 0.8s var(--ease), margin-right 0.5s var(--ease);
}

.eyebrow-line.active {
  width: 32px;
  margin-right: 10px;
}

/* ── SCREEN VERIFIED GLOW ─────────────────────────── */
@keyframes screen-verified-glow {
  0% {
    box-shadow: 0 0 0px rgba(0, 240, 255, 0);
  }

  30% {
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.35), 0 0 80px rgba(0, 240, 255, 0.15);
  }

  60% {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2), 0 0 50px rgba(0, 240, 255, 0.08);
  }

  100% {
    box-shadow: 0 0 0px rgba(0, 240, 255, 0);
  }
}

#product-3d-wrap.verified-flash {
  animation: screen-verified-glow 1.2s ease-out forwards;
}

/* ── SCAN LINE SWEEP (on verified) ─────────────────── */
@keyframes scanline-sweep {
  0% {
    top: 0%;
    opacity: 0.8;
  }

  80% {
    top: 95%;
    opacity: 0.6;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

.scanline-sweep {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  z-index: 20;
  pointer-events: none;
  opacity: 0;
}

.scanline-sweep.active {
  animation: scanline-sweep 0.7s ease-out forwards;
}

/* ── PARTICLE NETWORK (connecting lines) ────────────── */
#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── CLIP-PATH REVEAL WIPES ─────────────────────────── */
.wipe-up {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.8s var(--ease);
}

.wipe-up.is-visible {
  clip-path: inset(0% 0 0 0);
}

/* ── STAGGER WORD REVEAL ────────────────────────────── */
.split-word {
  display: inline-block;
  overflow: hidden;
  line-height: 1.1;
}

.split-word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.7s var(--ease);
}

.is-visible .split-word-inner {
  transform: translateY(0%);
}

/* ── SECTION PARALLAX TEXT ─────────────────────────── */
.parallax-text {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ── GLITCH HEADLINE MICRO-ANIM ────────────────────── */
@keyframes glitch-1 {
  0% {
    clip-path: inset(0 0 95% 0);
    transform: translateX(-4px);
  }

  20% {
    clip-path: inset(20% 0 60% 0);
    transform: translateX(3px);
  }

  40% {
    clip-path: inset(55% 0 30% 0);
    transform: translateX(-2px);
  }

  60% {
    clip-path: inset(75% 0 5% 0);
    transform: translateX(4px);
  }

  80% {
    clip-path: inset(10% 0 80% 0);
    transform: translateX(-1px);
  }

  100% {
    clip-path: inset(0 0 95% 0);
    transform: translateX(0);
  }
}

@keyframes glitch-2 {
  0% {
    clip-path: inset(80% 0 5% 0);
    transform: translateX(4px);
  }

  25% {
    clip-path: inset(40% 0 45% 0);
    transform: translateX(-3px);
  }

  50% {
    clip-path: inset(15% 0 75% 0);
    transform: translateX(2px);
  }

  75% {
    clip-path: inset(60% 0 20% 0);
    transform: translateX(-4px);
  }

  100% {
    clip-path: inset(80% 0 5% 0);
    transform: translateX(0);
  }
}

.glitch-wrap {
  position: relative;
  display: inline-block;
}

.glitch-wrap::before,
.glitch-wrap::after {
  content: attr(data-word);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}

.glitch-wrap::before {
  color: #00f0ff;
  text-shadow: 2px 0 rgba(0, 240, 255, 0.8);
}

.glitch-wrap::after {
  color: #ff3cac;
  text-shadow: -2px 0 rgba(255, 60, 172, 0.8);
}

.glitch-wrap.glitching::before {
  opacity: 0.7;
  animation: glitch-1 0.18s steps(1) infinite;
}

.glitch-wrap.glitching::after {
  opacity: 0.5;
  animation: glitch-2 0.18s steps(1) infinite;
}

/* ── CARD BADGE GLOW ON TAP ────────────────────────── */
@keyframes badge-tap-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
  }

  30% {
    box-shadow: 0 0 30px 8px rgba(0, 240, 255, 0.45), 0 40px 80px rgba(0, 0, 0, 0.7);
  }

  100% {
    box-shadow: 0 0 8px 1px rgba(0, 240, 255, 0.1), 0 40px 80px rgba(0, 0, 0, 0.65);
  }
}

.story-floating-card.tapped {
  animation: badge-tap-glow 1s ease-out forwards;
  border-color: rgba(0, 240, 255, 0.8) !important;
}

/* ── SCROLL PROGRESS BAR ───────────────────────────── */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), #7b2ff7);
  z-index: 9000;
  box-shadow: 0 0 8px var(--cyan);
  pointer-events: none;
  transition: width 0.05s linear;
}

/* ── SECTION MARQUEE TICKER (decorative) ───────────── */
.marquee-ticker {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  padding: 14px 0;
  background: var(--void);
}

.marquee-inner {
  display: inline-flex;
  animation: marquee-scroll 30s linear infinite;
  gap: 0;
}

.marquee-inner:hover {
  animation-play-state: paused;
}

.marquee-item {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-dim);
  padding: 0 48px;
  position: relative;
}

.marquee-item::after {
  content: '//';
  position: absolute;
  right: 0;
  color: var(--cyan);
  opacity: 0.5;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ── CONTAINER ──────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--cyan);
  color: var(--black);
  font-size: 15px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 100px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #00e5ff;
  box-shadow: 0 12px 30px rgba(0, 240, 255, 0.3);
}

.btn-primary.large {
  padding: 18px 42px;
  font-size: 16px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  padding: 15px 36px;
  border-radius: 100px;
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  transition: background 0.25s, transform 0.25s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.btn-ghost.large {
  padding: 17px 42px;
  font-size: 16px;
}

.nav-inner-local-unused {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .nav-inner-local-unused {
    padding: 0 20px;
  }
}

.nav-logo-local-unused {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
}

.nav-logo-svg-local-unused {
  width: 20px;
  height: 20px;
  color: var(--cyan);
}

.logo-sep-local-unused {
  opacity: 0.3;
  font-weight: 300;
}

.logo-product-local-unused {
  background: linear-gradient(90deg, var(--white), var(--silver));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links-local-unused {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links-local-unused a {
  font-size: 14px;
  color: var(--silver-dim);
  transition: color 0.25s;
}

.nav-links-local-unused a:hover {
  color: var(--white);
}

.nav-links-local-unused a.nav-active {
  color: var(--cyan);
}

.btn-buy-nav-local-unused {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  transition: background 0.25s, transform 0.2s;
}

.btn-buy-nav-local-unused:hover {
  background: var(--white);
  color: var(--black);
  transform: scale(1.02);
}

.hamburger-local-unused {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger-local-unused span {
  width: 20px;
  height: 1.5px;
  background: var(--white);
  display: block;
  transition: transform 0.3s;
}

.nav-mobile-local-unused {
  display: none;
  background: rgba(5, 7, 10, 0.98);
  padding: 20px 40px;
  border-top: 1px solid var(--panel-border);
}

.nav-mobile-local-unused ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-mobile-local-unused a {
  display: block;
  font-size: 15px;
  padding: 12px 0;
  color: var(--silver);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-mobile-local-unused .mobile-cta {
  color: var(--cyan);
  border-bottom: none;
}

@media (max-width: 900px) {
  .nav-links-local-unused {
    display: none;
  }

  .hamburger-local-unused {
    display: flex;
  }

  .navbar-local-unused.mobile-open .nav-mobile-local-unused {
    display: block;
  }
}

/* ── TYPOGRAPHY & HEADERS ────────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.section-eyebrow.light {
  color: var(--cyan);
}

.section-eyebrow.light::before {
  background: var(--cyan);
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--black);
}

.section-headline.light {
  color: var(--white);
}

.section-headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--blue);
}

.section-headline.light em {
  color: var(--cyan);
}

.section-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--silver-dim);
  max-width: 580px;
  margin-top: 20px;
}

.section-subtitle.light {
  color: var(--silver);
}

/* ── HERO SCROLL STORY & PREMIUM DESIGN SYSTEM ───────────────────── */
.hero-story-container {
  position: relative;
  width: 100%;
  height: 200vh;
  /* Condensed scroll track to keep content pinned tightly */
  background: var(--void);
}

.hero-grid-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  /* Wider space on the right for product image offsets */
  width: 100%;
  align-items: center;
  gap: 120px;
  /* Increased gap to prevent text overlapping with device image render borders */
}

.hero-product-placeholder {
  width: 100%;
  height: 420px;
  /* Reserves screen area for the product, preventing overlap */
  pointer-events: none;
}

.story-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-bg-glows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.28;
  animation: blobFloat 22s infinite alternate ease-in-out;
  will-change: transform;
}

.blob-1 {
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  width: 60vh;
  height: 60vh;
  top: -10%;
  left: -10%;
}

.blob-2 {
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  width: 50vh;
  height: 50vh;
  bottom: -10%;
  right: -10%;
  animation-delay: -5s;
}

.blob-3 {
  background: radial-gradient(circle, #6f3bff 0%, transparent 70%);
  width: 45vh;
  height: 45vh;
  top: 30%;
  left: 45%;
  animation-delay: -11s;
}

@keyframes blobFloat {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-40px) scale(1.15) rotate(15deg);
  }

  100% {
    transform: translateY(20px) scale(0.9) rotate(-15deg);
  }
}

.story-particles-container {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
}

.story-product-viewport {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  perspective: 1200px;
  /* Enable 3D rotation transforms on child elements */
}

.story-floating-card {
  position: absolute;
  width: 150px;
  height: 235px;
  background: rgba(11, 12, 16, 0.55);
  /* Radian Charcoal Glass */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  /* Glowing Cyan border */
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.65), inset 0 0 20px rgba(0, 240, 255, 0.08);
  z-index: 10;
  pointer-events: none;

  /* Initial off-screen positions: Top Right Corner */
  right: 6%;
  top: 6%;
  transform: translate3d(0, 0, 0) rotate(22deg) scale(0.9);
  will-change: transform, opacity;
}

.badge-chip {
  width: 28px;
  height: 22px;
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #aa7c11 100%);
  border-radius: 5px;
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.badge-nfc-icon {
  width: 32px;
  height: 32px;
  color: var(--cyan);
  margin: 14px 0;
  opacity: 0.9;
}

.badge-nfc-icon svg {
  width: 100%;
  height: 100%;
}

.badge-title {
  font-family: var(--font-mono);
  font-size: 7.5px;
  color: var(--silver-dim);
  letter-spacing: 0.1em;
}

.badge-holder {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-top: auto;
}

.badge-footer {
  font-family: var(--font-mono);
  font-size: 6.5px;
  color: var(--silver-dim);
  opacity: 0.55;
  margin-top: 4px;
}

.rfid-ripple-wave {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
  top: 64%;
  /* Mapped on the RFID reader panel */
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

.product-3d-wrap {
  position: relative;
  width: min(80vw, 420px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transform: translate3d(32%, 0, 0) scale(1.1);
  /* Shifted further right to clear title text */
  will-change: transform;
}

.story-product-img {
  width: auto;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  /* Optimize render quality for 3D scale transforms, showing 100% original crisp resolution */
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.product-reflection-overlay {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.06) 40%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.06) 60%, rgba(255, 255, 255, 0) 100%);
  background-size: 200% 200%;
  background-position: -100% -100%;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 3;
}

.product-shadow-3d {
  position: absolute;
  width: 320px;
  height: 35px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.7) 0%, transparent 70%);
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%) translateZ(-80px);
  pointer-events: none;
  filter: blur(10px);
  will-change: transform;
}

.display-glow-overlay {
  position: absolute;
  top: 27.5%;
  /* Mapped precisely to sit inside the physical screen glass boundaries of the render */
  left: 36.6%;
  width: 36.8%;
  height: 35.6%;
  background: transparent;
  /* No card wrapper background, integrates as built-in text graphics */
  border-radius: 6px;
  border: none;
  opacity: 1;
  /* Always active live terminal display simulator */
  pointer-events: none;
  z-index: 4;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  overflow: hidden;
}

.screen-top-bar {
  width: 100%;
  padding: 4px 8px;
  /* Reduced padding to fit physical screen */
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 7.5px;
  /* Shrunk slightly to avoid truncation */
  color: var(--silver-dim);
  opacity: 0.65;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.screen-network-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  /* Radian Yellow */
  box-shadow: 0 0 6px var(--cyan);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

.screen-ui-content {
  flex: 1;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-state-idle,
.screen-state-success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.screen-state-idle.active,
.screen-state-success.active {
  opacity: 1;
  visibility: visible;
}

.screen-prompt-text {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-top: 6px;
  animation: breathe-text 2s infinite ease-in-out;
}

@keyframes breathe-text {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.screen-status-sub {
  font-family: var(--font-mono);
  font-size: 6.5px;
  color: var(--silver-dim);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.screen-radar-wave {
  width: 24px;
  /* Reduced from 32px to fit inside screen dimensions */
  height: 24px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 50%;
  position: relative;
  animation: radar-pulse 3s infinite linear;
}

@keyframes radar-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.screen-checkmark {
  font-size: 28px;
  color: var(--cyan);
  /* Yellow */
  font-weight: bold;
  animation: pop-checkmark 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop-checkmark {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.screen-name {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--silver-dim);
  margin-top: 4px;
}

.screen-user {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
}

.rfid-ring-glow-overlay {
  position: absolute;
  top: 76.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease);
}

.rfid-ring-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px dashed var(--cyan);
  box-shadow: 0 0 18px var(--blue), inset 0 0 8px var(--blue);
  animation: spinRing 12s infinite linear;
}

@keyframes spinRing {
  to {
    transform: rotate(360deg);
  }
}

.story-text-container {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
}

.story-slide .container {
  width: 100%;
}

.story-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.story-slide.slide-1 {
  justify-content: flex-start;
}

.hero-content-story {
  max-width: 680px;
  /* Increased to allow 'Attendance. Reimagined.' to display in 2 lines without wrapping words */
  text-align: left;
}

/* Shift text columns towards screen edges to widen the center space on desktop */
@media (min-width: 900px) {

  .slide-1 .hero-content-story,
  .slide-2 .story-slide-content {
    transform: translateX(-70px);
  }

  .slide-3 .story-slide-content,
  .slide-4 .story-slide-content {
    transform: translateX(70px);
  }
}

.hero-content-story .hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
}

.hero-content-story .hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 98px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
}

.hero-content-story .hero-tagline {
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 400;
  color: var(--silver);
  margin-bottom: 14px;
}

.hero-content-story .hero-sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--silver-dim);
  max-width: 460px;
  margin-bottom: 40px;
}

.hero-content-story .hero-ctas {
  display: flex;
  gap: 16px;
}

.story-slide-content {
  max-width: 440px;
  text-align: left;
}

.story-slide-content .section-headline {
  color: var(--white);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin-top: 10px;
}

.story-slide-content .section-subtitle {
  color: var(--silver-dim);
  font-size: 15px;
  line-height: 1.65;
  margin-top: 18px;
}

#story-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver-dim);
  transition: opacity 0.5s ease;
}

@media (max-width: 900px) {
  .hero-story-container {
    height: auto;
  }

  .story-sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 100vh;
    flex-direction: column;
    padding: 140px 20px 80px 20px;
    justify-content: flex-start;
  }

  .story-product-viewport {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin-top: 40px;
    height: auto;
    order: -1;
  }

  .product-3d-wrap {
    width: 280px;
    height: 280px;
    transform: none !important;
  }

  .story-floating-card {
    display: none !important;
  }

  .story-text-container {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 60px;
  }

  .story-slide {
    position: relative;
    inset: auto;
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    padding: 0;
    width: 100%;
    justify-content: center;
  }

  .hero-content-story,
  .story-slide-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-content-story .hero-headline,
  .story-slide-content .section-headline {
    text-align: center;
  }

  .hero-content-story .hero-sub,
  .story-slide-content .section-subtitle {
    margin-inline: auto;
  }

  .hero-content-story .hero-ctas {
    justify-content: center;
  }

  #story-scroll-indicator {
    display: none;
  }
}

/* ── WHY ATTENDANCE ONE ─────────────────────────────────────────── */
.section-philosophy {
  background: var(--white);
  color: var(--black);
  padding: 160px 0;
}

.philosophy-header {
  text-align: center;
  margin-bottom: 90px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 90px;
}

.philosophy-block {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 44px 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.philosophy-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06);
}

.philosophy-icon {
  font-size: 28px;
  color: var(--blue);
  margin-bottom: 24px;
}

.philosophy-block h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
}

.philosophy-block p {
  font-size: 14.5px;
  line-height: 1.65;
  color: #555;
}

.philosophy-statement {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 50px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f3fc 100%);
  border-radius: 24px;
}

.philosophy-statement blockquote {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 18px;
}

.philosophy-statement cite {
  font-size: 13px;
  color: var(--silver-dim);
  letter-spacing: 0.05em;
  font-style: normal;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .philosophy-statement {
    padding: 30px 20px;
  }
}

/* ── PRODUCT SHOWCASE ───────────────────────────────────────────── */
.section-showcase {
  background: var(--void);
  padding: 160px 0;
}

.showcase-header {
  text-align: center;
  margin-bottom: 80px;
}

.showcase-visual-row {
  display: flex;
  justify-content: center;
}

.showcase-main {
  position: relative;
  max-width: 900px;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
}

.showcase-img {
  width: 100%;
  height: auto;
  display: block;
}

.showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 44px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  backdrop-filter: blur(4px);
}

.showcase-overlay h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.showcase-overlay p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--silver);
  max-width: 520px;
}

@media (max-width: 768px) {
  .showcase-overlay {
    padding: 20px;
  }

  .showcase-overlay h3 {
    font-size: 18px;
  }

  .showcase-overlay p {
    font-size: 13px;
  }
}

/* ── HOW IT WORKS ───────────────────────────────────────────────── */
.section-how {
  background: var(--white);
  color: var(--black);
  padding: 160px 0;
}

.how-header {
  text-align: center;
  margin-bottom: 90px;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.how-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  padding: 48px 0;
  background: var(--white);
  transition: transform 0.3s var(--ease);
}

.step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.1);
  line-height: 1;
}

.step-content h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 15px;
  color: #555;
  max-width: 620px;
}

@media (max-width: 768px) {
  .how-step {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 30px 0;
  }

  .step-num {
    font-size: 36px;
  }
}

/* ── RFID NFC TECH ──────────────────────────────────────────────── */
.section-rfid-tech {
  background: var(--void);
  padding: 160px 0;
  border-bottom: 1px solid var(--panel-border);
}

.rfid-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.rfid-info .body-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--silver-dim);
  margin-top: 24px;
}

.rfid-stats-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.rfid-stat-box {
  border-left: 2px solid var(--cyan);
  padding-left: 20px;
}

.rf-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
}

.rf-lbl {
  font-size: 13px;
  color: var(--silver-dim);
}

.rfid-graphics {
  display: flex;
  justify-content: center;
}

.graphics-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  overflow: hidden;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.radar-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: radarScan 3.5s infinite linear;
}

@keyframes radarScan {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(220px);
  }

  100% {
    transform: translateY(0);
  }
}

.graphics-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.g-signal {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cyan);
  font-weight: 600;
}

.g-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--silver-dim);
}

.g-status {
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: 8px;
}

.g-status.green {
  color: var(--green);
}

@media (max-width: 900px) {
  .rfid-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ── WEB DASHBOARD ──────────────────────────────────────────────── */
.section-dashboard {
  background: var(--void);
  padding: 160px 0;
}

.dash-header {
  text-align: center;
  margin-bottom: 80px;
}

.dashboard-mockup {
  display: grid;
  grid-template-columns: 240px 1fr;
  background: var(--void);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 16/9;
  min-height: 520px;
}

.dash-sidebar {
  background: var(--void);
  border-right: 1px solid var(--panel-border);
  padding: 32px 24px;
}

.ds-logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 40px;
}

.ds-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ds-menu li {
  font-size: 13.5px;
  color: var(--silver-dim);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.ds-menu li.active,
.ds-menu li:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.dash-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.dash-sync-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green);
  background: rgba(39, 174, 96, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.dmetric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  padding: 24px 20px;
  border-radius: 16px;
}

.dm-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
}

.dm-lbl {
  font-size: 12px;
  color: var(--silver-dim);
  margin-top: 6px;
}

.dash-timeline-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 24px;
}

.dash-timeline-box h5 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.dash-log-row {
  display: grid;
  grid-template-columns: 120px 1fr 1fr 100px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
}

.dash-log-row:last-child {
  border-bottom: none;
}

.dl-time {
  font-family: var(--font-mono);
  color: var(--silver-dim);
}

.dl-name {
  font-weight: 500;
}

.dl-dept {
  color: var(--silver-dim);
}

.dl-status {
  font-weight: 600;
  text-align: right;
}

.dl-status.green {
  color: var(--green);
}

.dl-status.yellow {
  color: #f39c12;
}

@media (max-width: 960px) {
  .dashboard-mockup {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }

  .dash-sidebar {
    display: none;
  }

  .dash-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .dash-metrics {
    grid-template-columns: 1fr;
  }

  .dash-log-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .dl-dept,
  .dl-time {
    display: none;
  }
}

/* ── MOBILE APP ─────────────────────────────────────────────────── */
.section-mobile {
  background: var(--void);
  padding: 160px 0;
  border-bottom: 1px solid var(--panel-border);
}

.mobile-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.mobile-visual {
  display: flex;
  justify-content: center;
}

.mobile-ui-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 40px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
}

.mobile-info .body-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--silver-dim);
  margin-top: 24px;
}

.mobile-bullets {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}

.mobile-bullets li {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--silver);
  position: relative;
  padding-left: 20px;
}

.mobile-bullets li::before {
  content: '●';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan);
}

@media (max-width: 900px) {
  .mobile-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .mobile-visual {
    order: -1;
  }
}

/* ── INDUSTRIES ─────────────────────────────────────────────────── */
.section-industries {
  background: var(--void);
  padding: 160px 0;
}

.industries-header {
  text-align: center;
  margin-bottom: 80px;
}

.ind-showcase-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ind-card {
  background: var(--void);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.ind-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 240, 255, 0.45);
}

.ind-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
  will-change: transform;
}

.ind-card:hover .ind-img {
  transform: scale(1.08);
  filter: brightness(1.08);
}

.ind-content {
  padding: 30px;
}

.ind-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--cyan);
  background: rgba(79, 227, 255, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.ind-content h4 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 10px;
}

.ind-content p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--silver-dim);
}

@media (max-width: 900px) {
  .ind-showcase-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ── AI FEATURES ────────────────────────────────────────────────── */
.section-ai-features {
  background: var(--white);
  color: var(--black);
  padding: 160px 0;
}

.ai-header {
  text-align: center;
  margin-bottom: 80px;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ai-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 36px 30px;
  transition: transform 0.3s var(--ease);
}

.ai-card:hover {
  transform: translateY(-4px);
}

.ai-card-icon {
  font-size: 26px;
  color: var(--blue);
  margin-bottom: 20px;
}

.ai-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.ai-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

@media (max-width: 900px) {
  .ai-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .ai-grid {
    grid-template-columns: 1fr;
  }
}

/* ── CLOUD PLATFORM ─────────────────────────────────────────────── */
.section-cloud {
  background: var(--void);
  padding: 160px 0;
  border-bottom: 1px solid var(--panel-border);
}

.cloud-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.cloud-info .body-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--silver-dim);
  margin-top: 24px;
}

.cloud-checks {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 36px;
}

.cloud-checks li {
  font-size: 14.5px;
  color: var(--silver);
  position: relative;
  padding-left: 24px;
}

.cloud-checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan);
  font-weight: 700;
}

.cloud-visual {
  display: flex;
  justify-content: center;
}

.cloud-database-card {
  width: 100%;
  max-width: 440px;
  background: var(--void);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 24px;
}

.db-line {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.db-logs {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--silver-dim);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.db-logs span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .cloud-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ── TECHNICAL SPECIFICATIONS ────────────────────────────────────── */
.section-specs {
  background: var(--void);
  padding: 160px 0;
}

.specs-header {
  text-align: center;
  margin-bottom: 80px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.spec-card {
  background: var(--void);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 32px 24px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.spec-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 227, 255, 0.3);
}

.spec-icon {
  font-size: 24px;
  margin-bottom: 18px;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--silver-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.spec-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.spec-detail {
  font-size: 12.5px;
  color: var(--silver-dim);
}

@media (max-width: 960px) {
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }
}

/* ── SECURITY ───────────────────────────────────────────────────── */
.section-security {
  background: var(--white);
  color: var(--black);
  padding: 160px 0;
}

.sec-header {
  text-align: center;
  margin-bottom: 80px;
}

.sec-header .section-subtitle {
  margin-inline: auto;
}

.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.sec-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 36px 30px;
}

.sec-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.sec-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

@media (max-width: 900px) {
  .sec-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ── COMPARISON TABLE ───────────────────────────────────────────── */
.section-compare {
  background: var(--void);
  padding: 160px 0;
}

.compare-header {
  text-align: center;
  margin-bottom: 80px;
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: 24px;
  border: 1px solid var(--panel-border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--void);
}

.compare-table th,
.compare-table td {
  padding: 22px 26px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--panel-border);
}

.compare-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--silver-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.compare-table thead th.col-ds {
  color: var(--cyan);
  font-weight: 600;
}

.compare-table tbody td:first-child {
  font-weight: 500;
}

.ds-val {
  color: var(--cyan);
  font-weight: 600;
}

.bad-val {
  color: var(--silver-dim);
}

.compare-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

/* ── TESTIMONIALS ───────────────────────────────────────────────── */
.section-testimonials {
  background: var(--void);
  padding: 160px 0;
  border-bottom: 1px solid var(--panel-border);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 80px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tcard {
  background: var(--void);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.tcard-stars {
  color: #f39c12;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.tcard blockquote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--silver);
  font-style: italic;
  margin-bottom: 30px;
}

.tcard-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.tcard-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tcard-info {
  display: flex;
  flex-direction: column;
}

.tcard-name {
  font-size: 14px;
  font-weight: 600;
}

.tcard-company {
  font-size: 12px;
  color: var(--silver-dim);
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ── FAQ ACCORDION ──────────────────────────────────────────────── */
.section-faq {
  background: var(--void);
  padding: 160px 0;
}

.faq-header {
  text-align: center;
  margin-bottom: 80px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--panel-border);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: transparent;
  color: var(--white);
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: color 0.25s;
}

.faq-q:hover {
  color: var(--cyan);
}

.faq-q[aria-expanded="true"] {
  color: var(--cyan);
}

.faq-chevron {
  font-size: 22px;
  color: var(--silver-dim);
  transition: transform 0.3s;
}

.faq-q[aria-expanded="true"] .faq-chevron {
  transform: rotate(45deg);
  color: var(--cyan);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-a p {
  padding: 0 0 24px 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--silver-dim);
}

/* ── EXPLODED VIEW SECTION ───────────────────────────────────────── */
.section-exploded {
  background: var(--void);
  padding: 160px 0;
}

.exploded-header {
  text-align: center;
  margin-bottom: 60px;
}

.exploded-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.exploded-visual-container {
  position: sticky;
  top: 2vh;
  /* Shifted 50% higher to prevent browser dock cutoff entirely */
  height: 58vh;
  /* Tightened height to fit smaller displays */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.exploded-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.connecting-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  stroke-dashoffset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.connecting-line.active {
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-dasharray: none;
  opacity: 0.7;
  filter: drop-shadow(0 0 3px var(--cyan));
}

.exploded-img-wrapper {
  position: relative;
  width: 90%;
  height: 90%;
  /* Contrains height to prevent clipping */
  display: flex;
  align-items: center;
  justify-content: center;
}

.exploded-img {
  max-width: 100%;
  max-height: 100%;
  /* Force image to scale down to fit the container height */
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}

.hotspot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--cyan);
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 8px var(--cyan);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s;
  z-index: 6;
}

.hotspot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  animation: hotspotPulse 2s infinite;
}

.hotspot.active {
  transform: translate(-50%, -50%) scale(1.35);
  background: var(--white);
  border-color: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

@keyframes hotspotPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.exploded-labels-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 30vh;
  margin-top: 15vh;
}

.exploded-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 30px 26px;
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
  backdrop-filter: blur(12px);
}

.exploded-card.active,
.exploded-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(79, 227, 255, 0.4);
  transform: translateX(8px);
}

.exploded-card .card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

.exploded-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}

.exploded-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--silver-dim);
}

@media (max-width: 900px) {
  .exploded-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .exploded-visual-container {
    position: relative;
    top: auto;
    height: 45vh;
    margin-bottom: 30px;
  }

  .exploded-labels-list {
    margin-top: 0;
    padding-bottom: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .connecting-line {
    display: none;
  }
}

@media (max-width: 600px) {
  .exploded-labels-list {
    grid-template-columns: 1fr;
  }
}

/* ── FINAL BUY / CTA ────────────────────────────────────────────── */
.section-buy {
  background: var(--void);
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}

.buy-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.buy-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.buy-product-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 35px 70px rgba(46, 123, 255, 0.25));
}

.buy-img-glow {
  position: absolute;
  bottom: 0;
  width: 60%;
  height: 30%;
  background: radial-gradient(ellipse, rgba(46, 123, 255, 0.2), transparent);
  filter: blur(40px);
}

.buy-content .buy-sub {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--silver-dim);
  margin-top: 24px;
}

.buy-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .buy-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .buy-actions {
    justify-content: center;
  }
}

/* ── FOOTER ─────────────────────────────────────────────────────── */
.footer-local-unused {
  background: var(--void);
  border-top: 1px solid var(--panel-border);
  padding: 80px 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--silver-dim);
  margin-top: 18px;
  max-width: 280px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--silver-dim);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: var(--silver);
  transition: color 0.25s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  font-size: 12px;
  color: var(--silver-dim);
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ── REVEALS & STATES ────────────────────────────────────────────── */
.reveal-text,
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-fade,
.reveal-scale {
  opacity: 0;
}

.reveal-text {
  transform: translateY(24px);
}

.reveal-up {
  transform: translateY(32px);
}

.reveal-left {
  transform: translateX(-32px);
}

.reveal-right {
  transform: translateX(32px);
}

.reveal-scale {
  transform: scale(0.95);
}

/* Animation active class names added by IntersectionObserver */
.reveal-text.is-visible,
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translate(0);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal-fade.is-visible {
  opacity: 1;
  transition: opacity 1s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}

/* ── READABILITY & CONTRAST ADJUSTMENTS ─────────────────────────── */

/* 1. Ensure high contrast in Light-themed sections */
.section-philosophy,
.section-how,
.section-ai-features,
.section-security {
  color: #1a1c20;
}

.section-philosophy .section-subtitle,
.section-how .section-subtitle,
.section-ai-features .section-subtitle,
.section-security .section-subtitle {
  color: #43464d !important;
}

.philosophy-block p,
.step-content p,
.ai-card p,
.sec-card p {
  color: #2c2f35 !important;
}

.philosophy-statement cite {
  color: #4b4f56 !important;
}

/* 2. Improve dim text readability in Dark-themed sections */
.section-showcase .section-subtitle,
.section-rfid-tech .body-text,
.section-dashboard .section-subtitle,
.section-mobile .body-text,
.section-cloud .body-text {
  color: #a4a9b2;
}

.spec-detail,
.dmetric-card .dm-lbl,
.dash-log-row .dl-dept,
.dash-log-row .dl-time,
.db-logs,
.faq-a p {
  color: #aeb2b9 !important;
}

.tcard blockquote {
  color: #e2e4e8;
}

.tcard-company {
  color: #9aa0aa;
}

.compare-table tbody td:first-child {
  color: #e2e4e8;
}

.bad-val {
  color: #8c9199;
}

/* 3. Automatic Header & Eyebrow colors for Dark Sections */
.section-showcase .section-headline,
.section-rfid-tech .section-headline,
.section-dashboard .section-headline,
.section-mobile .section-headline,
.section-industries .section-headline,
.section-cloud .section-headline,
.section-specs .section-headline,
.section-compare .section-headline,
.section-testimonials .section-headline,
.section-faq .section-headline,
.section-exploded .section-headline,
.section-buy .section-headline {
  color: var(--white) !important;
}

.section-showcase .section-eyebrow,
.section-rfid-tech .section-eyebrow,
.section-dashboard .section-eyebrow,
.section-mobile .section-eyebrow,
.section-industries .section-eyebrow,
.section-cloud .section-eyebrow,
.section-specs .section-eyebrow,
.section-compare .section-eyebrow,
.section-testimonials .section-eyebrow,
.section-faq .section-eyebrow,
.section-exploded .section-eyebrow,
.section-buy .section-eyebrow {
  color: var(--cyan) !important;
}

.section-showcase .section-eyebrow::before,
.section-rfid-tech .section-eyebrow::before,
.section-dashboard .section-eyebrow::before,
.section-mobile .section-eyebrow::before,
.section-industries .section-eyebrow::before,
.section-cloud .section-eyebrow::before,
.section-specs .section-eyebrow::before,
.section-compare .section-eyebrow::before,
.section-testimonials .section-eyebrow::before,
.section-faq .section-eyebrow::before,
.section-exploded .section-eyebrow::before,
.section-buy .section-eyebrow::before {
  background: var(--cyan) !important;
}

/* ── LENIS SMOOTH SCROLL INTEGRATION ─────────────────────────────── */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis-stopped {
  overflow: hidden;
}

.lenis-scrolling iframe {
  pointer-events: none;
}

/* ── TECHNOLOGY FLOW SYSTEM ──────────────────────────────────────── */
.tech-flow-wrapper {
  margin-top: 60px;
  background: var(--void);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  padding: 50px 40px;
}

.flow-header {
  text-align: center;
  margin-bottom: 40px;
}

.flow-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  margin-top: 6px;
}

.flow-diagram {
  position: relative;
  width: 100%;
  margin-top: 20px;
}

.flow-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.flow-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 2.5;
}

.flow-pulse-line {
  fill: none;
  stroke: url(#flow-grad);
  stroke-width: 2.5;
  stroke-dasharray: 25 150;
  stroke-dashoffset: 0;
  filter: url(#neon-glow);
  animation: flowPulseAnim 5s infinite linear;
}

@keyframes flowPulseAnim {
  to {
    stroke-dashoffset: -175;
  }
}

.flow-nodes {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 110px;
  text-align: center;
}

.flow-node .node-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--void);
  border: 1.5px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--silver-dim);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s, color 0.4s;
}

.flow-node.active .node-icon {
  border-color: var(--cyan);
  color: var(--white);
  box-shadow: 0 0 15px rgba(79, 227, 255, 0.25);
  transform: scale(1.15);
}

.flow-node .node-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--silver-dim);
  text-transform: uppercase;
  transition: color 0.4s;
}

.flow-node.active .node-label {
  color: var(--cyan);
  font-weight: 600;
}

@media (max-width: 820px) {
  .tech-flow-wrapper {
    padding: 40px 20px;
  }

  .flow-nodes {
    flex-direction: column;
    gap: 36px;
  }

  .flow-svg {
    display: none;
  }

  .flow-node {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
    text-align: left;
  }

  .flow-node .node-icon {
    width: 46px;
    height: 46px;
    font-size: 16px;
  }
}

/* ── DASHBOARD CHART AREA ────────────────────────────────────────── */
.dash-chart-container {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
}

.dash-chart-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dash-chart-top h5 {
  font-size: 13.5px;
  font-weight: 600;
}

.dash-chart-legend {
  font-size: 11px;
  color: var(--silver-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2e7bff;
  box-shadow: 0 0 6px #2e7bff;
}

.dash-chart-visual {
  width: 100%;
  height: 120px;
  margin-top: 10px;
}

.dash-chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dash-chart-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  will-change: stroke-dashoffset;
}

.dash-chart-fill {
  opacity: 0.15;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 1.2s var(--ease);
}

.dash-chart-fill.draw {
  transform: scaleY(1);
}

.dmetric-card .dm-val {
  will-change: content;
}

.dash-animate-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.dash-animate-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── INTERACTIVE CARD GLOWS & BUTTON STATES ───────────────────────── */
.magnetic-btn {
  display: inline-flex;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.buy-product-img {
  animation: breathingFloat 6s infinite ease-in-out;
}

@keyframes breathingFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Glassmorphism premium adjustment for Industry Cards */
.ind-card {
  background: rgba(9, 12, 16, 0.55) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.ind-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 240, 255, 0.45) !important;
  box-shadow: 0 25px 55px rgba(0, 240, 255, 0.15) !important;
}

/* Canvas background styling for Particles */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Coordinate Badge for Telemetry flow (Rideradian inspired) */
.flow-coordinate-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--silver-dim);
  opacity: 0.45;
  letter-spacing: 0.12em;
  margin-top: 10px;
  text-transform: uppercase;
}

/* Tighten layout vertical spacing to remove empty blank gaps (Radian style) */
section[id] {
  padding: 100px 0 !important;
}

/* Custom overrides removed */

/* ══════════════════════════════════════════════ SECTION 3.5: INTERACTIVE HARDWARE LAB ══ */
.section-hw-lab {
  background: var(--void);
  position: relative;
  overflow: hidden;
  padding: 120px 0 !important;
}

.hw-lab-header {
  text-align: center;
  margin-bottom: 70px;
}

.hw-lab-header .section-headline {
  margin: 15px 0 25px;
}

/* ── CINEMATIC VIDEO PLAYER HUD ── */
.video-hud-wrapper {
  max-width: 960px;
  margin: 0 auto 80px;
  perspective: 1500px;
}

.video-hud-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--black);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 240, 255, 0.05);
  transform-style: preserve-3d;
  transition: border-color 0.5s, box-shadow 0.5s;
}

.video-hud-container:hover {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 240, 255, 0.15);
}

#hw-telemetry-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* HUD elements Overlay */
.video-hud-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: opacity 0.5s ease;
}

.video-hud-container.playing .video-hud-overlay {
  opacity: 0.4;
}

.video-hud-container.playing:hover .video-hud-overlay {
  opacity: 0.9;
}

.hud-mono-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.6);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hud-top-left,
.hud-top-right,
.hud-bottom-left,
.hud-bottom-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-top-left,
.hud-top-right {
  align-self: flex-start;
}

.hud-bottom-left,
.hud-bottom-right {
  align-self: flex-end;
}

.hud-rec-dot {
  width: 8px;
  height: 8px;
  background-color: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--red);
  animation: hud-blink 1.2s infinite;
}

@keyframes hud-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

/* Scanline Sweep Animation Overlay */
.video-hud-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%,
      rgba(0, 240, 255, 0.08) 50%), linear-gradient(90deg,
      rgba(255, 0, 0, 0.03),
      rgba(0, 255, 0, 0.01),
      rgba(0, 0, 255, 0.03));
  background-size: 100% 4px, 3px 100%;
  pointer-events: none;
  z-index: 5;
  opacity: 0.65;
}

/* Corner Crop lines */
.hud-box-corners .corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0, 240, 255, 0.45);
  pointer-events: none;
}

.hud-box-corners .top-left {
  top: 20px;
  left: 20px;
  border-right: 0;
  border-bottom: 0;
}

.hud-box-corners .top-right {
  top: 20px;
  right: 20px;
  border-left: 0;
  border-bottom: 0;
}

.hud-box-corners .bottom-left {
  bottom: 20px;
  left: 20px;
  border-right: 0;
  border-top: 0;
}

.hud-box-corners .bottom-right {
  bottom: 20px;
  right: 20px;
  border-left: 0;
  border-top: 0;
}

/* Crosshair HUD */
.hud-crosshair-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  pointer-events: none;
  opacity: 0.35;
  transition: opacity 0.5s;
}

.video-hud-container:hover .hud-crosshair-center {
  opacity: 0.7;
}

.crosshair-ch {
  position: relative;
  width: 100%;
  height: 100%;
}

.crosshair-ch::before,
.crosshair-ch::after {
  content: '';
  position: absolute;
  background: var(--cyan);
  box-shadow: 0 0 4px var(--cyan);
}

.crosshair-ch::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}

.crosshair-ch::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}

/* Play button overlay */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(11, 12, 16, 0.65);
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
  cursor: pointer;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25), inset 0 0 12px rgba(0, 240, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.2);
}

.video-play-btn svg {
  width: 32px;
  height: 32px;
  transition: transform 0.3s var(--ease);
}

.video-play-btn:hover svg {
  transform: scale(1.08);
}

/* ── INTERACTIVE GALLERY ── */
.hw-gallery-wrapper {
  margin-top: 50px;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--silver-dim);
  border-radius: 30px;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease);
}

.filter-btn:hover {
  border-color: rgba(0, 240, 255, 0.35);
  color: var(--white);
  background: rgba(0, 240, 255, 0.03);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
}

.filter-btn.active {
  border-color: var(--cyan);
  color: var(--black);
  background: var(--cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.35);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  transition: min-height 0.4s ease;
}

.gallery-card {
  background: rgba(9, 12, 16, 0.55);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s, opacity 0.4s ease, scale 0.4s ease;
  will-change: transform, opacity;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.gallery-card.filtered-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85) translateY(20px);
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
  border: none;
  padding: 0;
  gap: 0;
}

.gallery-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 25px 50px rgba(0, 240, 255, 0.12);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--void);
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.gallery-card:hover .card-image-wrap img {
  transform: scale(1.08);
}

.card-glow-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 240, 255, 0.15) 0%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  z-index: 3;
}

.gallery-card:hover .card-glow-overlay {
  opacity: 1;
}

.card-info-wrap {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  display: inline-block;
}

.card-info-wrap h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--silver);
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.3;
}

.card-info-wrap p {
  font-size: 13px;
  color: var(--silver-dim);
  line-height: 1.5;
  margin-top: auto;
}

/* ── FULLSCREEN LIGHTBOX MODAL ── */
.hw-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(3, 4, 6, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

.hw-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 40px;
  right: 40px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 40px;
  cursor: pointer;
  z-index: 10010;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s var(--ease);
}

.lightbox-close:hover {
  background: rgba(235, 87, 87, 0.1);
  border-color: var(--red);
  color: var(--red);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10010;
  transition: all 0.3s var(--ease);
}

.lightbox-prev {
  left: 40px;
}

.lightbox-next {
  right: 40px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.lightbox-prev:hover {
  transform: translateY(-50%) translateX(-4px);
}

.lightbox-next:hover {
  transform: translateY(-50%) translateX(4px);
}

.lightbox-content {
  max-width: 1000px;
  width: calc(100% - 240px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

.hw-lightbox.active .lightbox-content {
  transform: scale(1);
  opacity: 1;
}

.lightbox-img-container {
  width: 100%;
  max-height: 65vh;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 240, 255, 0.05);
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.lightbox-img-container img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  width: 100%;
  padding: 24px;
  background: rgba(9, 12, 16, 0.7);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-align: left;
}

.lightbox-category {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--silver);
  font-weight: 600;
  margin-bottom: 10px;
}

.lightbox-desc {
  font-size: 15px;
  color: var(--silver-dim);
  line-height: 1.6;
}

/* ── RESPONSIVE DESIGN FOR GALLERY & VIDEO HUD ── */
@media (max-width: 1024px) {
  .lightbox-content {
    width: calc(100% - 160px);
  }

  .lightbox-prev {
    left: 20px;
  }

  .lightbox-next {
    right: 20px;
  }
}

@media (max-width: 768px) {
  .section-hw-lab {
    padding: 80px 0 !important;
  }

  .video-hud-overlay {
    padding: 16px;
  }

  .hud-mono-text {
    font-size: 9px;
  }

  .video-play-btn {
    width: 60px;
    height: 60px;
  }

  .video-play-btn svg {
    width: 24px;
    height: 24px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }

  .lightbox-content {
    width: calc(100% - 40px);
  }

  .lightbox-prev,
  .lightbox-next {
    display: none;
    /* Hide navigation arrows on small screens, use swiping/taps */
  }

  .lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 30px;
  }
}

/* ══════════════════════════════════════════════════════
   HARDWARE LAB CAROUSEL & LAYOUT SWITCHER SYSTEM
   ══════════════════════════════════════════════════════ */

.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  width: 100%;
}

.gallery-toolbar .gallery-filters {
  margin-bottom: 0;
  /* Override old margin */
}

.gallery-layout-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: 30px;
  backdrop-filter: blur(12px);
  align-self: center;
}

.layout-btn {
  background: transparent;
  border: none;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--silver-dim);
  border-radius: 20px;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.4s var(--ease);
}

.layout-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--silver-dim);
  transition: all 0.4s var(--ease);
}

.layout-btn:hover {
  color: var(--white);
}

.layout-btn:hover svg {
  stroke: var(--white);
}

.layout-btn.active {
  background: var(--cyan);
  color: var(--black);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.layout-btn.active svg {
  stroke: var(--black);
}

/* ── CAROUSEL LAYOUT ── */
.gallery-viewport {
  width: 100%;
  overflow: visible;
  /* Grid mode can hover-scale without clip */
  transition: all 0.4s var(--ease);
}

/* Carousel Active Mode Styles */
.hw-gallery-wrapper.view-carousel {
  position: relative;
}

.hw-gallery-wrapper.view-carousel .gallery-viewport {
  overflow: hidden;
  padding: 0;
  margin: 0;
  cursor: default;
  /* Default cursor, no grab */
}

.hw-gallery-wrapper.view-carousel .gallery-viewport:active {
  cursor: default;
}

.hw-gallery-wrapper.view-carousel .gallery-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  /* No gap — one card fills the full width */
  grid-template-columns: none;
  width: max-content;
  transform: translateX(var(--carousel-translate, 0px));
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  padding: 0;
  margin: 0;
}

.hw-gallery-wrapper.view-carousel .gallery-card {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
  transform: none !important;
  border-radius: 16px;
  overflow: visible;
  box-sizing: border-box;
}

/* Full image with no crop — always show the full photo */
.hw-gallery-wrapper.view-carousel .card-image-wrap {
  aspect-ratio: unset;
  height: 520px;
  /* Tall, tablet-screen-like height */
  background: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hw-gallery-wrapper.view-carousel .card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Full image — no cropping */
  transform: none !important;
  pointer-events: none;
}

.hw-gallery-wrapper.view-carousel .gallery-card:hover {
  transform: none !important;
  /* Disable hover lift in carousel */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* ── CAROUSEL CONTROLS ── */
.carousel-controls {
  display: none;
  /* Hidden in Grid View */
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 50px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.hw-gallery-wrapper.view-carousel .carousel-controls {
  display: flex;
  opacity: 1;
}

.carousel-control-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.carousel-control-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
  transition: transform 0.3s var(--ease), stroke 0.3s var(--ease);
}

.carousel-control-btn:hover:not(:disabled) {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.04);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
  color: var(--cyan);
}

.carousel-control-btn:hover:not(:disabled) svg {
  stroke: var(--cyan);
}

.carousel-control-btn:hover.prev-btn svg {
  transform: translateX(-2px);
}

.carousel-control-btn:hover.next-btn svg {
  transform: translateX(2px);
}

.carousel-control-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.carousel-dot.active {
  background: var(--cyan);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* ── RESPONSIVE MEDIA QUERIES FOR SWITCHER & CAROUSEL ── */
@media (max-width: 1024px) {
  .hw-gallery-wrapper.view-carousel .gallery-card {
    flex: 0 0 100%;
    width: 100%;
  }

  .hw-gallery-wrapper.view-carousel .card-image-wrap {
    height: 440px;
  }
}

@media (max-width: 768px) {
  .gallery-toolbar {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .gallery-toolbar .gallery-filters {
    justify-content: center;
  }

  .gallery-layout-switcher {
    align-self: center;
  }

  .hw-gallery-wrapper.view-carousel .gallery-card {
    flex: 0 0 100%;
    width: 100%;
  }

  .hw-gallery-wrapper.view-carousel .card-image-wrap {
    height: 280px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   INURUM SMART ATTENDANCE SYSTEM - INTERACTIVE SIMULATOR STYLES
   ══════════════════════════════════════════════════════════════════ */

/* Remove any branding comment reference to Antigravity */
/* Replace standard branding values */

/* ── RFID ACADEMY GRID ── */
.rfid-academy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 80px;
}

.academy-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 35px 30px;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.academy-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 12px 30px rgba(0, 240, 255, 0.04);
}

.academy-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 20px;
}

.academy-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--white);
}

.academy-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--silver-dim);
}

@media (max-width: 900px) {
  .rfid-academy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ── INTERACTIVE DASHBOARD CONTAINER ── */
.dash-tab-content {
  display: none;
  animation: fadeInTab 0.4s ease forwards;
}

.dash-tab-content.active {
  display: flex !important;
  flex-direction: column;
  height: 100%;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── REAL-TIME LOGS LAYOUT ── */
.logs-tab-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: start;
  flex-grow: 1;
}

.logs-stream-container {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  overflow: hidden;
  height: 400px;
  display: flex;
  flex-direction: column;
}

.logs-stream-header {
  display: grid;
  grid-template-columns: 100px 1.2fr 1fr 100px;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--silver-dim);
  border-bottom: 1px solid var(--panel-border);
}

.logs-stream-body {
  overflow-y: auto;
  flex-grow: 1;
  padding: 10px 20px;
}

/* Custom scrollbar for logs */
.logs-stream-body::-webkit-scrollbar {
  width: 6px;
}

.logs-stream-body::-webkit-scrollbar-track {
  background: transparent;
}

.logs-stream-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.log-stream-row {
  display: grid;
  grid-template-columns: 100px 1.2fr 1fr 100px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 13px;
  align-items: center;
  animation: slideInLogRow 0.3s ease forwards;
}

.log-stream-row:last-child {
  border-bottom: none;
}

@keyframes slideInLogRow {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.stream-time {
  font-family: var(--font-mono);
  color: var(--silver-dim);
  font-size: 12px;
}

.stream-name {
  font-weight: 500;
  color: var(--white);
}

.stream-dept {
  color: var(--silver-dim);
}

.stream-status {
  font-weight: 600;
  font-size: 12px;
  text-align: right;
}

.stream-status.green {
  color: var(--green);
}

.stream-status.yellow {
  color: #f39c12;
}

.stream-status.red {
  color: #e74c3c;
}

/* ── SIMULATOR PANEL ── */
.rfid-interactive-panel {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rfid-interactive-panel h5.panel-title {
  font-size: 16px;
  font-weight: 600;
}

.rfid-interactive-panel p.panel-subtitle {
  font-size: 12px;
  color: var(--silver-dim);
  margin-top: -15px;
}

/* Badge Cards Deck */
.badge-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sim-badge-card {
  flex: 1 1 calc(50% - 6px);
  background: linear-gradient(135deg, #1b263b, #0d1b2a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.sim-badge-card:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.1);
}

.sim-badge-card.suspended {
  background: linear-gradient(135deg, #2c1a1d, #1c0d0f);
  border-color: rgba(231, 76, 60, 0.2);
}

.sim-badge-card.new-blank {
  background: linear-gradient(135deg, #1e2022, #101214);
  border-style: dashed;
}

.badge-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.badge-card-nfc {
  font-size: 10px;
  font-family: var(--font-mono);
  color: #00f0ff;
}

.sim-badge-card.suspended .badge-card-nfc {
  color: #e74c3c;
}

.sim-badge-card.new-blank .badge-card-nfc {
  color: #95a5a6;
}

.badge-card-level {
  font-size: 9px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--silver-dim);
}

.badge-card-holder {
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-card-id {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--silver-dim);
  margin-top: 4px;
}

/* Mini Reader simulator HUD */
.terminal-simulator-hud {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.sim-reader-bezel {
  width: 170px;
  height: 200px;
  background: var(--dark-gray);
  border: 4px solid #242933;
  border-radius: 20px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.sim-reader-screen {
  background: var(--void);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  flex-grow: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sim-screen-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--silver-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 4px;
  align-items: center;
}

.sim-network-dot {
  width: 4px;
  height: 4px;
  background: var(--green);
  border-radius: 50%;
}

.sim-screen-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
}

.sim-screen-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 100%;
}

.sim-screen-state.active {
  display: flex;
}

.sim-radar-wave {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 50%;
  animation: simRadarCircle 1.6s infinite ease-out;
  margin-bottom: 10px;
}

@keyframes simRadarCircle {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.sim-prompt-text {
  font-size: 10px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
}

.sim-status-sub {
  font-size: 8px;
  font-family: var(--font-mono);
  color: var(--silver-dim);
  margin-top: 4px;
}

.sim-checkmark {
  font-size: 24px;
  color: var(--green);
  margin-bottom: 6px;
  animation: popSuccess 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sim-crossmark {
  font-size: 24px;
  color: #e74c3c;
  margin-bottom: 6px;
  animation: popSuccess 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popSuccess {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.sim-user-name {
  font-size: 9px;
  font-weight: 500;
  color: var(--white);
  margin-top: 2px;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #00f0ff;
  border-radius: 50%;
  animation: simSpin 0.6s infinite linear;
  margin-bottom: 10px;
}

@keyframes simSpin {
  to {
    transform: rotate(360deg);
  }
}

.sim-reader-ring-glow {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 6px;
  background: rgba(0, 240, 255, 0.2);
  border-radius: 3px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.sim-reader-ring-glow.scan-active {
  background: #00f0ff;
  box-shadow: 0 0 10px #00f0ff;
}

.sim-reader-ring-glow.scan-success {
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.sim-reader-ring-glow.scan-error {
  background: #e74c3c;
  box-shadow: 0 0 12px #e74c3c;
}

.sim-reader-ring-glow.scan-enrolling {
  background: #f39c12;
  box-shadow: 0 0 12px #f39c12;
}

/* ── EMPLOYEE REGISTRY TAB ── */
.employees-list-container {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  overflow-x: auto;
}

.employees-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.employees-table th,
.employees-table td {
  padding: 16px 24px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--panel-border);
}

.employees-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--silver-dim);
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.02);
}

.employees-table tr:last-child td {
  border-bottom: none;
}

.badge-status-pill {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
}

.badge-status-pill.active {
  background: rgba(39, 174, 96, 0.12);
  color: var(--green);
}

.badge-status-pill.suspended {
  background: rgba(231, 76, 60, 0.12);
  color: #e74c3c;
}

.btn-toggle-status {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--silver-dim);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-toggle-status:hover {
  border-color: rgba(var(--text-rgb, 255, 255, 255), 0.3);
  color: var(--white);
}

/* ── SHIFT RULES MOCK PANEL ── */
.shift-rules-mock {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.shift-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 24px;
}

.shift-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.shift-badge {
  font-size: 11px;
  background: rgba(46, 123, 255, 0.1);
  color: #4fe3ff;
  padding: 3px 8px;
  border-radius: 4px;
}

.shift-card p {
  font-size: 13px;
  color: var(--silver-dim);
  line-height: 1.6;
}

/* ── PAYROLL EXPORT MOCK PANEL ── */
.payroll-mock-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.payroll-grid-actions {
  display: flex;
  gap: 15px;
}

.btn-export-mock {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s, border-color 0.2s;
  flex: 1;
}

.btn-export-mock:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(var(--text-rgb, 255, 255, 255), 0.2);
}

.export-ledger-preview {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 20px;
}

.export-ledger-preview h5 {
  font-size: 13px;
  margin-bottom: 12px;
}

.preview-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.preview-row.header {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--silver-dim);
  border-bottom: 1px solid var(--panel-border);
}

.preview-row span.green {
  color: var(--green);
}

.preview-row span.yellow {
  color: #f39c12;
}

/* ── ENROLLMENT TRIGGER & BUTTONS ── */
.btn-enroll-trigger {
  background: #2e7bff;
  border: none;
  color: var(--white);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-enroll-trigger:hover {
  background: #1d60c7;
}

.btn-enroll-trigger.enrolling {
  background: #f39c12;
  animation: pulseEnrollBtn 1s infinite alternate;
}

@keyframes pulseEnrollBtn {
  from {
    opacity: 0.8;
  }

  to {
    opacity: 1;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.4);
  }
}

/* ── ENROLLMENT MODAL ── */
.enrollment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.enrollment-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 7, 10, 0.8);
  backdrop-filter: blur(10px);
}

.modal-container {
  background: #0c0e14;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  width: 440px;
  max-width: 90%;
  position: relative;
  z-index: 10;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.enrollment-modal.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  border-bottom: 1px solid var(--panel-border);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--silver-dim);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--white);
}

.modal-body {
  padding: 30px;
}

.modal-hint {
  font-size: 13px;
  color: var(--silver-dim);
  line-height: 1.6;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-group label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--silver-dim);
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  color: var(--white);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.form-group input[readonly] {
  color: var(--silver-dim);
  background: rgba(255, 255, 255, 0.01);
  cursor: not-allowed;
}

/* Responsive adjustment for dashboard grid */
@media (max-width: 1024px) {
  .logs-tab-grid {
    grid-template-columns: 1fr;
  }
}