.landing-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.landing-topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Bitter', Georgia, serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.landing-topbar-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: center;
}
.landing-topbar-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s ease;
}
.landing-topbar-links a:hover { color: var(--primary); }
.landing-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.landing-topbar-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--text);
  color: var(--bg);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  transition: transform 0.15s cubic-bezier(.34,1.56,.64,1), box-shadow 0.15s ease;
}
.landing-topbar-login:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18); color: var(--bg); }
.landing-topbar-login:active { transform: translateY(1px); }

@media (max-width: 767px) {
  .landing-topbar { padding: 12px 16px; gap: 12px; }
  .landing-topbar-links { display: none; }
  .landing-topbar-brand span:last-child { display: none; }
}

.landing-hero {
  text-align: center;
  padding: 72px 16px 56px;
  position: relative;
  overflow: hidden;
}
.landing-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 320px;
  background: radial-gradient(ellipse at center, var(--primary-light) 0%, transparent 70%);
  z-index: -1;
}
.landing-hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.landing-hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.15;
}
.landing-hero h1 .highlight {
  color: var(--primary);
}
.landing-hero p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 28px;
}
.landing-hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.landing-section {
  padding: 56px 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.landing-section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}
.landing-section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.landing-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.landing-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 200px;
  position: relative;
}
.landing-step-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s ease;
}
.landing-step:hover .landing-step-icon {
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.landing-step-icon.step-1 { background: linear-gradient(135deg, #16332a, #2f6a54); }
.landing-step-icon.step-2 { background: linear-gradient(135deg, #2f6a54, #6fae90); }
.landing-step-icon.step-3 { background: linear-gradient(135deg, #c28f34, #d9a441); }
.landing-step h3 { margin: 0 0 6px; font-size: 17px; }
.landing-step p { margin: 0; color: var(--text-muted); font-size: 14px; }
.landing-step-connector {
  height: 2px;
  width: 60px;
  margin-top: 42px;
  background-image: linear-gradient(to right, var(--border) 50%, transparent 50%);
  background-size: 10px 2px;
}

.landing-audience-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  height: 100%;
  background: var(--surface);
  border-top: 4px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.landing-audience-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.landing-audience-card.card-teacher { border-top-color: #2f6a54; }
.landing-audience-card.card-student { border-top-color: #d9a441; }
.landing-audience-card.card-admin { border-top-color: #b0503f; }
.landing-audience-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
  background: var(--primary-light);
}
.landing-audience-card h3 { margin: 0 0 6px; font-size: 17px; }
.landing-audience-card p { margin: 0; color: var(--text-muted); font-size: 14px; }

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.landing-feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.landing-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}
.landing-feature-card .icon { font-size: 26px; margin-bottom: 10px; }
.landing-feature-card h4 { margin: 0 0 6px; font-size: 15px; }
.landing-feature-card p { margin: 0; color: var(--text-muted); font-size: 13px; }

.landing-faq-item {
  border-bottom: 1px solid var(--border);
}
.landing-faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 4px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.landing-faq-question .chevron { transition: transform 0.15s ease; color: var(--text-muted); }
.landing-faq-item.open .landing-faq-question .chevron { transform: rotate(180deg); }
.landing-faq-answer {
  max-height: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  transition: max-height 0.2s ease;
}
.landing-faq-item.open .landing-faq-answer { max-height: 240px; padding-bottom: 18px; }

.landing-cta {
  text-align: center;
  padding: 64px 16px;
  background: linear-gradient(160deg, var(--primary-light), transparent);
  border-radius: var(--radius-lg);
  margin: 0 16px 56px;
}
.landing-cta h2 { font-size: 26px; font-weight: 800; margin: 0 0 10px; }
.landing-cta p { color: var(--text-muted); margin: 0 0 24px; }

/* Login page split layout */
.login-split {
  display: flex;
  min-height: calc(100vh - 60px);
  align-items: stretch;
  flex-wrap: wrap;
}
.login-split-form {
  position: relative;
  flex: 1 1 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.login-back-link {
  position: absolute;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}
.login-back-link:hover { color: var(--primary); transform: translateX(-2px); }
.login-split-form-inner { width: 100%; max-width: 380px; }
.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.login-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #16332a, #2f6a54);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.login-brand-name { font-family: 'Bitter', Georgia, serif; font-weight: 700; font-size: 16px; }
.login-split-form-inner h1 { font-size: 24px; margin-bottom: 24px; text-align: left; }
.login-split-side {
  position: relative;
  flex: 1 1 380px;
  overflow: hidden;
  background:
    radial-gradient(1.5px 1.5px at 15% 22%, rgba(255,255,255,0.14) 100%, transparent),
    radial-gradient(1px 1px at 72% 15%, rgba(255,255,255,0.12) 100%, transparent),
    radial-gradient(1.5px 1.5px at 85% 65%, rgba(255,255,255,0.1) 100%, transparent),
    radial-gradient(1px 1px at 30% 78%, rgba(255,255,255,0.12) 100%, transparent),
    radial-gradient(1.5px 1.5px at 55% 45%, rgba(255,255,255,0.08) 100%, transparent),
    linear-gradient(160deg, #16332a, #2f6a54 65%, #3f8267 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}
.login-side-tagline {
  max-width: 300px;
  margin-bottom: 34px;
}
.login-side-tagline h2 {
  font-family: 'Bitter', Georgia, serif;
  font-size: 22px;
  color: #fff;
  margin: 0 0 8px;
  text-wrap: balance;
}
.login-side-tagline p {
  font-size: 14px;
  opacity: 0.85;
  margin: 0;
}
.login-side-divider {
  width: 70px;
  height: 3px;
  margin: 0 auto 34px;
  background-image: repeating-linear-gradient(90deg, rgba(217,164,65,0.7) 0 9px, transparent 9px 15px);
}
.login-qr-box {
  background: rgba(255, 255, 255, 0.12);
  border: 1px dashed rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
}
.login-qr-placeholder {
  width: 140px;
  height: 140px;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.25) 0 6px, transparent 6px 12px);
  border-radius: 8px;
  margin: 0 auto;
}
.login-coming-soon-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-top: 10px;
}
.login-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--surface);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
  max-width: 90vw;
  text-align: center;
}
.login-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 767px) {
  .landing-step-connector { display: none; }
  .login-split-side { order: -1; padding: 32px 20px; }
  .login-side-divider, .login-qr-section { display: none; }
  .login-side-tagline { margin-bottom: 0; }
}
