/* ============================================================
   AI Kaland — Főstíluslap
   Design: Vidám, vibráns, 14–16 éveseknek
   ============================================================ */

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

/* ── CSS VÁLTOZÓK ─────────────────────────────────────────── */
:root {
  --bg-primary: #f8f5ff;
  --bg-secondary: #fff;
  --bg-card: #ffffff;
  --bg-card-hover: #f3effe;
  --bg-input: #f3effe;

  --accent-purple: #7c3aed;
  --accent-purple-light: #a78bfa;
  --accent-pink: #ec4899;
  --accent-yellow: #f59e0b;
  --accent-green: #10b981;
  --accent-blue: #3b82f6;
  --accent-orange: #f97316;
  --accent-cyan: #06b6d4;

  --gradient-main: linear-gradient(135deg, #7c3aed, #ec4899);
  --gradient-warm: linear-gradient(135deg, #f59e0b, #f97316);
  --gradient-cool: linear-gradient(135deg, #3b82f6, #06b6d4);
  --gradient-hero: linear-gradient(160deg, #f8f5ff 0%, #fdf2ff 50%, #fff5f8 100%);

  --text-primary: #1e1b2e;
  --text-secondary: #4b4570;
  --text-muted: #9ca3af;

  --border-subtle: rgba(124,58,237,0.1);
  --border-accent: rgba(124,58,237,0.35);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-blob: 60% 40% 50% 50% / 50% 50% 40% 60%;

  --shadow-card: 0 4px 20px rgba(124,58,237,0.12);
  --shadow-hover: 0 10px 35px rgba(124,58,237,0.2);
  --shadow-glow: 0 0 40px rgba(236,72,153,0.15);

  --font-main: 'Nunito', sans-serif;
  --font-display: 'Fredoka One', cursive;

  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;
}

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

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

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

a { color: var(--accent-purple); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-pink); }

img { max-width: 100%; display: block; }

/* ── HEADER / NAV ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,245,255,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--border-subtle);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent-purple);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-main);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(124,58,237,0.3);
  transition: transform var(--transition);
}

.nav-logo:hover .logo-icon { transform: rotate(-5deg) scale(1.08); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  transition: all var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-purple);
  background: rgba(124,58,237,0.08);
}

.nav-cta {
  background: var(--gradient-main) !important;
  color: white !important;
  padding: 0.5rem 1.2rem !important;
  box-shadow: 0 4px 14px rgba(124,58,237,0.3) !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124,58,237,0.4) !important;
  color: white !important;
}

/* ── HERO SECTION ─────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 5rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
  background: var(--gradient-hero);
}

/* floating blobs */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.25;
}

.hero::before {
  width: 500px; height: 500px;
  top: -100px; left: -100px;
  background: radial-gradient(circle, #a78bfa, transparent);
}

.hero::after {
  width: 400px; height: 400px;
  bottom: -100px; right: -80px;
  background: radial-gradient(circle, #f9a8d4, transparent);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 2px solid rgba(124,58,237,0.15);
  border-radius: 100px;
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-purple);
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 14px rgba(124,58,237,0.1);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.hero h1 span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── GOMBOK ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font-main);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 18px rgba(124,58,237,0.35);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px rgba(124,58,237,0.45);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--accent-purple);
  border: 2px solid rgba(124,58,237,0.2);
  box-shadow: 0 2px 10px rgba(124,58,237,0.08);
}

.btn-secondary:hover {
  background: rgba(124,58,237,0.06);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(124,58,237,0.06);
  color: var(--text-secondary);
  border: 2px solid rgba(124,58,237,0.1);
}

.btn-ghost:hover {
  color: var(--accent-purple);
  background: rgba(124,58,237,0.12);
  border-color: rgba(124,58,237,0.25);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ── KÁRTYÁK ──────────────────────────────────────────────── */
.card {
  background: white;
  border: 2px solid rgba(124,58,237,0.1);
  /* Organic, slightly irregular borders for a "hand-drawn" feel */
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  padding: 1.5rem;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(124,58,237,0.06);
}

.card:hover {
  transform: translateY(-5px) rotate(1deg);
  border-color: rgba(124,58,237,0.3);
  box-shadow: var(--shadow-hover);
}

.hero-main-img {
  border-radius: 30px 70px 40px 60px / 60px 40px 70px 30px !important;
  transition: transform 0.5s ease;
}

.hero-main-img:hover {
  transform: rotate(0deg) scale(1.02) !important;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.card-icon.blue   { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.card-icon.cyan   { background: linear-gradient(135deg, #cffafe, #a5f3fc); }
.card-icon.purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.card-icon.green  { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.card-icon.orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); }
.card-icon.pink   { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 600;
}

/* ── RÁCS LAYOUTOK ────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 0.75rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.section p.lead {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  font-weight: 600;
}

.grid { display: grid; gap: 1.25rem; }

.grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* ── LECKE KÁRTYÁK ────────────────────────────────────────── */
.lesson-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: white;
  border: 2px solid rgba(124,58,237,0.08);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-slow);
  box-shadow: 0 2px 12px rgba(124,58,237,0.06);
}

.lesson-card:hover {
  transform: translateY(-4px) rotate(-0.2deg);
  border-color: rgba(124,58,237,0.3);
  box-shadow: var(--shadow-hover);
  color: var(--text-primary);
}

.lesson-number {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}

.lesson-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}

.lesson-content p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 600;
}

.lesson-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.6rem;
  border-radius: 100px;
  margin-top: 0.5rem;
}

.lesson-tag.interactive {
  background: rgba(124,58,237,0.1);
  color: var(--accent-purple);
}

.lesson-tag.static {
  background: rgba(156,163,175,0.15);
  color: var(--text-muted);
}

/* ── CHAT KOMPONENS ───────────────────────────────────────── */
.chat-widget {
  background: white;
  border: 2px solid rgba(124,58,237,0.12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 500px;
  box-shadow: var(--shadow-card);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(90deg, rgba(124,58,237,0.06), rgba(236,72,153,0.04));
  border-bottom: 2px solid rgba(124,58,237,0.08);
}

.chat-status {
  width: 10px;
  height: 10px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

.chat-header-text h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.chat-header-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
  background: #fdfbff;
}

.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.2); border-radius: 10px; }

.message {
  display: flex;
  gap: 0.75rem;
  max-width: 85%;
  animation: slideIn 0.25s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.message.user { flex-direction: row-reverse; align-self: flex-end; }

.message-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  align-self: flex-end;
}

.message.assistant .message-avatar { background: var(--gradient-main); }
.message.user .message-avatar { background: linear-gradient(135deg, #f59e0b, #f97316); }

.message-bubble {
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.6;
  word-break: break-word;
  font-weight: 600;
}

.message.assistant .message-bubble {
  background: white;
  border: 2px solid rgba(124,58,237,0.1);
  border-bottom-left-radius: 6px;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(124,58,237,0.06);
}

.message.user .message-bubble {
  background: var(--gradient-main);
  color: white;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 14px rgba(124,58,237,0.3);
}

.message.system .message-bubble {
  background: rgba(245,158,11,0.08);
  border: 2px solid rgba(245,158,11,0.2);
  color: var(--accent-yellow);
  font-size: 0.82rem;
  max-width: 100%;
  text-align: center;
  border-radius: var(--radius-md);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 5px;
  padding: 0.9rem 1.1rem;
  background: white;
  border: 2px solid rgba(124,58,237,0.1);
  border-radius: var(--radius-md);
  border-bottom-left-radius: 6px;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(124,58,237,0.06);
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: var(--accent-purple-light);
  border-radius: 50%;
  animation: typing 1.2s ease infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-8px); opacity: 1; }
}

.chat-footer {
  padding: 1rem 1.25rem;
  border-top: 2px solid rgba(124,58,237,0.08);
  background: white;
}

.chat-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  background: var(--bg-input);
  border: 2px solid rgba(124,58,237,0.12);
  border-radius: 100px;
  padding: 0.7rem 1.2rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-main);
  font-weight: 600;
  outline: none;
  transition: border-color var(--transition);
  resize: none;
  max-height: 120px;
  min-height: 44px;
  line-height: 1.5;
}

.chat-input:focus { border-color: var(--accent-purple); }
.chat-input::placeholder { color: var(--text-muted); font-weight: 600; }

.chat-send {
  width: 44px;
  height: 44px;
  background: var(--gradient-main);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(124,58,237,0.35);
}

.chat-send:hover { transform: scale(1.08) rotate(5deg); box-shadow: 0 6px 20px rgba(124,58,237,0.45); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.chat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.6rem;
}

.chat-hint { font-size: 0.7rem; color: var(--text-muted); font-weight: 700; }
.chat-remaining { font-size: 0.7rem; color: var(--accent-orange); font-weight: 800; }

/* ── KÉPGENERÁLÓ ──────────────────────────────────────────── */
.studio {
  background: white;
  border: 2px solid rgba(124,58,237,0.1);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.studio h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.studio-tips {
  background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(236,72,153,0.04));
  border: 2px solid rgba(124,58,237,0.1);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.studio-tips strong { color: var(--accent-purple); }

.studio-prompt {
  width: 100%;
  background: var(--bg-input);
  border: 2px solid rgba(124,58,237,0.12);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-main);
  font-weight: 600;
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: border-color var(--transition);
}

.studio-prompt:focus { border-color: var(--accent-purple); }
.studio-prompt::placeholder { color: var(--text-muted); font-weight: 600; }

.studio-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.75rem 0;
}

.studio-counter { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; }

.studio-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 700;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(124,58,237,0.15);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.studio-result {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-top: 1.25rem;
  border: 2px solid rgba(124,58,237,0.12);
  max-height: 400px;
  object-fit: contain;
}

.studio-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }

.studio-error {
  background: rgba(239,68,68,0.07);
  border: 2px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: #ef4444;
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: 1rem;
}

/* ── LECKE OLDAL LAYOUT ───────────────────────────────────── */
.lesson-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.lesson-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(124,58,237,0.08);
}

.lesson-breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.lesson-breadcrumb a { color: var(--accent-purple); }

.lesson-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.lesson-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
}

.lesson-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lesson-body {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 600;
}

.lesson-body h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-primary);
  margin: 2rem 0 0.875rem;
  letter-spacing: 0.01em;
}

.lesson-body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 1.5rem 0 0.6rem;
}

.lesson-body p { margin-bottom: 1rem; }

.lesson-body ul, .lesson-body ol {
  margin: 0.75rem 0 1rem 1.5rem;
}

.lesson-body li { margin-bottom: 0.4rem; }
.lesson-body strong { color: var(--accent-purple); }

/* Callout boxok */
.callout {
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-weight: 600;
}

.callout-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }

.callout.info {
  background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(59,130,246,0.05));
  border: 2px solid rgba(124,58,237,0.15);
  color: var(--accent-purple);
}

.callout.tip {
  background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(6,182,212,0.05));
  border: 2px solid rgba(16,185,129,0.15);
  color: #059669;
}

.callout.warning {
  background: linear-gradient(135deg, rgba(245,158,11,0.07), rgba(249,115,22,0.05));
  border: 2px solid rgba(245,158,11,0.2);
  color: #d97706;
}

/* ── INTERAKTÍV DEMÓ BOXOK ────────────────────────────────── */
.demo-box {
  background: white;
  border: 2px solid rgba(124,58,237,0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 16px rgba(124,58,237,0.08);
}

.demo-box h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

/* ── NAVIGÁCIÓS NYILAK LECKE OLDALON ─────────────────────── */
.lesson-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(124,58,237,0.08);
}

.lesson-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  background: white;
  border: 2px solid rgba(124,58,237,0.1);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-secondary);
  transition: all var(--transition);
  max-width: 48%;
  box-shadow: 0 2px 8px rgba(124,58,237,0.06);
}

.lesson-nav a:hover {
  background: rgba(124,58,237,0.06);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  transform: translateY(-2px);
}

.lesson-nav a.next { margin-left: auto; }

/* ── PROGRESS BAR ─────────────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: rgba(124,58,237,0.1);
  border-radius: 100px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-main);
  border-radius: 100px;
  transition: width 0.5s ease;
}

/* ── TAG / BADGE ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
}

.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-green  { background: #d1fae5; color: #059669; }
.badge-purple { background: #ede9fe; color: var(--accent-purple); }
.badge-orange { background: #ffedd5; color: #c2410c; }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: white;
  border-top: 2px solid rgba(124,58,237,0.08);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 4rem;
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent-purple); }

/* ── SEGÉDOSZTÁLYOK ───────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ── DIVIDER ──────────────────────────────────────────────── */
.divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.15), transparent);
  margin: 3rem 0;
}

/* ── RESZPONZÍV ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .section { padding: 3rem 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .chat-widget { height: 440px; }
  .lesson-nav a { font-size: 0.8rem; padding: 0.6rem 1rem; }
}

/* ── ANIMÁCIÓK ────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeIn 0.5s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ── FORM ELEMEK ──────────────────────────────────────────── */
input[type="text"], input[type="number"], select, textarea {
  background: var(--bg-input);
  border: 2px solid rgba(124,58,237,0.12);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-weight: 600;
  padding: 0.625rem 0.875rem;
  outline: none;
  transition: border-color var(--transition);
  font-size: 0.9rem;
}

input[type="text"]:focus, input[type="number"]:focus,
select:focus, textarea:focus {
  border-color: var(--accent-purple);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(124,58,237,0.12);
  border-radius: 100px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-main);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(124,58,237,0.3);
}

/* ── CHART CONTAINER ──────────────────────────────────────── */
.chart-container {
  background: var(--bg-input);
  border: 2px solid rgba(124,58,237,0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 1rem 0;
}
