/* custom.css – Premium UI enhancements */

/* ---------- Color Palette & Typography ---------- */
:root {
  --font-primary: 'Inter', sans-serif;
  --bg-primary: #0a0a0a;
  --bg-secondary: #111;
  --bg-card: rgba(255, 255, 255, 0.07);
  --bg-card-hover: rgba(255, 255, 255, 0.12);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text-primary: #fafafa;
  --text-secondary: #bbb;
  --accent: #ff4d4d; /* vibrant accent */
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

body {
  font-family: var(--font-primary);
  background: linear-gradient(135deg, #080808 0%, #0e0e0e 100%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Glassmorphism Card ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s ease, border-color 0.35s ease;
}

.card:hover {
  transform: translateY(-12px) scale(1.03);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

/* ---------- Button Enhancements ---------- */
/* .btn-buy styles are defined in index.html for theme-based styling */
.btn-card {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-card:hover {
  background: #ff6b6b;
  transform: translateY(-4px) scale(1.02);
}

/* ---------- Theme Toggle Icon Transition ---------- */
.theme-toggle svg {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

body.light-theme .theme-toggle .sun-icon { opacity: 1; transform: rotate(0deg) scale(1); }
body.light-theme .theme-toggle .moon-icon { opacity: 0; transform: rotate(90deg) scale(0); }

/* ---------- Scroll Top Button ---------- */
.scroll-top {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: background 0.3s, transform 0.2s, opacity 0.3s;
}
.scroll-top:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

/* ---------- Hero Section Parallax Overlay ---------- */
.hero {
  background: radial-gradient(circle at 50% 30%, var(--bg-secondary) 0%, var(--bg-primary) 80%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 40%, rgba(255,255,255,0.02) 0%, transparent 70%),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.02) 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
  .card {
    width: 100% !important;
    max-width: 340px;
  }
  .hero h1 { font-size: 4rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 3rem; }
  .btn-card { padding: 0.8rem 2rem; font-size: 0.8rem; }
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Footer Styling ---------- */
footer {
  color: var(--text-secondary);
  background: transparent;
  padding: 2rem 0;
}

/* Body background and text color use CSS variables */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* Canvas background */
#bg {
  background: var(--bg-primary);
}

/* Navigation bar colors - убрали background чтобы не перезаписывать полупрозрачность */
nav {
  color: var(--text-primary);
}

/* Hero section text contrast */
.hero h1,
.hero-label,
.hero-badge {
  color: var(--text-primary);
}
