/* ═══════════════════════════════════════════════════════
   CLLR v2.1 — Visual Enhancements
   Requires: style-v2.css
   ═══════════════════════════════════════════════════════ */

/* ── Scroll Reveal Animations ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── Gradient Text ── */
.gradient-text { background: var(--gradient-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Glow Button ── */
.btn-glow { position: relative; overflow: visible; }
.btn-glow::before { content: ''; position: absolute; inset: -2px; background: var(--gradient-hero); border-radius: 14px; z-index: -1; opacity: 0.6; filter: blur(16px); transition: opacity 0.3s; }
.btn-glow:hover::before { opacity: 1; }

/* ── Hero Grid Background ── */
.hero-grid-bg { position: absolute; inset: -50px; background-image: linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 30%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 30%, transparent 100%); pointer-events: none; }

/* ── Hero Glow Orbs ── */
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15; pointer-events: none; animation: glowBreath 8s ease-in-out infinite alternate; }
.hero-glow-1 { width: 500px; height: 500px; background: var(--accent-blue); top: -100px; left: -100px; }
.hero-glow-2 { width: 400px; height: 400px; background: var(--accent-purple); top: -50px; right: -100px; animation-delay: 2s; }
.hero-glow-3 { width: 300px; height: 300px; background: var(--accent-cyan); bottom: -100px; left: 30%; animation-delay: 4s; }
@keyframes glowBreath { 0% { opacity: 0.1; transform: scale(1); } 50% { opacity: 0.2; transform: scale(1.1); } 100% { opacity: 0.1; transform: scale(1); } }

/* ── Enhanced Feature Cards ── */
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gradient-hero); transform: scaleX(0); transition: transform 0.4s ease; transform-origin: left; }
.feature-card:hover { background: var(--bg-card-hover); border-color: var(--border-medium); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card { position: relative; overflow: hidden; }

/* ── Dashboard Mockup ── */
.dashboard-mockup { background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 24px; position: relative; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,0.4); }
.mockup-dots { display: flex; gap: 8px; padding: 12px 0 8px 16px; }
.mockup-dot { width: 12px; height: 12px; border-radius: 50%; }
.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

/* ── Risk Badge ── */
.risk-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.risk-badge.high { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.risk-badge.medium { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.risk-badge.low { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }

/* ── Pulse Dot ── */
.pulse-dot { width: 10px; height: 10px; background: var(--accent-green); border-radius: 50%; display: inline-block; position: relative; }
.pulse-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent-green); animation: pulse-ring 2s infinite; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.8); opacity: 0; } }

/* ── Stats Counter ── */
[data-count] { font-variant-numeric: tabular-nums; }

/* ── Section Divider ── */
.section-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-subtle), transparent); margin: 80px 0; }

/* ── Hero Section Override ── */
.hero-section { position: relative; min-height: 90vh; display: flex; align-items: center; overflow: hidden; }

/* ── Mockup Alert Row Hover ── */
.mockup-row { transition: all 0.2s ease; }
.mockup-row:hover { background: rgba(255,255,255,0.04) !important; transform: translateX(4px); }

/* ── Button Shimmer ── */
.btn-primary::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); animation: btnShimmer 3s infinite; }
@keyframes btnShimmer { 0% { left: -100%; } 50% { left: 100%; } 100% { left: 100%; } }

/* ── Hamburger Menu ── */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; z-index: 1001; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s ease; }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-links.mobile-open { display: flex !important; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: rgba(10,10,15,0.98); backdrop-filter: blur(20px); flex-direction: column; align-items: center; justify-content: center; gap: 24px; z-index: 999; padding: 40px 24px; }

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.mobile-open { display: flex !important; }
  .nav-hamburger { display: flex; }
  .hero-section { padding: 100px 20px 60px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr !important; gap: 32px; }
  .dashboard-mockup { transform: scale(0.85); transform-origin: top center; }
  .features-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
}
@media (max-width: 480px) {
  .hero-section { padding: 80px 16px 40px; }
  .dashboard-mockup { display: none; }
  .btn-glow { font-size: 14px; padding: 14px 24px; }
}

/* ── Typing Cursor ── */
.typing-cursor { color: var(--accent-blue); animation: blink 0.8s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }