/* Hell Ventures — custom tokens & effects (Tailwind handles utilities) */

:root {
  --bg-base: #030303;
  --surface: #0a0a0a;
  --surface-hover: #121212;
  --border: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.15);
  --text-main: #ededed;
  --text-muted: #888888;
  --accent-glow: rgba(220, 38, 38, 0.15);
  --focus-ring: rgba(248, 113, 113, 0.55);
}

body {
  font-family: "Manrope", system-ui, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Noise overlay */
.noise-bg {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

::selection {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Focus-visible — visible on keyboard, subtle on dark UI */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  border-radius: 0.25rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--text-main);
  border: 1px solid var(--border-highlight);
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.skip-link:focus {
  left: 0.75rem;
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Premium CTA */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.btn-premium {
  position: relative;
  background: var(--surface);
  border-radius: 9999px;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 24px rgba(220, 38, 38, 0.25), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-premium::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  background: conic-gradient(
    from var(--angle),
    transparent 30%,
    rgba(220, 38, 38, 0.9) 46%,
    rgba(255, 180, 180, 0.7) 50%,
    rgba(220, 38, 38, 0.9) 54%,
    transparent 65%
  );
  z-index: -1;
  animation: spin-border 3s linear infinite;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.btn-premium::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: linear-gradient(to bottom, #1a0a0a, #0a0404);
  border-radius: 9999px;
  z-index: -1;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(220, 38, 38, 0.45), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.btn-premium:hover::before {
  opacity: 1;
  animation-duration: 1.5s;
}

@keyframes spin-border {
  to {
    --angle: 360deg;
  }
}

/* Background orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(5rem);
  mix-blend-mode: screen;
  animation: float-orb 20s infinite ease-in-out alternate;
  z-index: 0;
  pointer-events: none;
}

.orb-1 {
  width: 35rem;
  height: 35rem;
  background: radial-gradient(circle, rgba(153, 27, 27, 0.08) 0%, transparent 70%);
  top: -10rem;
  left: -10rem;
}

.orb-2 {
  width: 45rem;
  height: 45rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  bottom: -15rem;
  right: -10rem;
  animation-delay: -10s;
}

@keyframes float-orb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(5rem, 5rem) scale(1.1);
  }
}

/* Glass panel */
.glass-panel {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(1.5rem);
  -webkit-backdrop-filter: blur(1.5rem);
  border: 1px solid var(--border);
  border-top-color: var(--border-highlight);
}

.text-balance {
  text-wrap: balance;
}

/* Mobile nav panel (above .noise-bg z-50 so panel is usable) */
.mobile-nav-panel {
  position: fixed;
  inset: 0;
  top: 4rem;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2rem;
  gap: 0.5rem;
  background: rgba(3, 3, 3, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-panel[hidden] {
  display: none !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .btn-premium::before {
    animation: none;
  }

  .orb {
    animation: none;
  }

  .btn-premium,
  a,
  button {
    transition-duration: 0.01ms !important;
  }

  /* If AOS is disabled or fails, avoid invisible content */
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}
