/* ---------- landing / home page styling ---------- */
#landing {
  background: var(--lbg);
  color: var(--ltext);
  min-height: 100vh;
}

.land-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5%;
  position: sticky;
  top: 0;
  background: var(--lnav);
  backdrop-filter: blur(10px);
  z-index: 50;
  border-bottom: 1px solid var(--lnavline);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: #fff;
  letter-spacing: .5px;
}
.logo .lmark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  overflow: hidden;
  /* 🖼️ FIXED size — never squeezed by a long academy name */
  flex: 0 0 auto;
  min-width: 36px;
}
.logo .lmark img {
  width: 100%;
  height: 100%;
  /* contain = the WHOLE logo always fits inside the box (no cropping),
     whatever its shape — wide, tall or square */
  object-fit: contain;
  border-radius: inherit;
  display: block;
}
/* 🖼️ v3.2 — the UPLOADED logo replaces the square mark entirely:
   natural shape, height-fitted, width automatic, nothing behind it */
.logo .brand-img {
  height: 38px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
  border-radius: 6px;
}
/* keep the academy name on one tidy line next to the mark */
.logo > div:last-child {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo small {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  color: #7dd3fc;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.land-links {
  display: flex;
  gap: 26px;
  font-size: 13.5px;
  font-weight: 500;
}
.land-links a {
  color: var(--llink);
}
.land-links a:hover {
  color: var(--lhead);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  padding: 70px 5% 50px;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.12;
  font-weight: 800;
  color: var(--lhead);
  letter-spacing: -1px;
}
.hero h1 span {
  color: #60a5fa;
}
.hero p {
  margin: 20px 0 28px;
  color: var(--lmut);
  font-size: 16px;
  max-width: 520px;
}

.hero-art {
  background: linear-gradient(135deg, #13203f, #1e1b4b);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 15%, rgba(59, 130, 246, .25), transparent 55%);
}

.mini-stat {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  padding: 14px;
  position: relative;
}
.mini-stat b {
  font-size: 21px;
  color: #fff;
  display: block;
}
.mini-stat span {
  font-size: 11.5px;
  color: #94a3b8;
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 10px 5% 60px;
  background: var(--lstat);
  border: 1px solid var(--lline);
  box-shadow: var(--sh);
  border-radius: 18px;
  padding: 22px;
}
.stat-band .cell {
  text-align: center;
}
.stat-band b {
  font-size: 22px;
  color: var(--lhead);
  display: block;
}
.stat-band span {
  font-size: 11.5px;
  color: var(--lmut);
}

.land-sec {
  padding: 30px 5% 60px;
}
.land-sec h2 {
  color: var(--lhead);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.5px;
}
.land-sec .sub {
  color: var(--lmut);
  margin: 8px 0 28px;
}

.prog-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 16px;
}
.prog-card {
  background: var(--lcard);
  border: 1px solid var(--lline);
  box-shadow: var(--sh);
  border-radius: 16px;
  overflow: hidden;
  transition: .2s;
  cursor: pointer;
}
.prog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, .5);
}
.prog-card .thumb {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
}
.prog-card .pc-body {
  padding: 14px;
}
.prog-card h4 {
  color: var(--lhead);
  font-size: 14.5px;
  margin-bottom: 6px;
}
.prog-card .meta {
  font-size: 11.5px;
  color: var(--lmut);
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.feat {
  background: var(--lcard);
  border: 1px solid var(--lline);
  box-shadow: var(--sh);
  border-radius: 16px;
  padding: 20px;
}
.feat .fi {
  font-size: 26px;
}
.feat h4 {
  color: var(--lhead);
  margin: 10px 0 6px;
  font-size: 14.5px;
}
.feat p {
  color: var(--lmut);
  font-size: 12.5px;
}

.testi {
  background: var(--lcard);
  border: 1px solid var(--lline);
  box-shadow: var(--sh);
  border-radius: 16px;
  padding: 20px;
}
.testi p {
  color: var(--ltext);
  font-size: 13.5px;
  font-style: italic;
}
.testi .who {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.testi .who b {
  color: var(--lhead);
  font-size: 13px;
  display: block;
}
.testi .who span {
  color: var(--lmut);
  font-size: 11.5px;
}

.cta-band {
  margin: 0 5% 60px;
  background: linear-gradient(120deg, #1e3a8a, #4c1d95);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-band h3 {
  color: #fff;
  font-size: 23px;
}
.cta-band p {
  color: #bfdbfe;
  margin-top: 6px;
}

.land-foot {
  border-top: 1px solid var(--lline);
  padding: 30px 5%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--lfoot);
  font-size: 12.5px;
}

/* auth card inside landing overlay */
#authView {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0b1220 0%, #14224a 60%, #2a1b5e 100%);
  padding: 24px;
}
.auth-card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--sh-l);
  width: 100%;
  max-width: 430px;
  padding: 34px;
}
.auth-card .logo {
  color: var(--ink);
  justify-content: center;
  margin-bottom: 6px;
}
.auth-card .logo small {
  color: var(--blue);
}
.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: 10px;
  padding: 4px;
  margin: 18px 0 6px;
}
.auth-tabs button {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  background: transparent;
  font-weight: 600;
  font-size: 13px;
  color: var(--mut);
}
.auth-tabs button.on {
  background: var(--card2);
  color: var(--blue);
  box-shadow: var(--sh);
}
.demo-box {
  background: #f0f6ff;
  border: 1px dashed #93c5fd;
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  color: #1e40af;
  margin-top: 16px;
  line-height: 1.7;
}


/* landing logo follows the landing theme (portal sidebar keeps its own) */
#landing .logo { color: var(--llogo); }

/* footer heading labels */
.land-foot b { color: var(--lhead) !important; }

/* contact page cards follow the theme */
.contact-card {
  background: var(--lcard) !important;
  border-color: var(--lline) !important;
  color: var(--ltext) !important;
}
.contact-card .sec-title { color: var(--lhead) !important; }
.contact-card label { color: var(--lmut) !important; }
.contact-card input, .contact-card textarea {
  background: var(--card) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}
