/* ==========================================================================
   ZYNIC HOSTING - DESIGN SYSTEM & UIX TOKENS
   Modern Dark SaaS / High-End Game Hosting UI System
   ========================================================================== */

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

:root {
  /* Color Palette - Obsidian Dark Theme */
  --bg-base: #050811;
  --bg-deep: #03050a;
  --bg-surface: #0a0f1d;
  --bg-surface-elevated: #0f172a;
  --bg-card: rgba(13, 20, 36, 0.7);
  --bg-card-hover: rgba(18, 28, 51, 0.85);
  --bg-glass: rgba(10, 15, 29, 0.65);
  --bg-glass-heavy: rgba(7, 11, 22, 0.85);

  /* Primary Brand & Accents */
  --accent-cyan: #00f2fe;
  --accent-cyan-hover: #38f9d7;
  --accent-cyan-glow: rgba(0, 242, 254, 0.35);
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.35);
  --accent-blue: #3b82f6;
  
  /* Feature Colors */
  --color-minecraft: #10b981;
  --color-minecraft-glow: rgba(16, 185, 129, 0.3);
  --color-hytale: #3fb958;
  --color-hytale-glow: rgba(63, 185, 88, 0.35);
  --color-terraria: #f59e0b;
  --color-terraria-glow: rgba(245, 158, 11, 0.35);
  --color-vps: #00f2fe;
  --color-vps-glow: rgba(0, 242, 254, 0.35);
  --color-discord: #5865f2;
  --color-discord-glow: rgba(88, 101, 242, 0.35);

  /* Functional Colors */
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #0ea5e9;

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-heading: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #030712;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-card-hover: rgba(0, 242, 254, 0.4);
  --border-glow: rgba(0, 242, 254, 0.6);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #8b5cf6 100%);
  --grad-text: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  --grad-accent-text: linear-gradient(135deg, #00f2fe 0%, #8b5cf6 100%);
  --grad-hytale-text: linear-gradient(135deg, #3fb958 0%, #00f2fe 100%);
  --grad-terraria-text: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --grad-glow: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.15), transparent 70%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  --grad-hero: radial-gradient(ellipse at 50% 0%, rgba(0, 242, 254, 0.15) 0%, rgba(139, 92, 246, 0.08) 40%, transparent 75%);

  /* Shadows & Depth Elevation */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 45px rgba(0, 0, 0, 0.7), 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 25px 60px rgba(0, 0, 0, 0.85), 0 8px 20px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 12px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-card-hover: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 242, 254, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  --shadow-glow-cyan: 0 0 35px rgba(0, 242, 254, 0.35);
  --shadow-glow-purple: 0 0 35px rgba(139, 92, 246, 0.35);
  --shadow-glow-emerald: 0 0 35px rgba(16, 185, 129, 0.35);
  --shadow-glow-gold: 0 0 35px rgba(245, 176, 2, 0.35);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing & Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   CSS RESET & BASE STYLES
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Subtle Global Cyber Grid Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: -2;
}

/* Ambient Radial Glow in Body Top */
body::after {
  content: '';
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: var(--grad-hero);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
  user-select: none;
}

/* Custom Selection */
::selection {
  background: rgba(0, 242, 254, 0.3);
  color: #ffffff;
}

/* Custom Scrollbar UIX */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 254, 0.4);
}

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-wide,
.container-configurator {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

.container-narrow {
  width: 100%;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-fluid {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 75px 0;
  position: relative;
}

.section-sm {
  padding: 45px 0;
}

.section-lg {
  padding: 100px 0;
}

/* Section Header Typography */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 38px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-tag.tag-purple {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.25);
  color: var(--accent-purple);
}

.section-tag.tag-green {
  background: rgba(63, 185, 88, 0.08);
  border-color: rgba(63, 185, 88, 0.25);
  color: var(--color-hytale);
}

.section-tag i {
  font-size: 0.85rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-heading);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Gradients for Text */
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #38f9d7 0%, #4facfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-hytale {
  background: var(--grad-hytale-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-terraria {
  background: var(--grad-terraria-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphic Surfaces */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.glass-card:hover {
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(0, 242, 254, 0.1);
  transform: translateY(-4px);
}

/* ==========================================================================
   CLEAN INTERACTIVE CARD TRACKING & ANIMATIONS
   ========================================================================== */

.spotlight-card,
.plan-card,
.game-select-item,
.tier-select-item,
.location-select-item,
.stat-item,
.bonus-card {
  position: relative;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), background var(--transition-smooth);
}

.spotlight-card:hover,
.plan-card:hover,
.stat-item:hover,
.bonus-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
}

.live-beacon {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  display: inline-block;
  animation: liveBeacon 2s infinite;
}

.live-beacon {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  display: inline-block;
  animation: liveBeacon 2s infinite;
}
