/* ============================================================
   LANDING PAGE — Artistic & Professional
   ============================================================ */
.landing {
  min-height: 100vh;
  margin: -24px;
  width: calc(100% + 48px);
  overflow-x: hidden;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.landing-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 24px 100px;
}

.landing-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #0f0f1a 0%, #1a1a2e 30%, #16213e 60%, #0f172a 100%);
  z-index: 0;
}

.landing-hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 45%);
}

.landing-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

/* Decorative shapes hidden on dark hero */
.landing-shape { display: none; }

.landing-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.landing-hero-split {
  display: flex;
  align-items: center;
  gap: 48px;
  text-align: left;
}

.landing-hero-text { flex: 1; }
.landing-hero-visual { flex: 0 0 auto; }

/* App mockup — shows a mini quiz card */
/* ─── Animated Demo Sequence ───────────────────────────────── */
.landing-demo {
  width: 320px;
  height: 360px;
  position: relative;
}

.landing-demo-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.landing-demo-frame.active {
  opacity: 1;
}

.landing-demo-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
  text-align: center;
}

.landing-demo-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  color: #1a1a2e;
}
.landing-demo-card .demo-badge,
.landing-demo-card .demo-timer { color: #6366f1; }

.landing-demo-q {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--text);
}

.landing-demo-opt {
  padding: 9px 14px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 0.82rem;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}

.demo-opt-selected {
  background: var(--success-soft);
  border-color: var(--success);
  color: var(--success);
  font-weight: 600;
}

/* Question card top bar */
.demo-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.demo-badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bg-soft);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--text-muted);
}
.demo-timer {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  font-family: monospace;
}

/* Result card */
.demo-result-card { text-align: center; padding: 24px 20px; }
.demo-score {
  font-size: 3rem;
  font-weight: 900;
  color: var(--success);
  line-height: 1;
}
.demo-score-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 6px 0 16px;
}
.demo-stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Graph card */
.demo-graph-card { padding: 16px 20px; }
.demo-graph {
  position: relative;
  height: 100px;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  margin: 12px 0 8px 4px;
}
.demo-graph-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, transparent);
  clip-path: polygon(0% 70%, 20% 55%, 40% 45%, 60% 30%, 80% 35%, 100% 12%, 100% 100%, 0% 100%);
  background: linear-gradient(180deg, rgba(6, 214, 160, 0.15) 0%, transparent 100%);
}
.demo-graph-dots { position: absolute; inset: 0; }
.demo-graph-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--bg-elev);
  transform: translate(-50%, 50%);
}
.demo-graph-dot-last {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 3px rgba(6, 214, 160, 0.2);
}

/* Dashboard card */
.demo-dashboard-card { padding: 16px; }
.demo-dash-header {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: var(--text);
}
.demo-dash-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.78rem;
}
.demo-dash-row span:first-child { width: 50px; color: var(--text-muted); }
.demo-dash-footer {
  margin-top: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

/* Live quiz card */
.demo-live-card { text-align: center; padding: 20px; }
.demo-live-pin {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 8px;
}
.demo-live-players {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.demo-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.demo-live-podium { text-align: left; }
.demo-live-rank {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: 0.82rem;
}
.demo-live-rank:first-child { background: var(--bg-soft); }
.demo-rank-medal { font-weight: 900; width: 24px; color: var(--primary); }
.demo-rank-pts { margin-left: auto; font-weight: 700; color: var(--text-muted); font-size: 0.75rem; }

/* Shared bar style */
.demo-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-soft);
  border-radius: 3px;
  overflow: hidden;
}
.demo-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--primary);
}

@media (max-width: 768px) {
  .landing-hero-split { flex-direction: column; text-align: center; }
  .landing-hero-visual { display: none; }
}

.landing-badge-pill {
  display: inline-block;
  background: rgba(6, 214, 160, 0.1);
  color: #34edb3;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  border: 1px solid rgba(6, 214, 160, 0.3);
}

.landing-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3);
  margin-bottom: 16px;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1) rotate(0deg); box-shadow: 0 20px 60px rgba(99, 102, 241, 0.25); }
  50% { transform: scale(1.04) rotate(1deg); box-shadow: 0 25px 70px rgba(99, 102, 241, 0.35); }
}

.landing-title {
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1.05;
  letter-spacing: -1px;
}

.landing-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: #f0f0ff;
  margin-bottom: 12px;
}

.landing-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.landing-hero-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ─── Activity Ticker (bottom-left floating cards) ─── */
.landing-ticker {
  position: absolute;
  bottom: 60px;
  left: 50px;
  z-index: 10;
  height: 44px;
  width: 350px;
}

.landing-ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  min-height: 44px;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: absolute;
  transform: translateY(10px);
}

.landing-ticker-item.active {
  opacity: 1;
  transform: translateY(0);
}

.landing-ticker-icon {
  color: var(--ticker-accent, #a5b4fc);
  display: flex;
  align-items: center;
}

@media (max-width: 900px) {
  .landing-ticker { display: none; }
}

.landing-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  padding: 16px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
  transition: all 0.3s ease;
  color: white;
}

.landing-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(99, 102, 241, 0.5);
}

.landing-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #f0f0ff;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  padding: 16px 36px;
  font-size: 1.1rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.landing-btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ─── Social Proof ────────────────────────────────────────── */
.landing-social-proof {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.landing-proof-logos {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.landing-proof-tag {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ─── Stats Bar ─────────────────────────────────────────────── */
.landing-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 40px 24px;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.landing-stat-item {
  text-align: center;
}

.landing-stat-num {
  font-size: 2rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── Sections ──────────────────────────────────────────────── */
.landing-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.landing-section-alt {
  background: var(--bg-soft);
  max-width: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.landing-section-alt > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.landing-section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

.landing-section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 48px;
}

/* ─── Persona Cards ─────────────────────────────────────────── */
.landing-persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.landing-persona-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
}

.landing-persona-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.landing-persona-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-left: auto;
  margin-right: auto;
}

.landing-persona-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.landing-persona-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── Feature Cards ─────────────────────────────────────────── */
.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.landing-feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.landing-feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.landing-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.landing-feature-card:hover::after {
  transform: scaleX(1);
}

.landing-feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
}
.landing-feature-card:hover .landing-feature-icon {
  background: var(--primary);
  color: white;
  transition: all 0.3s ease;
}

.landing-feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.landing-feature-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── How It Works Steps ────────────────────────────────────── */
.landing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  position: relative;
}

.landing-step {
  text-align: center;
  position: relative;
}

.landing-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad);
  color: white;
  font-size: 1.4rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
}
.landing-step:hover .landing-step-num {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35);
}

.landing-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.landing-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.landing-step-arrow {
  display: none;
}

@media (min-width: 800px) {
  .landing-step-arrow {
    display: block;
    position: absolute;
    top: 28px;
    right: -20px;
    font-size: 1.5rem;
    color: var(--border);
  }
}

/* ─── Comparison Table ──────────────────────────────────────── */
.landing-compare {
  max-width: 700px;
  margin: 0 auto;
  overflow-x: auto;
}

.landing-compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elev);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.landing-compare-table th,
.landing-compare-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.landing-compare-table th {
  background: var(--bg-soft);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.landing-compare-table th:first-child,
.landing-compare-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.landing-compare-table tr:last-child td {
  border-bottom: none;
}
.compare-yes { color: var(--success); }
.compare-partial { color: var(--warning); }
.compare-no { color: var(--danger); opacity: 0.6; }

/* ─── CTA ───────────────────────────────────────────────────── */
.landing-cta {
  text-align: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}

.landing-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0.04;
}

.landing-cta h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}

.landing-cta p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
  position: relative;
}

/* ─── Footer ────────────────────────────────────────────────── */
.landing-footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.landing-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .landing-hero { min-height: 90vh; padding: 40px 16px; }
  .landing-section { padding: 48px 16px; }
  .landing-features-grid { grid-template-columns: 1fr; }
  .landing-persona-grid { grid-template-columns: 1fr; }
  .landing-steps { grid-template-columns: 1fr; gap: 20px; }
  .landing-stats { gap: 24px; padding: 30px 16px; }
  .landing-actions { flex-direction: column; align-items: center; }
  .landing-btn-primary, .landing-btn-secondary { width: 100%; max-width: 320px; }
  .landing-cta { padding: 60px 16px; }
}

@media (max-width: 480px) {
  .landing-stat-num { font-size: 1.5rem; }
  .landing-feature-card { padding: 20px 16px; }
}
