/* ==========================================================================
   zCore Store — Tebex Generic Theme CSS
   Tokens, Typography, Reset, Canvas, Ambient Glows, Core Layout & Buttons
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- Design Tokens & Variables --- */
:root {
  --bg-main: #070406;
  --bg-deep: #030102;
  --surface: rgba(25, 12, 17, 0.65);
  --surface-hover: rgba(35, 16, 24, 0.85);
  --card: rgba(255, 255, 255, 0.05);
  --card-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.16);
  --border-hover: rgba(239, 68, 68, 0.5);
  --border-strong: rgba(239, 68, 68, 0.65);
  --border-glow: rgba(255, 255, 255, 0.35);

  --accent-red: #ef4444;
  --accent-red-hover: #dc2626;
  --accent-red-deep: #821833;
  --accent-red-glow: rgba(239, 68, 68, 0.45);
  --accent-ruby: #e11d48;
  --accent-emerald: #22c55e;
  --accent-amber: #f59e0b;

  --text-white: #ffffff;
  --text-gray: #d4c5c8;
  --text-dark-gray: #9c848a;

  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;

  --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --glass-blur: blur(10px);
  --glass-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  --glass-shadow-hover: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 25px rgba(239, 68, 68, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  --glass-inset: inset 0 1px 1px rgba(255, 255, 255, 0.18), inset 0 -1px 1px rgba(0, 0, 0, 0.3);
}

/* --- Global Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: #070406;
  background-image: 
    radial-gradient(85% 60% at 50% 15%, rgba(239, 68, 68, 0.18) 0%, transparent 64%),
    radial-gradient(55% 45% at 50% 48%, rgba(130, 24, 51, 0.22) 0%, transparent 74%),
    linear-gradient(180deg, #130509 0%, #070305 55%, #020102 100%);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
  letter-spacing: -0.012em;
  position: relative;
}

/* Texture Overlay */
body::after {
  content: "";
  pointer-events: none;
  opacity: 0.15;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 4px 4px;
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Background Snow Canvas */
#snow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.25;
}

/* Ambient Background Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

.bg-glow-1 {
  top: -5vh;
  left: 10vw;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.14) 0%, transparent 70%);
}

.bg-glow-2 {
  top: 35vh;
  right: -5vw;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(130, 24, 51, 0.18) 0%, transparent 70%);
}

.bg-glow-3 {
  bottom: 5vh;
  left: 20vw;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.12) 0%, transparent 70%);
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(130, 24, 51, 0.95));
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ef4444, #9f183c);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 14px 35px rgba(239, 68, 68, 0.5), 0 0 25px rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-white) !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.tech-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-gray);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: uppercase;
}
