/* ── Language bar (top-right of landing page) ────────────────────────────── */
.lang-bar-top {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  z-index: 100;
  display: flex;
  gap: 0.25rem;
  background: rgba(15,15,26,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.3rem;
}
/* On the landing page the .lang-bar inside .lang-bar-top already gets
   the right sizing from main.css — just override button font-size for labels */
.lang-bar-top .lang-btn { font-size: 0.82rem; padding: 0.3rem 0.65rem; }

/* ── Landing body ─────────────────────────────────────────────────────────── */
body.landing-body {
  min-height: 100vh;
  background: var(--bg);
  display: block;
  overflow-y: auto;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 4rem 1.25rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 85vh;
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 480px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent2);
  width: fit-content;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #a855f7 60%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.6;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.hero-cta {
  font-size: 1.1rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 24px rgba(124,58,237,0.35);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124,58,237,0.45); }

.hero-join {
  display: flex;
  gap: 0.5rem;
}
.join-input {
  flex: 1;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: monospace;
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}
.join-input:focus { border-color: var(--accent); }
.join-input::placeholder { letter-spacing: 0.05em; font-weight: 400; opacity: 0.5; }
.hero-join-btn { padding: 0.75rem 1.5rem; white-space: nowrap; }

/* ── Phone mockup ─────────────────────────────────────────────────────────── */
.hero-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-mockup {
  width: 220px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 32px;
  padding: 1.5rem 1rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
}
.phone-mockup::before {
  content: '';
  display: block;
  width: 60px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin: 0 auto 1.25rem;
}
.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mock-category {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  width: fit-content;
}
.mock-question {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}
.mock-answers {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mock-btn {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text2);
}
.mock-btn.correct {
  background: rgba(16,185,129,0.15);
  border-color: var(--green);
  color: var(--green);
}

/* ── How it works ─────────────────────────────────────────────────────────── */
.how-section {
  padding: 4rem 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}
.step-num {
  position: absolute;
  top: -14px;
  left: 1.25rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon { font-size: 2rem; }
.step-card h3 { font-size: 1rem; font-weight: 700; }
.step-card p { font-size: 0.875rem; color: var(--text2); line-height: 1.55; }

/* ── Features ─────────────────────────────────────────────────────────────── */
.features-section {
  padding: 4rem 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.fi { font-size: 1.2rem; flex-shrink: 0; }

/* ── CTA section ──────────────────────────────────────────────────────────── */
.cta-section {
  padding: 4rem 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.cta-inner h2 { font-size: 2rem; font-weight: 800; }
.cta-inner p { color: var(--text2); }
.cta-inner .btn-lg { max-width: 280px; }

/* ── Created overlay ──────────────────────────────────────────────────────── */
.created-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}
.created-overlay.hidden { display: none; }

.created-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  animation: fadeIn 0.25s ease;
}
.created-card h2 { font-size: 1.5rem; font-weight: 800; text-align: center; }
.created-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.created-close:hover { background: var(--card); color: var(--text); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1.25rem;
  color: var(--text2);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.footer-nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--accent2); }
.footer-copy { color: var(--text2); font-size: 0.78rem; }

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .hero {
    flex-direction: column;
    padding: 2.5rem 1.25rem 2rem;
    min-height: unset;
    gap: 2rem;
    text-align: center;
  }
  .hero-inner { align-items: center; max-width: 100%; }
  .hero-sub { text-align: center; }
  .hero-actions { width: 100%; }
  .hero-cta { width: 100%; }
  .hero-join { width: 100%; }
  .hero-visual { order: -1; }
  .phone-mockup { width: 180px; }

  .steps-grid { grid-template-columns: 1fr; }
  .step-card { padding-top: 2rem; }

  .section-title { font-size: 1.4rem; }
  .cta-inner h2 { font-size: 1.5rem; }
  .cta-inner .btn-lg { max-width: 100%; }

  .created-card { padding: 1.5rem; }
}
