:root{
  /* ===== Base Colors (Clean Midnight System) ===== */
  --bg0:#0B1220;
  --bg1:#0F172A;
  --card:#111827;
  --card2:#1F2937;
  --text:#F3F4F6;
  --muted:#9CA3AF;
  --line:rgba(255,255,255,.08);
  --shadow:0 12px 40px rgba(0,0,0,.45);
  --radius:18px;

  /* ===== Single Brand Accent ===== */
  --primary:#6366F1;
  --primary-soft:rgba(99,102,241,.15);

  /* Mobile comfort */
  --tap:44px;
  --container-pad:32px;
  --container-pad-sm:20px;
}

/* ===== Reset & Base ===== */
*{ box-sizing:border-box; }
html,body{ height:100%; }

html{
  text-size-adjust:100%;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family:"Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:linear-gradient(180deg, var(--bg1), var(--bg0));
  color:var(--text);
  overflow-x:hidden;
  font-size:16px;
  line-height:1.9;
}

a{ color:inherit; text-decoration:none; }

/* Normalize buttons */
button{
  font-family:inherit;
  color:inherit;
  background:none;
  border:none;
  padding:0;
  margin:0;
  text-align:inherit;
}
button:focus{ outline:none; }

/* ===== Layout ===== */
.container{
  width:min(1100px, calc(100% - var(--container-pad)));
  margin-inline:auto;
}
.page{
  padding:22px 0 40px;
  /* iOS safe area padding (harmless elsewhere) */
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}

.layout{
  display:grid;
  grid-template-columns:1.6fr .9fr;
  gap:14px;
  margin-top:14px;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;

  /* Option C: force content above background glows */
  position:relative;
  z-index:1;
}

/* =========================================================
   Background FX (used by base.html: .bg .stars .glow...)
   ========================================================= */
.bg{ position:fixed; inset:0; pointer-events:none; z-index:-1; }

.stars{
  position:absolute; inset:0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.85) 1px, transparent 2px),
    radial-gradient(1px 1px at 72% 28%, rgba(255,255,255,.75) 1px, transparent 2px),
    radial-gradient(1px 1px at 42% 62%, rgba(255,255,255,.70) 1px, transparent 2px),
    radial-gradient(1px 1px at 88% 70%, rgba(255,255,255,.60) 1px, transparent 2px),
    radial-gradient(1px 1px at 22% 82%, rgba(255,255,255,.65) 1px, transparent 2px),
    radial-gradient(1px 1px at 58% 12%, rgba(255,255,255,.55) 1px, transparent 2px);
  opacity:.65;
  filter: blur(.1px);
  animation: drift 18s linear infinite;
}
@keyframes drift{
  0%{ transform:translateY(0px); }
  50%{ transform:translateY(10px); }
  100%{ transform:translateY(0px); }
}

.glow{
  position:absolute;
  width:520px; height:520px;
  border-radius:999px;
  filter: blur(60px);
  opacity:.35;
}
.glow-1{ display:none !important; }
.glow-2{
  right:-180px;
  bottom:40px;
  background: var(--primary);
  opacity:.15;
  filter: blur(120px);
}
/* =========================================================
   Topbar / Brand / Nav (used by base.html)
   ========================================================= */
.topbar{
  position:sticky; top:0;
  backdrop-filter: blur(14px);
  background: rgba(15,23,42,.75);
  border-bottom:1px solid var(--line);
  z-index:50;
}

.topbar__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
  gap:14px;
}

/* Brand block */
.brand{
  display:flex;
  align-items:center;
  font-weight:800;
  letter-spacing:.2px;
}

.brand__logo{
  width:62px;        /* bigger */
  height:62px;       /* bigger */
  display:flex;
  align-items:center;
  justify-content:center;
  background:transparent;  /* remove gradient */
  border:none;             /* remove border */
  box-shadow:none;         /* remove shadow */
}

.brand__logo-img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.brand__text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.brand__name{
  font-size:18px;
}

.brand__tagline{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
  font-weight:600;
}

/* Nav */
.nav{
  display:flex;
  align-items:center;
  gap:10px;
}

.nav__link{
  padding:10px 12px; /* slightly larger tap target */
  min-height: var(--tap);
  display:inline-flex;
  align-items:center;

  border-radius:12px;
  border:1px solid transparent;
  color:var(--muted);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.nav__link:hover{
  border-color:var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
}

/* Primary pill (we added in base.html) */
.nav__link--primary{
  padding:10px 16px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
}

/* Active state (we added in base.html) */
.nav__link.is-active{
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(99,102,241,.35);
}

/* ===== Hero / Header ===== */
.hero{
  padding:20px 18px 26px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:
    linear-gradient(135deg,
      var(--primary-soft),
      rgba(99,102,241,.05)
    );
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;

  /* Option C: force content above background glows */
  z-index:1;
}
.hero::before{
  content:"";
  position:absolute;
  left:-120px;
  top:60px;
  width:240px;
  height:240px;
  border-radius:999px;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 65%);
  opacity:.30;
  filter: blur(14px);
  pointer-events:none;
}



.hero__top{
  display:flex;
  justify-content:space-between;
  gap:12px;
}

/* title polish */
.title{
  margin:0;
  font-size:clamp(26px,4vw,36px);
  letter-spacing:.2px;
}
.subtitle{
  margin-top:6px;
  color:var(--muted);
  font-size:15px;
}

/* micro header line */
.micro{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  font-size:13px;
  color:var(--muted);
}
.micro span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  opacity:.9;
}

/* date badge */
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0;
  border:none;
  background:none;
  font-size:13px;
  white-space:nowrap;
  color:var(--muted);
}

/* scroll hint */
.scroll-hint{
  position:absolute;
  left:50%;
  bottom:10px;
  transform:translateX(-50%);
  font-size:18px;
  opacity:.45;
  animation: bounce 1.6s infinite;
  pointer-events:none;
}

@keyframes bounce{
  0%,100%{ transform:translate(-50%, 0); }
  50%{ transform:translate(-50%, 6px); }
}

/* ===== Prediction Sections ===== */
.sections{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.section{
  position:relative;
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px 16px 16px 48px;
  background: var(--card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* Hover depth */
.section:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.15);
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
}

/* ===== AI active typing highlight ===== */
.section.is-typing{
  background: var(--primary-soft);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(99,102,241,.25),
              0 12px 32px rgba(0,0,0,.55);
}

/* icon placeholder */
.section::before{
  content:"✦";
  position:absolute;
  top:16px;
  left:14px;
  width:26px;
  height:26px;
  border-radius:8px;
  display:grid;
  place-items:center;
  font-size:14px;
  background:rgba(255,255,255,.08);
  border:1px solid var(--line);
}

/* icon pulse when typing */
.section.is-typing::before{
  background: rgba(99,102,241,.25);
  border-color: var(--primary);
  animation: pulse 1.2s ease-in-out infinite;
}

/* section text */
.section__title{
  font-size:14px;
  font-weight:700;
  margin-bottom:6px;
}

.section__text{
  font-size:15px;
  line-height:1.9;
  color:var(--muted);
  max-width:65ch;
  white-space:pre-line;
}

.section.is-typing .section__text{
  color: var(--text);
}

@keyframes pulse{
  0%{ transform: scale(1); opacity:.9; }
  50%{ transform: scale(1.12); opacity:1; }
  100%{ transform: scale(1); opacity:.9; }
}

/* ===== Tip Highlight ===== */
.section--tip{
  background: var(--primary-soft);
  border-color: var(--primary);
}

.section--tip::before{
  background: rgba(99,102,241,.25);
  border-color: var(--primary);
}

/* ===== Astrology Proof ===== */
.proof{
  margin-top:16px;
  padding:14px 16px;
  border-radius:16px;
  border:1px dashed var(--line);
  background:rgba(255,255,255,.03);
  font-size:14px;
  color:var(--muted);
}
.proof__title{
  font-size:13px;
  margin-bottom:6px;
}

/* AI typing reveal */
.section__text.ai-reveal{
  opacity:0;
}

/* ===== Buttons ===== */
.btns{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.btn{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  cursor:pointer;

  /* mobile tap target */
  min-height: var(--tap);
}
.btn:hover{ background:rgba(255,255,255,.08); }
.btn__label{ font-weight:700; }
.btn__sub{ font-size:12px; color:var(--muted); }
.btn__icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
}

/* ===== Back Link ===== */
.back{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
  padding:10px 12px;
  min-height: var(--tap);
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--muted);
}

/* ===== Footer ===== */
.footer{
  margin-top:40px;
  border-top:1px solid var(--line);
  background: rgba(15,23,42,.75);
  backdrop-filter:blur(14px);
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  padding:14px 0;
  font-size:14px;
  color:var(--muted);
}

/* ===== Responsive ===== */
@media (max-width:900px){
  .layout{ grid-template-columns:1fr; }
  .hero__top{ flex-direction:column; }
}

@media (max-width:640px){
  .container{
    width:min(1100px, calc(100% - var(--container-pad-sm)));
  }

  .page{ padding:18px 0 34px; }

  .topbar__inner{ padding:12px 0; }

  .nav{ display:none; }
  .brand__tagline{ display:none; }
  .brand__name{ font-size:16px; }

  .card{ padding:14px; }

  .subtitle{ font-size:14px; }

  .section{
    padding:14px 14px 14px 46px;
  }

  .section__text{
    font-size:15px;
    max-width: 100%;
  }

  .footer__inner{
    flex-direction:column;
    gap:8px;
  }
}

/* extra-small phones */
@media (max-width:420px){
  body{ font-size: 15.5px; }

  .hero{ padding:16px 14px 20px; }

  .title{ font-size: clamp(22px, 6vw, 30px); }

  .micro{ font-size:12.5px; }

  .section::before{
    left:12px;
    top:14px;
  }

  .btn{ padding:12px 12px; }
}

/* =========================================================
   ================= HOMEPAGE STYLES =======================
   ========================================================= */

/* ===== Hero ===== */
.home-hero{
  padding:48px 24px 60px;
  text-align:center;
  border-radius:var(--radius);
  border:1px solid var(--line);

  background:
    radial-gradient(circle at 20% 30%, rgba(99,102,241,.25), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(99,102,241,.18), transparent 60%),
    linear-gradient(135deg, var(--primary-soft), rgba(99,102,241,.05));
  background-size:200% 200%;
  animation: heroShift 12s ease infinite;

  box-shadow: var(--shadow);
  margin-bottom:30px;
}

@keyframes heroShift{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}

.home-hero__kicker{
  color:var(--muted);
  font-size:14px;
  margin-bottom:10px;
}

.home-hero__title{
  margin:0;
  font-size:clamp(28px,5vw,42px);
  line-height:1.3;
}

.home-hero__desc{
  margin:16px auto 0;
  max-width:60ch;
  color:var(--muted);
  font-size:16px;
  line-height:1.9;
}

.home-hero__cta{
  margin-top:24px;
}

/* ===== Buttons ===== */
.home-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 22px;
  border-radius:999px;
  font-weight:800;
  min-height:var(--tap);
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  transition:transform .15s ease, background .15s ease;
}

.home-btn--primary{
  background: var(--primary);
  border: 1px solid var(--primary);
  color:#ffffff;
  box-shadow: 0 10px 28px rgba(99,102,241,.35);
  position:relative;
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  animation: ctaPulse 3s infinite;
}

.home-btn--primary:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(99,102,241,.45);
  background: #575AEF;
}

.home-btn--primary:active{
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(99,102,241,.30);
}

@keyframes ctaPulse{
  0%{ box-shadow: 0 0 0 0 rgba(99,102,241,.4); }
  70%{ box-shadow: 0 0 0 14px rgba(99,102,241,0); }
  100%{ box-shadow: 0 0 0 0 rgba(99,102,241,0); }
}

.home-btn:not(.home-btn--primary):hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.10);
}

/* ===== Sections ===== */
.home-section{
  margin-top:50px;
}

.home-section--alt{
  padding:28px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
}

.home-section__title{
  font-size:22px;
  margin:0;
}

/* ===== Sky Snapshot ===== */
.home-section--center{
  text-align:center;
  max-width:1000px;
  margin-inline:auto;
}

.home-section__header{
  margin-bottom:24px;
}

.home-section__divider{
  width:60px;
  height:1px;
  background:var(--line);
  margin:12px auto 0;
  opacity:.6;
}

.sky-dashboard{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
  margin-top:24px;
}

.sky-card{
  padding:22px 18px;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  text-align:center;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:130px;
  transition:transform .18s ease, background .18s ease;
  animation: floatCard 6s ease-in-out infinite;
}

.sky-card:nth-child(2){ animation-delay:1.5s; }
.sky-card:nth-child(3){ animation-delay:3s; }

@keyframes floatCard{
  0%{ transform: translateY(0px); }
  50%{ transform: translateY(-6px); }
  100%{ transform: translateY(0px); }
}

.sky-card:hover{
  transform:translateY(-4px);
  background:rgba(255,255,255,.08);
}

.sky-card__label{
  font-size:12px;
  letter-spacing:.3px;
  color:var(--muted);
  margin-bottom:10px;
}

.sky-card__value{
  font-size:20px;
  font-weight:900;
}

.sky-card__value--large{
  font-size:26px;
}

.sky-card--aspect{
  background:linear-gradient(
    135deg,
    var(--primary-soft),
    rgba(99,102,241,.05)
  );
  border-color:transparent;
}

.sky-cta{
  margin-top:26px;
}

/* ===== Process Section ===== */
.home-process{
  margin-top:70px;
}

.process-grid{
  margin-top:30px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  position:relative;
}

.process-grid::before{
  content:"";
  position:absolute;
  top:50%;
  left:10%;
  right:10%;
  height:1px;
  background:linear-gradient(to left, transparent, var(--line), transparent);
  z-index:0;
}

.process-card{
  position:relative;
  z-index:1;
  padding:28px 22px;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
  text-align:center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.process-card:hover{
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 14px 36px rgba(0,0,0,.55);
}

.process-icon{
  font-size:32px;
  margin-bottom:14px;
}

.process-title{
  margin:0 0 10px 0;
  font-size:18px;
  font-weight:800;
}

.process-text{
  margin:0;
  font-size:14px;
  line-height:1.9;
  color:var(--muted);
  max-width:40ch;
  margin-inline:auto;
}

/* ===== About Section (Upgraded) ===== */
.home-about{
  margin-top:70px;
}

.home-about__lead{
  max-width:70ch;
  margin:20px auto 40px auto;
  text-align:center;
  font-size:16px;
  line-height:2;
  color:var(--muted);
}

.about-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.about-card{
  padding:26px 22px;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
  text-align:center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.about-card:hover{
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 14px 36px rgba(0,0,0,.55);
}

.about-card h3{
  margin:0 0 10px 0;
  font-size:18px;
  font-weight:800;
}

.about-card p{
  margin:0;
  font-size:14px;
  line-height:1.9;
  color:var(--muted);
  max-width:40ch;
  margin-inline:auto;
}

/* ===== FAQ ===== */
.faq{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.faq-item{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
  background:rgba(255,255,255,.04);
}

.faq-item summary{
  cursor:pointer;
  font-weight:700;
}

.faq-item p{
  margin-top:8px;
  color:var(--muted);
  font-size:14px;
  line-height:1.9;
}

/* ===== Final CTA ===== */
.home-final{
  margin-top:60px;
  padding:40px 20px;
  text-align:center;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:linear-gradient(
    135deg,
    rgba(255,255,255,.06),
    rgba(255,255,255,.02)
  );
}

.home-final__title{
  font-size:26px;
  margin-bottom:20px;
}

/* ===== Responsive Homepage ===== */
@media (max-width:900px){
  .sky-dashboard{
    grid-template-columns:1fr;
  }

  .process-grid{
    grid-template-columns:1fr;
  }

  .about-grid{
    grid-template-columns:1fr;
  }

  .process-grid::before{
    display:none;
  }
}

@media (max-width:600px){
  .home-hero{
    padding:36px 18px 48px;
  }

  .home-hero__desc{
    font-size:15px;
  }

  .home-btn{
    width:100%;
  }
}

