/* Radiant Core v2 - Global Design System */
:root {
  --brand-violet: #8b5cf6;
  --brand-cyan: #06b6d4;
  --brand-diamond: #f8fafc;
  --brand-amber: #f59e0b;
  --brand-emerald: #10b981;

  --deep-slate: #020617;
  --glass-white: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Unified Gradients */
  --grad-radiant: linear-gradient(
    135deg,
    var(--brand-violet),
    var(--brand-cyan)
  );
  --grad-silver: linear-gradient(to top, #94a3b8, #f8fafc, #ffffff);
  --grad-sunset: linear-gradient(135deg, #f59e0b, #ef4444);

  --shadow-radiant: 0 20px 50px -12px rgba(139, 92, 246, 0.3);
}

body {
  background-color: var(--deep-slate);
  color: #fff;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

/* The Mesh Gradient Background */
.gradient-bg,
body.gradient-bg {
  background-color: var(--deep-slate);
  background-image:
    radial-gradient(at 0% 0%, hsla(271, 91%, 65%, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, hsla(242, 91%, 65%, 0.1) 0px, transparent 50%),
    radial-gradient(
      at 100% 100%,
      hsla(199, 81%, 60%, 0.1) 0px,
      transparent 50%
    ),
    radial-gradient(at 0% 100%, hsla(271, 91%, 60%, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Premium Glass Card */
.glass-card {
  background: var(--glass-white);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

/* Typography Enhancements */
.text-radiant {
  background: var(--grad-radiant);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.brand-text {
  background: var(--grad-silver);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
  padding-bottom: 0.25rem;
  line-height: 1.4;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 1.25rem;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.85rem 1.75rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-radiant);
  color: white !important;
  box-shadow: var(--shadow-radiant);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 25px 60px -12px rgba(139, 92, 246, 0.5);
  filter: brightness(1.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

html.light .btn-secondary {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #0f172a !important;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

html.light .btn-secondary:hover {
  background: rgba(15, 23, 42, 0.1);
  border-color: rgba(15, 23, 42, 0.2);
}

/* Icon Containers */
.icon-box {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.15rem;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
}

.icon-box-radiant {
  background: var(--grad-radiant);
  color: white;
}
.icon-box-violet {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}
.icon-box-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
}
.icon-box-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

/* Utilities */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
}
@supports (scrollbar-width: none) {
  .scrollbar-hide {
    scrollbar-width: none;
  }
}

/* Light Mode Overrides */
html.light body {
  background-color: #f8fafc;
  color: #0f172a;
}

html.light .glass-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

html.light .brand-text {
  background: none;
  -webkit-text-fill-color: #0f172a;
  color: #0f172a;
}

html.light .text-gray-400,
html.light .text-slate-300,
html.light .text-slate-400,
html.light .text-violet-200,
html.light .text-indigo-100 {
  color: #475569 !important; /* High contrast slate for readability */
}

html.light .text-white,
html.light .text-gray-300 {
  color: #0f172a !important;
}

html.light h1,
html.light h2,
html.light h3,
html.light h4,
html.light .font-bold {
  color: #0f172a !important;
}

/* Fix for icons/badges in light mode */
html.light .glass-card i {
  color: #334155;
}

html.light .icon-box:not(.icon-box-radiant) {
  background: rgba(0, 0, 0, 0.05);
}

html.light .text-cyan-400 {
  color: #0891b2 !important;
}
html.light .text-orange-400 {
  color: #c2410c !important;
}
html.light .text-violet-400 {
  color: #7c3aed !important;
}
html.light .text-rose-400 {
  color: #e11d48 !important;
}
html.light .text-emerald-400 {
  color: #059669 !important;
}

/* Responsive Spacing Utilities (Optimized) */
.section-gap {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .section-gap {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  .section-gap {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}
