/* ═══════════════════════════════════════════
   ROADMAPX — PREMIUM SAAS DESIGN SYSTEM
   Theme: Modern SaaS / Deep Dark / Cyber-Teal
   ═══════════════════════════════════════════ */

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

:root {
  /* Premium Colors */
  --bg-primary: #05050a;
  --bg-secondary: #0a0a14;
  --accent: #00f5d4;
  --accent-glow: rgba(0, 245, 212, 0.2);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;

  /* Extended Color Palette */
  --bg-card: #0d0d18;
  --bg-input: #121222;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.15);

  /* Spacing (8px grid) */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;

  /* Premium Effects */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-layered: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 245, 212, 0.05);
  --shadow-glow: 0 0 40px rgba(0, 245, 212, 0.2);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-primary);
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0, 245, 212, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 245, 212, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(0, 245, 212, 0.07) 0%, transparent 50%);
  background-size: 100% 100%;
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

input, button {
  font-family: inherit;
}

/* ── Premium Navigation Bar ── */
.nav-bar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s3);
  background: rgba(10, 10, 20, 0.7);
  border-bottom: 1px solid var(--border);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
  font-weight: 800;
  font-size: var(--fs-xl);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Premium Cards ── */
.card {
  background: var(--bg-card);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: var(--accent);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 30px rgba(0, 245, 212, 0.1);
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition-slow);
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

/* ── Premium Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: var(--transition-fast);
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn.primary {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow:
    0 4px 20px rgba(0, 245, 212, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn.primary:hover {
  box-shadow:
    0 6px 30px rgba(0, 245, 212, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: brightness(1.05);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.1);
}

/* ── Input Fields ── */
.input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  transition: var(--transition);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 245, 212, 0.03);
  box-shadow: 0 0 0 4px rgba(0, 245, 212, 0.1);
}

.input::placeholder {
  color: var(--text-dim);
}

/* ── Premium Glassmorphism ── */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-dark {
  background: rgba(10, 10, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-light {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ── Typography Scale Helpers ── */
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-accent { color: var(--accent); }

.h1 { font-size: var(--fs-3xl); font-weight: 800; }
.h2 { font-size: var(--fs-2xl); }
.h3 { font-size: var(--fs-xl); }
.label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.stat { font-size: var(--fs-3xl); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── Premium Animations & Effects ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
  from { box-shadow: 0 0 20px rgba(0, 245, 212, 0.2); }
  to { box-shadow: 0 0 40px rgba(0, 245, 212, 0.4); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-fade {
  animation: fadeIn 0.4s ease forwards;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* ── Premium Utilities ── */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-layered);
}

.hover-scale {
  transition: var(--transition);
}

.hover-scale:hover {
  transform: scale(1.03);
}

.hover-glow:hover {
  box-shadow: var(--shadow-glow);
  border-color: var(--accent);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #00d4aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Premium Grid/Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s3);
}

.grid {
  display: grid;
  gap: var(--s3);
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
}

/* ── Premium Navigation Items ── */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  padding: var(--s1);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--accent-glow);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: var(--transition-slow);
}

.nav-item:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.nav-item:hover::before {
  width: 60px;
  height: 60px;
}

.nav-item.active {
  color: var(--accent);
  background: rgba(0, 245, 212, 0.1);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent);
}
