/* =========================================================
   MulaEarn — Premium Purple/White Theme (Child)
   - Header & footer: dark premium purple
   - Page background: white
   - Reusable utility classes
   - Typing headline styling
   ========================================================= */

:root{
  /* Brand accents */
  --ph-purple-1:#c084fc;
  --ph-purple-2:#8b5cf6;
  --ph-purple-3:#7c3aed;
  --ph-pink:#d946ef;

  /* Dark surfaces (header/footer/hero) */
  --ph-dark-1:#090422;
  --ph-dark-2:#14083a;
  --ph-dark-3:#1f0f55;

  /* Light surfaces */
  --ph-bg:#ffffff;
  --ph-surface:#ffffff;
  --ph-surface-2:#f8fafc;

  /* Text */
  --ph-text:#0f172a;
  --ph-muted:#475569;

  /* Borders / shadows */
  --ph-border:rgba(15,23,42,.10);
  --ph-shadow:0 16px 45px rgba(2,6,23,.10);

  /* Links / buttons */
  --ph-link:#6d28d9;
  --ph-btn-text:#ffffff;
}

html, body{
  background: var(--ph-bg);
  color: var(--ph-text);
}

.site, #page{
  background: var(--ph-bg);
}

/* =========================================================
   Header/Footer
   ========================================================= */
.mulaearn-header,
.mulaearn-footer{
  color: #fff;
  background:
    radial-gradient(900px 420px at 50% 10%, rgba(168,85,247,.14), transparent 60%),
    linear-gradient(90deg, var(--ph-dark-1), var(--ph-dark-2) 45%, var(--ph-dark-3));
}

.mulaearn-header a,
.mulaearn-footer a{
  color: rgba(255,255,255,0.92);
  text-decoration: none;
}
.mulaearn-header a:hover,
.mulaearn-footer a:hover{
  color: #fff;
  text-decoration: underline;
}

/* =========================================================
   Reusable Sections
   ========================================================= */
.ph-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.ph-section{ padding: 80px 0; }

.ph-section--tint{
  background: var(--ph-surface-2);
  border-top: 1px solid var(--ph-border);
  border-bottom: 1px solid var(--ph-border);
}

/* Cards */
.ph-card{
  background: var(--ph-surface);
  border: 1px solid var(--ph-border);
  border-radius: 16px;
  box-shadow: var(--ph-shadow);
}
.ph-card--soft{
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(8px);
}

/* Buttons */
.ph-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.ph-btn--primary{
  color: var(--ph-btn-text);
  background: linear-gradient(90deg, var(--ph-purple-2), var(--ph-pink));
  box-shadow: 0 14px 40px rgba(139,92,246,.28);
}
.ph-btn--primary:hover{
  transform: scale(1.03);
  box-shadow: 0 22px 70px rgba(124,58,237,.34);
}

.ph-btn--ghost{
  color: var(--ph-text);
  background: transparent;
  border: 2px solid rgba(124,58,237,.28);
}
.ph-btn--ghost:hover{
  background: rgba(139,92,246,.08);
}

/* =========================================================
   Hero + typing headline
   ========================================================= */
.ph-hero{
  padding: 110px 0 80px;
  color:#f8f7ff;
  background:
    radial-gradient(900px 420px at 50% 10%, rgba(168,85,247,.16), transparent 60%),
    linear-gradient(180deg, #1a1140 0%, #211654 54%, #2b1d66 100%);
}

.ph-hero__kicker{
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  color: #e9d5ff;
  background: rgba(139,92,246,.18);
  border: 1px solid rgba(216,180,254,.38);
}

.ph-hero__title{
  margin-top: 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  font-weight: 900;
  color: #ffffff;
}

.ph-typing{
  background: linear-gradient(90deg, #f0abfc, #c084fc, #8b5cf6, #f0abfc);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: phGradientMove 4.5s ease infinite;
}
@keyframes phGradientMove{
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.ph-cursor{
  display:inline-block;
  width: 3px;
  height: 1em;
  background: #ddd6fe;
  margin-left: 6px;
  vertical-align: -0.12em;
  animation: phBlink 0.75s infinite;
}
@keyframes phBlink{
  0%,49% { opacity: 1; }
  50%,100% { opacity: 0; }
}

.ph-hero__subtitle{
  margin-top: 16px;
  max-width: 760px;
  color: rgba(248,247,255,.86);
  font-size: 16px;
  line-height: 1.75;
}

/* =========================================================
   Responsive helpers
   ========================================================= */
.ph-grid{ display: grid; gap: 20px; }
.ph-grid--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ph-grid--4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px){
  .ph-grid--4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-grid--3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .ph-grid--4, .ph-grid--3{ grid-template-columns: 1fr; }
  .ph-section{ padding: 60px 0; }
  .ph-hero{ padding: 80px 0 60px; }
}

/* =========================================================
   Header-emerging ticker (Purple style)
   ========================================================= */
#mulaearn-ticker{
  position: fixed;
  left: 0;
  right: 0;
  top: 72px;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  justify-content: center;
  padding: 0 12px;
}

#mulaearn-ticker .pill{
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  background: rgba(9,4,34,.92);
  border: 1px solid rgba(216,180,254,.28);
  box-shadow: 0 14px 28px rgba(2,6,23,.35);
  border-radius: 16px;
  padding: 10px 12px;
  transform: translateY(-24px);
  opacity: 0;
}

#mulaearn-ticker .avatar{
  grid-row: 1 / span 2;
  grid-column: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
  letter-spacing: .02em;
  color: #2e1065;
  background: radial-gradient(circle at 30% 30%, #f5d0fe, #c084fc);
  border: 2px solid rgba(255,255,255,.22);
}

#mulaearn-ticker .text{
  grid-column: 2;
  grid-row: 1;
  font-size: 13px;
  font-weight: 750;
  color: rgba(255,255,255,.95);
  line-height: 1.25;
}

#mulaearn-ticker .text strong{
  color: #e9d5ff;
  font-weight: 1000;
}

#mulaearn-ticker .time{
  grid-column: 2;
  grid-row: 2;
  font-size: 12px;
  color: rgba(255,255,255,.72);
}

#mulaearn-ticker.run .pill{
  animation: mulaearnDrop 6.8s ease forwards;
}

@keyframes mulaearnDrop{
  0%   { transform: translateY(-26px); opacity: 0; }
  12%  { transform: translateY(0px);  opacity: 1; }
  82%  { transform: translateY(0px);  opacity: 1; }
  100% { transform: translateY(-10px); opacity: 0; }
}

@media (max-width: 600px){
  #mulaearn-ticker .pill{ padding: 9px 10px; border-radius: 14px; }
  #mulaearn-ticker .text{ font-size: 12.6px; }
  #mulaearn-ticker .avatar{ width: 40px; height: 40px; }
}