/* Home-only styling (doesn't affect other pages) */

.home-bg{
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

/* soft blobs + sparkles */
.home-bg::before,
.home-bg::after{
  content:"";
  position:absolute;
  inset:-200px;
  z-index:-1;
  background:
    radial-gradient( circle at 20% 18%, rgba(255, 220, 238, 0.85), transparent 45% ),
    radial-gradient( circle at 70% 8%, rgba(220, 210, 255, 0.85), transparent 45% ),
    radial-gradient( circle at 80% 40%, rgba(208, 236, 255, 0.70), transparent 45% ),
    radial-gradient( circle at 25% 65%, rgba(255, 214, 242, 0.70), transparent 50% ),
    radial-gradient( circle at 60% 75%, rgba(233, 224, 255, 0.75), transparent 55% );
  filter: blur(10px);
}
.home-bg::after{
  background:
    radial-gradient(circle, rgba(255,255,255,0.65) 0 2px, transparent 3px) 0 0/90px 90px,
    radial-gradient(circle, rgba(255,255,255,0.55) 0 2px, transparent 3px) 30px 40px/110px 110px;
  opacity: 0.35;
  filter: blur(0px);
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 16px;
}

.nav-shell{
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  background: rgba(255,255,255,0.60);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 10px 12px;
  backdrop-filter: blur(10px);
}

.nav-links{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a{
  text-decoration: none;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
}
.nav-links a:hover{
  background: rgba(255,255,255,0.7);
}
.nav-links a.active{
  background: rgba(255,255,255,0.9);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.cta-top{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--brand-dark-pink);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(0,0,0,0.06);
}
.cta-top:hover{ filter: brightness(0.96); }

.hero{
  max-width: 1150px;
  margin: 18px auto 0;
  padding: 22px 16px 10px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: center;
}

.hero h1{
  font-size: 44px;
  line-height: 1.12;
  margin-bottom: 12px;
  color: var(--brand-navy);
}
.hero p{
  font-size: 18px;
  max-width: 55ch;
  margin-bottom: 18px;
}

.btn-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.08);
}

.btn.primary{
  background: var(--brand-dark-pink);
  color: #fff;
  border-color: rgba(0,0,0,0.06);
}
.btn.primary:hover{ filter: brightness(0.96); }

.btn.light{
  background: rgba(255,255,255,0.75);
  color: var(--brand-navy);
}
.btn.light:hover{ background: rgba(255,255,255,0.90); }

.badges{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill{
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.07);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  color: var(--brand-navy);
  font-size: 13px;
}

.phone-stage{
  position: relative;
  height: 360px;
}
.phone{
  position: absolute;
  width: 260px;
  height: 360px;
  border-radius: 34px;
  border: 10px solid rgba(255,255,255,0.9);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.75));
  box-shadow: 0 24px 60px rgba(0,0,0,0.10);
  overflow: hidden;
}
.phone.one{ right: 60px; top: 0; transform: rotate(-3deg); }
.phone.two{ right: 0; top: 26px; transform: rotate(6deg); opacity: 0.96; }

.phone .bar{
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.phone .dot{
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(0,0,0,0.18);
}
.phone .title{
  font-weight: 900;
  color: var(--brand-dark-pink);
  margin-left: 6px;
}
.phone .screen{
  padding: 14px;
}
.card-mini{
  height: 160px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(255,214,242,0.8), transparent 55%),
              radial-gradient(circle at 80% 20%, rgba(220,210,255,0.8), transparent 55%),
              rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.07);
}
.line{
  height: 10px; border-radius: 999px; background: rgba(0,0,0,0.10);
  margin-top: 12px;
}
.w80{ width: 80%; }
.w60{ width: 60%; }
.w90{ width: 90%; }

.getapp{
  max-width: 1150px;
  margin: 18px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.panel{
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
  backdrop-filter: blur(10px);
}

.panel h2{
  margin: 0 0 6px;
  color: var(--brand-navy);
  font-size: 28px;
}
.panel p{
  margin: 0 0 14px;
}

.store-row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.store-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(13,27,42,0.92);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid rgba(0,0,0,0.06);
}
.store-btn.secondary{
  background: rgba(13,27,42,0.10);
  color: var(--brand-navy);
}
.store-icon{
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(255,255,255,0.20);
}

.waitlist{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.waitlist input{
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.85);
  outline: none;
}
.waitlist button{
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  background: var(--brand-dark-pink);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.waitlist button:hover{ filter: brightness(0.96); }

.scan-head{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.qr-pill{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 1000;
  background: rgba(139,30,93,0.14);
  border: 1px solid rgba(139,30,93,0.18);
  color: var(--brand-dark-pink);
}
.qr-wrap{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.qr-box{
  width: 120px; height: 120px;
  border-radius: 16px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.10);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--brand-navy);
}
.join-right{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.join-right .btn{
  width: fit-content;
}

.values{
  max-width: 1150px;
  margin: 18px auto 0;
  padding: 0 16px 26px;
}
.values h2{
  margin: 14px 0 12px;
  color: var(--brand-navy);
  font-size: 28px;
}
.values-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.v-card{
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 18px;
  padding: 14px;
}
.v-ico{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.07);
  margin-bottom: 10px;
}
.v-title{ font-weight: 1000; color: var(--brand-navy); margin-bottom: 6px; }
.v-text{ font-size: 14px; color: var(--muted); line-height: 1.6; }

.home-footer{
  margin-top: 22px;
}

/* responsive */
@media (max-width: 980px){
  .hero, .getapp{ grid-template-columns: 1fr; }
  .phone-stage{ height: 320px; }
  .phone{ width: 240px; height: 330px; }
  .phone.one{ right: 90px; }
  .phone.two{ right: 20px; }
  .values-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px){
  .hero h1{ font-size: 34px; }
  .values-grid{ grid-template-columns: 1fr; }
  .qr-wrap{ grid-template-columns: 1fr; }
  .qr-box{ width: 100%; height: 160px; }
  .phone.one, .phone.two{ position: relative; right: auto; top: auto; transform: none; margin: 10px auto; }
  .phone-stage{ height: auto; }
}
/* ===== Extra Mobile Fixes (Home) ===== */
@media (max-width: 520px){

  /* Top nav becomes stacked and readable */
  .nav-shell{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .nav-links{
    justify-content: center;
  }

  /* make nav horizontally scrollable if needed (prevents broken wrap) */
  .nav-links{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: 4px;
  }
  .nav-links a{
    display: inline-block;
  }

  /* button becomes full width */
  .cta-top{
    width: 100%;
  }

  /* Hero spacing & text sizes */
  .hero{
    padding-top: 10px;
  }
  .hero h1{
    font-size: 32px;
  }
  .hero p{
    font-size: 16px;
  }

  /* Buttons stack */
  .btn-row .btn{
    width: 100%;
  }

  /* Phone mockups stack nicely and don't overflow */
  .phone-stage{
    height: auto;
  }
  .phone{
    position: relative;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 12px auto;
    width: 240px;
    height: 330px;
  }
}
@media (max-width: 520px){
  .nav-links{
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .cta-top{
    width: 100%;
  }
}
