/* ===== LANDING PAGE STYLES ===== */

.landing-body #page-main { display: none; }
.landing-body #page-main:not(.hidden) { display: block; }

/* Sembunyikan landing saat sudah login */
.landing-body.logged-in .land-nav,
.landing-body.logged-in .land-hero,
.landing-body.logged-in section.land-section,
.landing-body.logged-in .land-cta,
.landing-body.logged-in .land-footer { display: none !important; }

/* ===== NAVBAR ===== */
.land-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8%;
  background: rgba(28,25,23,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(249,115,22,0.12);
  transition: background 0.3s;
}

.land-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.land-nav-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.land-nav-title {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  line-height: 1.2;
}

.land-nav-sub {
  display: block;
  font-size: 0.72rem;
  color: #A8A29E;
  line-height: 1.2;
}

.land-btn-login {
  background: linear-gradient(135deg, #F97316, #F59E0B);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(249,115,22,0.35);
}

.land-btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.5);
}

/* ===== HERO ===== */
.land-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 8% 80px;
  position: relative;
  overflow: hidden;
  gap: 60px;
}

.land-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(249,115,22,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(245,158,11,0.12) 0%, transparent 60%),
    #1C1917;
  z-index: 0;
}

.land-hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.land-badge {
  display: inline-block;
  background: rgba(249,115,22,0.12);
  border: 1px solid rgba(249,115,22,0.35);
  color: #F59E0B;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.land-hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
}

.land-hero-content p {
  font-size: 1.1rem;
  color: #A8A29E;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.land-hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.land-btn-primary {
  background: linear-gradient(135deg, #F97316, #F59E0B);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(249,115,22,0.4);
  text-decoration: none;
  display: inline-block;
}

.land-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(249,115,22,0.55);
}

.land-btn-ghost {
  background: transparent;
  color: #D6D3D1;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
}

.land-btn-ghost:hover {
  border-color: rgba(249,115,22,0.5);
  color: #fff;
}

.land-hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.land-stat {
  display: flex;
  flex-direction: column;
}

.land-stat-num {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #F97316, #F59E0B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.land-stat-label {
  font-size: 0.78rem;
  color: #78716C;
  margin-top: 4px;
}

.land-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* Hero Visual */
.land-hero-visual {
  position: relative;
  z-index: 2;
  width: 380px;
  height: 380px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.land-hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(249,115,22,0.2);
  animation: spin-slow linear infinite;
}

.r1 { width: 340px; height: 340px; animation-duration: 20s; }
.r2 { width: 260px; height: 260px; animation-duration: 15s; border-color: rgba(245,158,11,0.15); animation-direction: reverse; }
.r3 { width: 180px; height: 180px; animation-duration: 10s; border-color: rgba(249,115,22,0.25); }

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.land-hero-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(249,115,22,0.4));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.land-float-card {
  position: absolute;
  background: rgba(41,37,36,0.9);
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  animation: float 3s ease-in-out infinite;
}

.fc1 { top: 20px; right: -10px; animation-delay: 0s; }
.fc2 { bottom: 60px; right: -20px; animation-delay: 0.8s; }
.fc3 { bottom: 20px; left: -10px; animation-delay: 1.6s; }

/* ===== SECTIONS ===== */
.land-section {
  padding: 100px 8%;
  background: #1C1917;
}

.land-section-dark {
  background: #141210;
}

.land-container {
  max-width: 1100px;
  margin: 0 auto;
}

.land-section-head {
  text-align: center;
  margin-bottom: 64px;
}

.land-section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  margin: 16px 0 12px;
  line-height: 1.2;
}

.land-section-head p {
  color: #78716C;
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ===== FEATURES GRID ===== */
.land-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.land-feature-card {
  background: #292524;
  border: 1px solid rgba(249,115,22,0.12);
  border-radius: 20px;
  padding: 36px 28px;
  position: relative;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.land-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #F97316, #F59E0B);
  opacity: 0;
  transition: opacity 0.25s;
}

.land-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249,115,22,0.35);
  box-shadow: 0 16px 40px rgba(249,115,22,0.12);
}

.land-feature-card:hover::before { opacity: 1; }

.land-feature-card.featured {
  border-color: rgba(249,115,22,0.4);
  background: linear-gradient(160deg, #2d1a08, #292524);
}

.land-feature-card.featured::before { opacity: 1; }

.land-feature-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: linear-gradient(135deg, #F97316, #F59E0B);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.land-feature-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.land-feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.land-feature-card p {
  color: #78716C;
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ===== KELAS GRID ===== */
.land-kelas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.land-kelas-card {
  background: #1C1917;
  border: 1px solid rgba(249,115,22,0.15);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: transform 0.25s, border-color 0.25s;
  overflow: hidden;
}

.land-kelas-card.active {
  border-color: rgba(249,115,22,0.5);
  background: linear-gradient(160deg, #2d1a08, #1C1917);
}

.land-kelas-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: linear-gradient(135deg, #F97316, #F59E0B);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.land-kelas-num {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #F97316, #F59E0B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

.land-kelas-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.land-kelas-card p {
  color: #78716C;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.land-kelas-bab {
  display: inline-block;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.25);
  color: #F59E0B;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
}

/* ===== CTA ===== */
.land-cta {
  padding: 100px 8%;
  background: #1C1917;
}

.land-cta-inner {
  background: linear-gradient(135deg, #2d1a08, #1f1410);
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 28px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.land-cta-deco {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.d1 {
  width: 300px; height: 300px;
  background: #F97316;
  top: -100px; left: -100px;
}

.d2 {
  width: 200px; height: 200px;
  background: #F59E0B;
  bottom: -80px; right: -60px;
}

.land-cta-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.land-cta-inner p {
  color: #A8A29E;
  font-size: 1rem;
  margin-bottom: 36px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.land-cta-inner .land-btn-primary {
  position: relative;
  z-index: 1;
}

/* ===== FOOTER ===== */
.land-footer {
  background: #141210;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 32px 8%;
}

.land-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.land-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.land-footer-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.land-footer-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.land-footer-sub {
  font-size: 0.75rem;
  color: #57534E;
}

.land-footer-copy {
  font-size: 0.82rem;
  color: #57534E;
}

/* ===== MODAL LOGIN ===== */
.land-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.land-modal-overlay.hidden { display: none !important; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.land-modal-box {
  background: #292524;
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: 24px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.land-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.07);
  border: none;
  color: #A8A29E;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.land-modal-close:hover {
  background: rgba(249,115,22,0.2);
  color: #fff;
}

.land-modal-logo { margin-bottom: 16px; }

.land-modal-box h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .land-hero {
    flex-direction: column;
    text-align: center;
    padding: 100px 6% 60px;
  }
  .land-hero-content p { margin: 0 auto 36px; }
  .land-hero-btns { justify-content: center; }
  .land-hero-stats { justify-content: center; }
  .land-hero-visual { width: 280px; height: 280px; }
  .r1 { width: 260px; height: 260px; }
  .r2 { width: 200px; height: 200px; }
  .r3 { width: 140px; height: 140px; }
  .land-hero-logo { width: 110px; height: 110px; }
  .fc1, .fc2, .fc3 { display: none; }
}

@media (max-width: 600px) {
  .land-nav { padding: 14px 5%; }
  .land-section { padding: 70px 5%; }
  .land-cta { padding: 70px 5%; }
  .land-cta-inner { padding: 48px 28px; }
  .land-footer { padding: 24px 5%; }
  .land-footer-inner { flex-direction: column; text-align: center; }
  .land-modal-box { padding: 36px 24px; }
}

/* ===== MASUKAN WALI MURID ===== */
.land-masukan-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: #292524;
  border: 1px solid rgba(249,115,22,0.15);
  border-radius: 24px;
  padding: 40px;
}

.land-masukan-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.land-masukan-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.land-masukan-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #D6D3D1;
}

.land-masukan-field input,
.land-masukan-field select,
.land-masukan-field textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.land-masukan-field input:focus,
.land-masukan-field select:focus,
.land-masukan-field textarea:focus {
  border-color: #F97316;
}

.land-masukan-field input::placeholder,
.land-masukan-field textarea::placeholder { color: #57534E; }

.land-masukan-field select option { background: #292524; color: #fff; }

.land-masukan-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #86EFAC;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* ===== INBOX GURU ===== */
.masukan-item {
  background: #292524;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.masukan-item:hover { border-color: rgba(249,115,22,0.3); background: #2f2b29; }

.masukan-baru {
  border-color: rgba(249,115,22,0.35) !important;
  background: linear-gradient(135deg, #2a1e10, #292524) !important;
}

.masukan-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.masukan-kategori-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-right: 8px;
}

.masukan-kelas-tag {
  font-size: 0.75rem;
  color: #78716C;
  background: rgba(255,255,255,0.05);
  padding: 3px 10px;
  border-radius: 999px;
}

.masukan-new-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #F97316;
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
}

.masukan-waktu { font-size: 0.78rem; color: #57534E; }

.masukan-nama {
  font-size: 0.92rem;
  color: #D6D3D1;
  margin-bottom: 8px;
}

.masukan-pesan {
  font-size: 0.9rem;
  color: #78716C;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .land-masukan-wrap { padding: 24px 20px; }
  .land-masukan-row { grid-template-columns: 1fr; gap: 0; }
}
