/* ═══════════════════════════════════════════════
   JYOTVIRA AI Assistant — style.css
   Premium SaaS Design System
   Avinash Jadhav · JYOTVIRA Systems
═══════════════════════════════════════════════ */

/* ─── CSS VARIABLES ─── */
:root {
  --bg-base:        #04080F;
  --bg-surface:     #080D1A;
  --bg-card:        #0C1423;
  --bg-elevated:    #111D32;
  --bg-input:       #0A1220;
  --border:         #192840;
  --border-subtle:  #0F1D2E;
  --text-primary:   #EEF3FA;
  --text-secondary: #7D95B5;
  --text-muted:     #3D5470;
  --accent:         #F59E0B;
  --accent-dim:     rgba(245, 158, 11, 0.12);
  --accent-glow:    rgba(245, 158, 11, 0.25);
  --accent-hover:   #D97706;
  --blue:           #3B82F6;
  --blue-dim:       rgba(59, 130, 246, 0.12);
  --green:          #10B981;
  --red:            #EF4444;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.5);
  --shadow-md:      0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:      0 12px 40px rgba(0,0,0,0.5);
  --shadow-glow:    0 0 30px rgba(245, 158, 11, 0.15);
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-xl:      22px;
  --font-sora:      'Sora', sans-serif;
  --font-dm:        'DM Sans', sans-serif;
  --transition:     150ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-base:        #F5F7FA;
  --bg-surface:     #FFFFFF;
  --bg-card:        #FFFFFF;
  --bg-elevated:    #F0F4FA;
  --bg-input:       #F8FAFC;
  --border:         #DDE4EF;
  --border-subtle:  #EBF0F8;
  --text-primary:   #0C1829;
  --text-secondary: #4A6080;
  --text-muted:     #94A8C0;
  --accent:         #D97706;
  --accent-dim:     rgba(217, 119, 6, 0.08);
  --accent-glow:    rgba(217, 119, 6, 0.15);
  --accent-hover:   #B45309;
  --blue:           #2563EB;
  --blue-dim:       rgba(37, 99, 235, 0.08);
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.07);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:      0 8px 30px rgba(0,0,0,0.1);
  --shadow-glow:    0 0 20px rgba(217, 119, 6, 0.12);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-dm);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── ANIMATIONS ─── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 0.9; transform: scale(1.08); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes wave {
  0%, 40%, 100% { transform: scaleY(0.4); }
  20%            { transform: scaleY(1.0); }
}
@keyframes dot-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%       { transform: translateY(-4px); opacity: 1; }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(8px) scale(0.96); }
}
@keyframes bg-shift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-4%, 3%) scale(1.04); }
  66%       { transform: translate(3%, -3%) scale(0.97); }
}

.animate-fade-up {
  animation: fade-up 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) both;
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(4, 8, 15, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition), border-color var(--transition);
}
[data-theme="light"] .navbar {
  background: rgba(248, 250, 255, 0.88);
  border-bottom-color: var(--border);
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.logo-flame { flex-shrink: 0; }
.logo-text { color: var(--text-primary); font-weight: 700; letter-spacing: -0.02em; }
.logo-ai {
  color: var(--accent);
  font-style: italic;
  font-weight: 800;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
  font-size: 0.875rem;
  font-weight: 500;
}
.nav-link:hover { color: var(--text-primary); }

.theme-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.theme-btn:hover { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-dim); }

.cta-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  background: var(--accent);
  color: #0C0A00;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.cta-pill:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px var(--accent-glow);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-secondary); padding: 4px;
}
.mobile-menu {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.mobile-nav-link {
  display: block; padding: 10px 12px;
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.mobile-nav-link:hover { color: var(--text-primary); background: var(--bg-elevated); }

/* ─── HERO SECTION ─── */
.hero-section {
  position: relative;
  min-height: 85vh;
  background: var(--bg-base);
  overflow: hidden;
  display: flex; align-items: center;
}

.hero-bg-mesh {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(245,158,11,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(59,130,246,0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 100%);
  background-size: 100% 100%;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: glow-pulse 6s ease-in-out infinite, bg-shift 12s ease-in-out infinite;
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 400px;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(245,158,11,0.1) 0%, transparent 70%);
}
.hero-glow-2 {
  width: 400px; height: 400px;
  bottom: 0; right: 5%;
  background: radial-gradient(ellipse, rgba(59,130,246,0.07) 0%, transparent 70%);
  animation-delay: 3s;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.badge-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--border);
}
.flag-emoji { font-size: 0.9rem; line-height: 1; }

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-weight: 800;
}

.headline-gradient {
  background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 40%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.headline-shimmer {
  background: linear-gradient(
    90deg,
    var(--blue) 0%, #818CF8 40%, var(--accent) 60%, var(--blue) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.0625rem);
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 400;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: #0C0A00;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all var(--transition);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.stats-bar {
  display: inline-flex; align-items: center; gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0 4px;
  overflow: hidden;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 20px;
  gap: 2px;
}
.stat-number {
  font-family: var(--font-sora);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.stat-divider {
  width: 1px; height: 32px;
  background: var(--border);
}

/* ─── TOOL SECTION ─── */
.tool-section {
  padding: 80px 0 60px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-chip {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,0.2);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
[data-theme="light"] .section-chip {
  background: rgba(217,119,6,0.08);
  border-color: rgba(217,119,6,0.2);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}
.section-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.tool-card-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.tool-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-red   { background: #FF5F57; }
.dot-amber { background: #FFBD2E; }
.dot-green { background: #27C840; }

.tool-card-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  flex: 1;
  text-align: center;
}
.tool-card-badge {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.6875rem;
  color: var(--green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-soft 1.5s ease infinite;
}

.tool-card-body { padding: 24px; }

/* Input Label */
.input-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.label-optional {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Textarea */
.textarea-wrapper { position: relative; }
.ai-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-dm);
  font-size: 0.9rem;
  line-height: 1.65;
  padding: 14px;
  padding-bottom: 36px;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.ai-textarea::placeholder { color: var(--text-muted); }
.ai-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.char-counter-bar {
  position: absolute; bottom: 10px; right: 12px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  pointer-events: none;
}

/* Select */
.select-wrapper { position: relative; }
.ai-select {
  width: 100%;
  appearance: none;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-dm);
  font-size: 0.9rem;
  padding: 11px 40px 11px 14px;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ai-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.ai-select option { background: var(--bg-card); color: var(--text-primary); }
.select-arrow {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Generate Button */
.generate-btn {
  width: 100%;
  padding: 13px 20px;
  background: var(--accent);
  color: #0C0A00;
  font-family: var(--font-dm);
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px var(--accent-glow);
  position: relative;
  overflow: hidden;
}
.generate-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 6px 24px var(--accent-glow);
  transform: translateY(-1px);
}
.generate-btn:active:not(:disabled) { transform: translateY(0); }
.generate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.generate-btn-content,
.loading-content {
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* Loading Dots in button */
.loading-dots {
  display: flex; align-items: center; gap: 3px;
}
.loading-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #0C0A00;
  animation: dot-bounce 0.8s ease infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.loading-dots span:nth-child(3) { animation-delay: 0.3s; }

/* Type Tags */
.type-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.type-tag {
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}
.type-tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.type-tag.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* Output Header */
.output-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.output-actions { display: flex; gap: 6px; }
.action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-dm);
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.action-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.action-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Output Box */
.output-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 220px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition);
}
.output-box.has-content {
  align-items: flex-start;
  justify-content: flex-start;
}

/* Empty State */
.empty-state {
  text-align: center; padding: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty-icon { color: var(--text-muted); opacity: 0.5; }
.empty-title { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }
.empty-sub   { font-size: 0.775rem; color: var(--text-muted); opacity: 0.7; }

/* Loading state in output */
.ai-loading {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 24px; width: 100%;
}
.loading-wave {
  display: flex; align-items: center; gap: 4px;
}
.loading-wave span {
  width: 4px; height: 28px;
  background: var(--accent);
  border-radius: 4px;
  animation: wave 1.2s ease-in-out infinite;
}
.loading-wave span:nth-child(1) { animation-delay: 0s; }
.loading-wave span:nth-child(2) { animation-delay: 0.1s; }
.loading-wave span:nth-child(3) { animation-delay: 0.2s; }
.loading-wave span:nth-child(4) { animation-delay: 0.3s; }
.loading-wave span:nth-child(5) { animation-delay: 0.4s; }

.loading-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Output Text */
.output-text {
  padding: 16px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  width: 100%;
  animation: fade-up 0.3s ease both;
}

/* Error State */
.error-state {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 24px; text-align: center;
}
.error-msg { font-size: 0.85rem; color: var(--red); font-weight: 500; }

/* Output Meta */
.output-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.meta-chip {
  padding: 3px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}
.meta-ai {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Tips Row */
.tips-row {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.tip-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.775rem;
  color: var(--text-muted);
}
.tip-icon { font-size: 0.85rem; }

/* ─── FEATURES SECTION ─── */
.features-section {
  padding: 80px 0;
  background: var(--bg-base);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-icon-wrap {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated); /* fallback for browsers without color-mix() */
  background: color-mix(in srgb, var(--icon-color) 10%, transparent);
  color: var(--icon-color);
  margin-bottom: 16px;
}
.feature-title {
  font-family: var(--font-sora);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.feature-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── HOW IT WORKS ─── */
.how-section { padding: 60px 0; background: var(--bg-surface); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.steps-grid {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 12px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  flex: 1; min-width: 200px; max-width: 260px;
  text-align: center;
}
.step-number {
  font-family: var(--font-sora);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 12px;
}
.step-title { font-family: var(--font-sora); font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.step-desc { font-size: 0.825rem; color: var(--text-secondary); line-height: 1.6; }
.step-arrow { font-size: 1.25rem; color: var(--text-muted); }
@media (max-width: 600px) { .step-arrow { transform: rotate(90deg); } }

/* ─── PRICING SECTION ─── */
.pricing-section { padding: 80px 0; background: var(--bg-base); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; align-items: stretch;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 40px var(--accent-dim);
  transform: scale(1.02);
}
.pricing-enterprise {
  border-color: var(--purple, #8B5CF6);
  background: linear-gradient(160deg, rgba(139,92,246,.07) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 32px rgba(139,92,246,.14);
}
.pricing-badge-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.plan-name {
  font-family: var(--font-sora);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.popular-badge {
  padding: 3px 10px;
  background: var(--accent);
  color: #0C0A00;
  font-size: 0.675rem;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pricing-price {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 8px;
}
.price-currency { font-size: 1.25rem; font-weight: 600; color: var(--text-secondary); margin-top: 4px; }
.price-amount {
  font-family: var(--font-sora);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-period { font-size: 0.875rem; color: var(--text-muted); }
.pricing-desc { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.5; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; margin-bottom: 24px; }
.pricing-features li { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--text-secondary); }
.check-icon { color: var(--green); font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.muted-item { color: var(--text-muted); font-size: 0.9rem; flex-shrink: 0; }
.pricing-btn {
  display: block; text-align: center;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
  margin-top: auto;
}
.pricing-btn-primary { background: var(--accent); color: #0C0A00; box-shadow: 0 4px 16px var(--accent-glow); }
.pricing-btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.pricing-btn-ghost { background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-secondary); }
.pricing-btn-ghost:hover { border-color: var(--text-muted); color: var(--text-primary); }
.pricing-note { color: var(--text-muted); font-size: 0.825rem; }

/* ─── CTA BANNER ─── */
.cta-banner-section { padding: 60px 0; background: var(--bg-surface); border-top: 1px solid var(--border-subtle); }
.cta-banner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 52px 40px;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}
.cta-subtitle { font-size: 0.9375rem; color: var(--text-secondary); }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 52px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-tagline { font-size: 0.8375rem; color: var(--text-muted); line-height: 1.65; max-width: 280px; }
.footer-col-title {
  font-family: var(--font-sora);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-link {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-powered { font-size: 0.8rem; color: var(--text-muted); }
.powered-brand { color: var(--accent); font-weight: 600; }

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0;
  pointer-events: none;
  transition: none;
}
.toast.show {
  animation: toast-in 0.25s ease both;
  opacity: 1;
  pointer-events: auto;
}
.toast.hide {
  animation: toast-out 0.25s ease both;
}
.toast svg { color: var(--green); flex-shrink: 0; }

/* ─── UTILITIES ─── */
.hidden { display: none !important; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero-section { min-height: auto; }
  .stats-bar { flex-wrap: wrap; border-radius: var(--radius-lg); }
  .pricing-featured { transform: none; }
  .tool-card-body { padding: 16px; }
  .cta-banner-card { padding: 36px 24px; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .btn-primary, .btn-ghost { padding: 11px 18px; font-size: 0.875rem; }
  .stats-bar { justify-content: center; }
}
