/* ========================================
   RN Solutions - Global Stylesheet  v2.5 (Bespoke Craft Edition)
   ======================================== */

/* ---------------------------------------- Custom Properties & Design Tokens ---------------------------------------- */
:root {
  --bg:           #060c16;         /* Obsidian slate */
  --bg-surface:   #091424;         /* Elevated surface */
  --bg-soft:      #0c192c;         /* Card & panel surface */
  --card:         #0e1c31;         /* Primary container */
  --card-hover:   #13243d;         /* Interactive state */
  --text:         #edf4ff;         /* Primary text */
  --muted:        #9ab0cb;         /* Secondary descriptive */
  --muted-dark:   #627794;         /* Micro metadata / technical tags */
  --accent:       #3ea6ff;         /* Electric cyan-blue */
  --accent-2:     #4eedc4;         /* Mint emerald glow */
  --accent-3:     #9f7aea;         /* Violet architectural highlight */
  --line:         rgba(255,255,255,.08);
  --line-light:   rgba(255,255,255,.14);
  --white:        #ffffff;
  --shadow:       0 24px 64px rgba(0,0,0,.35);
  --shadow-sm:    0 8px 24px rgba(0,0,0,.22);
  --radius:       18px;
  --radius-sm:    10px;
  --radius-pill:  999px;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --t:            .28s;
  --font-mono:    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ---------------------------------------- Reset & Base Typography ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Film-grain texture overlay - removes synthetic AI smoothness */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Architectural micro-grid background texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .018;
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.5) 1px, transparent 1px);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 1; }

/* ---------------------------------------- Upgraded Unified Navbar ---------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  transition: padding var(--t) var(--ease), background var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  background: rgba(6, 12, 22, 0.72);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--line);
}

/* Scrolled elevation state */
.site-header.scrolled {
  padding: 10px 0;
  background: rgba(6, 12, 22, 0.90);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

/* Hairline laser top accent */
.site-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-2) 20%,
    var(--accent)   50%,
    var(--accent-3) 80%,
    transparent 100%
  );
  opacity: .85;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Brand logo */
.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.brand:hover {
  transform: translateY(-1px);
  opacity: .95;
}
.brand-logo {
  width: 190px;
  height: auto;
  display: block;
}

/* Floating Glass Nav Dock (Desktop) */
.nav-dock {
  display: flex;
  align-items: center;
}
.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 6px;
  background: rgba(14, 28, 49, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Individual nav item */
.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  transition: color var(--t) var(--ease), background var(--t) var(--ease), transform var(--t) var(--ease);
  white-space: nowrap;
  letter-spacing: -.01em;
  z-index: 1;
}

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

/* Active page indicator badge inside dock */
.nav-links a.active {
  color: var(--white);
  font-weight: 600;
  background: rgba(62, 166, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(62, 166, 255, 0.35), 0 2px 8px rgba(62, 166, 255, 0.18);
}
.nav-links a.active::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--accent-2);
}

/* Nav Actions cluster (right side) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}


/* Tactile Contact Button */
.nav-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #3ea6ff 0%, #2087eb 100%);
  color: #030e1a !important;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(62, 166, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform var(--t) var(--ease-spring), box-shadow var(--t) var(--ease), filter var(--t) var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.nav-cta .cta-arrow {
  transition: transform var(--t) var(--ease);
}
.nav-cta:hover .cta-arrow {
  transform: translateX(3px);
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 70%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.24), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
  pointer-events: none;
}
.btn:hover::before, .nav-cta:hover::before { left: 180%; }
.btn:hover, .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(62,166,255,.38);
  filter: brightness(1.05);
}
.btn:active, .nav-cta:active {
  transform: translateY(0);
}

.btn.secondary {
  background: rgba(14, 28, 49, 0.65);
  color: var(--text) !important;
  border: 1px solid var(--line-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn.secondary:hover {
  background: rgba(22, 40, 68, 0.8);
  border-color: rgba(62, 166, 255, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Modern Animated 2-Bar Burger Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(14, 28, 49, 0.65);
  border: 1px solid var(--line-light);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.mobile-toggle:hover {
  background: rgba(22, 40, 68, 0.9);
  border-color: var(--accent);
}
.burger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease), background var(--t) var(--ease);
}
.mobile-toggle.is-open .burger-bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
  background: var(--accent);
}
.mobile-toggle.is-open .burger-bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
  background: var(--accent);
}

/* ---------------------------------------- Mobile Navigation Drawer ---------------------------------------- */
@media (max-width: 960px) {
  .mobile-toggle { display: flex; }
  .nav-dock {
    display: none;
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    background: rgba(8, 17, 31, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 20px 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(62, 166, 255, 0.15);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 99;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
  }
  .nav-dock.open {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    background: transparent;
    border: none;
    padding: 0;
    gap: 6px;
    box-shadow: none;
  }
  .nav-links a {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
  }
  .nav-links a:hover, .nav-links a.active {
    background: rgba(62, 166, 255, 0.14);
    border-color: rgba(62, 166, 255, 0.28);
  }
}

/* ---------------------------------------- Architectural Hero Section ---------------------------------------- */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 650px; height: 650px;
  right: -150px; top: -150px;
  background: radial-gradient(circle, rgba(62,166,255,.14) 0%, rgba(78,237,196,.04) 45%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}
.hero::after {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  left: -180px; bottom: -180px;
  background: radial-gradient(circle, rgba(78,237,196,.08) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(50px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { max-width: 920px; }
.hero-simple .lead { max-width: 820px; }

/* Architectural Eyebrow with Monospace Tag */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: rgba(78, 237, 196, 0.08);
  border: 1px solid rgba(78, 237, 196, 0.22);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.eyebrow::before {
  content: '//';
  color: var(--accent-2);
  opacity: .75;
}

h1 {
  font-size: clamp(42px, 5.8vw, 74px);
  line-height: 1.05;
  margin: 14px 0 20px;
  letter-spacing: -.045em;
  font-weight: 800;
}
.lead {
  font-size: clamp(16.5px, 1.8vw, 20px);
  color: var(--muted);
  max-width: 720px;
  line-height: 1.72;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ---------------------------------------- Interactive Cards with Cursor-Driven Spotlight ---------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ---------------------------------------- Flip Card System (IT Services) ---------------------------------------- */
.flip-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.flip-card {
  height: 260px;
  perspective: 1200px;
  cursor: pointer;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(0.25, 0.8, 0.25, 1);
}
/* Hover flips on desktop; .is-flipped used by JS for touch devices */
.flip-card:hover .flip-card-inner,
.flip-card.is-flipped .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
/* Front */
.flip-card-front {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.flip-card-front::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(62, 166, 255, 0.12),
    transparent 40%
  );
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.flip-card:hover .flip-card-front::before { opacity: 1; }
.flip-card:hover .flip-card-front {
  border-color: rgba(62, 166, 255, 0.32);
  box-shadow: 0 20px 48px rgba(0,0,0,.38), 0 0 0 1px rgba(62,166,255,.15);
}
.flip-card-front .fc-hint {
  margin-top: auto;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--muted-dark);
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.flip-card-front .fc-hint svg {
  width: 12px;
  height: 12px;
  opacity: .6;
}
/* Back */
.flip-card-back {
  background: linear-gradient(145deg, #0e2039 0%, #091424 100%);
  border: 1px solid rgba(62,166,255,.30);
  padding: 26px 24px;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 80px rgba(62,166,255,.04);
}
.flip-card-back .fc-back-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--font-mono);
}
.flip-card-back ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.flip-card-back ul li {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
.flip-card-back ul li::before {
  content: '\00b7';
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}
.flip-card-back .fc-back-cta {
  margin-top: auto;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .04em;
}
/* Mobile: tap to flip */
@media (max-width: 960px) {
  .flip-card { height: 280px; }
}
@media (max-width: 700px) {
  .flip-cards { grid-template-columns: 1fr 1fr; }
  .flip-card { height: 300px; }
}
@media (max-width: 480px) {
  .flip-cards { grid-template-columns: 1fr; }
  .flip-card { height: 260px; }
}
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform var(--t) var(--ease),
              border-color var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
  overflow: hidden;
}

/* Dynamic mouse spotlight: tracks pointer coordinates */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(
    550px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(62, 166, 255, 0.12),
    transparent 42%
  );
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}

/* Subtle corner crosshair tick (Architectural mark) */
.card::after {
  content: '+';
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted-dark);
  opacity: .5;
  transition: color var(--t) var(--ease), transform var(--t) var(--ease), opacity var(--t) var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(62, 166, 255, 0.32);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(62, 166, 255, 0.15);
}
.card:hover::before { opacity: 1; }
.card:hover::after {
  color: var(--accent-2);
  opacity: 1;
  transform: rotate(90deg);
}

.card h3 {
  margin: 16px 0 10px;
  font-size: 20px;
  letter-spacing: -.025em;
  font-weight: 700;
  color: var(--white);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

/* Icon containers */
.icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(62, 166, 255, 0.14), rgba(78, 237, 196, 0.05));
  border: 1px solid rgba(62, 166, 255, 0.22);
  color: var(--accent);
  font-size: 20px;
  flex-shrink: 0;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card:hover .icon {
  transform: scale(1.06);
  border-color: var(--accent);
}
.icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* Animated link arrow */
.link-arrow {
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  transition: gap var(--t) var(--ease-spring), color var(--t) var(--ease);
}
.card:hover .link-arrow {
  gap: 9px;
  color: var(--white);
}

/* ---------------------------------------- Scroll Reveal with Staggered Transitions ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------- Sections Styling ---------------------------------------- */
.section { padding: 92px 0; position: relative; }
.section.alt {
  background: #08111e;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { max-width: 740px; margin-bottom: 46px; }
.section h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -.035em;
  margin: 12px 0 16px;
  font-weight: 800;
}
.section p { color: var(--muted); }

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.feature-list { display: grid; gap: 14px; margin-top: 24px; }
.feature { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 14.5px; }
.feature b { color: var(--text); }
.check {
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(78,237,196,.12);
  color: var(--accent-2);
  font-size: 12.5px;
  margin-top: 2px;
  border: 1px solid rgba(78,237,196,.22);
}

/* Visual glass panels */
.visual {
  min-height: 360px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(62,166,255,.14), rgba(78,237,196,.04)), #0b1728;
  border: 1px solid var(--line-light);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.visual .big-number {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -.05em;
  color: var(--white);
  font-family: var(--font-mono);
}
.visual .tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  margin: 5px 5px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* ---------------------------------------- CTA Box (Signature Craft) ---------------------------------------- */
.cta-box {
  background: linear-gradient(135deg, rgba(62,166,255,.12) 0%, rgba(78,237,196,.06) 100%), #0c182a;
  border: 1px solid rgba(62,166,255,.24);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.cta-box::before {
  content: '';
  position: absolute;
  right: -50px; top: -70px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(62,166,255,.12), transparent 70%);
  pointer-events: none;
}
.cta-box h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 2.8vw, 36px);
  letter-spacing: -.03em;
  color: var(--white);
}

/* ---------------------------------------- Inner Page Hero ---------------------------------------- */
.page-hero {
  padding: 84px 0 54px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(175deg, #0a1727 0%, #060c16 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  right: -50px; top: -50px;
  width: 480px; height: 400px;
  background: radial-gradient(circle, rgba(62,166,255,.12), transparent 70%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(40px, 5.2vw, 66px); max-width: 900px; }

/* ---------------------------------------- Contact Section ---------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; }
.contact-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item strong { display: block; margin-bottom: 4px; color: var(--white); font-size: 14px; }
.contact-item a { color: var(--accent); transition: color var(--t) var(--ease); }
.contact-item a:hover { color: var(--accent-2); }
form { display: grid; gap: 14px; }
input, textarea {
  width: 100%;
  background: rgba(10, 21, 36, 0.85);
  color: var(--text);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: 13px 16px;
  font: inherit;
  font-size: 14px;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(62, 166, 255, 0.16);
}
textarea { min-height: 140px; resize: vertical; }

/* ---------------------------------------- Quick Instant Chat Buttons (WhatsApp & Teams) ---------------------------------------- */
.chat-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 28px;
}
.btn-chat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 14px;
  background: rgba(14, 28, 49, 0.6);
  border: 1px solid var(--line-light);
  color: var(--text);
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.btn-chat strong {
  display: block;
  font-size: 14.5px;
  color: #fff;
  letter-spacing: -.01em;
}
.btn-chat small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.btn-chat .chat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform var(--t) var(--ease);
}
.btn-whatsapp .chat-icon {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 211, 102, 0.45);
  background: rgba(37, 211, 102, 0.08);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.16);
}
.btn-teams .chat-icon {
  background: rgba(84, 91, 199, 0.18);
  color: #7b83eb;
  border: 1px solid rgba(84, 91, 199, 0.35);
}
.btn-teams:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 131, 235, 0.5);
  background: rgba(84, 91, 199, 0.10);
  box-shadow: 0 8px 24px rgba(84, 91, 199, 0.2);
}
.btn-chat:hover .chat-icon {
  transform: scale(1.08);
}

/* ---------------------------------------- Office Location / Tarxien Under Construction Card ---------------------------------------- */
.office-card {
  margin-top: 24px;
  padding: 22px;
  border-radius: 16px;
  background: rgba(14, 28, 49, 0.5);
  border: 1px solid var(--line-light);
  position: relative;
  overflow: hidden;
}
.office-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg, #f59e0b, #d97706);
}
.construction-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #fbbf24;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.amber-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
  animation: pulse-amber 2s infinite;
}
@keyframes pulse-amber {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(0.85); }
}
.office-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.office-location {
  font-size: 13.5px;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.office-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------------------------------------- Bespoke Footer ---------------------------------------- */
.site-footer {
  margin-top: 72px;
  padding: 56px 0 24px;
  border-top: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, #070e1a 0%, #040810 100%);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent) 30%,
    var(--accent-2) 55%,
    var(--accent-3) 75%,
    transparent 100%
  );
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; align-items: start; }
.footer-logo img { width: 145px; height: auto; display: block; margin-bottom: 16px; }
.footer-brand p { max-width: 300px; color: var(--muted); line-height: 1.7; margin: 0; font-size: 13px; }
.footer-column { display: flex; flex-direction: column; gap: 10px; }
.footer-column h4 { margin: 0 0 8px; color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.footer-column a,
.footer-column span { color: var(--muted); text-decoration: none; transition: color var(--t) var(--ease), transform var(--t) var(--ease); display: inline-block; font-size: 13.5px; }
.footer-column a:hover { color: var(--accent); transform: translateX(3px); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-dark);
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------------------------------- Responsive Breakdown ---------------------------------------- */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), 1180px); }
  .cards { grid-template-columns: 1fr; }
  .cta-box { padding: 30px 24px; flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-logo { width: 165px; }
}

/* ========================================
   CCTV Streaming & Camera specific styling (Preserved)
   ======================================== */
.stream-frame { background: #06111f; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.stream-frame iframe { display: block; width: 100%; height: clamp(340px,56vw,700px); border: 0; background: #020812; }
.cctv-page { background: #060c16; }
.cctv-hero { padding: 40px 0; background: radial-gradient(circle at 68% 18%, rgba(42,126,201,.10), transparent 35%), #060c16; border-bottom: 1px solid var(--line); }
.cctv-hero-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 44px; align-items: center; }
.cctv-hero-copy h1 { font-size: clamp(42px, 4.8vw, 64px); max-width: 620px; margin: 14px 0 18px; }
.cctv-hero-copy .lead { font-size: 16.5px; line-height: 1.72; max-width: 600px; color: var(--muted); }
.cctv-benefits { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 28px; }
.cctv-benefit { text-align: center; }
.cctv-benefit-icon { width: 44px; height: 44px; margin: 0 auto 10px; display: grid; place-items: center; color: var(--accent); border: 1px solid rgba(62,166,255,.3); border-radius: 12px; font-weight: 800; font-size: 14px; background: rgba(62,166,255,.08); }
.cctv-benefit strong { display: block; font-size: 12.5px; color: #fff; margin-bottom: 3px; }
.cctv-benefit small { display: block; color: var(--muted); font-size: 11px; }

/* ── Interactive CCTV Command Console & 3-Player System ── */
.cctv-player-deck {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* 1. Glass Segmented Switcher */
.cctv-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(8, 20, 36, 0.75);
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.cctv-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  font-family: inherit;
}
.cctv-tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.cctv-tab-btn .tab-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  transition: all 0.25s var(--ease);
}
.cctv-tab-btn .tab-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.cctv-tab-btn .tab-text strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.cctv-tab-btn .tab-text small {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Active tab states */
.cctv-tab-btn.active {
  background: linear-gradient(135deg, rgba(62, 166, 255, 0.18), rgba(14, 34, 61, 0.85));
  border-color: rgba(62, 166, 255, 0.45);
  box-shadow: 0 4px 18px rgba(62, 166, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: #fff;
}
.cctv-tab-btn.active .tab-icon {
  background: rgba(62, 166, 255, 0.22);
  color: #3ea6ff;
  box-shadow: 0 0 12px rgba(62, 166, 255, 0.35);
}
.cctv-tab-btn.active .tab-text strong {
  color: #ffffff;
}
.cctv-tab-btn.active .tab-text small {
  color: #6be2c5;
}

/* Custom coloring per active type */
.cctv-player-deck[data-active="Stat"] .cctv-tab-btn.active {
  background: linear-gradient(135deg, rgba(78, 237, 196, 0.18), rgba(11, 40, 42, 0.85));
  border-color: rgba(78, 237, 196, 0.45);
  box-shadow: 0 4px 18px rgba(78, 237, 196, 0.22);
}
.cctv-player-deck[data-active="Stat"] .cctv-tab-btn.active .tab-icon {
  background: rgba(78, 237, 196, 0.22);
  color: #4eedc4;
  box-shadow: 0 0 12px rgba(78, 237, 196, 0.35);
}

.cctv-player-deck[data-active="TL"] .cctv-tab-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(46, 31, 12, 0.85));
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.22);
}
.cctv-player-deck[data-active="TL"] .cctv-tab-btn.active .tab-icon {
  background: rgba(245, 158, 11, 0.22);
  color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

/* 2. Cyber Broadcast Console Frame */
.cctv-console-frame {
  position: relative;
  background: #050d18;
  border: 1.5px solid rgba(62, 166, 255, 0.28);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), 0 0 40px rgba(62, 166, 255, 0.1);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.cctv-player-deck[data-active="Stat"] .cctv-console-frame {
  border-color: rgba(78, 237, 196, 0.35);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), 0 0 40px rgba(78, 237, 196, 0.12);
}
.cctv-player-deck[data-active="TL"] .cctv-console-frame {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), 0 0 40px rgba(245, 158, 11, 0.12);
}

/* 3. Top HUD Bar */
.cctv-hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(14, 30, 52, 0.95), rgba(7, 17, 30, 0.95));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
}
.hud-left, .hud-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hud-beacon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 71, 71, 0.14);
  color: #ff5252;
  border: 1px solid rgba(255, 71, 71, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.hud-beacon .hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4747;
  animation: pulse-beacon 1.8s infinite;
}
.hud-meta {
  color: var(--muted);
  letter-spacing: 0.05em;
  font-weight: 600;
}
.hud-res-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c9d6e8;
  padding: 3px 7px;
  border-radius: 5px;
  font-weight: 700;
}
.hud-mode-pill {
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(62, 166, 255, 0.16);
  color: #3ea6ff;
  border: 1px solid rgba(62, 166, 255, 0.35);
  transition: all 0.3s var(--ease);
}
.cctv-player-deck[data-active="Stat"] .hud-mode-pill {
  background: rgba(78, 237, 196, 0.16);
  color: #4eedc4;
  border-color: rgba(78, 237, 196, 0.35);
}
.cctv-player-deck[data-active="TL"] .hud-mode-pill {
  background: rgba(245, 158, 11, 0.16);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.35);
}

/* 4. Stream Viewport & Loader */
.cctv-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.cctv-viewport iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
  transition: opacity 0.3s ease;
}
.cctv-viewport.is-loading iframe {
  opacity: 0.4;
}
.cctv-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(3, 9, 18, 0.75);
  backdrop-filter: blur(6px);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.cctv-viewport.is-loading .cctv-loader {
  opacity: 1;
  pointer-events: auto;
}
.cctv-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(62, 166, 255, 0.2);
  border-top-color: #3ea6ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 5. Lower Console Status Strip */
.cctv-hud-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 18px;
  background: linear-gradient(180deg, #071322, #040c16);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.hud-description {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.hud-desc-icon {
  color: #3ea6ff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hud-popout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: #c9d6e8;
  font-size: 11.5px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}
.hud-popout-btn:hover {
  background: rgba(62, 166, 255, 0.15);
  border-color: rgba(62, 166, 255, 0.4);
  color: #fff;
}

/* ── 3-Player Types Interactive Showcase Section ── */
.cctv-types-section {
  padding: 70px 0 80px;
  background: linear-gradient(180deg, #060c16 0%, #081426 50%, #060c16 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.cctv-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cctv-type-card {
  position: relative;
  background: linear-gradient(145deg, rgba(14, 30, 52, 0.7), rgba(7, 16, 28, 0.95));
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  cursor: pointer;
  overflow: hidden;
}
.cctv-type-card:hover {
  transform: translateY(-5px);
  border-color: rgba(62, 166, 255, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(62, 166, 255, 0.1);
}
.cctv-type-card.active {
  border-color: rgba(62, 166, 255, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(62, 166, 255, 0.18);
  background: linear-gradient(145deg, rgba(20, 44, 76, 0.85), rgba(9, 21, 38, 0.98));
}
#card-Stat.active {
  border-color: rgba(78, 237, 196, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(78, 237, 196, 0.18);
}
#card-TL.active {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(245, 158, 11, 0.18);
}

.type-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  position: relative;
}
.type-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform var(--t) var(--ease);
}
.cctv-type-card:hover .type-card-icon {
  transform: scale(1.08);
}
.type-icon--blue {
  background: rgba(62, 166, 255, 0.14);
  color: #3ea6ff;
  border: 1px solid rgba(62, 166, 255, 0.3);
}
.type-icon--teal {
  background: rgba(78, 237, 196, 0.14);
  color: #4eedc4;
  border: 1px solid rgba(78, 237, 196, 0.3);
}
.type-icon--amber {
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.type-card-param {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted-dark);
}
.type-card-title {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.type-status-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 5px;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cctv-type-card.active .type-status-badge {
  background: rgba(78, 237, 196, 0.15);
  color: #4eedc4;
  border-color: rgba(78, 237, 196, 0.35);
}

.type-card-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 18px;
}
.type-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.type-feature-list li {
  font-size: 12.5px;
  color: #c9d6e8;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
.type-feature-list li::before {
  content: '✓';
  color: var(--accent-2);
  font-weight: 800;
  flex-shrink: 0;
}
.type-card-footer {
  margin-top: auto;
}
.type-switch-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
}

@media (max-width: 960px) {
  .cctv-switcher { grid-template-columns: 1fr; }
  .cctv-types-grid { grid-template-columns: 1fr; }
  .hud-meta { display: none; }
  .hud-description { font-size: 11.5px; }
}

.cctv-managed { padding: 44px 0; border-bottom: 1px solid var(--line); }
.cctv-managed-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; }
.cctv-managed-item { display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.managed-icon { color: var(--accent); font-weight: 800; font-size: 22px; }
.cctv-managed-item h3 { font-size: 14px; margin: 0 0 6px; color: #fff; }
.cctv-managed-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.cctv-applications { padding: 44px 0 60px; background: linear-gradient(180deg,#060c16,#081324); }
.cctv-application-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.cctv-application-card { background: linear-gradient(180deg,#0b1a2d,#071220); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform var(--t) var(--ease), border-color var(--t) var(--ease); }
.cctv-application-card:hover { transform: translateY(-4px); border-color: rgba(62,166,255,.4); }
.cctv-application-card > img { width: 100%; height: 165px; object-fit: cover; }
.cctv-app-body { position: relative; padding: 26px 16px 16px; }
.cctv-app-icon { position: absolute; top: -22px; left: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #1686e5; border: 3px solid #081324; color: #fff; font-size: 18px; font-weight: 800; }
.cctv-app-body h3 { margin: 2px 0 8px; font-size: 17px; color: #fff; }
.cctv-app-body p { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.cctv-app-body ul { list-style: none; padding: 0; margin: 0; }
.cctv-app-body li { position: relative; padding: 3px 0 3px 18px; color: #c0d1e5; font-size: 11.5px; }
.cctv-app-body li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent-2); font-weight: 800; }

.timelapse-box { margin-top: 24px; display: grid; grid-template-columns: .9fr 1.6fr; gap: 28px; align-items: center; padding: 24px; background: rgba(14,28,49,.5); border: 1px solid var(--line-light); border-radius: 16px; }
.timelapse-copy { display: grid; grid-template-columns: 60px 1fr; gap: 18px; align-items: center; }
.timelapse-icon { width: 56px; height: 56px; border: 3px solid var(--accent); color: var(--accent); border-radius: 50%; display: grid; place-items: center; font-size: 32px; }
.timelapse-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.timelapse-strip img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

@media (max-width:1050px) {
  .cctv-hero-grid, .timelapse-box { grid-template-columns: 1fr; }
  .cctv-managed-grid, .cctv-application-grid { grid-template-columns: repeat(2,1fr); }
  .timelapse-strip { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:720px) {
  .cctv-benefits { grid-template-columns: repeat(2,1fr); }
  .cctv-managed-grid, .cctv-application-grid { grid-template-columns: 1fr; }
}

/* ========================================
   Floating WhatsApp Chat Widget (Bottom Right)
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2fe675, #20ba59);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(32, 186, 89, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  text-decoration: none;
  transition: transform var(--t) var(--ease-spring), box-shadow var(--t) var(--ease), filter var(--t) var(--ease);
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(47, 230, 117, 0.5);
  animation: pulse-ring 2.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}
@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.9; }
  50% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}
.whatsapp-float:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 32px rgba(32, 186, 89, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
  color: #ffffff !important;
}
.whatsapp-float .whatsapp-icon {
  width: 32px;
  height: 32px;
  display: block;
  color: #ffffff;
}
.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: rgba(8, 17, 31, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(8, 17, 31, 0.94);
}
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 640px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float .whatsapp-icon {
    width: 28px;
    height: 28px;
  }
  .whatsapp-tooltip {
    display: none;
  }
}


/* ---------------------------------------- RN Solutions Pillar Diagram (Home Page) ---------------------------------------- */
.rns-pillars-section {
  background: var(--bg);
}

/* Root badge */
.rns-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rns-tree-root {
  display: flex;
  justify-content: center;
}
.rns-root-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(62,166,255,.18), rgba(78,237,196,.10));
  border: 1.5px solid rgba(62,166,255,.45);
  border-radius: 40px;
  padding: 12px 28px;
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  box-shadow: 0 0 40px rgba(62,166,255,.12);
}
.rns-root-badge svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Trunk line */
.rns-tree-trunk {
  width: 2px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(62,166,255,.5), rgba(62,166,255,.2));
}

/* Horizontal crossbar */
.rns-tree-bar {
  width: min(900px, 100%);
  height: 2px;
  background: linear-gradient(to right,
    transparent 3%,
    rgba(62,166,255,.35) 16%,
    rgba(62,166,255,.35) 50%,
    rgba(62,166,255,.35) 84%,
    transparent 97%
  );
  position: relative;
}

/* Three pillar columns */
.rns-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: min(900px, 100%);
  margin-top: 0;
}

/* Each pillar column */
.rns-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Vertical stem from bar to card */
.rns-pillar-stem {
  width: 2px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(62,166,255,.3), rgba(62,166,255,.15));
  flex-shrink: 0;
}

/* Pillar header card */
.rns-pillar-card {
  width: 100%;
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  border: 1.5px solid transparent;
  position: relative;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.rns-pillar-card:hover {
  transform: translateY(-3px);
}
.rns-pillar--blue {
  background: linear-gradient(145deg, rgba(62,166,255,.13), rgba(62,166,255,.05));
  border-color: rgba(62,166,255,.35);
  box-shadow: 0 8px 32px rgba(62,166,255,.08);
}
.rns-pillar--teal {
  background: linear-gradient(145deg, rgba(78,237,196,.13), rgba(78,237,196,.05));
  border-color: rgba(78,237,196,.35);
  box-shadow: 0 8px 32px rgba(78,237,196,.08);
}
.rns-pillar--purple {
  background: linear-gradient(145deg, rgba(160,130,255,.13), rgba(160,130,255,.05));
  border-color: rgba(160,130,255,.35);
  box-shadow: 0 8px 32px rgba(160,130,255,.08);
}
.rns-pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.rns-pillar--blue .rns-pillar-icon  { background: rgba(62,166,255,.15); color: #3ea6ff; border: 1px solid rgba(62,166,255,.25); }
.rns-pillar--teal .rns-pillar-icon  { background: rgba(78,237,196,.15); color: #4eedc4; border: 1px solid rgba(78,237,196,.25); }
.rns-pillar--purple .rns-pillar-icon { background: rgba(160,130,255,.15); color: #a082ff; border: 1px solid rgba(160,130,255,.25); }
.rns-pillar-icon svg { width: 20px; height: 20px; }
.rns-pillar-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -.015em;
}

/* Items list below each card */
.rns-pillar-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.025);
}
.rns-pillar-items span {
  display: block;
  padding: 9px 16px;
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  line-height: 1.4;
  font-family: var(--font-mono);
  letter-spacing: .01em;
  transition: background .2s, color .2s;
}
.rns-pillar-items span:last-child { border-bottom: none; }
.rns-pillar--blue  .rns-pillar-items span:hover { background: rgba(62,166,255,.07);  color: var(--text); }
.rns-pillar--teal  .rns-pillar-items span:hover { background: rgba(78,237,196,.07);  color: var(--text); }
.rns-pillar--purple .rns-pillar-items span:hover { background: rgba(160,130,255,.07); color: var(--text); }

/* Link at bottom */
.rns-pillar-link {
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .2s, gap .2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rns-pillar--teal  .rns-pillar-link { color: #4eedc4; }
.rns-pillar--purple .rns-pillar-link { color: #a082ff; }
.rns-pillar-link:hover { opacity: .8; }

/* Mobile stacked layout */
@media (max-width: 860px) {
  .rns-tree-bar { display: none; }
  .rns-tree-trunk { display: none; }
  .rns-pillars {
    grid-template-columns: 1fr;
    gap: 28px;
    width: 100%;
  }
  .rns-pillar-stem { display: none; }
  .rns-pillar-card { flex-direction: row; text-align: left; gap: 14px; }
  .rns-pillar-label { font-size: 15px; }
}
