/* ============================================================
   VaultSphereAI CareerOS — Global Design System
   Placement Mastery 150
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --primary:        #6C63FF;
  --primary-dark:   #5A52D5;
  --primary-light:  #8B84FF;
  --secondary:      #8B5CF6;
  --secondary-dark: #7C3AED;
  --accent:         #EC4899;
  --success:        #22C55E;
  --warning:        #F59E0B;
  --danger:         #EF4444;
  --info:           #06B6D4;
  --dark:           #0F172A;
  --dark-2:         #1E293B;
  --dark-3:         #334155;
  --muted:          #64748B;
  --border:         #E2E8F0;
  --bg:             #F8FAFC;
  --white:          #FFFFFF;
  --text:           #1E293B;
  --text-light:     #64748B;

  --grad-primary:   linear-gradient(135deg, #6C63FF 0%, #8B5CF6 50%, #EC4899 100%);
  --grad-dark:      linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  --grad-glow:      linear-gradient(135deg, rgba(108,99,255,0.15) 0%, rgba(139,92,246,0.15) 100%);

  --glass-bg:       rgba(255,255,255,0.05);
  --glass-border:   rgba(255,255,255,0.1);
  --glass-blur:     blur(20px);

  --shadow-sm:      0 1px 3px rgba(0,0,0,0.12);
  --shadow:         0 4px 20px rgba(108,99,255,0.15);
  --shadow-lg:      0 20px 60px rgba(108,99,255,0.25);
  --shadow-xl:      0 30px 80px rgba(0,0,0,0.3);

  --radius-sm:      8px;
  --radius:         12px;
  --radius-lg:      20px;
  --radius-xl:      32px;
  --radius-full:    9999px;

  --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --font-heading: 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;

  --header-height: 72px;
  --sidebar-width: 260px;
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; }

/* ── Typography ────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { color: var(--text-light); line-height: 1.8; }

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout Utilities ──────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 768px; margin: 0 auto; padding: 0 1.5rem; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-6 { gap: 3rem; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 8rem 0; }

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition);
}
.btn:hover::before { background: rgba(255,255,255,0.1); }

.btn-primary {
  background: var(--grad-primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(108,99,255,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,99,255,0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover { background: var(--dark-3); transform: translateY(-2px); }

.btn-glass {
  background: var(--glass-bg);
  color: var(--white);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
}
.btn-glass:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-xl { padding: 1.25rem 3rem; font-size: 1.1rem; }
.btn-full { width: 100%; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }

.btn-success { background: var(--success); color: white; }
.btn-danger  { background: var(--danger); color: white; }
.btn-warning { background: var(--warning); color: white; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card-glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.card-dark {
  background: var(--dark-2);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--white);
}

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-primary { background: rgba(108,99,255,0.15); color: var(--primary); }
.badge-success { background: rgba(34,197,94,0.15); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-danger  { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge-info    { background: rgba(6,182,212,0.15); color: var(--info); }

/* ── Forms ──────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-weight: 600; font-size: 0.9rem; color: var(--dark); }

.form-input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: #0f172a;
  background: var(--white);
  transition: var(--transition);
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(108,99,255,0.18);
}
.form-input::placeholder { color: #94a3b8; }
.form-input.error { border-color: var(--danger); }

.form-select {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: var(--white);
  color: #0f172a;
  transition: var(--transition);
  cursor: pointer;
}
.form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(108,99,255,0.18); }

.form-textarea {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: #0f172a;
  background: var(--white);
  resize: vertical;
  min-height: 120px;
  transition: var(--transition);
}
.form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(108,99,255,0.18); }

.form-hint  { font-size: 0.82rem; color: var(--muted); }
.form-error { font-size: 0.82rem; color: var(--danger); }

.input-icon-wrap { position: relative; }
.input-icon-wrap .form-input { padding-left: 2.8rem; }
.input-icon-wrap .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1rem;
}

/* ── Navigation ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.navbar-logo {
  width: 40px;
  height: 40px;
  background: var(--grad-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  font-family: var(--font-heading);
}
.navbar-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
}
.navbar-title span { color: var(--primary-light); }
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.5rem 1rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-link.active { color: var(--primary-light); }
.navbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}
.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--dark);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(108,99,255,0.3) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(139,92,246,0.2) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 10% 70%, rgba(236,72,153,0.15) 0%, transparent 50%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(108,99,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(108,99,255,0.2);
  border: 1px solid rgba(108,99,255,0.4);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: flex;
  gap: 2rem;
}
.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-heading);
}
.hero-stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.hero-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
}
.floating-badge {
  position: absolute;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.floating-1 { top: -20px; right: -20px; animation-delay: 0s; }
.floating-2 { bottom: -20px; left: -20px; animation-delay: 1s; }
.floating-3 { top: 40%; right: -30px; animation-delay: 2s; }

/* ── Section Headers ────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.section-title { margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ── Features ───────────────────────────────────────────── */
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transition: var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
  border-color: rgba(108,99,255,0.2);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background: rgba(108,99,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.feature-card:hover .feature-icon {
  background: var(--grad-primary);
  transform: scale(1.1);
}
.feature-title { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--dark); }
.feature-desc  { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

/* ── Pricing ────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  transition: var(--transition);
}
.pricing-card.popular {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(108,99,255,0.03) 0%, rgba(139,92,246,0.03) 100%);
  transform: scale(1.03);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 1.25rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}
.pricing-plan-name { font-size: 1.1rem; color: var(--primary); font-weight: 700; margin-bottom: 0.5rem; }
.pricing-amount {
  font-size: 3rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.pricing-amount sup { font-size: 1.5rem; vertical-align: super; }
.pricing-gst { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.pricing-features { margin-bottom: 2rem; }
.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
}
.pricing-feature:last-child { border-bottom: none; }
.pricing-check { color: var(--success); font-size: 1rem; flex-shrink: 0; }

/* ── Progress Bar ────────────────────────────────────────── */
.progress-bar { background: var(--border); border-radius: var(--radius-full); height: 8px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Stats / Counter ──────────────────────────────────────── */
.stat-card {
  text-align: center;
  padding: 2rem;
}
.stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: var(--font-heading);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.9rem; color: var(--muted); margin-top: 0.25rem; }

/* ── Testimonials ────────────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.testimonial-stars { color: var(--warning); font-size: 1rem; margin-bottom: 1rem; }
.testimonial-text { font-style: italic; color: var(--text-light); margin-bottom: 1.5rem; line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.95rem; color: var(--dark); }
.testimonial-college { font-size: 0.82rem; color: var(--muted); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
}
.faq-question:hover { background: var(--bg); }
.faq-question.active { color: var(--primary); }
.faq-icon { font-size: 1.25rem; transition: var(--transition); }
.faq-question.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer.open { max-height: 300px; padding: 0 1.5rem 1.5rem; }
.faq-answer p { color: var(--text-light); line-height: 1.8; }

/* ── Alert / Toast ───────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #15803D; }
.alert-danger  { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #B91C1C; }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #92400E; }
.alert-info    { background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.3); color: #0E7490; }

.toast-container {
  position: fixed;
  top: 90px;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
.toast {
  background: var(--dark);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  pointer-events: auto;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  border-left: 3px solid var(--primary);
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateX(100%); }
}

/* ── Loading / Spinner ────────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Skeleton ──────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, #e8ecf0 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Tabs ──────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0.5rem; border-bottom: 2px solid var(--border); margin-bottom: 2rem; }
.tab-btn {
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Table ─────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th {
  background: var(--bg);
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-xl);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-title { font-size: 1.3rem; font-weight: 700; }
.modal-close { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; transition: var(--transition); }
.modal-close:hover { background: var(--border); }

/* ── Dropdown ─────────────────────────────────────────────── */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
}
.dropdown-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition);
}
.dropdown-item:hover { background: var(--bg); color: var(--primary); }
.dropdown-divider { height: 1px; background: var(--border); margin: 0.25rem 0; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand { max-width: 300px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-desc { font-size: 0.9rem; line-height: 1.8; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}
.footer-social-btn:hover { background: var(--primary); transform: translateY(-2px); }
.footer-heading { font-family: var(--font-heading); font-weight: 700; color: white; margin-bottom: 1.25rem; font-size: 0.95rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-link { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-link:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ── XP / Gamification ────────────────────────────────────── */
.xp-bar-wrap { position: relative; margin-bottom: 0.5rem; }
.xp-label { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 0.4rem; font-weight: 600; }
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--grad-primary);
  color: white;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245,158,11,0.15);
  color: var(--warning);
  border: 1px solid rgba(245,158,11,0.3);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ── Dark section ─────────────────────────────────────────── */
.dark-section {
  background: var(--dark);
  color: white;
}
.dark-section h2, .dark-section h3, .dark-section h4 { color: white; }
.dark-section p { color: rgba(255,255,255,0.65); }

/* ── Step / Process ───────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 1.5rem; }
.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: white;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-content h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.step-content p  { font-size: 0.9rem; }

/* ── Day Card (LMS) ───────────────────────────────────────── */
.day-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  cursor: pointer;
}
.day-card.completed { border-color: var(--success); background: rgba(34,197,94,0.05); }
.day-card.locked    { opacity: 0.5; cursor: not-allowed; }
.day-card.active    { border-color: var(--primary); background: rgba(108,99,255,0.05); }
.day-card:not(.locked):hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.day-num {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  font-family: var(--font-heading);
  flex-shrink: 0;
}
.day-card.completed .day-num { background: rgba(34,197,94,0.15); color: var(--success); }
.day-card.locked    .day-num { background: var(--bg); color: var(--muted); }
.day-card.active    .day-num { background: rgba(108,99,255,0.15); color: var(--primary); }
.day-card:not(.completed):not(.locked):not(.active) .day-num { background: var(--bg); color: var(--dark); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .navbar-menu { display: none; }
  .navbar-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: rgba(15,23,42,0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    gap: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
  }
  .navbar-toggle { display: flex; }
  .navbar-actions .btn { display: none; }
  .navbar-actions .btn:last-child { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .pricing-card.popular { transform: scale(1); }
  .section { padding: 3rem 0; }
  .section-header { margin-bottom: 2.5rem; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .card, .card-dark { padding: 1.25rem; }
  .btn-xl { padding: 0.875rem 2rem; font-size: 1rem; }
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-fade-up { animation: fadeInUp 0.6s ease forwards; }
.animate-fade    { animation: fadeIn 0.6s ease forwards; }
.animate-scale   { animation: scaleIn 0.4s ease forwards; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Intersection Observer animations ──────────────────────── */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }
[data-aos="zoom-in"] { transform: scale(0.85); }
[data-aos="zoom-in"].aos-animate { transform: scale(1); }

/* Day grid progress path inside learning widget */
.day-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  padding: 0.25rem;
}
.day-grid-container .day-card {
  flex-direction: column;
  padding: 0.6rem 0.3rem;
  gap: 0.35rem;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 85px;
}
.day-grid-container .day-card .day-num {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
  border-radius: 8px;
  margin: 0 auto;
}

