/* ==========================================================================
   Gerakan #SatuSekolahSatuGuruAgama — Landing Page
   Palette hijau Kemenag: forest / moss / sage / mint + emas
   ========================================================================== */
:root {
  --pg-forest: #0b3d26;
  --pg-forest-deep: #062b1a;
  --pg-moss: #2f6f45;
  --pg-sage: #6f9e62;
  --pg-mint: #d6ecd9;
  --pg-mint-soft: #eef7ef;
  --pg-cream: #f7faf5;
  --pg-gold: #ddb34e;
  --pg-gold-soft: #f2d98c;
}

.landing {
  color: #23362a;
  overflow-x: clip;
}

.landing .breakout {
  width: 100%;
  margin-left: 0;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.landing .hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 140px;
  color: #fff;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(111, 158, 98, 0.45), transparent 62%),
    radial-gradient(700px 400px at 5% 110%, rgba(226, 183, 86, 0.22), transparent 60%),
    linear-gradient(160deg, #143d2a 0%, #1e5a3a 35%, #2f6f45 70%, #3f8f57 100%);
}

.landing .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.20;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.hero-badge .live-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pg-gold);
  animation: pipBlink 1.6s ease-in-out infinite;
}

.landing .hero h1 {
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
}

.hero-lead {
  max-width: 620px;
  color: #eaf7ee;
}

.hero-stats .stat-box {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  backdrop-filter: blur(6px);
}

.hero-stats .stat-num {
  font-weight: 800;
  color: var(--pg-gold-soft);
  text-shadow: 0 0 18px rgba(221, 179, 78, 0.45);
}

.hero-stats .stat-label {
  color: #dcefe0;
}

/* ----- Intro SVG (mega scape: lighthouse + map Indonesia) ----- */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-backdrop .mc-sky {
  position: absolute;
  width: 100%;
  left: 0;
  animation: skyDrift 26s ease-in-out infinite alternate;
}

@keyframes skyDrift {
  0%   { transform: translateX(-1.5%); }
  100% { transform: translateX(1.5%); }
}

.hero-backdrop .mc-glow {
  position: absolute;
  right: 4%;
  bottom: 26%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 217, 140, 0.28), transparent 65%);
  filter: blur(8px);
  animation: glowBreath 4.5s ease-in-out infinite;
}

@keyframes glowBreath {
  0%, 100% { opacity: 0.5; transform: scale(0.92); }
  50%      { opacity: 1;   transform: scale(1.06); }
}

/* ----- Light beams from lighthouse ----- */
.beam {
  transform-box: fill-box;
  transform-origin: 12% 6%;
  animation: beamSweep 7s ease-in-out infinite;
}

.beam-2 { animation-delay: -3.5s; }

@keyframes beamSweep {
  0%, 100% { opacity: 0.28; transform: skewY(-7deg); }
  50%      { opacity: 0.92; transform: skewY(6deg); }
}

.lantern-glow { animation: glowBreath 2.8s ease-in-out infinite; }

.water-glow {
  animation: glowBreath 6s ease-in-out infinite;
}

.map-dot {
  animation: mapPulse 3s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.35s);
}

@keyframes mapPulse {
  0%, 100% { opacity: 0.35; r: 3;  }
  50%      { opacity: 1;    r: 5; }
}

/* ----- Floating people avatars ----- */
.people-float {
  animation: floatY 5.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.6s);
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.people-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pg-forest);
  box-shadow: 0 10px 26px rgba(6, 43, 26, 0.35);
}

.people-chip .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.78rem;
}

.people-chip .role {
  font-size: 0.72rem;
  line-height: 1.1;
  display: block;
}

.avatar-murid    { background: linear-gradient(135deg, #41b883, #2f6f45); }
.avatar-guru     { background: linear-gradient(135deg, #ddb34e, #a97b1f); }
.avatar-kepsek   { background: linear-gradient(135deg, #5aa1e2, #2b6fb3); }

/* ----- Hero buttons ----- */
.btn-hero {
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-hero:hover { transform: translateY(-3px); }

.btn-pulse {
  background: linear-gradient(135deg, #3f9a61, #2f7a49);
  border: none;
  color: #fff;
  animation: btnPulse 2.4s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(63, 154, 97, 0.55); }
  50%      { box-shadow: 0 0 0 16px rgba(63, 154, 97, 0); }
}

.btn-outline-green {
  background: transparent;
  border: 2px solid #9fd0ad;
  color: #eaf7ee;
}

.btn-outline-green::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #9fd0ad, #6f9e62);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: -1;
}

.btn-outline-green:hover {
  color: var(--pg-forest);
  border-color: var(--pg-sage);
}

.btn-outline-green:hover::before { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   ROLE CARDS
   -------------------------------------------------------------------------- */
.roles-wrap { position: relative; }

.role-card {
  position: relative;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.role-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(11, 61, 38, 0.18);
}

.role-card::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.role-duta {
  background: linear-gradient(165deg, #bcd9bd 0%, #dbeedb 60%, #eef7ef 100%);
  color: #1c4028;
}

.role-relawan {
  background: linear-gradient(165deg, #d6ecd9 0%, #e6f2e8 55%, #eef7ef 100%);
  color: #1c4028;
}

.role-kakak {
  background: linear-gradient(165deg, #fdf6e3 0%, #fef9e7 60%, #fffbeb 100%);
  color: #3a2a06;
}

.role-icon {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  animation: iconBob 4s ease-in-out infinite;
}

.role-duta .role-icon    { background: rgba(255, 255, 255, 0.75); color: #1f7a43; }
.role-relawan .role-icon { background: #2f6f45; color: #fff; }
.role-kakak .role-icon   { background: var(--pg-gold); color: #3a2a06; }

@keyframes iconBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-7px) rotate(-4deg); }
}

.role-card .btn {
  border-radius: 999px;
}

.role-duta .btn    { background: #1f7a43; border: none; color: #fff; }
.role-relawan .btn { background: #2f6f45; border: none; color: #fff; }
.role-kakak .btn   { background: var(--pg-gold); border: none; color: #3a2a06; }

.role-kakak .btn:hover   { background: #e8be5c; }
.role-relawan .btn:hover { background: #3a8a5a; }
.role-duta .btn:hover    { background: #2f8f4f; }

.role-chip {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.role-duta .role-chip    { background: #dff0e1; color: #1f7a43; }
.role-relawan .role-chip { background: rgba(47, 111, 69, 0.14); color: #1f5333; }
.role-kakak .role-chip   { background: rgba(221, 179, 78, 0.32); color: #92400e; }

/* --------------------------------------------------------------------------
   DATA FLOW — laporan menuju Kemendikbudristek & Kemenag (untuk RDP)
   -------------------------------------------------------------------------- */
.flow-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 360px at 50% 0%, rgba(111, 158, 98, 0.18), transparent 65%),
    var(--pg-cream);
  border-radius: 26px;
}

.flow-lines { position: absolute; inset: 0; pointer-events: none; }

.flow-path {
  fill: none;
  stroke: rgba(47, 111, 69, 0.35);
  stroke-width: 2;
  stroke-dasharray: 6 10;
  animation: flowDash 6s linear infinite;
}

.flow-path-2 { animation-direction: reverse; }

@keyframes flowDash {
  to { stroke-dashoffset: -96; }
}

.flow-particles {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pg-sage);
  opacity: 0;
  animation: particleFly linear infinite;
}

@keyframes particleFly {
  0%   { opacity: 0; }
  15%  { opacity: 0.9; }
  85%  { opacity: 0.9; }
  100% { opacity: 0; }
}

.flow-source {
  position: relative;
  background: #fff;
  border: 1px solid #dbe8dc;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(11, 61, 38, 0.08);
}

.flow-source .src-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.flow-source strong { color: var(--pg-forest); }
.flow-source small  { color: #5b7765; }

.flow-center {
  position: relative;
  z-index: 2;
  padding: 30px 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 30% 20%, rgba(242, 217, 140, 0.16), transparent 55%),
    linear-gradient(160deg, var(--pg-forest), var(--pg-moss));
  color: #fff;
  box-shadow: 0 24px 60px rgba(11, 61, 38, 0.35);
  animation: centerFloat 5s ease-in-out infinite;
}

@keyframes centerFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.flow-center .bel-icon {
  margin: 0 auto 12px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: ringPulse 3s ease-out infinite;
}

.flow-center .rdp-badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--pg-gold);
  color: #3a2a06;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

@keyframes ringPulse {
  0% { box-shadow: 0 0 0 0 rgba(221, 179, 78, 0.55); }
  80%, 100% { box-shadow: 0 0 0 22px rgba(221, 179, 78, 0); }
}

/* --------------------------------------------------------------------------
   TIMELINE — Negara Menjamin, Kita yang Mengawal
   -------------------------------------------------------------------------- */
.mengawal-section {
  background:
    radial-gradient(500px 260px at 12% 10%, rgba(226, 183, 86, 0.12), transparent 60%),
    linear-gradient(180deg, var(--pg-mint-soft), #e2f0e4);
  border-radius: 26px;
}

.timeline { position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 22px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--pg-sage), var(--pg-gold));
  animation: growLine 3s ease-in-out infinite alternate;
}

@keyframes growLine {
  from { transform: scaleY(0.96); transform-origin: top; }
  to   { transform: scaleY(1);    transform-origin: top; }
}

.tl-step {
  position: relative;
  padding-left: 60px;
  margin-bottom: 22px;
}

.tl-step:last-child { margin-bottom: 0; }

.tl-dot {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--pg-moss);
  border: 2px solid var(--pg-sage);
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(11, 61, 38, 0.15);
  animation: popDot 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.35s);
}

@keyframes popDot {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}

.tl-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dcebe0;
  border-radius: 16px;
}

.certificate {
  border: 2px dashed var(--pg-gold);
  background: rgba(255, 255, 255, 0.95);
  color: #5b4706;
  border-radius: 18px;
  animation: certGlow 3.2s ease-in-out infinite;
}

@keyframes certGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(221, 179, 78, 0); }
  50%      { box-shadow: 0 0 26px 2px rgba(221, 179, 78, 0.45); }
}

/* --------------------------------------------------------------------------
   DUKUNGAN ALTERNATIF — Pejuang Digital
   -------------------------------------------------------------------------- */
.social-section { border-radius: 22px; }

.social-bubble {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 10px 24px rgba(11, 61, 38, 0.16);
  animation: floatY 5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.7s);
}

.fb  { background: linear-gradient(135deg, #4b7bec, #3858e9); }
.ig  { background: linear-gradient(135deg, #f58529, #dd2a7b); }
.wa  { background: linear-gradient(135deg, #2bb673, #128c4e); }
.xt  { background: linear-gradient(135deg, #3c3c3c, #171816); }

.share-msg {
  position: relative;
  background: #fff;
  border: 1px solid #dbe8dc;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(11, 61, 38, 0.08);
  animation: msgRise 6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 1.2s);
}

@keyframes msgRise {
  0%   { transform: translateY(10px); opacity: 0; }
  18%  { transform: translateY(0);    opacity: 1; }
  82%  { transform: translateY(0);    opacity: 1; }
  100% { transform: translateY(-12px); opacity: 0; }
}

.hash-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pg-forest), var(--pg-moss));
  color: #fff;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   FINAL CTA
   -------------------------------------------------------------------------- */
.final-cta {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(820px 420px at 88% -20%, rgba(226, 183, 86, 0.18), transparent 60%),
    radial-gradient(600px 380px at 0% 120%, rgba(111, 158, 98, 0.25), transparent 60%),
    linear-gradient(140deg, #145a38 0%, #256e45 55%, #2f7a49 100%);
  border-radius: 0;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.18;
}

.radar-ring {
  position: absolute;
  border: 1.5px solid rgba(221, 179, 78, 0.5);
  border-radius: 50%;
  animation: radarN 4.5s ease-out infinite;
  pointer-events: none;
}

@keyframes radarN {
  0%       { opacity: 0; transform: scale(0.2); }
  25%      { opacity: 0.8; }
  100%     { opacity: 0; transform: scale(1.25); }
}

.radar-x { opacity: 0; }
.radar-y { opacity: 0; }

.btn-final {
  border-radius: 999px;
  font-weight: 800;
  position: relative;
  overflow: hidden;
}

.btn-final-white {
  background: #fff;
  color: var(--pg-moss);
  border: 3px solid var(--pg-forest);
  box-shadow: 0 12px 34px rgba(6, 43, 26, 0.35);
}

.btn-final-white::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--pg-moss), var(--pg-forest));
  transform: translateX(-101%);
  transition: transform 0.35s ease;
  z-index: 0;
}

.btn-final-white:hover {
  color: #fff;
  border-color: #fff;
}

.btn-final-white:hover::before { transform: translateX(0); }

.btn-final-white > * { position: relative; z-index: 1; }

.registered-section {
  background:
    radial-gradient(500px 240px at 8% 0%, rgba(221, 179, 78, 0.14), transparent 65%),
    linear-gradient(135deg, #fff 0%, #f5faf5 100%);
  border: 1px solid #dbe8dc;
  border-radius: 26px;
}

.registered-total {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 18px;
  background: #e6f2e8;
  color: var(--pg-forest);
}

.registered-total-number {
  color: var(--pg-moss);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.registered-total-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.registered-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dbe8dc;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(11, 61, 38, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.registered-card:hover {
  transform: translateY(-3px);
  border-color: var(--pg-sage);
  box-shadow: 0 14px 28px rgba(11, 61, 38, 0.11);
}

.registered-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--pg-gold);
  color: #5b4706;
  font-size: 1.05rem;
}

.registered-name {
  color: var(--pg-forest);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.registered-empty {
  padding: 24px;
  color: #5b7765;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed #b9d2bf;
  border-radius: 16px;
}

.registered-cta {
  display: flex;
}

@media (min-width: 992px) {
  .registered-cta {
    justify-content: flex-end;
  }
}

.btn-registered-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pg-moss), var(--pg-forest));
  border: 1px solid var(--pg-forest);
  color: #fff;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn-registered-primary:hover,
.btn-registered-primary:focus-visible {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 12px 26px rgba(6, 43, 26, 0.28);
}

/* --------------------------------------------------------------------------
   REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .landing *,
  .landing *::before,
  .landing *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}