/* site/assets/or4.css — design system OR4CULO */

:root {
  --or4-bg-oled: #0A0A0A;
  --or4-bg-base: #0D0F12;
  --or4-surface-1: #11151B;
  --or4-surface-2: #151B24;
  --or4-border-1: #232B3A;
  --or4-border-2: #2D3850;
  --or4-text-primary: #FFFFFF;
  --or4-text-secondary: #C9D1D9;
  --or4-text-muted: #8B96A8;
  --or4-neon-green: #39FF88;
  --or4-neon-purple: #8A2EFF;
  --or4-neon-gradient: linear-gradient(90deg, #39FF88 0%, #8A2EFF 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--or4-bg-oled);
  color: var(--or4-text-primary);
  overflow-x: hidden;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--or4-neon-green); color: #000; }

.or4-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.neon-text-gradient {
  background: var(--or4-neon-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Canvas da colmeia (fundo fixo) */
#hive-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Glow radial que segue mouse (opcional) */
.glow-cursor {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(57,255,136,0.08), rgba(138,46,255,0.04), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: -1;
  transition: opacity 0.6s;
  will-change: transform;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Glitch hover em headlines */
.glitch:hover {
  animation: glitch 0.4s steps(2, end);
}
@keyframes glitch {
  0%   { text-shadow: 2px 0 #39FF88, -2px 0 #8A2EFF; }
  20%  { text-shadow: -2px 0 #39FF88, 2px 0 #8A2EFF; transform: translate(1px, 0); }
  40%  { text-shadow: 2px 0 #39FF88, -2px 0 #8A2EFF; transform: translate(-1px, 0); }
  60%  { text-shadow: -1px 0 #39FF88, 1px 0 #8A2EFF; }
  100% { text-shadow: none; }
}

/* Pulse dot para status live */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--or4-neon-green);
  box-shadow: 0 0 8px var(--or4-neon-green);
  animation: livepulse 1.6s ease-in-out infinite;
}
@keyframes livepulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.3); }
}

/* Cards com borda gradiente */
.card-grad {
  position: relative;
  background: var(--or4-surface-1);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--or4-border-1);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.card-grad:hover {
  transform: translateY(-3px);
  border-color: rgba(57,255,136,0.4);
  box-shadow: 0 14px 50px -20px rgba(57,255,136,0.25);
}

/* Botões */
.btn-primary {
  background: var(--or4-neon-gradient);
  color: #000;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  padding: 0.9rem 1.6rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.btn-primary:hover {
  box-shadow: 0 0 35px rgba(57,255,136,0.5);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--or4-surface-1);
  border: 1px solid var(--or4-border-1);
  color: var(--or4-text-primary);
  padding: 0.9rem 1.6rem;
  border-radius: 0.75rem;
  transition: background 0.25s, border-color 0.25s;
}
.btn-ghost:hover { background: var(--or4-surface-2); border-color: var(--or4-border-2); }

/* KPI big number */
.kpi-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.04em;
  background: var(--or4-neon-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Linha divisória com hexágono central */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--or4-text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 4rem 0 2rem;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or4-border-1), transparent);
}

/* Hexágono "decorativo" inline */
.hex-bullet {
  display: inline-block;
  width: 10px;
  height: 11px;
  background: var(--or4-neon-green);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  vertical-align: middle;
  margin-right: 0.5rem;
}
.hex-bullet.purple { background: var(--or4-neon-purple); }

/* Nav unificada */
.or4-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10,10,10,0.78);
  border-bottom: 1px solid var(--or4-border-1);
}
.or4-nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.or4-nav a.navlink {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--or4-text-secondary);
  transition: color 0.2s;
  padding: 0.4rem 0;
  position: relative;
}
.or4-nav a.navlink:hover { color: #fff; }
.or4-nav a.navlink.active { color: var(--or4-neon-green); }
.or4-nav a.navlink.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--or4-neon-gradient);
  border-radius: 2px;
}

/* Footer compartilhado */
.or4-footer {
  border-top: 1px solid var(--or4-border-1);
  background: var(--or4-bg-base);
  padding: 3rem 1rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

/* Marquee de modelos LLM */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: inline-block;
  animation: marquee 38s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Hamburger button */
.or4-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 17px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.or4-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--or4-text-secondary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.or4-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); background: var(--or4-neon-green); }
.or4-hamburger.open span:nth-child(2) { opacity: 0; }
.or4-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); background: var(--or4-neon-green); }

/* Mobile dropdown */
.or4-mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--or4-border-1);
  padding: 0.5rem 1.25rem 1rem;
  z-index: 49;
}
.or4-mobile-menu.open { display: flex; }
.or4-mobile-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--or4-text-secondary);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--or4-border-1);
  transition: color 0.2s;
  text-decoration: none;
}
.or4-mobile-menu a:last-child { border-bottom: none; }
.or4-mobile-menu a:hover,
.or4-mobile-menu a.active { color: var(--or4-neon-green); }

/* Mobile */
@media (max-width: 768px) {
  .or4-nav-inner { padding: 0 1rem; }
  .or4-hamburger { display: flex; }
}
