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

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-dark: #0d0d0d;
  --bg-card: #141414;
  --bg-code: #1a1a1a;
  --text-primary: #e8e8e8;
  --text-secondary: #8a8a8a;
  --text-muted: #484848;
  --accent: #e8e8e8;
  --accent-hover: #b0b0b0;
  --accent-html: #e06c75;
  --accent-css: #61afef;
  --accent-js: #e5c07b;
  --accent-react: #61dafb;
  --accent-node: #98c379;
  --accent-tools: #c678dd;
  --border: #252525;
  --border-subtle: #1a1a1a;
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --glow: 0 0 40px rgba(217,217,217,0.06);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--text-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
::selection { background: rgba(217,217,217,0.12); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ═══════════════════════════════════════
   BUTTONS (shared)
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; border: none;
  cursor: pointer; transition: all 0.15s; font-family: var(--font-sans);
}
.btn-accent { background: var(--accent); color: #111; }
.btn-accent:hover { background: var(--accent-hover); color: #111; }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--text-secondary); }
.btn-ghost { background: transparent; color: var(--text-secondary); padding: 6px 14px; }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-card); }
.btn-big { padding: 14px 32px; font-size: 15px; border-radius: var(--radius-sm); }
.btn-sm { padding: 6px 14px; font-size: 12px; }

/* ═══════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ═══════════════════════════════════════
   TOP NAVIGATION (landing page)
   ═══════════════════════════════════════ */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(13,13,13,0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.topnav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 60px;
}
.topnav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; letter-spacing: -0.3px;
}
.topnav-logo img { border-radius: 6px; }
.topnav-links {
  display: flex; gap: 32px;
}
.topnav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: color 0.15s; padding: 8px 0;
}
.topnav-links a:hover { color: var(--text-primary); }
.topnav-actions { display: flex; align-items: center; gap: 8px; }
.topnav-burger {
  display: none; background: none; border: none;
  color: var(--text-primary); cursor: pointer;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}

.mobile-menu {
  display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
  z-index: 199; background: rgba(13,13,13,0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.mobile-menu.show { display: block; }
.mobile-menu-inner {
  display: flex; flex-direction: column; gap: 4px;
  padding: 24px 32px;
}
.mobile-menu-inner a {
  font-size: 16px; font-weight: 500; color: var(--text-secondary);
  padding: 14px 0; border-bottom: 1px solid var(--border-subtle);
  transition: color 0.15s;
}
.mobile-menu-inner a:hover { color: var(--text-primary); }
.mobile-menu-divider { height: 1px; background: var(--border-subtle); margin: 12px 0; }

@media (max-width: 768px) {
  .topnav-links { display: none; }
  .topnav-burger { display: flex; }
  .topnav-actions .btn { display: none; }
  .topnav-actions #userMenu { display: none !important; }
  .topnav-inner { padding: 0 16px; }
}

/* ═══════════════════════════════════════
   HERO (landing page)
   ═══════════════════════════════════════ */
.hero-landing {
  padding: 140px 32px 80px; text-align: center;
  position: relative; overflow: hidden;
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.hero-glow {
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,217,217,0.06) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 100px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  margin-bottom: 32px; position: relative; z-index: 1;
}
.hero-badge svg { opacity: 0.6; }
.hero-landing h1 {
  font-size: clamp(40px, 7vw, 72px); font-weight: 800;
  letter-spacing: -2.5px; line-height: 1.05;
  margin-bottom: 24px; position: relative; z-index: 1;
}
.hero-gradient {
  background: linear-gradient(135deg, #fff 0%, #888 50%, #fff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-gradient { animation: none; }
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px); color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 40px; line-height: 1.75;
  position: relative; z-index: 1;
}
.hero-buttons {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1; margin-bottom: 64px;
}
.btn-hero {
  padding: 16px 32px; font-size: 16px; border-radius: var(--radius-sm);
  gap: 10px;
}

/* ─── Editor Mock ─── */
.hero-editor-mock {
  position: relative; z-index: 1;
  max-width: 900px; width: 100%; margin: 0 auto;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  background: #111;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 80px rgba(217,217,217,0.03);
}
.mock-toolbar {
  display: flex; align-items: center;
  padding: 0 16px; height: 42px;
  background: #0e0e0e; border-bottom: 1px solid var(--border-subtle);
}
.mock-dots {
  display: flex; gap: 6px; margin-right: 20px;
}
.mock-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #333;
}
.mock-dots span:first-child { background: #ff5f57; }
.mock-dots span:nth-child(2) { background: #febc2e; }
.mock-dots span:last-child { background: #28c840; }
.mock-tabs { display: flex; gap: 0; }
.mock-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; font-size: 12px; font-weight: 500;
  font-family: var(--font-sans); color: var(--text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer; transition: all 0.15s;
}
.mock-tab.active { color: var(--accent); border-bottom-color: var(--accent); background: rgba(255,255,255,0.03); }
.mock-tab svg { width: 12px; height: 12px; }
.mock-code {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 260px;
}
.mock-code-inner {
  padding: 20px; font-family: var(--font-mono);
  font-size: 13px; line-height: 1.8; overflow: hidden;
  border-right: 1px solid var(--border-subtle);
}
.code-line { white-space: nowrap; }
.ln {
  display: inline-block; width: 28px; text-align: right;
  color: var(--text-muted); margin-right: 16px; user-select: none;
  font-size: 12px;
}
.hl-tag { color: var(--accent-html); }
.hl-attr { color: var(--accent-css); }
.hl-string { color: var(--accent-node); }
.hl-text { color: var(--text-primary); }
.mock-cursor-line { position: relative; }
.mock-cursor {
  display: inline-block; width: 2px; height: 16px;
  background: var(--accent); vertical-align: middle;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .mock-cursor { animation: none; opacity: 1; }
}
.mock-preview { display: flex; flex-direction: column; }
.mock-preview-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; font-size: 12px; font-weight: 500;
  color: var(--text-muted); background: #0e0e0e;
  border-bottom: 1px solid var(--border-subtle);
}
.mock-preview-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-node);
}
.mock-preview-content {
  padding: 32px; display: flex; align-items: center; justify-content: center;
  background: #161616; flex: 1;
}
.mock-preview-card {
  background: linear-gradient(135deg, #222, #1a1a1a);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 28px 36px; text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.mock-preview-card h2 {
  font-size: 20px; font-weight: 700; margin-bottom: 6px;
}
.mock-preview-card p {
  font-size: 14px; color: var(--text-secondary);
}

@media (max-width: 640px) {
  .mock-code { grid-template-columns: 1fr; }
  .mock-code-inner { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .hero-editor-mock { margin: 0 -8px; border-radius: 12px; }
}

/* ═══════════════════════════════════════
   TRUSTED BAR
   ═══════════════════════════════════════ */
.trusted-bar {
  padding: 32px 32px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
}
.trusted-bar-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
.trusted-label {
  font-size: 13px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600;
  white-space: nowrap;
}
.trusted-icons { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.trusted-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  transition: color 0.15s;
}
.trusted-item:hover { color: var(--text-primary); }
.trusted-item svg { width: 20px; height: 20px; }

/* ═══════════════════════════════════════
   SECTIONS (shared)
   ═══════════════════════════════════════ */
.section-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 32px;
}
.section-header {
  text-align: center; margin-bottom: 56px;
}
.section-tag {
  display: inline-block; padding: 6px 14px;
  border-radius: 100px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle);
  color: var(--text-muted); margin-bottom: 20px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  letter-spacing: -1.2px; margin-bottom: 14px; line-height: 1.15;
}
.section-header p {
  font-size: 17px; color: var(--text-secondary);
  max-width: 520px; margin: 0 auto; line-height: 1.7;
}

/* ═══════════════════════════════════════
   FEATURES (landing)
   ═══════════════════════════════════════ */
.features-landing {
  padding: 100px 0;
  background: var(--bg-dark);
}
.features-grid-landing {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.feature-card-landing {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: 36px 28px;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
}
.feature-card-landing::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,217,217,0.06), transparent);
}
.feature-card-landing:hover {
  border-color: var(--border); transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.feature-icon-landing {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  background: rgba(255,255,255,0.04);
}
.feature-icon-landing svg { width: 24px; height: 24px; }
.feature-card-landing h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 10px;
}
.feature-card-landing p {
  font-size: 14px; color: var(--text-secondary); line-height: 1.7;
}

@media (max-width: 1024px) {
  .features-grid-landing { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .features-grid-landing { grid-template-columns: 1fr; }
  .features-landing { padding: 64px 0; }
}

/* ═══════════════════════════════════════
   HOW IT WORKS (landing)
   ═══════════════════════════════════════ */
.how-section {
  padding: 100px 0;
  background: #0a0a0a;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  position: relative;
}
.step-card {
  text-align: center; padding: 36px 24px;
  position: relative;
}
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 22px; font-weight: 800;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text-primary);
  position: relative; z-index: 1;
}
.step-line {
  display: none;
}
.step-card h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 10px;
}
.step-card p {
  font-size: 14px; color: var(--text-secondary); line-height: 1.7;
  max-width: 280px; margin: 0 auto;
}

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; gap: 8px; }
  .step-card { padding: 24px 16px; }
}

/* ═══════════════════════════════════════
   COURSES (landing)
   ═══════════════════════════════════════ */
.courses-landing {
  padding: 100px 0;
}
.courses-grid-landing {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.course-card-landing {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: 32px 28px;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
}
.course-card-landing::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--card-accent); opacity: 0.6;
  transition: opacity 0.3s;
}
.course-card-landing:hover::before { opacity: 1; }
.course-card-landing:hover {
  border-color: var(--border); transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.course-card-icon {
  width: 48px; height: 48px; margin-bottom: 18px;
}
.course-card-icon svg { width: 36px; height: 36px; }
.course-card-landing h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 8px;
}
.course-card-landing p {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
  flex: 1;
}
.course-card-link {
  display: inline-block; margin-top: 16px;
  font-size: 14px; font-weight: 600;
  color: var(--card-accent); transition: opacity 0.15s;
}
.course-card-landing:hover .course-card-link { opacity: 0.8; }

@media (max-width: 1024px) {
  .courses-grid-landing { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .courses-grid-landing { grid-template-columns: 1fr; }
  .courses-landing { padding: 64px 0; }
}

/* ═══════════════════════════════════════
   FAQ (landing)
   ═══════════════════════════════════════ */
.faq-landing {
  padding: 100px 0;
  background: #0a0a0a;
  border-top: 1px solid var(--border-subtle);
}
.faq-list {
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 10px;
}
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--border); }
.faq-item summary {
  padding: 18px 22px; font-size: 15px; font-weight: 600;
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  transition: color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 20px; font-weight: 300;
  color: var(--text-muted); transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--accent); }
.faq-item p {
  padding: 0 22px 18px; font-size: 14px;
  color: var(--text-secondary); line-height: 1.7;
}

@media (max-width: 640px) {
  .faq-landing { padding: 64px 0; }
}

/* ═══════════════════════════════════════
   CTA (landing)
   ═══════════════════════════════════════ */
.cta-landing {
  padding: 100px 0; text-align: center;
  background: linear-gradient(180deg, rgba(217,217,217,0.02) 0%, transparent 100%);
  border-top: 1px solid var(--border-subtle);
}
.cta-landing h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  letter-spacing: -1.2px; margin-bottom: 14px;
}
.cta-landing p {
  font-size: 17px; color: var(--text-secondary);
  margin-bottom: 36px; max-width: 440px; margin-left: auto; margin-right: auto;
}
.cta-buttons-landing {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* ═══════════════════════════════════════
   FOOTER (landing)
   ═══════════════════════════════════════ */
.footer-landing {
  padding: 60px 32px 28px;
  background: #080808;
  border-top: 1px solid var(--border-subtle);
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand-link {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; margin-bottom: 14px;
}
.footer-brand-link img { border-radius: 6px; }
.footer-brand-col p {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.6; max-width: 280px;
}
.footer-links-col h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 16px; color: var(--text-muted);
}
.footer-links-col a {
  display: block; font-size: 14px; color: var(--text-secondary);
  margin-bottom: 10px; transition: color 0.2s;
}
.footer-links-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; border-top: 1px solid var(--border-subtle);
  font-size: 13px; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-secondary); font-size: 13px; }

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-landing { padding: 40px 16px 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}


/* ═══════════════════════════════════════
   SIDEBAR (used by learn pages)
   ═══════════════════════════════════════ */
.app-layout { display: flex; min-height: 100vh; min-height: 100dvh; }

.sidebar {
  width: 240px; background: #0d0d0d;
  border-right: 1px solid var(--border-subtle);
  display: flex; flex-direction: column;
  padding: 24px 16px; position: fixed; top: 0; left: 0;
  height: 100vh; z-index: 100;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.sidebar-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.sidebar-logo img { width: 32px; height: 32px; border-radius: 6px; }
.sidebar-logo span { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.sidebar-links { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; min-height: 44px;
  color: var(--text-secondary); transition: all 0.15s;
}
.sidebar-link:hover { background: var(--bg-card); color: var(--text-primary); }
.sidebar-link svg { width: 18px; height: 18px; opacity: 0.5; flex-shrink: 0; }
.sidebar-link:hover svg { opacity: 1; }
.sidebar-divider { height: 1px; background: var(--border-subtle); margin: 10px 0; }
.sidebar-cta {
  margin-top: auto; padding: 14px; background: var(--bg-card);
  border-radius: var(--radius-sm); text-align: center;
  border: 1px solid var(--border-subtle);
}
.sidebar-cta p { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.5; }

.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99; backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.main-content { flex: 1; margin-left: 240px; }

.header-bar {
  display: flex; align-items: center;
  padding: 10px 32px; background: rgba(13,13,13,0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky; top: 0; z-index: 50;
}
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.mobile-menu-toggle {
  display: none; background: none; border: none;
  color: var(--text-primary); cursor: pointer; padding: 10px;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}

@media (max-width: 1024px) {
  .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: none; }
  .sidebar-overlay.show { display: block; }
  .mobile-menu-toggle { display: flex; }
  .main-content { margin-left: 0; }
  .header-bar { padding: 6px 12px; }
  .sidebar-cta { display: none; }
}

/* ═══════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .feature-card-landing, .course-card-landing, .btn { transition: none; }
  .feature-card-landing:hover, .course-card-landing:hover { transform: none; }
}

/* ═══════════════════════════════════════
   PWA INSTALL BANNER
   ═══════════════════════════════════════ */
.pwa-banner {
  position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 9999;
  max-width: 400px; animation: slideUp 0.3s ease-out;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.pwa-banner-inner {
  display: flex; align-items: center; gap: 12px;
  background: #1a1a1a; border: 1px solid #333; border-radius: 14px;
  padding: 12px 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.pwa-banner-inner img { border-radius: 8px; flex-shrink: 0; }
.pwa-banner-text { flex: 1; }
.pwa-banner-text strong { display: block; font-size: 14px; color: #e8e8e8; }
.pwa-banner-text span { font-size: 12px; color: #888; }
.pwa-banner-btn {
  background: #e8e8e8; color: #0d0d0d; border: none; border-radius: 8px;
  padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
}
.pwa-banner-btn:hover { background: #fff; }
.pwa-banner-close {
  background: none; border: none; color: #666; font-size: 20px;
  cursor: pointer; padding: 0 4px; line-height: 1; flex-shrink: 0;
}
.pwa-banner-close:hover { color: #e8e8e8; }
@media (max-width: 480px) {
  .pwa-banner { bottom: 12px; left: 12px; right: 12px; max-width: none; }
}
