/* ═══════════════════════════════════════════════
   SVAROG TECH — Core Styles
   ═══════════════════════════════════════════════ */

:root {
  --bg: #050300;
  --surface: #0e0b03;
  --amber: #f59e0b;
  --amber-light: #fcd34d;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.3) transparent;
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  color: #fef3c7;
  overflow-x: hidden;
}

::selection {
  background: rgba(245, 158, 11, 0.25);
  color: #fef3c7;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.25);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.4);
}

/* ═══════════════════════════════════════════════
   GRAIN OVERLAY
   ═══════════════════════════════════════════════ */

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: overlay;
}

.grain-overlay::after {
  content: '';
  position: absolute;
  inset: -200%;
  width: 400%;
  height: 400%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  animation: grain 0.5s steps(1) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2%, -2%); }
  30% { transform: translate(-3%, 1%); }
  50% { transform: translate(-1%, 2%); }
  70% { transform: translate(-2%, 1%); }
  90% { transform: translate(-1%, 3%); }
}

/* ═══════════════════════════════════════════════
   CARDS — Solid dark backgrounds, no glass blur
   ═══════════════════════════════════════════════ */

.card {
  background: var(--surface);
  border: 1px solid rgba(255, 215, 0, 0.07);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card:hover {
  border-color: rgba(255, 215, 0, 0.16);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(245, 158, 11, 0.03);
}

/* ═══════════════════════════════════════════════
   LAZY LOADING
   ═══════════════════════════════════════════════ */

[data-lazy-section] {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-lazy-section].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-lazy-child] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-lazy-child].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-lazy-child="left"] { transform: translateX(-30px); }
[data-lazy-child="left"].is-visible { transform: translateX(0); }

[data-lazy-child="right"] { transform: translateX(30px); }
[data-lazy-child="right"].is-visible { transform: translateX(0); }

[data-lazy-child="scale"] { transform: scale(0.92); }
[data-lazy-child="scale"].is-visible { transform: scale(1); }

/* ═══════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════ */

.nav-link {
  position: relative;
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(254, 243, 199, 0.5);
  transition: color 0.3s;
  padding: 8px 0;
}

.nav-link:hover {
  color: rgba(254, 243, 199, 0.95);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--amber);
  transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-active {
  color: rgba(254, 243, 199, 0.95);
}

.nav-link-active::after {
  width: 100%;
}


/* ═══════════════════════════════════════════════
   MOBILE MENU
   ═══════════════════════════════════════════════ */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 3, 0, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(254, 243, 199, 0.6);
  transition: color 0.3s, transform 0.3s;
  transform: translateY(20px);
  opacity: 0;
}

.mobile-menu.is-open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.is-open a:nth-child(6) { transition-delay: 0.3s; }

.mobile-menu a:hover {
  color: var(--amber-light);
  transform: translateX(8px);
}

/* ═══════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════ */

.pricing-card {
  background: var(--surface);
  border: 1px solid rgba(255, 215, 0, 0.06);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.5s,
              box-shadow 0.5s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.12);
}

.pricing-card.featured {
  background: rgba(18, 14, 4, 0.98);
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow:
    0 0 40px rgba(245, 158, 11, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), transparent 50%, rgba(245, 158, 11, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════ */

.text-gradient-gold {
  background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 40%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-subtle {
  background: linear-gradient(180deg, #fef3c7 0%, rgba(254, 243, 199, 0.5) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-amber {
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}

.glow-amber-strong {
  box-shadow:
    0 0 20px rgba(245, 158, 11, 0.2),
    0 0 60px rgba(245, 158, 11, 0.1);
}

.divider-glow {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 158, 11, 0.25) 30%,
    rgba(245, 158, 11, 0.25) 70%,
    transparent
  );
}

.perspective-1000 {
  perspective: 1000px;
}

/* Hamburger */
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #fef3c7;
  transition: all 0.3s;
  border-radius: 1px;
}

.hamburger.is-active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.hamburger.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}
