/* ====================================================
   QueryMage.dev — Dark Magic Academy x Geek Terminal
   Aether Design Philosophy: Liquid Glass Language
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Cinzel:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-void: #06060e;
  --bg-deep: #0a0a1a;
  --bg-surface: #0f0f23;
  --bg-elevated: #161630;

  --purple-900: #2e1065;
  --purple-700: #6d28d9;
  --purple-600: #7c3aed;
  --purple-500: #8b5cf6;
  --purple-400: #a78bfa;
  --purple-300: #c4b5fd;

  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --cyan-300: #67e8f9;

  --green-400: #4ade80;
  --green-500: #22c55e;

  --red-400: #f87171;
  --amber-400: #fbbf24;

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --glass-bg: rgba(139, 92, 246, 0.06);
  --glass-bg-hover: rgba(139, 92, 246, 0.12);
  --glass-border: rgba(139, 92, 246, 0.15);
  --glass-border-hover: rgba(139, 92, 246, 0.3);
  --glass-glow: rgba(139, 92, 246, 0.2);

  --radius-soft: 16px;
  --radius-pill: 9999px;

  --font-display: 'Cinzel', serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-mono);
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--purple-400);
  text-decoration: none;
  transition: color 0.3s var(--transition-smooth);
}

a:hover {
  color: var(--cyan-400);
}

::selection {
  background: var(--purple-600);
  color: #fff;
}

/* --- Canvas Background --- */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* --- Glass Utility --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(1.4) brightness(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.4) brightness(1.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-soft);
  transition: all 0.4s var(--transition-smooth);
}

.glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 0 30px var(--glass-glow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: var(--purple-700);
  border-radius: var(--radius-pill);
}

/* =====================
   NAVBAR
   ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 6, 14, 0.7);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(6, 6, 14, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  color: var(--purple-500);
}

.nav-logo .prompt {
  color: var(--cyan-400);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.9rem;
  margin-right: 0.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-radius: var(--radius-soft);
  transition: all 0.3s var(--transition-smooth);
  position: relative;
}

.nav-links a::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--purple-500);
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.08);
}

.nav-links a:hover::before {
  opacity: 1;
}

.nav-links a.active {
  color: var(--purple-400);
}

.nav-links a.active::before {
  opacity: 1;
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
  color: #fff !important;
  border-radius: var(--radius-soft) !important;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
  transition: all 0.3s var(--transition-smooth) !important;
}

.nav-cta::before {
  display: none !important;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--purple-500), var(--purple-600)) !important;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3) !important;
  transform: translateY(-1px);
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--transition-smooth);
}

/* =====================
   SECTIONS
   ===================== */
.section-wrapper {
  position: relative;
  z-index: 1;
}

section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--purple-400);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label::before {
  content: '>';
  color: var(--cyan-400);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--purple-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

/* =====================
   HERO
   ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  color: var(--purple-300);
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s var(--transition-smooth);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--green-400);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s var(--transition-smooth);
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--purple-400), var(--cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s 0.15s both var(--transition-smooth);
}

/* SQL Terminal Block */
.sql-terminal {
  width: 100%;
  max-width: 750px;
  text-align: left;
  border-radius: var(--radius-soft);
  overflow: hidden;
  background: rgba(10, 10, 26, 0.85);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.08);
  animation: fadeInUp 0.8s 0.3s both var(--transition-smooth);
  margin-bottom: 2.5rem;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(15, 15, 35, 0.9);
  border-bottom: 1px solid var(--glass-border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ef4444; }
.terminal-dots span:nth-child(2) { background: #f59e0b; }
.terminal-dots span:nth-child(3) { background: #22c55e; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  font-size: 0.8rem;
  line-height: 1.8;
  min-height: 180px;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-body .comment {
  color: var(--text-muted);
}

.terminal-body .keyword {
  color: var(--purple-400);
}

.terminal-body .function {
  color: var(--cyan-400);
}

.terminal-body .string {
  color: var(--green-400);
}

.terminal-body .number {
  color: var(--amber-400);
}

.terminal-body .operator {
  color: var(--red-400);
}

.typing-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--purple-400);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

/* Hero CTA */
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: fadeInUp 0.8s 0.45s both var(--transition-smooth);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-soft);
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
  box-shadow: 0 8px 40px rgba(139, 92, 246, 0.35);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-soft);
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--glass-bg);
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.hero-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-note svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
}

/* =====================
   PAIN POINTS / CURSED
   ===================== */
.cursed-section {
  padding-top: 4rem;
}

.cursed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.cursed-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.cursed-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-400), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.cursed-card:hover::before {
  opacity: 1;
}

.cursed-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-soft);
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.15);
  margin-bottom: 1.25rem;
  color: var(--red-400);
}

.cursed-icon svg {
  width: 24px;
  height: 24px;
}

.cursed-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.cursed-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =====================
   GRIMOIRE / FEATURES
   ===================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-500), var(--cyan-400));
  transition: all 0.5s var(--transition-smooth);
  transform: translateX(-50%);
}

.feature-card:hover::after {
  width: 80%;
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-soft);
  margin-bottom: 1.25rem;
  position: relative;
}

.feature-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-soft);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover .feature-icon::before {
  opacity: 1;
}

.feature-icon.purple {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--purple-400);
}

.feature-icon.purple::before {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.feature-icon.cyan {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--cyan-400);
}

.feature-icon.cyan::before {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.feature-icon.green {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--green-400);
}

.feature-icon.green::before {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.feature-icon.amber {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: var(--amber-400);
}

.feature-icon.amber::before {
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-card .feature-tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  font-size: 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feature-tag.purple {
  background: rgba(139, 92, 246, 0.12);
  color: var(--purple-300);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.feature-tag.cyan {
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan-300);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.feature-tag.green {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green-400);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.feature-tag.amber {
  background: rgba(251, 191, 36, 0.12);
  color: var(--amber-400);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =====================
   RITUAL / STEPS
   ===================== */
.ritual-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.ritual-steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--purple-600), var(--cyan-500), transparent);
}

.ritual-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 2rem;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-soft);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.step-number.s1 {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--purple-400);
}

.step-number.s2 {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--cyan-400);
}

.step-number.s3 {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--green-400);
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-content .step-cmd {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.4rem 1rem;
  background: rgba(10, 10, 26, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-soft);
  font-size: 0.8rem;
  color: var(--cyan-400);
}

/* =====================
   TESTIMONIALS
   ===================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  padding: 2rem;
}

.testimonial-card .quote {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
  padding-left: 1.25rem;
  border-left: 2px solid var(--purple-600);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.testimonial-author .info {
  font-size: 0.8rem;
}

.testimonial-author .info .name {
  color: var(--text-primary);
  font-weight: 600;
}

.testimonial-author .info .role {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* =====================
   CTA SECTION
   ===================== */
.cta-section {
  text-align: center;
  padding: 8rem 2rem;
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-soft);
  background: linear-gradient(135deg, var(--purple-600), var(--cyan-500), var(--purple-600));
  z-index: -1;
  opacity: 0.3;
  animation: gradientShift 5s ease infinite;
  background-size: 200% 200%;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.cta-box .cta-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.cta-box .cta-bonus {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--purple-300);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.cta-bonus svg {
  width: 14px;
  height: 14px;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--purple-400);
}

.footer-links a svg {
  width: 16px;
  height: 16px;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-copy .mana {
  color: var(--purple-400);
}

/* =====================
   PAGE HEADERS (sub-pages)
   ===================== */
.page-header {
  padding-top: 120px;
  padding-bottom: 3rem;
  text-align: center;
}

.page-content {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* =====================
   PRICING CARDS
   ===================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.pricing-card {
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border-color: var(--purple-500);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.15);
}

.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 16px;
  right: -30px;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.25rem 2rem;
  transform: rotate(45deg);
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pricing-price .currency {
  font-size: 1.25rem;
  color: var(--purple-400);
  vertical-align: top;
}

.pricing-price .period {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(139, 92, 246, 0.06);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features li svg {
  width: 16px;
  height: 16px;
  color: var(--green-400);
  flex-shrink: 0;
}

.pricing-btn {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: var(--radius-soft);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}

.pricing-btn.primary {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
  color: #fff;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.pricing-btn.primary:hover {
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.pricing-btn.secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.pricing-btn.secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

/* =====================
   DOCS PAGE
   ===================== */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.docs-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
  padding: 1.5rem;
}

.docs-sidebar h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--purple-400);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.docs-nav {
  list-style: none;
}

.docs-nav li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-radius: var(--radius-soft);
  transition: all 0.3s;
  margin-bottom: 0.25rem;
}

.docs-nav li a:hover,
.docs-nav li a.active {
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.08);
}

.docs-nav li a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.docs-main {
  padding: 1rem 0;
}

.docs-block {
  padding: 2rem;
  margin-bottom: 2rem;
}

.docs-block h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.docs-block h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--purple-300);
}

.docs-block p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.docs-block code {
  background: rgba(139, 92, 246, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--cyan-400);
}

.docs-block pre {
  background: rgba(10, 10, 26, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-soft);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1rem 0;
  font-size: 0.8rem;
  line-height: 1.8;
}

.docs-block ul {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.docs-block ul li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

/* =====================
   LOGIN PAGE
   ===================== */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 3rem 2.5rem;
  text-align: center;
}

.login-card .login-logo {
  margin-bottom: 2rem;
}

.login-card .login-logo svg {
  width: 48px;
  height: 48px;
  color: var(--purple-500);
  margin-bottom: 0.75rem;
}

.login-card .login-logo h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.login-card .login-logo p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  margin-top: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(10, 10, 26, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-soft);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: all 0.3s var(--transition-smooth);
  outline: none;
}

.form-group input:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.login-form .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.oauth-buttons {
  display: flex;
  gap: 0.75rem;
}

.oauth-btn {
  flex: 1;
  padding: 0.65rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-soft);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.oauth-btn:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}

.oauth-btn svg {
  width: 18px;
  height: 18px;
}

.login-footer-text {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.login-footer-text a {
  color: var(--purple-400);
}

/* =====================
   ABOUT PAGE
   ===================== */
.about-hero {
  text-align: center;
  padding-top: 120px;
  padding-bottom: 4rem;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-block {
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.about-block h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-block h2 svg {
  width: 24px;
  height: 24px;
  color: var(--purple-400);
}

.about-block p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple-400), var(--cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(6, 6, 14, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .cursed-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .ritual-steps::before {
    display: none;
  }

  .cta-box {
    padding: 3rem 1.5rem;
  }

  .sql-terminal {
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
  }
}

@media (max-width: 480px) {
  section {
    padding: 4rem 1rem;
  }

  .navbar {
    padding: 0 1rem;
  }

  .oauth-buttons {
    flex-direction: column;
  }
}
