/* OnXR Site - Shared Styles — v1.1 brand update 2026-04-24 */
/* Primary accent: Accent Green #1db87a | Secondary: Spatial Cyan #06B6D4 | Logo X mark: #00aa4f (distinct, do not alter) */
:root {
  --bg: #06080C;
  --bg-card: #0c0f14;
  --bg-card-hover: #131316;
  --surface: #161920;
  --accent: #1db87a;
  --accent-dim: rgba(29, 184, 122, 0.15);
  --accent-border: rgba(29, 184, 122, 0.2);
  --text: #e8eef4;
  --muted: #9CA3AF;
  --dim: #232830;
  --border: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 400% center; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(29,184,122,0.2); }
  50% { box-shadow: 0 0 24px 4px rgba(29,184,122,0.15); }
}
@keyframes tick {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gradient text — multi-brand shimmer */
.gradient-text {
  background: linear-gradient(
    90deg,
    #1db87a 0%,
    #06B6D4 20%,
    #ffffff 35%,
    #F97316 50%,
    #ffffff 65%,
    #06B6D4 80%,
    #1db87a 100%
  );
  background-size: 400% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 10s linear infinite;
  will-change: background-position;
  display: inline-block;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  isolation: isolate;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 400% center; }
}
/* Force shimmer even when OS has reduce-motion on */
@media (prefers-reduced-motion: reduce) {
  .gradient-text {
    animation: shimmer 10s linear infinite !important;
  }
}

/* Hero radial gradient background */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 68% 50%, rgba(26,92,90,.38) 0%, transparent 68%),
    radial-gradient(ellipse 40% 50% at 15% 80%, rgba(45,189,110,.07) 0%, transparent 60%),
    #0d1117;
  pointer-events: none;
  z-index: 0;
}

/* Hero animated nodes */
.hero-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.node {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #2dbd6e;
  border-radius: 50%;
  animation: npulse 3s ease-in-out infinite;
}

.node::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid #2dbd6e;
  border-radius: 50%;
  opacity: .3;
  animation: nring 3s ease-in-out infinite;
}

@keyframes npulse {
  0%, 100% { opacity: .9; }
  50%       { opacity: .2; }
}

@keyframes nring {
  0%   { transform: scale(1);   opacity: .4; }
  100% { transform: scale(2.8); opacity: 0;  }
}

/* Hero grid background (legacy — kept for docs) */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29,184,122,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,184,122,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* Hero dot-grid — drifting dot pattern matching pitch-deck / how-it-works style */
.hero-dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: gridDrift 40s linear infinite;
}
@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 32px 32px; }
}

/* Card glow on hover */
.card-glow {
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card-glow:hover {
  border-color: rgba(29,184,122,0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(29,184,122,0.08);
}

/* Screenshot hover */
.screenshot-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.screenshot-hover:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Status dots */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-dot.up { background: #1db87a; box-shadow: 0 0 8px rgba(29,184,122,0.5); } /* Accent Green for status "up" */
.status-dot.down { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.5); }
.status-dot.checking { background: #6b7280; animation: pulse-glow 1.5s infinite; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}

/* Ticker */
.ticker {
  background: var(--accent);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
}
.ticker-track {
  display: inline-flex;
  animation: tick 30s linear infinite;
}
.ticker-track span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bg);
  padding: 0 26px;
}

/* Vertical accent colors */
.accent-amber { --v-color: #d4963a; --v-dim: rgba(212,150,58,0.15); --v-border: rgba(212,150,58,0.2); }
.accent-red { --v-color: #ef4444; --v-dim: rgba(239,68,68,0.15); --v-border: rgba(239,68,68,0.2); }
.accent-blue { --v-color: #3b82f6; --v-dim: rgba(59,130,246,0.15); --v-border: rgba(59,130,246,0.2); }
.accent-cyan { --v-color: #06B6D4; --v-dim: rgba(6,182,212,0.15); --v-border: rgba(6,182,212,0.2); } /* Spatial Cyan — secondary accent */
.accent-violet { --v-color: #7c5cbf; --v-dim: rgba(124,92,191,0.15); --v-border: rgba(124,92,191,0.2); }
.accent-teal { --v-color: #0d9a88; --v-dim: rgba(13,154,136,0.15); --v-border: rgba(13,154,136,0.2); }

/* ============================================================
   Verticals dropdown — Brand Standards v1.1 §3.3 sector accents
   Source: docs/OnXR_Brand_Standards_v1_1.html
   Construction #FBBF24 · FM #34D399 · Insurance #60A5FA
   Security #A78BFA · Defence #A3E635
   ============================================================ */
.vd-wrap { position: relative; }

.vd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.vd-chev {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.vd-wrap.open .vd-chev {
  transform: rotate(-135deg) translateY(-2px);
}

.vd-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: -16px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(29,184,122,0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.vd-wrap.open .vd-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.vd-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  border-left: 3px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.vd-item:hover { background: rgba(255,255,255,0.025); }

/* Pill — matches v1.1 .pill spec: 5px 14px, 20px radius, 1px border, 0.72rem, 600, 0.08em, uppercase */
.vd-pill {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid;
  background: transparent;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-width: 96px;
  text-align: center;
  line-height: 1.2;
}

.vd-text { flex: 1; min-width: 0; }
.vd-label {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
  color: var(--text);
}
.vd-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}

/* v1.1 §3.3 sector colours — pill + hover border */
.vd-construction .vd-pill { color: #FBBF24; border-color: #FBBF24; }
.vd-fm           .vd-pill { color: #34D399; border-color: #34D399; }
.vd-insurance    .vd-pill { color: #60A5FA; border-color: #60A5FA; }
.vd-security     .vd-pill { color: #A78BFA; border-color: #A78BFA; }
.vd-defence      .vd-pill { color: #A3E635; border-color: #A3E635; }

.vd-construction:hover { border-left-color: #FBBF24; background: rgba(251,191,36,0.05); }
.vd-fm:hover           { border-left-color: #34D399; background: rgba(52,211,153,0.05); }
.vd-insurance:hover    { border-left-color: #60A5FA; background: rgba(96,165,250,0.05); }
.vd-security:hover     { border-left-color: #A78BFA; background: rgba(167,139,250,0.05); }
.vd-defence:hover      { border-left-color: #A3E635; background: rgba(163,230,53,0.05); }

.vd-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}
.vd-foot {
  display: block;
  padding: 10px 14px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.vd-foot:hover { color: var(--accent); }

/* Mobile — stack inside the existing mobile menu */
@media (max-width: 767px) {
  .vd-menu {
    position: static;
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    box-shadow: none;
    background: rgba(255,255,255,0.02);
  }
}
