/* ============================================================
   NETWORKING EXPERTS — Sneako-inspired Light Editorial Theme
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ====== CSS CUSTOM PROPERTIES ====== */
:root {
  /* ── Framer Sneaks Warm Editorial Palette ── */
  --bg: #FAF9F6;
  --bg-2: #F4F2EC;
  --bg-card: #FFFFFF;
  --bg-card-h: #FAF9F6;
  --bg-dark: #111111;
  --bg-dark-2: #1E1E1E;

  /* ── Accent (Coral / Orange-Red + Black) ── */
  --accent: #2563EB;
  --accent-h: #1D4ED8;
  --accent-2: #111111;

  /* ── Text ── */
  --text: #111111;
  --text-2: #4A4A4A;
  --text-3: #8C8C8C;
  --text-inv: #FAF9F6;
  --text-inv-2: #C5C4C0;

  /* ── Borders ── */
  --border: #111111;
  --border-a: rgba(17, 17, 17, 0.4);
  --border-dark: rgba(250, 249, 246, 0.15);

  /* ── Gradients ── */
  --grad-accent: linear-gradient(135deg, #2563EB, #111111);
  --grad-dark: linear-gradient(135deg, #111111, #1E1E1E);

  /* ── Shadows (soft-mode shadows) ── */
  --shadow-sm: 0 2px 10px rgba(17, 17, 17, 0.05);
  --shadow-md: 0 8px 24px rgba(17, 17, 17, 0.08);
  --shadow-lg: 0 20px 48px rgba(17, 17, 17, 0.1);
  --shadow-a: 0 8px 30px rgba(37, 99, 235, 0.15);

  /* ── Type ── */
  --font-h: 'Space Grotesk', sans-serif;
  --font-b: 'Inter', sans-serif;

  /* ── Easing ── */
  --tr: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-spring: 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  --tr-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Radii (Minimalist sharp corners matching Framer Sneaks) ── */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-full: 9999px;
}

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

html {
  scroll-behavior: auto;
  overflow-x: hidden;
}

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 3px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: var(--r-full);
}

::selection {
  background: rgba(232, 96, 30, .15);
}

/* ====== SCROLL PROGRESS ====== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  z-index: 9999;
  background: var(--grad-accent);
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
  transition: transform .05s linear;
}

/* ====== LOADER ====== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: transform 1.1s cubic-bezier(0.85, 0, 0.15, 1), visibility 1.1s ease;
}

.loader.done {
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
}

.loader__mark {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  line-height: 0;
}

.loader__logo {
  font-family: var(--font-h);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text);
}

.loader__logo span {
  color: var(--accent);
}

.loader__bar {
  width: 180px;
  height: 1.5px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
}

.loader__fill {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--grad-accent);
  border-radius: var(--r-full);
  animation: loaderFill 1.6s ease forwards;
}

@keyframes loaderFill {
  to {
    transform: scaleX(1);
  }
}

.loader__percent {
  font-size: .75rem;
  color: var(--text-3);
  letter-spacing: .12em;
  font-family: var(--font-h);
}

/* ====== CUSTOM CURSOR ====== */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, background .25s;
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(232, 96, 30, .4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: width .22s, height .22s, border-color .22s;
}

.cursor.expand {
  width: 16px;
  height: 16px;
  background: var(--text);
}

.cursor-ring.expand {
  width: 48px;
  height: 48px;
  border-color: rgba(0, 0, 0, .2);
}

/* ====== NAV ====== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  transition: var(--tr);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav.solid {
  padding: 1rem 2.5rem;
  background: var(--bg);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
}

.nav__logo-mark {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.nav__logo span {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav__link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  transition: color var(--tr-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--tr);
  border-radius: var(--r-full);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
}

.nav__cta {
  background: var(--text);
  color: var(--bg);
  padding: .6rem 1.5rem;
  border-radius: var(--r-full);
  font-size: .82rem;
  font-weight: 600;
  transition: var(--tr-spring);
  letter-spacing: .01em;
}

.nav__cta:hover {
  background: var(--accent);
  transform: scale(1.04);
}

.nav__cta--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  margin-right: .6rem;
}

.nav__cta--outline:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: .5rem;
}

.hamburger span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: var(--r-full);
  transition: var(--tr);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  gap: 1.75rem;
  transform: translateX(100%);
  transition: transform var(--tr);
  z-index: 1000;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .06);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav .nav__link {
  font-size: 1.2rem;
  color: var(--text);
}

.mobile-nav .nav__cta {
  text-align: center;
  padding: .875rem;
  font-size: .95rem;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .25);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--tr);
  backdrop-filter: blur(2px);
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Cart widget (nav icon + slide-out drawer) — mounted globally, see CartWidget.tsx */
.cart-widget-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

.cart-widget-badge--pulse {
  animation: cartBadgePulse .42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cartBadgePulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: var(--tr);
  backdrop-filter: blur(2px);
}

.cart-drawer-backdrop--open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 92vw;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--tr);
  z-index: 1002;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .12);
}

.cart-drawer--open {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cart-drawer__header h3 {
  font-family: var(--font-h);
  font-size: 1.1rem;
  margin: 0;
}

.cart-drawer__close {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-2);
  font-size: 1.1rem;
  padding: .35rem;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-drawer__empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-3);
}

.cart-drawer__empty i {
  font-size: 2.25rem;
  display: block;
  margin-bottom: 1rem;
}

.cart-drawer__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-drawer__item-info {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .88rem;
}

.cart-drawer__item-info span {
  color: var(--text-2);
  font-size: .82rem;
}

.cart-drawer__item-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.cart-drawer__qty {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
}

.cart-drawer__qty button {
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
}

.cart-drawer__remove {
  background: #fee2e2;
  color: #dc2626;
  border: none;
  padding: .35rem .55rem;
  border-radius: 8px;
  cursor: pointer;
}

.cart-drawer__footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: .95rem;
}

.cart-drawer__total b {
  font-family: var(--font-h);
  font-size: 1.25rem;
}

/* Checkout success animation — see App.tsx */
.order-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 90;
  display: grid;
  place-items: center;
  animation: successFadeIn .25s ease both;
}

@keyframes successFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.order-success-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2.5rem 2.25rem;
  text-align: center;
  width: min(360px, 92vw);
  animation: successPop .45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes successPop {
  0% { transform: scale(.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.order-success-check circle {
  stroke: var(--accent);
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: successCircle .5s cubic-bezier(0.16, 1, 0.3, 1) .1s forwards;
}

.order-success-check path {
  stroke: var(--accent);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: successCheck .35s cubic-bezier(0.16, 1, 0.3, 1) .5s forwards;
}

@keyframes successCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes successCheck {
  to { stroke-dashoffset: 0; }
}

/* ====== UTILITY ====== */
.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 7rem 2rem;
}

.section.alt {
  background: var(--bg-2);
}

.section.white {
  background: var(--bg-card);
}

.section.dark {
  background: var(--bg-dark);
  color: var(--text-inv);
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.eyebrow {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  position: relative;
  padding: 0 1.25rem;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
  opacity: .5;
  transform: translateY(-50%);
}

.eyebrow::before {
  right: calc(100% - 1rem);
}

.eyebrow::after {
  left: calc(100% - 1rem);
}

.eyebrow.inv {
  color: var(--bg-2);
}

.eyebrow.inv::before,
.eyebrow.inv::after {
  background: var(--bg-2);
}

.h2 {
  font-family: var(--font-h);
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: .75rem;
  color: inherit;
}

.h2 .accent {
  color: var(--accent);
}

.lead {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

.section.dark .lead {
  color: var(--text-inv-2);
}

/* ====== DIVIDER ====== */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0;
  border: none;
}

/* ── Section alt inherits same text color, just cream bg ── */
.section.alt {
  background: var(--bg-2);
}

.section.alt .lead {
  color: var(--text-2);
}

/* ── Page hero thin bottom rule ── */
.page-hero {
  border-bottom: 1px solid var(--border);
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--r-full);
  font-size: .9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--tr-spring);
  position: relative;
  overflow: hidden;
  letter-spacing: .01em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-a);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-a);
}

.btn-accent:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232, 96, 30, .3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(0, 0, 0, .18);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn-outline-inv {
  background: transparent;
  color: var(--text-inv);
  border: 1.5px solid rgba(255, 255, 255, .2);
}

.btn-outline-inv:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
}

.btn i {
  font-size: .9rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: .975rem;
}

/* Phone link */
.call-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--text-2);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--tr-fast);
}

.call-link:hover {
  color: var(--text);
}

.call-icon {
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  color: var(--accent);
  transition: var(--tr-spring);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.call-icon::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(232, 96, 30, .3);
  animation: pulseRing 2.5s ease-in-out infinite;
}

@keyframes pulseRing {

  0%,
  100% {
    transform: scale(1);
    opacity: .3
  }

  50% {
    transform: scale(1.18);
    opacity: 0
  }

  51% {
    transform: scale(1);
    opacity: .3
  }
}

.call-link:hover .call-icon {
  background: rgba(232, 96, 30, .06);
  border-color: var(--accent);
  transform: scale(1.08);
}

/* ====== REVEAL ANIMATIONS ====== */
/* GSAP owns opacity/transform on these — no CSS initial hide */
.reveal,
.stagger>* {
  /* visible by default; GSAP animates from hidden */
}

/* ====== HERO ====== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2.5rem 5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* Subtle editorial blobs */
.hero::before {
  content: '';
  position: absolute;
  inset: -30%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 55% at 55% 80%, rgba(37, 99, 235, .04) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 20% 70%, rgba(37, 99, 235, .02) 0%, transparent 55%);
  filter: blur(80px);
}

/* Giant ghost text — blue tint */
.hero-ghost-text {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-h);
  font-weight: 800;
  line-height: 1;
  font-size: 11.5vw;
  letter-spacing: -.02em;
  white-space: nowrap;
  color: rgba(37, 99, 235, 0.06);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  will-change: transform;
  opacity: 0;
}

body.loaded .hero-ghost-text {
  animation: ghostTextReveal 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ghostTextReveal {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    letter-spacing: 0.06em;
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    letter-spacing: -.02em;
    filter: blur(0);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 1025px) {
  .hero-inner {
    max-width: 1340px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 4.5rem;
    align-items: center;
    text-align: left;
  }
  .hero-content {
    align-items: flex-start;
    text-align: left;
  }
  .hero-inner .hero-actions {
    justify-content: flex-start;
  }
  .hero-inner .hero-badge {
    align-self: flex-start;
  }
  .hero-sub {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
  }
}

/* ── Hero text ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: .35rem .9rem;
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
}

body.loaded .hero-badge {
  animation: fadeUp .7s ease .3s both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .2
  }
}

.hero-h1 {
  font-family: var(--font-h);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero-h1 .word {
  display: inline-block;
  overflow: hidden;
  margin-right: .22em;
}

.hero-h1 .word span {
  display: inline-block;
  transform: translateY(110%);
}

body.loaded .hero-h1 .word span {
  animation: wordUp .85s cubic-bezier(.4, 0, .2, 1) forwards;
}

body.loaded .hero-h1 .word:nth-child(1) span {
  animation-delay: .05s
}

body.loaded .hero-h1 .word:nth-child(2) span {
  animation-delay: .17s
}

body.loaded .hero-h1 .word:nth-child(3) span {
  animation-delay: .29s
}

body.loaded .hero-h1 .word:nth-child(4) span {
  animation-delay: .41s
}

body.loaded .hero-h1 .word:nth-child(5) span {
  animation-delay: .53s
}

body.loaded .hero-h1 .word:nth-child(6) span {
  animation-delay: .65s
}

@keyframes wordUp {
  to {
    transform: translateY(0);
  }
}

.hero-h1 .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(.95rem, 1.3vw, 1.1rem);
  color: var(--text-2);
  max-width: 460px;
  line-height: 1.78;
  margin-bottom: 2.5rem;
  opacity: 0;
}

body.loaded .hero-sub {
  animation: fadeUp .7s ease .75s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
}

body.loaded .hero-actions {
  animation: fadeUp .7s ease .9s both;
}

/* ── Hero monitor — center-stage product (Sneako-style) ── */
.hero-monitor {
  position: relative;
  z-index: 1;
  width: 100%;
  opacity: 0;
}

body.loaded .hero-monitor {
  animation: fadeIn .9s ease .4s both;
}

/* The monitor stays dark even on light theme — like a product shot */
.monitor-card {
  background: #111;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .08);
  position: relative;
}

.monitor-bar {
  background: #1A1A1A;
  padding: .65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.monitor-bar-title {
  font-family: var(--font-h);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: #999;
}

.monitor-status {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .68rem;
  color: #4ADE80;
  font-weight: 600;
}

.monitor-status-dot {
  width: 5px;
  height: 5px;
  background: #4ADE80;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

.monitor-feeds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 2px;
  background: #000;
}

.feed {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}

.feed-bg {
  position: absolute;
  inset: 0;
}

.feed-1 .feed-bg {
  background: linear-gradient(135deg, #0a1628, #112040);
}

.feed-2 .feed-bg {
  background: linear-gradient(135deg, #0d1a10, #142a18);
}

.feed-3 .feed-bg {
  background: linear-gradient(135deg, #1a0a0a, #2a1010);
}

.feed-4 .feed-bg {
  background: linear-gradient(135deg, #0a0a1a, #151528);
}

.feed::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
  height: 1px;
  background: rgba(74, 222, 128, .3);
  animation: feedScan calc(3s + var(--d, 0s)) linear infinite;
}

.feed-1::after {
  --d: 0s
}

.feed-2::after {
  --d: .7s
}

.feed-3::after {
  --d: 1.4s
}

.feed-4::after {
  --d: 2.1s
}

@keyframes feedScan {
  0% {
    transform: translateY(0)
  }

  100% {
    /* .feed clips overflow, so overshooting the container's actual height
       (which varies with its responsive width via the 16/9 aspect-ratio)
       is invisible — this avoids needing a JS-measured pixel value just to
       express "100% of parent" via transform, which only resolves against
       the element's own (1px) box. */
    transform: translateY(160px)
  }
}

.feed-label {
  position: absolute;
  top: .4rem;
  left: .4rem;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .95);
  background: rgba(0, 0, 0, .7);
  padding: .15rem .4rem;
  border-radius: 3px;
}

.feed-rec {
  position: absolute;
  top: .4rem;
  right: .4rem;
  width: 5px;
  height: 5px;
  background: #EF4444;
  border-radius: 50%;
  animation: blink .8s ease-in-out infinite;
}

.monitor-footer {
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .05);
  background: #161616;
}

.monitor-stat {
  text-align: center;
}

.monitor-stat-num {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.monitor-stat-lbl {
  font-size: .58rem;
  color: #999;
  margin-top: .15rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.monitor-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(74, 222, 128, .1);
  border: 1px solid rgba(74, 222, 128, .2);
  padding: .25rem .55rem;
  border-radius: var(--r-full);
  font-size: .6rem;
  font-weight: 700;
  color: #4ADE80;
}

/* Floating chips */
.hero-float {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: .6rem .85rem;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: .6rem;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

.hero-float-1 {
  top: -1rem;
  right: -1rem;
  animation: floatA 6s ease-in-out infinite;
}

.hero-float-2 {
  bottom: 4rem;
  left: -2rem;
  animation: floatB 7s ease-in-out infinite;
}

@keyframes floatA {

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

  50% {
    transform: translateY(-10px)
  }
}

@keyframes floatB {

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

  50% {
    transform: translateY(-8px)
  }
}

.float-icon {
  width: 30px;
  height: 30px;
  background: rgba(232, 96, 30, .1);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--accent);
}

.float-lbl {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.float-sub {
  font-size: .62rem;
  color: var(--text-3);
}

/* ====== STATS STRIP ====== */
.stats {
  padding: 3.5rem 2rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  max-width: 1340px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1.25rem 1rem;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.stat-item:last-child::after {
  display: none;
}

.stat-num {
  font-family: var(--font-h);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  display: block;
  margin-bottom: .35rem;
}

.stat-num.colored {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-lbl {
  font-size: .85rem;
  color: var(--text-2);
}

/* ====== SERVICE CARDS ====== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.svc-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--tr);
  box-shadow: var(--shadow-sm);
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tr);
}

.svc-card:hover {
  border-color: var(--border-a);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.svc-card:hover::before {
  transform: scaleX(1);
}

.svc-icon {
  width: 50px;
  height: 50px;
  background: rgba(232, 96, 30, .08);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 1.4rem;
  transition: var(--tr-spring);
}

.svc-card:hover .svc-icon {
  background: rgba(232, 96, 30, .15);
  transform: scale(1.1) rotate(4deg);
}

.svc-title {
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: .55rem;
  color: var(--text);
}

.svc-desc {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.68;
  margin-bottom: 1.4rem;
}

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--tr-fast);
}

.svc-link i {
  font-size: .78rem;
  transition: transform var(--tr-fast);
}

.svc-link:hover {
  gap: .6rem;
}

.svc-link:hover i {
  transform: translateX(3px);
}

/* ====== FEATURE SPLIT ====== */
.feature-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.feature-wrap.flip {
  direction: rtl;
}

.feature-wrap.flip>* {
  direction: ltr;
}

.feature-img {
  position: relative;
}

.feature-img-box {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}

.feature-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}

.feature-img:hover .feature-img-box img {
  transform: scale(1.04);
}

.feature-img-box-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feature-badge {
  position: absolute;
  bottom: 2rem;
  right: -1.5rem;
  background: var(--text);
  color: var(--bg);
  padding: .85rem 1.25rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.feature-badge-num {
  font-family: var(--font-h);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.feature-badge-txt {
  font-size: .68rem;
  opacity: .85;
  margin-top: .2rem;
}

.feature-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-title {
  font-family: var(--font-h);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.feature-text {
  font-size: .975rem;
  color: var(--text-2);
  line-height: 1.78;
  margin-bottom: 1.6rem;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9rem;
  color: var(--text-2);
}

.check-list li i {
  color: var(--accent);
  margin-top: .15rem;
  flex-shrink: 0;
}

/* ====== PRODUCT CARDS ====== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

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

.prod-card {
  background: var(--bg-card);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--tr);
  box-shadow: none;
  cursor: pointer;
  position: relative;
}

.prod-card:hover {
  border-color: var(--accent);
}

.prod-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.prod-img-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  color: var(--text-2);
  transition: var(--tr-spring);
}

.prod-img-inner i {
  font-size: 3rem;
  color: var(--text);
  transition: color var(--tr-fast);
}

.prod-img-inner span {
  font-size: .65rem;
  color: var(--text-3);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}

.prod-card:hover .prod-img-inner {
  transform: scale(1.1);
}

.prod-card:hover .prod-img-inner i {
  color: var(--accent);
}

.prod-body {
  padding: 1.2rem;
  background: var(--bg-card);
  transition: background var(--tr-fast);
}

.prod-card:hover .prod-body {
  background: var(--bg-card-h);
}

.prod-cat {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: .3rem;
}

.prod-name {
  font-family: var(--font-h);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}

/* ====== MARQUEE ====== */
.marquee-wrap {
  overflow: hidden;
  padding: 2.5rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  align-items: center;
  width: max-content;
  animation: marqueeRoll 26s linear infinite;
}

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

@keyframes marqueeRoll {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

.marquee-item {
  font-family: var(--font-h);
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--tr-fast);
}

.marquee-item:hover {
  color: var(--text-2);
}

.marquee-dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: .4;
}

/* ====== FAQ ====== */
.faq-wrap {
  max-width: 740px;
  margin: 0 auto;
}

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

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-h);
  font-size: .975rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--tr-fast);
}

.section.dark .faq-q {
  color: var(--text-inv);
}

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

.faq-q-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: .72rem;
  transition: var(--tr-spring);
}

.faq-item.open .faq-q-icon {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: rotate(45deg);
}

.faq-a {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.76;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
}

.section.dark .faq-a {
  color: var(--text-inv-2);
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding-bottom: 1.25rem;
}

/* ====== CTA SECTION (dark) ====== */
.cta-section {
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(232, 96, 30, .12) 0%, transparent 60%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cta-tag {
  display: inline-block;
  background: rgba(232, 96, 30, .1);
  border: 1px solid rgba(232, 96, 30, .25);
  padding: .35rem .9rem;
  border-radius: var(--r-full);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.cta-h2 {
  font-family: var(--font-h);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1.5rem;
  color: #fff;
}

.cta-h2 .accent {
  color: var(--accent);
}

.cta-sub {
  font-size: 1.05rem;
  color: var(--text-inv-2);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

/* ====== FOOTER (dark) ====== */
/* ====== FOOTER BRAND STRIP (Sneako-style) ====== */
.footer-brand-strip {
  background: var(--bg);
  padding: 4rem 1.5rem 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: .1em;
}

.fbs-line1 {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: clamp(3.5rem, 13.5vw, 19rem);
  letter-spacing: -.04em;
  color: rgba(37, 99, 235, .07);
  display: block;
  line-height: .95;
}

.fbs-line2 {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: clamp(5rem, 21vw, 30rem);
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(37, 99, 235, .12);
  display: block;
  line-height: .9;
}

.footer {
  background: var(--bg-dark);
  color: var(--text-inv);
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  max-width: 1340px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 4rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-logo span {
  /* Fixed (not theme-driven) so the wordmark stays readable against the
     footer's near-black background no matter which rotating brandAccent
     is active — some of those accent colors fail contrast on #0a0a0a. */
  color: #7DA6FF;
}

.footer-logo-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.footer-desc {
  font-size: .875rem;
  color: var(--text-inv-2);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 1.5rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--text-inv-2);
  transition: color var(--tr-fast);
}

.footer-contact a:hover {
  color: #fff;
}

.footer-contact a i {
  color: var(--accent);
  width: 13px;
}

.footer-nav-h {
  font-family: var(--font-h);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.4rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.footer-nav-list a {
  font-size: .85rem;
  color: var(--text-inv-2);
  transition: var(--tr-fast);
  display: flex;
  align-items: center;
  gap: .35rem;
}

.footer-nav-list a:hover {
  color: #fff;
  transform: translateX(3px);
}

.social-row {
  display: flex;
  gap: .55rem;
  margin-top: 1.5rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--text-inv-2);
  transition: var(--tr-spring);
}

.social-btn:hover {
  background: rgba(232, 96, 30, .15);
  border-color: rgba(232, 96, 30, .3);
  color: var(--accent);
  transform: scale(1.1);
}

.footer-bottom {
  max-width: 1340px;
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: #8a8a8a;
  flex-wrap: wrap;
  gap: .75rem;
}

.footer-bottom a {
  color: #8a8a8a;
  transition: color var(--tr-fast);
}

.footer-bottom a:hover {
  color: var(--text-inv-2);
}

/* ====== PAGE HERO ====== */
.page-hero {
  padding: 10rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 50% 60%, rgba(232, 96, 30, .06) 0%, transparent 60%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.page-hero-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.page-hero-h1 {
  font-family: var(--font-h);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.page-hero-h1 .accent {
  color: var(--accent);
}

.page-hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Page hero entrance animations — play as loader lifts */
.page-hero-eyebrow {
  animation: fadeUp 0.6s ease 0.45s both;
}

.page-hero-h1 {
  animation: clipReveal 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

.page-hero-sub {
  animation: fadeUp 0.7s ease 0.9s both;
}

.breadcrumb {
  animation: fadeUp 0.6s ease 1.1s both;
}

/* Thin rule under hero */
.page-hero-rule {
  position: absolute;
  bottom: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: var(--border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 2rem;
  font-size: .8rem;
  color: var(--text-3);
}

.breadcrumb a {
  color: var(--text-3);
  transition: color var(--tr-fast);
}

.breadcrumb a:hover {
  color: var(--text-2);
}

.breadcrumb i {
  font-size: .62rem;
}

/* ====== CONTACT ====== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
}

.contact-info-card {
  display: flex;
  gap: .9rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-card:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(232, 96, 30, .06);
  border: 1.5px solid var(--border-a);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: .2rem;
}

.contact-val {
  font-size: .925rem;
  color: var(--text);
  text-decoration: none;
  display: block;
  padding: 3px 0;
  transition: color var(--tr-fast);
}

a.contact-val:hover {
  color: var(--accent);
}

/* Form */
.form-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: .4rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: .82rem 1rem;
  font-family: var(--font-b);
  font-size: .93rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-3);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 96, 30, .1);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ====== ABOUT / VALUE CARDS ====== */
.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.value-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--tr);
  box-shadow: var(--shadow-sm);
}

.value-card:hover {
  border-color: var(--border-a);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-num {
  font-family: var(--font-h);
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: .75rem;
}

.value-title {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .55rem;
  color: var(--text);
}

.value-text {
  font-size: .86rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ====== SERVICE DETAIL (services page) ====== */
.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.svc-detail-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: var(--tr);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.svc-detail-card:hover {
  border-color: var(--border-a);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.svc-detail-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at top left, rgba(232, 96, 30, .04), transparent 60%);
  transition: opacity var(--tr);
}

.svc-detail-card:hover::before {
  opacity: 1;
}

.svc-detail-num {
  font-family: var(--font-h);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(232, 96, 30, .1);
  margin-bottom: .75rem;
  transition: color var(--tr);
}

.svc-detail-card:hover .svc-detail-num {
  color: rgba(232, 96, 30, .2);
}

.svc-detail-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: .75rem;
}

.svc-detail-title {
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: .7rem;
  color: var(--text);
}

.svc-detail-desc {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.7;
}

.svc-features {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.svc-features li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--text-3);
}

.svc-features li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: .7;
}

/* ====== PRODUCT PAGE FILTER ====== */
.filter-bar {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: .42rem 1.15rem;
  border-radius: var(--r-full);
  font-size: .8rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: var(--tr-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* ====== GRAIN / NOISE TEXTURE OVERLAY ====== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9995;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
}

/* ====== PARALLAX PERFORMANCE HINTS ====== */
.hero-bg,
.hero-grid,
.hero-left,
.hero-monitor {
  will-change: transform;
}

.marquee-track {
  will-change: transform;
}

/* ====== OUR APPROACH ====== */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: flex-start;
}

.approach-item {
  display: flex;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.approach-item:first-child {
  border-top: 1px solid var(--border);
}

.approach-num {
  font-family: var(--font-h);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.approach-content-box {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.approach-title {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.approach-text {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ====== KEYFRAMES ====== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

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

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes clipReveal {
  from {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transform: translateY(30px)
  }

  to {
    clip-path: inset(0 0 0% 0);
    opacity: 1;
    transform: translateY(0)
  }
}

/* ====== RESPONSIVE ====== */
@media(max-width:1024px) {
  .hero-actions {
    justify-content: center;
  }

  .hero-sub {
    margin: 0 auto;
  }

  .feature-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .feature-wrap.flip {
    direction: ltr;
  }

  .feature-badge {
    right: .5rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

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

@media(max-width:768px) {

  .nav__links,
  .nav__cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .section {
    padding: 5rem 1.25rem;
  }

  .hero {
    padding: 7rem 1.25rem 5rem;
    min-height: auto;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    justify-content: center;
  }

  .stat-item::after {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cursor,
  .cursor-ring {
    display: none;
  }

  body {
    cursor: auto;
  }

  .services-detail-grid {
    grid-template-columns: 1fr;
  }
}

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

  .stats-inner {
    grid-template-columns: 1fr 1fr;
  }

  .hero-h1 {
    font-size: 2.5rem;
  }
}
/* ===== Hero background video (added) ===== */
.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;
  filter:grayscale(.35) contrast(1.05) brightness(.95);opacity:.18;pointer-events:none}
.hero-video-scrim{position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(250,249,246,.72),rgba(250,249,246,.86) 45%,rgba(250,249,246,.96)),
  radial-gradient(ellipse 60% 50% at 50% 30%,rgba(37,99,235,.08),transparent 70%)}
/* Real CCTV footage inside CAM-01 live feed */
.feed-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  filter:grayscale(.25) contrast(1.08) brightness(.92);z-index:1}
.feed .feed-label,.feed .feed-rec{z-index:2}

/* ====== CCTV CAMERA PAN & SCAN KEYFRAMES ====== */
@keyframes cctvScan {
  0%, 100% {
    transform: rotateY(-90deg) rotateX(5deg) rotateZ(-4deg) translateY(0);
  }
  50% {
    transform: rotateY(90deg) rotateX(12deg) rotateZ(4deg) translateY(-8px);
  }
}

@keyframes rotateRing {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes scannerLaser {
  0%, 100% {
    transform: translateY(-50px);
    opacity: 0.1;
  }
  50% {
    transform: translateY(50px);
    opacity: 0.45;
  }
}

/* ============================================================
   SERVICES PAGE HERO VISUALIZER
   ============================================================ */
.hero-visualizer {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.5s;
}

body.loaded .hero-visualizer {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Radar Core styling */
.visualizer-core {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  pointer-events: none;
}

.radar-scan {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(37, 99, 235, 0.08) 0deg, rgba(37, 99, 235, 0) 120deg);
  animation: rotateRing 8s linear infinite;
  z-index: 1;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.06);
  pointer-events: none;
}

.radar-ring.ring-1 {
  width: 240px;
  height: 240px;
  border-style: dashed;
  animation: rotateRing 40s linear infinite;
}

.radar-ring.ring-2 {
  width: 180px;
  height: 180px;
  border-color: rgba(37, 99, 235, 0.1);
}

.radar-ring.ring-3 {
  width: 120px;
  height: 120px;
  border-style: dashed;
  animation: rotateRing 20s linear infinite reverse;
}

.hud-center-node {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--shadow-md), 0 0 15px rgba(37, 99, 235, 0.15);
}

.hud-center-node i {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.hud-center-node .node-lbl {
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-2);
}

/* Floating Cards Common */
.vis-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 0.6rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s, border-color 0.3s;
  cursor: default;
  opacity: 0;
}

body.loaded .vis-float-card {
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: both;
}

body.loaded .float-cctv { animation-name: revealFloatCCTV; animation-delay: 0.7s; }
body.loaded .float-smart { animation-name: revealFloatSmart; animation-delay: 0.85s; }
body.loaded .float-biometric { animation-name: revealFloatBiometric; animation-delay: 1s; }
body.loaded .float-status { animation-name: revealFloatStatus; animation-delay: 1.15s; }

@keyframes revealFloatCCTV {
  from { opacity: 0; transform: translate(-20px, -20px) scale(0.9); }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes revealFloatSmart {
  from { opacity: 0; transform: translate(20px, -20px) scale(0.9); }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes revealFloatBiometric {
  from { opacity: 0; transform: translate(-20px, 20px) scale(0.9); }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes revealFloatStatus {
  from { opacity: 0; transform: translate(20px, 20px) scale(0.9); }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}

.vis-float-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 10px 30px rgba(37, 99, 235, 0.08);
  border-color: var(--accent) !important;
}

.vis-card-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  padding-bottom: 0.35rem;
}

.vis-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.vis-dot.rec {
  background: #EF4444;
  animation: blink 0.8s infinite;
}

.vis-dot.active {
  background: #10B981;
  animation: blink 1.5s infinite;
}

.vis-dot.pending {
  background: var(--accent);
  animation: blink 1.2s infinite;
}

.vis-dot.normal {
  background: var(--text-2);
}

.vis-lbl {
  font-family: var(--font-h);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-2);
  text-transform: uppercase;
}

/* Individual card styling */
.float-cctv {
  top: 4%;
  left: 2%;
  width: 210px;
}

.cctv-view {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(17, 17, 17, 0.15);
}

.cctv-view .feed-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  filter: grayscale(0.2) contrast(1.1);
}

.cctv-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.8);
  animation: cctvScanLine 3s linear infinite;
  z-index: 2;
}

@keyframes cctvScanLine {
  0% { top: 0%; }
  100% { top: 100%; }
}

.cctv-overlay-text {
  position: absolute;
  bottom: 4px;
  left: 6px;
  font-size: 0.52rem;
  font-weight: 600;
  color: #fff;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.02em;
}

/* Smart Automation */
.float-smart {
  top: 8%;
  right: 2%;
  width: 180px;
}

.smart-stats {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.smart-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.2rem 0;
}

.smart-icon {
  width: 26px;
  height: 26px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.75rem;
}

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

.smart-val {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.smart-desc {
  font-size: 0.58rem;
  color: var(--text-3);
}

/* Biometric Access */
.float-biometric {
  bottom: 8%;
  left: 4%;
  width: 190px;
}

.bio-scan {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.1rem 0;
}

.fingerprint-container {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 6px;
  background: rgba(17, 17, 17, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fingerprint-container i {
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.85;
}

.laser-scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
  animation: laserScan 2s ease-in-out infinite;
}

@keyframes laserScan {
  0%, 100% { top: 0%; }
  50% { top: 100%; }
}

.bio-status-text {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-2);
}

/* System Status */
.float-status {
  bottom: 10%;
  right: 6%;
  width: 160px;
}

.system-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  padding: 0.1rem 0;
  text-align: center;
}

.sys-item {
  display: flex;
  flex-direction: column;
}

.sys-num {
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.sys-lbl {
  font-size: 0.58rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

/* Staggered Continuous Idle Floating Animations */
body.loaded .float-cctv { animation: revealFloatCCTV 1s cubic-bezier(0.16, 1, 0.3, 1) both, floatSvcA 6s ease-in-out infinite 1s; }
body.loaded .float-smart { animation: revealFloatSmart 1s cubic-bezier(0.16, 1, 0.3, 1) both, floatSvcB 7s ease-in-out infinite 1s; }
body.loaded .float-biometric { animation: revealFloatBiometric 1s cubic-bezier(0.16, 1, 0.3, 1) both, floatSvcC 8s ease-in-out infinite 1s; }
body.loaded .float-status { animation: revealFloatStatus 1s cubic-bezier(0.16, 1, 0.3, 1) both, floatSvcD 6.5s ease-in-out infinite 1s; }

@keyframes floatSvcA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes floatSvcB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatSvcC {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes floatSvcD {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-visualizer {
    margin-top: 2rem;
    height: 420px;
    max-width: 480px;
  }
  .visualizer-core {
    width: 200px;
    height: 200px;
  }
  .radar-ring.ring-1 { width: 200px; height: 200px; }
  .radar-ring.ring-2 { width: 150px; height: 150px; }
  .radar-ring.ring-3 { width: 100px; height: 100px; }
  
  .float-cctv { width: 180px; top: 2%; left: -2%; }
  .float-smart { width: 160px; top: 6%; right: -2%; }
  .float-biometric { width: 170px; bottom: 4%; left: -2%; }
  .float-status { width: 140px; bottom: 8%; right: -2%; }
}

@media (max-width: 576px) {
  .hero-visualizer {
    height: 380px;
    max-width: 320px;
  }
  .visualizer-core {
    width: 140px;
    height: 140px;
  }
  .radar-ring.ring-1 { width: 140px; height: 140px; }
  .radar-ring.ring-2 { width: 100px; height: 100px; }
  .radar-ring.ring-3 { width: 60px; height: 60px; }
  
  .float-cctv { width: 135px; top: 5%; left: -10%; padding: 0.4rem 0.6rem; }
  .float-smart { width: 130px; top: 10%; right: -10%; padding: 0.4rem 0.6rem; }
  .float-biometric { width: 135px; bottom: 5%; left: -10%; padding: 0.4rem 0.6rem; }
  .float-status { width: 115px; bottom: 8%; right: -10%; padding: 0.4rem 0.6rem; }
  
  .cctv-view .cctv-overlay-text { display: none; }
  .fingerprint-container { width: 28px; height: 28px; }
  .fingerprint-container i { font-size: 1.1rem; }
  .bio-status-text { font-size: 0.58rem; }
}



/* ====== FBS letter animation + vanta ====== */
.fbs-l { display: inline-block; opacity: 0; transform: translateY(60px) scale(.9); }
.footer-brand-strip.fbs-in .fbs-l { animation: fbs-letter .65s cubic-bezier(.2, .85, .2, 1) forwards; }
@keyframes fbs-letter { to { opacity: 1; transform: none; } }
.footer-brand-strip > canvas { position: absolute !important; inset: 0; z-index: 0; }


/* ====== 3D CARD TILT ====== */
.tilt-3d {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .4s cubic-bezier(.2, .85, .3, 1);
  position: relative;
}
.tilt-3d:hover { transition: transform .06s linear; }
.tilt-glare {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  border-radius: inherit;
}

/* ====== TEXT VISIBILITY ON DARK SECTIONS ====== */
/* Outline buttons sit on near-black backgrounds in CTA bands and the footer */
.cta-section .btn-outline,
.footer .btn-outline {
  color: var(--text-inv);
  border-color: rgba(255, 255, 255, .28);
}
.cta-section .btn-outline:hover,
.footer .btn-outline:hover {
  background: var(--text-inv);
  color: var(--bg-dark);
}

/* Home hero renders on the dark vanta background — invert its text */
#ne-vanta .hero-h1 { color: var(--text-inv); }
#ne-vanta .hero-sub { color: var(--text-inv-2); }
#ne-vanta .call-link { color: var(--text-inv-2); }
#ne-vanta .call-link:hover { color: var(--text-inv); }
#ne-vanta .call-icon {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
}

/* ====== 3D VANTA BACKGROUND IN CARDS ====== */
.card-vanta {
  position: relative;
  isolation: isolate; /* keeps the z-index:-1 canvas above the card's own background */
  overflow: hidden;
}
.card-vanta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
}

/* ============================================================
   GLASSMORPHISM THEME — same look as the admin panel.
   Appended override layer: dark ambient background, translucent
   blurred "glass" surfaces, soft glow blobs. The `!important`
   on the custom properties lets this layer win over the
   DB-driven inline theme in layout.template.ts.
   Remove this whole block to restore the light editorial theme.
   ============================================================ */

:root {
  --bg: var(--glass-bg, #0b0f19) !important;
  --bg-2: color-mix(in srgb, var(--glass-bg, #0b0f19) 94%, #ffffff) !important;
  --bg-card: rgba(255, 255, 255, .06) !important;
  --bg-card-h: rgba(255, 255, 255, .1) !important;
  --text: var(--glass-text, #F5F5F7) !important;
  --text-2: color-mix(in srgb, var(--glass-text, #F5F5F7) 76%, transparent) !important;
  --text-3: color-mix(in srgb, var(--glass-text, #F5F5F7) 54%, transparent) !important;
  --border: rgba(255, 255, 255, .12) !important;
  --border-a: rgba(255, 255, 255, .3) !important;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35) !important;
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .45) !important;
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, .55) !important;
  --glass-blur: 18px;
  /* softer, rounder corners to match the admin glass cards */
  --r-sm: 9px !important;
  --r-md: 12px !important;
  --r-lg: 14px !important;
  --r-xl: 16px !important;
}

html {
  background-color: var(--glass-bg, #0b0f19) !important;
  background-image: var(--glass-bg-image, linear-gradient(160deg, #0b0f19, #1b1036)) !important;
  background-attachment: fixed !important;
}
body { background: transparent !important; color: var(--text); }

/* ── ambient blurred color blobs behind the glass surfaces ── */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}
body::before { width: 520px; height: 520px; top: -160px; left: -120px; background: var(--glass-blob1, var(--accent)); opacity: .22; }
body::after  { width: 480px; height: 480px; bottom: -140px; right: -100px; background: var(--glass-blob2, #7C3AED); opacity: .18; }

/* keep page content above the blobs (never touch fixed elements) */
main, .section, footer {
  position: relative;
  z-index: 1;
}

/* ── sections: let the dark body + blobs show through ── */
.section { background: transparent; }
.section.alt { background: rgba(255, 255, 255, .025); }
.section.white { background: rgba(255, 255, 255, .045); }
.section.dark { background: rgba(0, 0, 0, .35); }

/* ── glass surfaces (same recipe as admin .card-box/.stat) ── */
.nav,
.nav.solid,
.mobile-nav,
.svc-card,
.prod-card,
.stats,
.form-box,
.value-card,
.svc-detail-card,
.faq-item,
.theme-card,
.marquee-wrap {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-color: var(--border);
}

.nav, .nav.solid { background: color-mix(in srgb, var(--glass-bg, #0b0f19) 72%, transparent); }
.mobile-nav { background: color-mix(in srgb, var(--glass-bg, #0b0f19) 92%, transparent); }

.svc-card:hover,
.prod-card:hover,
.value-card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-a);
}

.prod-body { background: transparent; }

/* product photos sit on a light pad so dark-edge photos stay visible */
.prod-img { background: rgba(255, 255, 255, .92); }

/* ── forms & inputs (admin .field style) ── */
.form-input,
.form-textarea,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
  background: rgba(255, 255, 255, .05);
  border-color: var(--border);
  color: var(--text);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .08);
}

option { background: #161b2c; color: var(--text); }

/* ── tables (store app: cart, orders) ── */
th { background: rgba(255, 255, 255, .04); color: var(--text-3); }
td, th { border-color: var(--border); }

/* ── misc hard-coded light surfaces ── */
.faq-q:hover { background: rgba(255, 255, 255, .05); }
.scroll-progress { background: var(--accent); }
::selection { background: var(--accent); color: #fff; }

/* subtle glass scrollbar like the admin panel */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .24); }

/* icon-placeholder products sit on the light photo pad — keep them dark */
.prod-img .prod-img-inner { color: #3d4456; }
.prod-card:hover .prod-img-inner { color: #3d4456; }

/* ============================================================
   UPGRADE LAYER — custom 3D icons, card photo backgrounds,
   security-scan reveal, and full mobile responsive pass.
   Appended last so it wins over the glass theme layer.
   ============================================================ */

/* ── Custom 3D icons ── */
.icon3d {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 10px 14px color-mix(in srgb, var(--accent, #2563EB) 35%, transparent));
  transition: transform var(--tr-spring), filter var(--tr);
}
.svc-icon--3d {
  width: 64px;
  height: 64px;
  background: none;
  border-radius: 0;
  margin-bottom: 1.2rem;
}
.svc-card:hover .svc-icon--3d,
.svc-detail-card:hover .svc-icon--3d {
  background: none;
  transform: none;
}
.svc-card:hover .icon3d,
.svc-detail-card:hover .icon3d {
  transform: translateY(-6px) scale(1.08) rotate(-3deg);
  filter: drop-shadow(0 18px 22px color-mix(in srgb, var(--accent, #2563EB) 50%, transparent));
}
.prod-img-inner--3d .icon3d {
  width: 96px;
  height: 96px;
  margin: 0 auto .5rem;
}
.prod-card:hover .prod-img-inner--3d .icon3d {
  transform: translateY(-6px) scale(1.06);
}
.float-icon--3d {
  background: none !important;
  border: none !important;
}
.float-icon--3d .icon3d {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 5px 8px color-mix(in srgb, var(--accent, #2563EB) 40%, transparent));
}
/* gentle idle bob so the icons read as objects, not glyphs */
@keyframes icon3d-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.svc-card.scanned .icon3d,
.svc-detail-card.scanned .icon3d {
  animation: icon3d-bob 4.5s ease-in-out infinite;
}

/* ── Per-card photo background (.card--img + .card-bg) ── */
.card--img { position: relative; }
.card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: .38;
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(.2, .85, .3, 1), opacity var(--tr);
  pointer-events: none;
  border-radius: inherit;
}
.card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--glass-bg, #0b0f19) 55%, transparent) 0%,
      color-mix(in srgb, var(--glass-bg, #0b0f19) 82%, transparent) 55%,
      color-mix(in srgb, var(--glass-bg, #0b0f19) 94%, transparent) 100%);
}
.card--img > :not(.card-bg):not(.card-vanta-bg):not(.tilt-glare) {
  position: relative;
  z-index: 1;
}
.card--img:hover .card-bg {
  opacity: .5;
  transform: scale(1.08);
}

/* ── Signature: security-scan sweep when a card enters view ── */
.svc-card::after,
.svc-detail-card::after {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -35%;
  width: 26%;
  z-index: 2;
  background: linear-gradient(100deg,
      transparent 0%,
      color-mix(in srgb, var(--accent, #2563EB) 24%, transparent) 45%,
      rgba(255, 255, 255, .18) 50%,
      color-mix(in srgb, var(--accent, #2563EB) 24%, transparent) 55%,
      transparent 100%);
  transform: skewX(-14deg) translateX(0);
  opacity: 0;
  pointer-events: none;
}
.svc-card.scanned::after,
.svc-detail-card.scanned::after {
  animation: scan-sweep 1.1s cubic-bezier(.4, 0, .2, 1) .15s 1 both;
}
@keyframes scan-sweep {
  0% { opacity: 0; transform: skewX(-14deg) translateX(0); }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; transform: skewX(-14deg) translateX(560%); }
}

/* ============================================================
   MOBILE RESPONSIVE PASS
   ============================================================ */
img, video, canvas, svg { max-width: 100%; }

/* fluid type everywhere — no more fixed desktop sizes on phones */
@media (max-width: 1024px) {
  .hero-monitor { width: 100%; max-width: 560px; margin: 0 auto; }
  .footer-grid { gap: 2rem; }
}

@media (max-width: 768px) {
  html { -webkit-text-size-adjust: 100%; }

  .nav { padding: .75rem 1rem; }
  .nav__logo { font-size: .92rem; letter-spacing: .02em; }
  .nav__actions { gap: .35rem; }

  .hero { padding: 6.5rem 1.1rem 4rem; }
  .hero-h1 { font-size: clamp(2.1rem, 8.6vw, 2.9rem); line-height: 1.12; }
  .hero-sub { font-size: .95rem; max-width: 34ch; }
  .hero-badge { font-size: .66rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: .9rem; width: 100%; max-width: 340px; margin: 0 auto; }
  .hero-actions .btn { justify-content: center; }
  .hero-actions .call-link { justify-content: center; }

  .h2 { font-size: clamp(1.55rem, 6.4vw, 2.1rem); }
  .lead { font-size: .95rem; }
  .section { padding: 4rem 1.1rem; }

  .services-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .svc-card, .svc-detail-card { padding: 1.5rem; }
  .svc-icon--3d { width: 56px; height: 56px; }

  .monitor-feeds { gap: 5px; }
  .feed-label { font-size: .52rem; }
  .monitor-bar-title, .monitor-status { font-size: .58rem; }
  .monitor-footer { flex-wrap: wrap; gap: .75rem 1.25rem; justify-content: center; }

  .approach-num { font-size: 1.4rem; }
  .faq-q { font-size: .92rem; gap: .75rem; }
  .cta-h2 { font-size: clamp(1.65rem, 7vw, 2.3rem); }
  .footer-brand-strip { padding: 2.5rem 1rem 0; }

  /* comfortable touch targets */
  .social-btn { width: 42px; height: 42px; }
  .btn { padding-top: .85rem; padding-bottom: .85rem; }

  /* WhatsApp float: respect the phone's gesture/safe area */
  a[aria-label="Chat on WhatsApp"] {
    width: 52px !important;
    height: 52px !important;
    right: 14px !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    font-size: 1.4rem !important;
  }
}

@media (max-width: 640px) {
  /* floating chips overlap the monitor on small phones */
  .hero-float { display: none; }
}

@media (max-width: 480px) {
  /* keep the top bar breathable: search stays, wishlist/compare move to pages */
  .nav__actions a[aria-label="Wishlist"],
  .nav__actions a[aria-label="Compare"] { display: none; }

  .stats-inner { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .stat-num { font-size: 1.7rem; }
  .prod-img-inner--3d .icon3d { width: 72px; height: 72px; }
  .breadcrumb { flex-wrap: wrap; }
}

/* ── Motion accessibility: honor reduced-motion everywhere ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .loader { display: none !important; }
  .reveal, .stagger, .ne-reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   RESPONSIVE NAV + STORE CHECKOUT FIXES
   ============================================================ */
@media (max-width: 768px) {
  .nav {
    min-height: 64px;
  }

  .nav__logo {
    min-width: 0;
    max-width: calc(100vw - 180px);
    white-space: nowrap;
  }

  .nav__logo-mark {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
  }

  .hamburger {
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    background: var(--bg-card);
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
  }

  .mobile-nav {
    width: min(86vw, 340px);
    padding: 5.25rem 1.25rem 2rem;
    justify-content: flex-start;
    overflow-y: auto;
  }

  .mobile-nav .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .35rem;
    width: 100%;
  }

  .mobile-nav .nav__links li {
    list-style: none;
  }

  .mobile-nav .nav__link {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 35%, transparent);
    font-size: 1rem;
  }

  .mobile-nav .nav__link::after {
    display: none;
  }

  .mobile-nav .nav__cta,
  .mobile-nav .call-link {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  .store-toolbar {
    align-items: stretch !important;
  }

  .store-toolbar__actions {
    width: 100%;
    flex-wrap: wrap;
    align-items: stretch !important;
  }

  .store-toolbar__actions .btn {
    flex: 1 1 150px;
    justify-content: center;
  }

  .cart-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .cart-table-wrap table {
    min-width: 640px;
  }

  .cart-summary {
    flex-direction: column;
    align-items: stretch !important;
    gap: 1rem;
  }

  .cart-summary .btn {
    justify-content: center;
  }

  .checkout-modal {
    width: 100% !important;
    max-height: calc(100dvh - 2rem) !important;
    padding: 1.2rem !important;
  }

  .checkout-actions {
    flex-direction: column-reverse;
  }

  .checkout-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .container {
    padding-inline: 1rem;
  }

  .page-hero {
    padding: 6.25rem 1rem 3rem;
  }

  .page-hero-h1 {
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 1.05;
  }

  .page-hero-sub {
    font-size: .95rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .prod-body {
    padding: 1rem;
  }

  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

/* ============================================================
   CHATBOT WIDGET
   ============================================================ */
.chatbot-panel {
  position: fixed;
  bottom: 160px;
  right: 24px;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 460px;
  max-height: 65vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 85;
  opacity: 0;
  transform: translateY(16px) scale(.97);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.chatbot-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chatbot-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1rem;
  background: var(--bg-dark);
  flex-shrink: 0;
}

.chatbot-panel__title {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
}

.chatbot-panel__sub {
  font-size: .72rem;
  color: rgba(255, 255, 255, .6);
}

.chatbot-panel__head button {
  background: transparent;
  border: none;
  color: #fff;
  opacity: .7;
  cursor: pointer;
  font-size: 1rem;
}

.chatbot-panel__head button:hover {
  opacity: 1;
}

.chatbot-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.chatbot-msg {
  max-width: 82%;
  padding: .55rem .8rem;
  border-radius: 14px;
  font-size: .85rem;
  line-height: 1.5;
}

.chatbot-msg--assistant {
  align-self: flex-start;
  background: var(--bg-2);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chatbot-msg--user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chatbot-msg--typing {
  display: flex;
  gap: 4px;
  padding: .7rem .9rem;
}

.chatbot-msg--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  animation: chatbotTyping 1.2s infinite ease-in-out;
}

.chatbot-msg--typing span:nth-child(2) { animation-delay: .2s; }
.chatbot-msg--typing span:nth-child(3) { animation-delay: .4s; }

@keyframes chatbotTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chatbot-panel__form {
  display: flex;
  gap: .5rem;
  padding: .75rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chatbot-panel__form input {
  flex: 1;
  min-width: 0;
  padding: .6rem .8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: inherit;
  font-size: .85rem;
  outline: none;
  background: var(--bg-card);
  color: var(--text);
}

.chatbot-panel__form button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .chatbot-panel {
    right: 16px;
    bottom: 152px;
  }

  #chatbot-toggle {
    right: 16px;
  }
}

/* ============================================================
   OTP SIGN-IN MODAL
   ============================================================ */
.otp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  display: none;
  place-items: center;
  padding: 1rem;
}

.otp-overlay.open {
  display: grid;
}

.otp-modal {
  position: relative;
  background: var(--bg-card);
  border-radius: 18px;
  width: min(380px, 100%);
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}

.otp-modal__close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-3);
  cursor: pointer;
  line-height: 1;
}

.otp-modal__logo {
  display: flex;
  justify-content: center;
  margin-bottom: .75rem;
}

.otp-modal__title {
  font-family: var(--font-h);
  font-size: 1.15rem;
  margin-bottom: .35rem;
  color: var(--text);
}

.otp-modal__sub {
  font-size: .85rem;
  color: var(--text-2);
  margin-bottom: 1rem;
}

.otp-phone-row {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.otp-phone-prefix {
  padding: .7rem .8rem;
  background: var(--bg-2);
  color: var(--text-2);
  font-size: .9rem;
}

.otp-phone-row input,
.otp-code-input {
  flex: 1;
  border: none;
  padding: .7rem .8rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  background: var(--bg-card);
  color: var(--text);
  width: 100%;
}

.otp-code-input {
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  letter-spacing: .3em;
  font-size: 1.2rem;
}

.otp-error {
  color: #dc2626;
  font-size: .8rem;
  margin-top: .5rem;
  min-height: 1em;
}

.otp-resend-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 600;
  margin-top: .9rem;
  cursor: pointer;
}

.otp-resend-btn:disabled {
  color: var(--text-3);
  cursor: default;
}

/* ============================================================
   MY ORDERS
   ============================================================ */
.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.order-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .6rem;
}

.order-card__id {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
}

.order-card__date {
  font-size: .78rem;
  color: var(--text-3);
  margin-top: .15rem;
}

.order-card__body {
  font-size: .88rem;
  color: var(--text-2);
}

.order-card__tracking {
  margin-top: .4rem;
  font-size: .82rem;
  color: var(--text-2);
}

.order-card__tracking a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.order-card__actions {
  margin-top: 1rem;
}

.order-badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

.order-badge--PENDING { background: rgba(180, 83, 9, .1); color: #b45309; }
.order-badge--PAID { background: rgba(37, 99, 235, .1); color: #2563EB; }
.order-badge--SHIPPED { background: rgba(79, 70, 229, .1); color: #4f46e5; }
.order-badge--DELIVERED { background: rgba(22, 163, 74, .1); color: #16a34a; }
.order-badge--CANCELLED { background: rgba(220, 38, 38, .1); color: #dc2626; }
.order-badge--ACTIVE { background: rgba(22, 163, 74, .1); color: #16a34a; }
.order-badge--EXPIRED { background: rgba(107, 114, 128, .12); color: #6b7280; }

/* ============================================================
   INVOICE
   ============================================================ */
.invoice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.invoice-shell {
  background: var(--bg-card);
  border-radius: 16px;
  width: min(640px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}

.invoice-print-area {
  padding: 0;
}

.invoice-body {
  padding: 1.75rem 2rem 1.5rem;
}

.invoice-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.75rem 2rem;
  background: #0a0a0a;
  border-radius: 16px 16px 0 0;
  border-bottom: 3px solid #4CAF50;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.invoice-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.invoice-brand-name {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .03em;
  color: #fff;
}

.invoice-brand-sub {
  font-size: .74rem;
  color: rgba(255, 255, 255, .55);
  margin-top: .15rem;
}

.invoice-meta {
  text-align: right;
  font-size: .85rem;
  color: rgba(255, 255, 255, .7);
  line-height: 1.6;
}

.invoice-meta b {
  color: #fff;
}

.invoice-title {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .08em;
  color: #4CAF50;
  margin-bottom: .3rem;
}

.invoice-parties {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.invoice-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-3);
  margin-bottom: .35rem;
}

.invoice-value {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.55;
  word-break: break-word;
}

.invoice-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .35rem;
  font-size: .8rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 999px;
}

.invoice-status--paid {
  color: #16a34a;
  background: rgba(22, 163, 74, .1);
}

.invoice-status--pending {
  color: #b45309;
  background: rgba(180, 83, 9, .1);
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  margin-bottom: 1rem;
}

.invoice-table th {
  text-align: left;
  padding: .6rem .4rem;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}

.invoice-table td {
  padding: .65rem .4rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}

.invoice-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.1rem;
  background: var(--bg-2);
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-2);
}

.invoice-total-amount {
  font-family: var(--font-h);
  font-size: 1.4rem;
  font-weight: 700;
  color: #4CAF50;
}

.invoice-tracking {
  margin-top: 1rem;
  padding: .9rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.invoice-track-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.invoice-footnote {
  margin-top: 1.5rem;
  font-size: .78rem;
  color: var(--text-3);
  line-height: 1.6;
}

.invoice-actions {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 560px) {
  .invoice-parties {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .invoice-head {
    flex-direction: column;
  }

  .invoice-meta {
    text-align: left;
  }
}

@media print {
  /* Invoice.tsx/my-orders' invoice overlay is portaled straight onto
     <body>, so hiding every OTHER body-level child (rather than the old
     visibility:hidden-on-everything approach) collapses the rest of the
     page's layout entirely instead of just making it invisible — that's
     what was producing several blank pages before the invoice content,
     since visibility:hidden elements still reserve their layout space. */
  body > *:not(.invoice-overlay) {
    display: none !important;
  }

  .invoice-overlay {
    position: static !important;
    background: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
  }

  .invoice-shell {
    position: static;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    width: 100%;
  }

  .invoice-actions {
    display: none !important;
  }
}
