/* ============================================
   QUIZLENS MARKETING SITE — STYLE SYSTEM
   ============================================ */

/* --- Design Tokens --- */
:root {
  --green: #58cc02;
  --green-dark: #3a8a01;
  --green-light: #7ee83a;
  --green-soft: #d7ffb8;
  --green-bg: #f0fbe0;
  --orange: #ff9600;
  --orange-dark: #e08600;
  --blue: #1cb0f6;
  --purple: #ce82ff;
  --red: #ff4b4b;
  --amber: #ffb020;
  --dark: #1a1a2e;
  --dark-surface: #16213e;
  --card: #f7f7f7;
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --text: #1a1a2e;
  --text-secondary: #6b6b7b;
  --text-muted: #afafaf;
  --border: #e5e5e5;

  --font: 'Nunito', sans-serif;
  --fs-hero: clamp(2.4rem, 5.5vw, 4.2rem);
  --fs-h2: clamp(1.8rem, 3.5vw, 2.8rem);
  --fs-h3: clamp(1.1rem, 2vw, 1.35rem);
  --fs-body: clamp(0.95rem, 1.2vw, 1.1rem);
  --fs-small: 0.85rem;
  --fs-xs: 0.75rem;

  --radius-card: 16px;
  --radius-btn: 12px;
  --radius-pill: 20px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 24px rgba(88,204,2,0.3);

  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur-fast: 200ms;
  --dur-med: 400ms;
  --dur-slow: 600ms;

  --container: 1180px;
  --section-pad: clamp(3rem, 8vw, 5.5rem);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; }

/* --- Skip Link --- */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--green); color: #fff;
  padding: 8px 16px; border-radius: var(--radius-btn);
  z-index: 9999; font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* --- Utilities --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.container--narrow { max-width: 800px; }
.text-white { color: #fff; }
.text-gradient {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dot { margin: 0 0.5rem; opacity: 0.4; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: var(--fs-body);
  border-radius: var(--radius-btn);
  padding: 12px 24px;
  transition: all var(--dur-fast) var(--ease-bounce);
  white-space: nowrap;
  position: relative;
}
.btn-primary {
  background: var(--green); color: #fff;
  border-bottom: 4px solid var(--green-dark);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-bottom-width: 5px;
}
.btn-primary:active {
  transform: translateY(1px);
  border-bottom-width: 2px;
}
.btn-secondary {
  background: transparent; color: var(--green-dark);
  border: 2px solid var(--green);
  padding: 11px 23px;
}
.btn-secondary:hover {
  background: var(--green); color: #fff;
  transform: translateY(-2px);
}
.btn-ghost {
  color: rgba(255,255,255,0.8); padding: 12px 8px;
  font-weight: 600;
}
.btn-ghost:hover { color: #fff; }
.btn-ghost--light { color: rgba(255,255,255,0.6); }
.btn-ghost--light:hover { color: #fff; }
.btn-sm { padding: 8px 16px; font-size: var(--fs-small); border-bottom-width: 3px; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { display: flex; justify-content: center; width: 100%; }
.btn-glow { box-shadow: var(--shadow-sm), var(--shadow-glow); }
.btn-glow:hover { box-shadow: var(--shadow-md), 0 0 32px rgba(88,204,2,0.45); }

/* --- Pills --- */
.pill {
  display: inline-block; font-size: var(--fs-xs);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 12px; border-radius: var(--radius-pill);
}
.pill--green { background: rgba(88,204,2,0.15); color: var(--green); }
.pill--outline {
  border: 1.5px solid var(--border); color: var(--text-secondary);
  font-size: var(--fs-small); text-transform: none; letter-spacing: 0;
  font-weight: 600; padding: 6px 14px;
}

/* --- Pro Badge --- */
.pro-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--purple); color: #fff;
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  padding: 2px 8px; border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}

/* --- Section Labels --- */
.section-label {
  display: block; text-align: center;
  font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--green); margin-bottom: 0.5rem;
}
.section-label--light { color: var(--green-light); }

/* --- Scroll Animations --- */
[data-animate] {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-smooth),
              transform var(--dur-slow) var(--ease-smooth);
}
[data-animate].is-visible { opacity: 1; transform: none; }
[data-animate="slide-up"] { transform: translateY(30px); }
[data-animate="slide-left"] { transform: translateX(-30px); }
[data-animate="slide-right"] { transform: translateX(30px); }
[data-animate="fade-in"] { transform: none; }
[data-animate="scale-up"] { transform: scale(0.92); }
[data-animate="bounce-in"] { transform: scale(0.8); }
[data-animate="bounce-in"].is-visible { transition-timing-function: var(--ease-bounce); }

[data-stagger] > * { transition-delay: calc(var(--i, 0) * 100ms); }

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--dur-med), box-shadow var(--dur-med);
}
.nav__inner {
  display: flex; align-items: center;
  height: 64px; gap: 2rem;
}
.nav__logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.2rem; color: #fff;
}
.nav__logo svg { color: var(--green); }
.nav__links {
  display: flex; gap: 1.5rem; margin-left: auto;
}
.nav__links a {
  font-weight: 600; font-size: var(--fs-small);
  color: rgba(255,255,255,0.75);
  transition: color var(--dur-fast);
}
.nav__links a:hover { color: #fff; }
.nav__cta { margin-left: 1rem; }
.nav__hamburger { display: none; }

/* Scrolled state */
.nav.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
  backdrop-filter: blur(12px);
}
.nav.scrolled .nav__logo { color: var(--text); }
.nav.scrolled .nav__links a { color: var(--text-secondary); }
.nav.scrolled .nav__links a:hover { color: var(--text); }

/* Mobile nav */
@media (max-width: 768px) {
  .nav__links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
  }
  .nav__links a {
    display: block; padding: 12px 24px;
    color: var(--text) !important;
    border-bottom: 1px solid var(--border);
  }
  .nav__links a:last-child { border: none; }
  .nav.nav-open .nav__links { display: flex; }
  .nav__cta { display: none; }
  .nav__hamburger {
    display: flex; flex-direction: column; gap: 5px;
    margin-left: auto; padding: 8px;
    width: 36px; height: 36px; justify-content: center;
  }
  .nav__hamburger span {
    display: block; width: 20px; height: 2px;
    background: #fff; border-radius: 2px;
    transition: all var(--dur-fast);
  }
  .nav.scrolled .nav__hamburger span { background: var(--text); }
  .nav.nav-open .nav__hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav.nav-open .nav__hamburger span:nth-child(2) { opacity: 0; }
  .nav.nav-open .nav__hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

/* ============================================
   SECTION 1: HERO
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-surface) 100%);
  padding: calc(64px + var(--section-pad)) 0 0;
  overflow: hidden;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
.hero__bg-shapes {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(88,204,2,0.12) 0%, transparent 70%);
  top: 10%; left: 30%;
  pointer-events: none;
}
.shape {
  position: absolute; border-radius: 50%;
  opacity: 0.07;
  animation: float 18s ease-in-out infinite;
}
.shape--1 { width: 300px; height: 300px; background: var(--green); top: -5%; right: -5%; animation-delay: 0s; }
.shape--2 { width: 200px; height: 200px; background: var(--blue); top: 60%; left: -3%; animation-delay: -4s; border-radius: 30%; }
.shape--3 { width: 150px; height: 150px; background: var(--purple); top: 20%; right: 20%; animation-delay: -8s; }
.shape--4 { width: 100px; height: 100px; background: var(--orange); bottom: 20%; left: 15%; animation-delay: -12s; border-radius: 30%; }
.shape--5 { width: 180px; height: 180px; background: var(--green); bottom: 10%; right: 10%; animation-delay: -6s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(15px, -20px) rotate(5deg); }
  50% { transform: translate(-10px, 15px) rotate(-3deg); }
  75% { transform: translate(20px, 10px) rotate(4deg); }
}

.hero__inner {
  flex: 1; display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center; gap: 3rem;
  position: relative; z-index: 1;
  padding-bottom: 6rem;
}
.hero__content { color: #fff; }
.hero__content .pill { margin-bottom: 1.2rem; }
.hero__content h1 {
  font-size: var(--fs-hero);
  margin-bottom: 1.2rem;
  line-height: 1.1;
}
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero__ctas { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero__trust {
  display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap;
  font-size: var(--fs-small); color: rgba(255,255,255,0.5);
}
.hero__trust strong { color: rgba(255,255,255,0.8); }
.hero__trust .stars { display: inline-flex; align-items: center; gap: 4px; }

/* Hero wave divider */
.hero__wave {
  margin-top: auto;
  line-height: 0;
}
.hero__wave svg { width: 100%; height: auto; display: block; }

/* Hero visual - Mock browser */
.hero__visual { position: relative; }
.mock-browser {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  font-size: 13px;
  position: relative;
}
.mock-browser__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}
.mock-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.mock-dot--red { background: #ff5f57; }
.mock-dot--yellow { background: #ffbd2e; }
.mock-dot--green { background: #28ca41; }
.mock-browser__url {
  margin-left: 10px; font-size: 11px; color: #999;
  background: #fff; padding: 3px 10px; border-radius: 6px;
  flex: 1; max-width: 260px;
}
.mock-browser__body {
  display: flex; position: relative;
  min-height: 220px;
}
.mock-page {
  flex: 1; padding: 16px;
}
.mock-page__title {
  font-weight: 800; font-size: 15px; margin-bottom: 8px; color: var(--text);
}
.mock-page__text {
  font-size: 12px; line-height: 1.7; color: #555;
}
.mock-highlight {
  background: rgba(88,204,2,0.2);
  border-bottom: 2px solid var(--green);
  transition: background var(--dur-med);
  animation: highlightPulse 3s ease-in-out infinite;
}
@keyframes highlightPulse {
  0%, 100% { background: rgba(88,204,2,0.15); }
  50% { background: rgba(88,204,2,0.3); }
}
.mock-quizme {
  position: absolute; bottom: 55%; left: 50%;
  transform: translateX(-50%);
  background: var(--green); color: #fff;
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; gap: 5px;
  box-shadow: 0 4px 12px rgba(88,204,2,0.3);
  animation: heroLoop 6s ease-in-out infinite;
  opacity: 0;
}
.mock-sidepanel {
  width: 180px; background: var(--bg-alt);
  border-left: 1px solid var(--border);
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
  animation: heroPanelLoop 6s ease-in-out infinite;
  opacity: 0; transform: translateX(20px);
}
.mock-sidepanel__header {
  display: flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 12px; color: var(--text);
}
.mock-sidepanel__question {
  font-size: 11px; font-weight: 700; color: var(--text); line-height: 1.4;
}
.mock-sidepanel__options { display: flex; flex-direction: column; gap: 4px; }
.mock-option {
  padding: 5px 8px; border-radius: 8px; font-size: 10px;
  border: 1.5px solid var(--border); color: var(--text);
  transition: all var(--dur-fast);
  font-weight: 600;
}
.mock-option[data-correct] {
  animation: heroAnswer 6s ease-in-out infinite;
}
.mock-sidepanel__xp {
  color: var(--orange); font-weight: 800; font-size: 14px;
  text-align: center;
  animation: heroXP 6s ease-in-out infinite;
  opacity: 0;
}

@keyframes heroLoop {
  0%, 15% { opacity: 0; transform: translateX(-50%) scale(0.8); }
  20%, 45% { opacity: 1; transform: translateX(-50%) scale(1); }
  50%, 100% { opacity: 0; transform: translateX(-50%) scale(0.8); }
}
@keyframes heroPanelLoop {
  0%, 25% { opacity: 0; transform: translateX(20px); }
  32%, 85% { opacity: 1; transform: translateX(0); }
  92%, 100% { opacity: 0; transform: translateX(20px); }
}
@keyframes heroAnswer {
  0%, 45% { background: transparent; border-color: var(--border); }
  52%, 85% { background: rgba(88,204,2,0.15); border-color: var(--green); color: var(--green-dark); }
  92%, 100% { background: transparent; border-color: var(--border); }
}
@keyframes heroXP {
  0%, 50% { opacity: 0; transform: translateY(10px); }
  58%, 78% { opacity: 1; transform: translateY(0); }
  85%, 100% { opacity: 0; transform: translateY(-10px); }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding-bottom: 3rem; }
  .hero__sub { margin: 0 auto 2rem; }
  .hero__ctas { justify-content: center; }
  .hero__trust { justify-content: center; }
  .hero__visual { max-width: 480px; margin: 0 auto; }
  .mock-sidepanel { width: 160px; }
}
@media (max-width: 500px) {
  .mock-sidepanel { display: none; }
  .hero { min-height: auto; }
}

/* ============================================
   SECTION 2: HOW IT WORKS
   ============================================ */
.how-it-works {
  background: var(--bg-alt);
  padding: var(--section-pad) 0;
  text-align: center;
}
.how-it-works h2 { margin-bottom: 3rem; }
.steps {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 0;
  max-width: 900px; margin: 0 auto;
}
.step {
  flex: 1; padding: 0 1.2rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.8rem;
}
.step__number {
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem; color: var(--green);
  background: #fff;
  position: relative; z-index: 1;
}
.step__icon { margin-bottom: 0.3rem; }
.step h3 { font-size: var(--fs-h3); }
.step p { font-size: var(--fs-small); color: var(--text-secondary); line-height: 1.6; }
.step__connector {
  flex: 0 0 60px; padding-top: 24px;
  display: flex; align-items: center;
}
.step__connector svg { overflow: visible; }

@media (max-width: 700px) {
  .steps { flex-direction: column; align-items: center; gap: 1.5rem; }
  .step__connector { transform: rotate(90deg); flex: 0 0 30px; padding: 0; }
}

/* ============================================
   SECTION 3: INTERACTIVE DEMO
   ============================================ */
.demo {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--green-bg) 100%);
  padding: var(--section-pad) 0;
  text-align: center;
  position: relative;
}
.demo h2 { margin-bottom: 0.5rem; }
.demo__instruction {
  color: var(--text-secondary); margin-bottom: 2rem;
  font-size: var(--fs-small);
}
.demo__card {
  display: flex;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 860px; margin: 0 auto 2rem;
  text-align: left;
  position: relative;
}
.demo__webpage {
  flex: 1; position: relative;
}
.demo__webpage-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: #f5f5f5;
  border-bottom: 1px solid var(--border);
}
.demo__webpage-url {
  margin-left: 10px; font-size: 11px; color: #999;
  background: #fff; padding: 3px 10px; border-radius: 6px;
}
.demo__webpage-content {
  padding: 1.5rem;
}
.demo__webpage-content h4 {
  font-size: 1.1rem; margin-bottom: 0.6rem; color: var(--text);
}
.demo__webpage-content p {
  font-size: 0.9rem; line-height: 1.8; color: #555;
}
.demo__highlightable {
  cursor: pointer;
  border-radius: 3px;
  transition: background var(--dur-med);
  position: relative;
}
.demo__highlightable::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--green);
  animation: highlightPulse2 2s ease-in-out infinite;
  border-radius: 2px;
}
@keyframes highlightPulse2 {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}
.demo__highlightable.highlighted {
  background: rgba(88,204,2,0.2);
}
.demo__highlightable.highlighted::after {
  animation: none; opacity: 1;
}
.demo__quizme-btn {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  background: var(--green); color: #fff;
  padding: 8px 16px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700;
  display: none; align-items: center; gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(88,204,2,0.3);
  border-bottom: 3px solid var(--green-dark);
  transition: transform var(--dur-fast) var(--ease-bounce);
}
.demo__quizme-btn.visible {
  display: flex;
  animation: bounceIn 0.4s var(--ease-bounce);
}
.demo__quizme-btn:hover { transform: translateY(-2px); }
@keyframes bounceIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Demo Panel */
.demo__panel {
  width: 0; overflow: hidden;
  background: var(--bg-alt);
  border-left: 1px solid var(--border);
  transition: width var(--dur-med) var(--ease-smooth);
  flex-shrink: 0;
}
.demo__panel.open { width: 280px; }
.demo__panel-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  font-weight: 800; font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.demo__panel-loading {
  padding: 16px;
  display: none;
}
.demo__panel-loading.active { display: block; }
.shimmer-line {
  height: 14px; border-radius: 8px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  margin-bottom: 10px;
}
.shimmer-line--short { width: 60%; }
.shimmer-line--med { width: 80%; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.demo__panel-quiz {
  padding: 16px;
  display: none;
  position: relative;
}
.demo__panel-quiz.active { display: block; }
.demo__panel-q {
  font-weight: 700; font-size: 13px; margin-bottom: 12px;
  line-height: 1.5; color: var(--text);
}
.demo__option {
  display: block; width: 100%;
  padding: 10px 12px; margin-bottom: 8px;
  border: 2px solid var(--border); border-radius: 10px;
  font-size: 12px; font-weight: 600;
  text-align: left; color: var(--text);
  transition: all var(--dur-fast);
  cursor: pointer; background: #fff;
}
.demo__option:hover:not(.answered) {
  border-color: var(--green); background: rgba(88,204,2,0.05);
}
.demo__option.correct {
  border-color: var(--green); background: rgba(88,204,2,0.12);
  color: var(--green-dark);
}
.demo__option.wrong {
  border-color: var(--red); background: rgba(255,75,75,0.08);
  color: var(--red);
}
.demo__option.answered { pointer-events: none; }
.demo__feedback {
  display: none; align-items: flex-start; gap: 8px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(88,204,2,0.08);
  font-size: 11px; color: var(--green-dark);
  line-height: 1.5; margin-top: 4px;
}
.demo__feedback.visible { display: flex; }
.demo__feedback-icon {
  font-weight: 800; font-size: 14px; color: var(--green);
  flex-shrink: 0;
}
.demo__xp-float {
  position: absolute; top: 10px; right: 16px;
  color: var(--orange); font-weight: 800; font-size: 18px;
  opacity: 0; pointer-events: none;
}
.demo__xp-float.animate {
  animation: xpFloat 1.5s var(--ease-smooth) forwards;
}
@keyframes xpFloat {
  0% { opacity: 0; transform: translateY(10px); }
  20% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(-20px); }
  100% { opacity: 0; transform: translateY(-30px); }
}
.demo__panel-reset {
  padding: 0 16px 16px;
  display: none;
}
.demo__panel-reset.visible { display: block; }

.demo__pills {
  display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap;
}

@media (max-width: 700px) {
  .demo__card { flex-direction: column; }
  .demo__panel { width: auto !important; border-left: none; border-top: 1px solid var(--border); }
  .demo__panel.open { width: auto; }
}

/* ============================================
   SECTION 4: FEATURES
   ============================================ */
.features {
  background: var(--dark);
  padding: var(--section-pad) 0;
  text-align: center;
  position: relative;
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
  padding-top: calc(var(--section-pad) + 2rem);
  padding-bottom: calc(var(--section-pad) + 2rem);
}
.features h2 { margin-bottom: 2rem; }

/* Tabs */
.tabs {
  display: inline-flex; gap: 0;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-pill);
  padding: 4px; margin-bottom: 2.5rem;
  position: relative;
}
.tab {
  padding: 10px 24px;
  color: rgba(255,255,255,0.55);
  font-weight: 700; font-size: var(--fs-small);
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast);
  position: relative; z-index: 1;
}
.tab:hover { color: rgba(255,255,255,0.8); }
.tab.active { color: #fff; }
.tab__indicator {
  position: absolute;
  height: calc(100% - 8px); top: 4px;
  background: rgba(88,204,2,0.25);
  border-radius: var(--radius-pill);
  transition: all var(--dur-med) var(--ease-smooth);
  z-index: 0;
}

.tab-panel { display: none; }
.tab-panel.active {
  display: block;
  animation: fadeInUp 0.4s var(--ease-smooth);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.features-grid {
  display: grid; gap: 1rem;
  max-width: 900px; margin: 0 auto;
}
.features-grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.features-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.feature-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  text-align: left;
  color: #fff;
  position: relative;
  transition: all var(--dur-med);
}
.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.feature-card__emoji { font-size: 1.8rem; margin-bottom: 0.6rem; display: block; }
.feature-card h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.feature-card p { font-size: var(--fs-small); color: rgba(255,255,255,0.6); line-height: 1.6; }

@media (max-width: 600px) {
  .features { clip-path: polygon(0 1.5%, 100% 0, 100% 98.5%, 0 100%); }
  .tabs { flex-direction: column; border-radius: var(--radius-card); }
  .tab__indicator { display: none; }
  .tab.active { background: rgba(88,204,2,0.25); }
}

/* ============================================
   SECTION 5: SOCIAL PROOF
   ============================================ */
.social-proof {
  background: linear-gradient(180deg, var(--green-bg) 0%, #fff 100%);
  padding: var(--section-pad) 0;
  position: relative;
}
.social-proof::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--purple));
}

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-bottom: 3rem;
  text-align: center;
}
.stat {
  padding: 1.5rem 1rem;
}
.stat__number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; color: var(--text);
  display: inline;
}
.stat__suffix {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800; color: var(--text);
}
.stat__stars {
  display: inline-flex; align-items: center; margin-left: 4px;
  vertical-align: middle;
}
.stat__label {
  display: block; font-size: var(--fs-small);
  color: var(--text-secondary); margin-top: 0.3rem;
  font-weight: 600;
}

.testimonials {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--dur-med);
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testimonial__quote {
  position: absolute; top: 12px; right: 16px;
}
.testimonial p {
  font-size: var(--fs-small); line-height: 1.7;
  color: var(--text-secondary); margin-bottom: 1rem;
  font-style: italic;
}
.testimonial__author {
  display: flex; align-items: center; gap: 10px;
}
.testimonial__author strong { font-size: var(--fs-small); color: var(--text); }
.testimonial__author span { font-size: var(--fs-xs); color: var(--text-muted); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 12px;
  flex-shrink: 0;
}
.avatar--blue { background: linear-gradient(135deg, var(--blue), #0990d0); }
.avatar--purple { background: linear-gradient(135deg, var(--purple), #a855f7); }
.avatar--green { background: linear-gradient(135deg, var(--green), var(--green-dark)); }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .testimonials {
    grid-template-columns: 1fr;
    max-width: 480px; margin: 0 auto;
  }
}
@media (max-width: 500px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .stat { padding: 1rem 0.5rem; }
}

/* ============================================
   SECTION 6: BADGES
   ============================================ */
.badges-section {
  background: #fff;
  padding: var(--section-pad) 0;
  text-align: center;
  position: relative;
}
.badges-section::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle 3px at 10% 20%, rgba(88,204,2,0.15) 50%, transparent 51%),
    radial-gradient(circle 2px at 30% 70%, rgba(28,176,246,0.12) 50%, transparent 51%),
    radial-gradient(circle 3px at 70% 30%, rgba(206,130,255,0.12) 50%, transparent 51%),
    radial-gradient(circle 2px at 85% 75%, rgba(255,150,0,0.12) 50%, transparent 51%),
    radial-gradient(circle 2px at 50% 10%, rgba(88,204,2,0.1) 50%, transparent 51%),
    radial-gradient(circle 3px at 15% 85%, rgba(255,75,75,0.1) 50%, transparent 51%);
}
.badges-section h2 { margin-bottom: 0.5rem; }
.badges-section__sub {
  color: var(--text-secondary); margin-bottom: 2rem;
  font-size: var(--fs-small);
}
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem; max-width: 900px; margin: 0 auto;
  text-align: left;
}
.badge-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 10px 14px;
  transition: all var(--dur-fast) var(--ease-bounce);
  position: relative;
}
.badge-chip:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-sm);
}
.badge-chip__emoji { font-size: 1.5rem; flex-shrink: 0; }
.badge-chip strong { font-size: var(--fs-small); display: block; line-height: 1.3; }
.badge-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 1px 7px; border-radius: 8px; margin-top: 2px;
}
.badge-tag--green { background: rgba(88,204,2,0.12); color: var(--green-dark); }
.badge-tag--orange { background: rgba(255,150,0,0.12); color: var(--orange-dark); }
.badge-tag--blue { background: rgba(28,176,246,0.12); color: #1690c0; }
.badge-tag--purple { background: rgba(206,130,255,0.12); color: #9b4dca; }
.badge-tag--gold { background: rgba(255,176,32,0.15); color: #c08000; }
.badge-tag--dark { background: rgba(0,0,0,0.08); color: #666; }

.badge-chip--secret {
  border: 1.5px dashed var(--border);
  background: transparent;
  animation: secretPulse 3s ease-in-out infinite;
}
@keyframes secretPulse {
  0%, 100% { border-color: var(--border); }
  50% { border-color: var(--purple); }
}
.badges-section__more {
  margin-top: 1.5rem;
  font-weight: 700; color: var(--text-secondary); font-size: var(--fs-small);
}

@media (max-width: 500px) {
  .badge-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* ============================================
   SECTION 7: PRICING
   ============================================ */
.pricing {
  background: linear-gradient(180deg, #f0f0f5 0%, #e8e8f0 100%);
  padding: var(--section-pad) 0;
  text-align: center;
  position: relative;
}
.pricing::before {
  content: '';
  position: absolute; top: -2px; left: 0; right: 0;
  height: 60px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 40%);
}
.pricing h2 { margin-bottom: 2rem; }

.pricing__toggle {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 2.5rem;
}
.pricing__toggle-label {
  font-weight: 700; font-size: var(--fs-small);
  color: var(--text-muted);
  transition: color var(--dur-fast);
}
.pricing__toggle-label--active { color: var(--text); }
.toggle {
  width: 52px; height: 28px;
  background: var(--green);
  border-radius: 14px; position: relative;
  padding: 3px;
  transition: background var(--dur-fast);
}
.toggle__thumb {
  display: block;
  width: 22px; height: 22px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transform: translateX(24px);
  transition: transform var(--dur-fast) var(--ease-bounce);
}
.toggle.monthly .toggle__thumb { transform: translateX(0); }
.pricing__save-badge {
  background: var(--orange); color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease-bounce);
}
.pricing__save-badge.hidden {
  opacity: 0; transform: scale(0.8);
}

.pricing__cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; max-width: 780px; margin: 0 auto;
  align-items: start;
}
.pricing-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
  position: relative;
  transition: all var(--dur-med);
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card--pro {
  border-top: 4px solid var(--green);
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
  z-index: 1;
}
.pricing-card--pro:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.pricing-card__ribbon {
  position: absolute; top: 12px; right: -8px;
  background: var(--green); color: #fff;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  padding: 4px 14px 4px 12px; letter-spacing: 0.03em;
  border-radius: 4px 0 0 4px;
}
.pricing-card__ribbon::after {
  content: '';
  position: absolute; top: 100%; right: 0;
  border: 4px solid transparent;
  border-top-color: var(--green-dark);
  border-right-color: var(--green-dark);
}
.pricing-card__header { margin-bottom: 1.5rem; }
.pricing-card__header h3 {
  font-size: 1.3rem; margin-bottom: 0.5rem;
}
.pricing-card__amount {
  font-size: 2.5rem; font-weight: 800; color: var(--text);
}
.pricing-card__period {
  font-size: var(--fs-small); color: var(--text-secondary);
  font-weight: 600;
}
.pricing-card__period small {
  display: block; font-size: var(--fs-xs); color: var(--text-muted);
  margin-top: 2px;
}
.pricing-card__features {
  margin-bottom: 1.5rem;
}
.pricing-card__features li {
  padding: 6px 0 6px 28px;
  font-size: var(--fs-small); color: var(--text-secondary);
  position: relative; font-weight: 600;
}
.pricing-card__features li.check::before {
  content: '✓';
  position: absolute; left: 0; color: var(--green);
  font-weight: 800;
}
.pricing-card__features li.cross {
  color: var(--text-muted);
}
.pricing-card__features li.cross::before {
  content: '×';
  position: absolute; left: 2px; color: var(--text-muted);
  font-weight: 800; font-size: 1.1rem;
}

@media (max-width: 700px) {
  .pricing__cards { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-card--pro { transform: none; order: -1; }
  .pricing-card--pro:hover { transform: translateY(-4px); }
}

/* ============================================
   SECTION 8: FAQ
   ============================================ */
.faq {
  background: #fff;
  padding: var(--section-pad) 0;
  text-align: center;
}
.faq h2 { margin-bottom: 2.5rem; }

.accordion { text-align: left; }
.accordion__item {
  border-bottom: 1px solid var(--border);
}
.accordion__item:first-child { border-top: 1px solid var(--border); }
.accordion__trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 0;
  font-weight: 700; font-size: 1rem;
  color: var(--text);
  text-align: left;
  gap: 1rem;
}
.accordion__trigger:hover { color: var(--green-dark); }
.accordion__chevron {
  flex-shrink: 0;
  transition: transform var(--dur-med) var(--ease-smooth);
  color: var(--text-muted);
}
.accordion__item.open .accordion__chevron {
  transform: rotate(180deg);
  color: var(--green);
}
.accordion__content {
  max-height: 0; overflow: hidden;
  transition: max-height var(--dur-med) var(--ease-smooth);
}
.accordion__content p {
  padding-bottom: 1.2rem;
  font-size: var(--fs-small); color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   SECTION 9: FINAL CTA
   ============================================ */
.final-cta {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-surface) 100%);
  padding: var(--section-pad) 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.final-cta__bg-shapes {
  position: absolute; inset: 0; pointer-events: none;
}
.final-cta__bg-shapes .shape--1 {
  width: 350px; height: 350px; background: var(--green); opacity: 0.06;
  top: -10%; left: -5%;
}
.final-cta__bg-shapes .shape--2 {
  width: 200px; height: 200px; background: var(--purple); opacity: 0.05;
  bottom: -5%; right: 10%; border-radius: 30%;
}
.final-cta__bg-shapes .shape--3 {
  width: 150px; height: 150px; background: var(--blue); opacity: 0.05;
  top: 30%; right: -3%;
}
.final-cta::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(88,204,2,0.1) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.final-cta h2 {
  font-size: var(--fs-h2);
  margin-bottom: 1rem;
  position: relative;
}
.final-cta > .container > p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem; font-size: clamp(1rem, 1.3vw, 1.1rem);
}
.final-cta__buttons {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.final-cta__trust {
  font-size: var(--fs-small); color: rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  gap: 0.3rem; flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #111122;
  padding: 2rem 0;
  color: rgba(255,255,255,0.4);
  font-size: var(--fs-small);
}
.footer__inner {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer__logo {
  display: flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 1rem; color: rgba(255,255,255,0.6);
}
.footer__links {
  display: flex; gap: 1.5rem;
}
.footer__links a { transition: color var(--dur-fast); }
.footer__links a:hover { color: rgba(255,255,255,0.8); }
.footer__copy { color: rgba(255,255,255,0.25); }

@media (max-width: 600px) {
  .footer__inner {
    flex-direction: column; text-align: center;
  }
}

/* ============================================
   CONFETTI PARTICLES
   ============================================ */
.confetti-particle {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 8px; height: 8px; border-radius: 2px;
  animation: confettiFall 1.2s ease-out forwards;
}
@keyframes confettiFall {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) rotate(var(--r, 360deg));
    opacity: 0;
  }
}

/* ============================================
   SHAKE ANIMATION
   ============================================ */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.shake { animation: shake 0.35s ease-in-out; }

/* ============================================
   LEGAL PAGES (Privacy, Terms)
   ============================================ */
.legal-page {
  padding: calc(64px + 3rem) 0 4rem;
  min-height: calc(100vh - 200px);
}
.legal-page h1 {
  font-size: var(--fs-h2);
  margin-bottom: 0.3rem;
  color: var(--text);
}
.legal-page__date {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.legal-page h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.legal-page p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.legal-page ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.legal-page li {
  list-style: disc;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.3rem;
  font-size: var(--fs-body);
}
.legal-page li strong {
  color: var(--text);
}
.legal-link {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur-fast);
}
.legal-link:hover {
  color: var(--green);
}

/* ============================================
   BLOG
   ============================================ */

/* Blog listing */
.blog-listing h1 { margin-bottom: 0.3rem; }
.blog-listing__sub {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: var(--fs-body);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  display: block;
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 1.8rem;
  transition: all var(--dur-med);
  border: 1px solid transparent;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}
.blog-card__tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--green-dark);
  background: rgba(88,204,2,0.1);
  padding: 3px 10px;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}
.blog-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--text);
  line-height: 1.3;
}
.blog-card__excerpt {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.blog-card__meta {
  display: flex;
  gap: 1.5rem;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 600;
}

/* Blog article */
.blog-back {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
  transition: color var(--dur-fast);
}
.blog-back:hover { color: var(--green); }

.blog-article__header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.blog-article__tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--green-dark);
  background: rgba(88,204,2,0.1);
  padding: 3px 10px;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.blog-article__header h1 {
  margin-bottom: 0.8rem;
}
.blog-article__meta {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-small);
  color: var(--text-muted);
  font-weight: 600;
}

.blog-article article h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}
.blog-article article h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.blog-article article p {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.1rem;
}
.blog-article__lead {
  font-size: 1.05rem !important;
  color: var(--text) !important;
  line-height: 1.8 !important;
}
.blog-article article ul,
.blog-article article ol {
  margin-bottom: 1.1rem;
  padding-left: 1.5rem;
}
.blog-article article li {
  list-style: disc;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 0.4rem;
}
.blog-article article ol li {
  list-style: decimal;
}
.blog-article article li strong {
  color: var(--text);
}
.blog-article article em {
  font-style: italic;
}
.blog-article article strong {
  color: var(--text);
  font-weight: 700;
}

/* Blog CTA box */
.blog-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--green-bg), #f0f8e8);
  border-radius: var(--radius-card);
  border: 1px solid rgba(88,204,2,0.15);
  text-align: center;
}
.blog-cta h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  margin-top: 0 !important;
  color: var(--text);
}
.blog-cta p {
  color: var(--text-secondary) !important;
  margin-bottom: 1.2rem !important;
  font-size: var(--fs-small) !important;
}

@media (max-width: 500px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ============================================
   404 PAGE
   ============================================ */
.error-page {
  padding: calc(64px + 6rem) 0 6rem;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.error-page__icon {
  margin-bottom: 1.5rem;
  opacity: 0.5;
}
.error-page h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.error-page__sub {
  color: var(--text-secondary);
  font-size: var(--fs-body);
  margin-bottom: 2rem;
}
.error-page__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   WELCOME PAGE
   ============================================ */

/* Hero */
.welcome-hero {
  position: relative;
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-surface) 100%);
  padding: calc(64px + var(--section-pad)) 0 0;
  overflow: hidden;
  color: #fff;
}
.welcome-hero__bg-shapes {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.welcome-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(88,204,2,0.15) 0%, transparent 70%);
  top: 20%; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.welcome-hero__icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounceIn 0.6s var(--ease-bounce);
  display: inline-block;
}
.welcome-hero h1 {
  font-size: var(--fs-h2);
  margin-bottom: 1rem;
}
.welcome-hero__sub {
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto 1.5rem;
  font-size: var(--fs-body);
  line-height: 1.7;
}
.welcome-hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding-bottom: 3rem;
}

/* Download */
.welcome-download {
  background: var(--bg-alt);
  padding: var(--section-pad) 0;
}
.welcome-download__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.welcome-download__content h2 {
  margin-bottom: 0.8rem;
}
.welcome-download__content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.welcome-step-badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

/* Toolbar mock */
.welcome-toolbar {
  background: #f5f5f5;
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
}
.welcome-toolbar__items {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.welcome-toolbar__dot {
  width: 10px; height: 10px;
  background: #ddd; border-radius: 3px;
}
.welcome-toolbar__bolt {
  width: 28px; height: 28px;
  background: var(--green);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(88,204,2,0); }
  50% { box-shadow: 0 0 16px rgba(88,204,2,0.5); }
}

@media (max-width: 768px) {
  .welcome-download__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .welcome-download__visual { max-width: 400px; margin: 0 auto; }
}

/* Tutorial sections */
.welcome-tutorial {
  background: #fff;
  padding: var(--section-pad) 0;
  text-align: center;
}
.welcome-tutorial--pro {
  background: var(--bg-alt);
}
.welcome-tutorial__heading {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0.5rem;
}
.welcome-tutorial__heading h2 { margin: 0; }
.welcome-tutorial__heading .pro-badge {
  position: relative;
  top: auto; right: auto;
}
.welcome-tutorial h2 {
  margin-bottom: 0.5rem;
}
.welcome-tutorial__sub {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  margin-bottom: 2rem;
}
.welcome-tutorial__card {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}
.welcome-tutorial--pro .welcome-tutorial__card {
  border-top: 3px solid var(--purple);
}
.welcome-tutorial__browser {
  padding: 0;
}
.welcome-tutorial__browser .mock-browser {
  border-radius: 0;
  box-shadow: none;
}
.welcome-tutorial__controls {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: #fff;
}
.welcome-tutorial__step-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
}
.welcome-tutorial__dots {
  display: flex;
  gap: 6px;
}
.tut-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--dur-fast) var(--ease-bounce);
}
.tut-dot.active {
  background: var(--green);
  transform: scale(1.3);
}
.welcome-tutorial__step-text {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: 36px;
}
.welcome-tutorial__nav {
  display: flex;
  gap: 0.5rem;
}

/* Tutorial elements */
.tut-highlight {
  border-radius: 3px;
  transition: background var(--dur-med), border-color var(--dur-med);
}
.tut-highlight.highlighted {
  background: rgba(88,204,2,0.2);
  border-bottom: 2px solid var(--green);
}
.tut-quizme {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  background: var(--green); color: #fff;
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700;
  display: none; align-items: center; gap: 5px;
  box-shadow: 0 4px 12px rgba(88,204,2,0.3);
}
.tut-quizme.visible {
  display: flex;
  animation: bounceIn 0.4s var(--ease-bounce);
}
.tut-panel {
  width: 0; overflow: hidden;
  transition: width var(--dur-med) var(--ease-smooth);
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  background: var(--bg-alt);
}
.tut-panel.open { width: 180px; }
.tut-loading {
  padding: 12px;
  display: none;
}
.tut-loading.active { display: block; }
.tut-quiz {
  padding: 12px;
  display: none;
  position: relative;
}
.tut-quiz.active { display: block; }
.tut-xp {
  color: var(--orange);
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  margin-top: 8px;
  opacity: 0;
}
.tut-xp.animate {
  animation: xpFloat 1.5s var(--ease-smooth) forwards;
}

/* PDF mock */
.tut-pdf {
  padding: 4px;
}
.tut-pdf__label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.tut-pdf__diagram {
  background: var(--card);
  border: 1px dashed var(--border);
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 10px;
}

/* Screenshot overlay & selection */
.tut-shortcut {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--dark);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: var(--radius-card);
  opacity: 0;
  transition: opacity var(--dur-med);
  z-index: 2;
  white-space: nowrap;
}
.tut-shortcut.visible { opacity: 1; }
.tut-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity var(--dur-med);
  pointer-events: none;
  z-index: 1;
}
.tut-overlay.active { opacity: 1; }
.tut-selection {
  position: absolute;
  border: 2px dashed #fff;
  border-radius: 4px;
  opacity: 0;
  z-index: 2;
  top: 15%; left: 10%;
  width: 0; height: 0;
  transition: all 0.6s var(--ease-smooth);
}
.tut-selection.active {
  opacity: 1;
  width: 70%;
  height: 60%;
}

/* Tips */
.welcome-tips {
  background: var(--bg-alt);
  padding: var(--section-pad) 0;
  text-align: center;
}
.welcome-tips h2 { margin-bottom: 2rem; }
.welcome-tips__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}
.welcome-tip {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-med);
}
.welcome-tip:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.welcome-tip__emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.6rem;
}
.welcome-tip h4 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}
.welcome-tip p {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Final CTA */
.welcome-final {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-surface) 100%);
  padding: var(--section-pad) 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.welcome-final__bg-shapes {
  position: absolute; inset: 0; pointer-events: none;
}
.welcome-final__bg-shapes .shape--1 {
  width: 300px; height: 300px; background: var(--green); opacity: 0.06;
  top: -10%; left: -5%;
}
.welcome-final__bg-shapes .shape--2 {
  width: 180px; height: 180px; background: var(--purple); opacity: 0.05;
  bottom: -5%; right: 10%; border-radius: 30%;
}
.welcome-final__bg-shapes .shape--3 {
  width: 130px; height: 130px; background: var(--blue); opacity: 0.05;
  top: 30%; right: -3%;
}
.welcome-final::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(88,204,2,0.1) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.welcome-final__check {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.welcome-final h2 {
  font-size: var(--fs-h2);
  margin-bottom: 1rem;
}
.welcome-final__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.welcome-final__trust {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

/* Tutorial responsive */
@media (max-width: 700px) {
  .tut-panel.open { width: auto; }
  .tut-panel {
    width: auto !important;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .welcome-tutorial__card .mock-browser__body {
    flex-direction: column;
  }
  .welcome-tutorial__controls {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 500px) {
  .tut-panel { display: none; }
  .welcome-tips__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .welcome-tips__grid { grid-template-columns: 1fr; }
}
