/* ==========================================================================
   Public landing page + register page
   ========================================================================== */

body.landing-body {
  background: #fff;
  color: var(--ink-800);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.lp-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- Utility strip ---- */
.lp-topbar {
  background: var(--primary-darker);
  color: #e0e7ff;
  font-size: 0.8rem;
}
.lp-topbar .lp-container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 36px; flex-wrap: wrap;
}
.lp-topbar a { color: #fff; text-decoration: none; }
.lp-topbar .lang-toggle { background: rgba(255,255,255,0.12); }
.lp-topbar .lang-toggle-btn { color: #e0e7ff; }
.lp-topbar .lang-toggle-btn.active { background: #fff; color: var(--primary-darker); }

/* ---- Header ---- */
.lp-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.lp-header .lp-container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}
.lp-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-900); }
.lp-brand .brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: grid; place-items: center; font-weight: 800;
}
.lp-brand strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.lp-brand span { display: block; font-size: 0.75rem; color: var(--ink-500); }

.lp-nav { display: flex; align-items: center; gap: 4px; }
.lp-nav a {
  color: var(--ink-700); text-decoration: none; font-weight: 500; font-size: 0.92rem;
  padding: 8px 12px; border-radius: var(--radius-sm);
}
.lp-nav a:hover { background: var(--primary-light); color: var(--primary-dark); }

.lp-actions { display: flex; align-items: center; gap: 8px; }
.lp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.92rem; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px -6px rgba(79,70,229,.6); }
.lp-btn-primary:hover { background: var(--primary-dark); color: #fff; }
.lp-btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.lp-btn-outline:hover { background: var(--primary-light); color: var(--primary-dark); }
.lp-btn-light { background: #fff; color: var(--primary-darker); }
.lp-btn-light:hover { color: var(--primary-darker); box-shadow: var(--shadow-lg); }
.lp-btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.lp-btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.lp-btn-lg { padding: 14px 28px; font-size: 1rem; }

.lp-menu-btn {
  display: none; border: 1px solid var(--border); background: #fff;
  border-radius: var(--radius-sm); width: 42px; height: 42px; font-size: 1.3rem;
}

/* ---- Hero ---- */
.lp-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #312e81 0%, #4338ca 45%, #6d28d9 100%);
  color: #fff; padding: 72px 0 88px;
}
.lp-hero::before, .lp-hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(2px);
}
.lp-hero::before { width: 420px; height: 420px; right: -120px; top: -140px; background: rgba(6,182,212,.25); }
.lp-hero::after { width: 300px; height: 300px; left: -100px; bottom: -160px; background: rgba(124,58,237,.35); }
.lp-hero .lp-container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px; border-radius: var(--radius-pill); font-size: .82rem; font-weight: 600;
}
.lp-hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; line-height: 1.12; margin: 18px 0 16px; letter-spacing: -0.02em; color: #fff; }
.lp-hero p.lead { color: #e0e7ff; font-size: 1.1rem; max-width: 560px; margin-bottom: 28px; }
.lp-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.lp-hero-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-lg); padding: 24px; backdrop-filter: blur(6px);
}
.lp-hero-card h3 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.lp-step { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.14); }
.lp-step:first-of-type { border-top: 0; }
.lp-step-num {
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  background: #fff; color: var(--primary-darker); font-weight: 800; display: grid; place-items: center;
}
.lp-step strong { display: block; font-size: .95rem; color: #fff; }
.lp-step span { font-size: .84rem; color: #c7d2fe; }

/* ---- Notice ticker ---- */
.lp-ticker { background: #fff7ed; border-bottom: 1px solid #fed7aa; }
.lp-ticker .lp-container { display: flex; align-items: center; gap: 14px; min-height: 48px; }
.lp-ticker-label {
  flex: 0 0 auto; background: #ea580c; color: #fff; font-weight: 700; font-size: .8rem;
  padding: 6px 12px; border-radius: var(--radius-sm); display: inline-flex; gap: 6px; align-items: center;
}
.lp-ticker-track { overflow: hidden; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.lp-ticker-items { display: inline-flex; gap: 48px; white-space: nowrap; animation: lp-marquee 40s linear infinite; }
.lp-ticker-items > * { flex: 0 0 auto; }
.lp-ticker-track:hover .lp-ticker-items { animation-play-state: paused; }
.lp-ticker-items a, .lp-ticker-items span { color: #9a3412; text-decoration: none; font-size: .9rem; font-weight: 500; }
.lp-ticker-items i { margin-right: 6px; }
/* Items are duplicated by landing.js, so shifting by half loops seamlessly. */
@keyframes lp-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 24px)); } }
@media (prefers-reduced-motion: reduce) {
  .lp-ticker-items { animation: none; }
  .lp-ticker-track { overflow-x: auto; }
}

/* ---- Sections ---- */
.lp-section { padding: 80px 0; }
.lp-section-alt { background: var(--ink-50); }
.lp-section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.lp-kicker { color: var(--primary); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.lp-section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--ink-900); margin: 8px 0 12px; letter-spacing: -0.01em; }
.lp-section-head p { color: var(--ink-500); font-size: 1.02rem; margin: 0; }

.lp-grid { display: grid; gap: 22px; }
.lp-grid-4 { grid-template-columns: repeat(4, 1fr); }
.lp-grid-3 { grid-template-columns: repeat(3, 1fr); }

.lp-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.lp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lp-card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.45rem; margin-bottom: 16px;
}
.lp-card h3 { font-size: 1.08rem; font-weight: 700; color: var(--ink-900); margin-bottom: 8px; }
.lp-card p { color: var(--ink-500); font-size: .92rem; margin: 0 0 14px; flex: 1; }
.lp-card-link { color: var(--primary); font-weight: 600; font-size: .9rem; text-decoration: none; }
.lp-card-link:hover { color: var(--primary-darker); }

.tone-indigo { background: #eef2ff; color: #4338ca; }
.tone-violet { background: #f5f3ff; color: #6d28d9; }
.tone-cyan { background: #ecfeff; color: #0e7490; }
.tone-amber { background: #fffbeb; color: #b45309; }
.tone-green { background: #f0fdf4; color: #15803d; }
.tone-rose { background: #fff1f2; color: #be123c; }

/* ---- Stats band ---- */
.lp-stats { background: linear-gradient(120deg, #1e1b4b, #312e81); color: #fff; padding: 56px 0; }
.lp-stats .lp-grid-4 { text-align: center; }
.lp-stat-value { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1; }
.lp-stat-label { color: #c7d2fe; font-size: .92rem; margin-top: 8px; }

/* ---- Events list ---- */
.lp-event { display: flex; gap: 16px; align-items: center; }
.lp-event-date {
  flex: 0 0 64px; text-align: center; border-radius: var(--radius-md);
  background: var(--primary-light); color: var(--primary-darker); padding: 8px 0;
}
.lp-event-date b { display: block; font-size: 1.4rem; line-height: 1; }
.lp-event-date small { font-size: .72rem; text-transform: uppercase; font-weight: 700; }
.lp-event h3 { margin: 0 0 4px; font-size: 1rem; }
.lp-event p { margin: 0; font-size: .85rem; }
.lp-empty { text-align: center; color: var(--ink-500); padding: 24px; }

/* ---- CTA band ---- */
.lp-cta {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  border-radius: 24px; color: #fff; padding: 52px 40px; text-align: center;
}
.lp-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 10px; }
.lp-cta p { color: #e0e7ff; margin-bottom: 24px; }
.lp-cta .lp-hero-cta { justify-content: center; }

/* ---- Footer ---- */
.lp-footer { background: #0f172a; color: #94a3b8; padding: 56px 0 24px; font-size: .9rem; }
.lp-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
.lp-footer h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 14px; }
.lp-footer ul { list-style: none; padding: 0; margin: 0; }
.lp-footer li { margin-bottom: 8px; }
.lp-footer a { color: #94a3b8; text-decoration: none; }
.lp-footer a:hover { color: #fff; }
.lp-footer .lp-brand { color: #fff; margin-bottom: 14px; }
.lp-footer .lp-brand span { color: #94a3b8; }
.lp-footer-bottom {
  border-top: 1px solid #1e293b; margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem;
}

/* ---- Register page ---- */
.reg-card .row { --bs-gutter-x: 14px; }
.reg-switch { text-align: center; margin-top: 18px; font-size: .92rem; color: var(--ink-500); }
.reg-switch a { color: var(--primary); font-weight: 600; text-decoration: none; }
.reg-back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-500); text-decoration: none; font-size: .88rem; }
.reg-back:hover { color: var(--primary); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .lp-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .lp-menu-btn { display: inline-grid; place-items: center; }
  .lp-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px; box-shadow: var(--shadow-md);
  }
  .lp-nav.open { display: flex; }
  .lp-header .lp-container { position: relative; }
  .lp-hero .lp-container { grid-template-columns: 1fr; }
  .lp-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .lp-container { padding: 0 16px; }
  .lp-actions .lp-btn-outline { display: none; }
  .lp-btn { padding: 9px 16px; }
  .lp-grid-4 { grid-template-columns: 1fr; }
  .lp-stats .lp-grid-4 { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .lp-section { padding: 56px 0; }
  .lp-footer-grid { grid-template-columns: 1fr; }
  .lp-cta { padding: 40px 20px; }
  .lp-topbar .lp-hide-sm { display: none; }
  .lp-brand span { display: none; }
}
