/* ============================================
   Habitage — Journey-based product page
   Warm golden-hour palette
   ============================================ */

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  background:#0A0808;
  color:#e8e2d8;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

/* Subtle starfield behind everything except hero */
.stars-bg{
  position:fixed;inset:0;
  z-index:0;
  pointer-events:none;
}
.stars-bg .s{
  position:absolute;
  background:#fff;
  border-radius:50%;
  animation:twinkle var(--d) ease-in-out infinite alternate;
}
@keyframes twinkle{
  0%{opacity:var(--o1)}
  100%{opacity:var(--o2)}
}

main,footer{position:relative;z-index:1;}

/* ============================================
   NAV — minimal, floating
   ============================================ */
.nav{
  position:fixed;top:0;left:0;right:0;
  z-index:100;
  padding:14px 24px;
}

.nav-inner{
  max-width:1200px;margin:0 auto;
  display:flex;justify-content:space-between;align-items:center;
  background:rgba(10,8,8,0.75);
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  border:1px solid rgba(255,217,112,0.06);
  border-radius:14px;
  padding:8px 20px;
}

.nav-brand{
  display:flex;align-items:center;gap:10px;
  text-decoration:none;color:#fff;
  font-weight:700;font-size:0.95rem;
}

.nav-icon{
  width:28px;height:28px;
  border-radius:8px;object-fit:cover;
}

.nav-links{display:flex;gap:24px}

.nav-links a{
  color:rgba(255,255,255,0.4);
  text-decoration:none;font-size:0.82rem;font-weight:500;
  transition:color 0.2s;
}

.nav-links a:hover{color:rgba(255,217,112,0.8)}

/* ============================================
   HERO — golden hour sky gradient
   ============================================ */
.hero{
  min-height:100vh;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  text-align:center;
  padding:8rem 1.5rem 4rem;
  position:relative;
  overflow:hidden;
  background:linear-gradient(
    180deg,
    #5A3518 0%,
    #8B4513 15%,
    #C06820 30%,
    #E09840 45%,
    #1E5898 65%,
    #122E58 80%,
    #081C38 92%,
    #0A0808 100%
  );
}

/* Soft radial glow behind the content */
.hero-glow{
  position:absolute;
  top:20%;left:50%;
  width:800px;height:600px;
  transform:translateX(-50%);
  background:radial-gradient(ellipse, rgba(224,152,64,0.15) 0%, transparent 70%);
  pointer-events:none;
}

.hero-content{
  position:relative;z-index:2;
  max-width:680px;
}

.hero-app-icon{
  width:80px;height:80px;
  border-radius:20px;
  margin:0 auto 2rem;
  display:block;
  box-shadow:0 0 40px rgba(255,217,112,0.2);
}

.hero h1{
  font-size:clamp(2.6rem,6vw,4.5rem);
  font-weight:900;
  letter-spacing:-0.04em;
  line-height:1.05;
  margin-bottom:1.5rem;
}

.glow{
  color:#FFD970;
  text-shadow:0 0 30px rgba(255,217,112,0.3);
}

.hero-sub{
  font-size:clamp(1rem,2vw,1.2rem);
  color:rgba(255,255,255,0.55);
  max-width:500px;margin:0 auto 2.5rem;
  line-height:1.7;
}

.hero-cta{
  display:inline-flex;align-items:center;gap:8px;
  color:rgba(255,255,255,0.6);
  text-decoration:none;font-size:0.9rem;font-weight:600;
  transition:color 0.2s;
}

.hero-cta:hover{color:#FFD970}

.hero-cta i{
  font-size:0.75rem;
  animation:bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(5px)}
}

.hero-phone{
  position:relative;z-index:2;
  margin-top:3rem;
}

/* ============================================
   PHONE FRAME — universal
   ============================================ */
.phone{
  position:relative;
  background:#1c1c1e;
  border-radius:48px;
  padding:6px;
  box-shadow:0 25px 50px rgba(0,0,0,0.5);
  width:260px;
  flex-shrink:0;
}

/* Power button — right side */
.phone::before{
  content:'';position:absolute;
  right:-3px;top:22%;width:4px;height:12%;
  background:#1c1c1e;border-radius:0 3px 3px 0;
}

/* Volume buttons — left side */
.phone::after{
  content:'';position:absolute;
  left:-3px;top:20%;width:4px;height:14px;
  background:#1c1c1e;border-radius:3px 0 0 3px;
  box-shadow:0 20px 0 0 #1c1c1e;
}

.phone img{
  width:100%;
  border-radius:42px;
  display:block;
  aspect-ratio:9/19.5;
  object-fit:cover;
}

/* ============================================
   SHOWCASE — journey rows (text + phone)
   ============================================ */
.showcase{
  padding:6rem clamp(1.5rem,5%,3rem);
}

.showcase-hdr{
  text-align:center;margin-bottom:4rem;
}

.showcase-hdr h2{
  font-size:clamp(1.8rem,3.5vw,2.6rem);
  font-weight:800;letter-spacing:-0.03em;margin-bottom:0.5rem;
}

.showcase-hdr p{
  color:rgba(255,255,255,0.4);font-size:0.95rem;
}

.scene-row{
  display:flex;align-items:center;gap:3rem;
  max-width:960px;margin:0 auto;
  padding:3rem 0;
}

.scene-row-reverse{flex-direction:row-reverse}

.scene-text{flex:1 1 340px}

.scene-text h3{
  font-size:1.5rem;font-weight:800;
  letter-spacing:-0.03em;margin-bottom:0.6rem;line-height:1.15;
}

.scene-text p{
  font-size:0.95rem;color:rgba(255,255,255,0.45);line-height:1.65;
}

.scene-phone{flex:0 0 260px;display:flex;justify-content:center}

.pill{
  display:inline-block;
  padding:6px 14px;border-radius:20px;
  font-size:0.72rem;font-weight:700;
  text-transform:uppercase;letter-spacing:0.06em;
  margin-bottom:1rem;
}

.pill-ocean{background:rgba(30,88,152,0.25);color:#6DB3F2}
.pill-road{background:rgba(232,160,72,0.2);color:#E8A048}
.pill-space{background:rgba(139,92,246,0.15);color:#a78bfa}

/* ============================================
   HOW IT WORKS — numbered steps
   ============================================ */
.how{
  padding:7rem clamp(1.5rem,5%,3rem);
  background:#0D0A08;
}

.how-inner{max-width:900px;margin:0 auto;text-align:center}

.how h2{
  font-size:clamp(1.8rem,3.5vw,2.6rem);
  font-weight:800;letter-spacing:-0.03em;
  margin-bottom:4rem;
}

.steps{
  display:flex;align-items:flex-start;
  justify-content:center;gap:0;
}

.step{
  flex:1;max-width:240px;
  text-align:center;padding:0 1rem;
}

.step-num{
  width:56px;height:56px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:1.4rem;font-weight:800;
  margin:0 auto 1.2rem;
  background:rgba(255,217,112,0.08);
  color:#FFD970;
  border:2px solid rgba(255,217,112,0.18);
}

.step h3{
  font-size:1.1rem;font-weight:700;
  margin-bottom:0.5rem;
}

.step p{
  font-size:0.88rem;color:rgba(255,255,255,0.45);
  line-height:1.6;
}

.step-line{
  width:60px;height:2px;
  background:linear-gradient(90deg, rgba(255,217,112,0.3), rgba(255,217,112,0.05));
  margin-top:28px;
  flex-shrink:0;
}

/* ============================================
   FEATURES — split layout, text + list
   ============================================ */
.feats-section{
  padding:7rem clamp(1.5rem,5%,3rem);
  background:#0D0A08;
}

.feats-inner{
  max-width:1000px;margin:0 auto;
  display:flex;gap:4rem;align-items:flex-start;
}

.feats-left{flex:1 1 300px}

.feats-left h2{
  font-size:clamp(2rem,4vw,3rem);
  font-weight:800;letter-spacing:-0.04em;
  line-height:1.1;
  position:sticky;top:120px;
}

.feats-right{
  flex:1 1 400px;
  display:flex;flex-direction:column;gap:0;
}

.fi{
  display:flex;align-items:flex-start;gap:16px;
  padding:1.25rem 0;
  border-bottom:1px solid rgba(255,255,255,0.04);
}

.fi:last-child{border-bottom:none}

.fi i{
  font-size:1.1rem;
  color:#FFD970;
  margin-top:2px;
  width:24px;text-align:center;
  flex-shrink:0;
}

.fi strong{
  display:block;
  font-size:0.95rem;font-weight:700;
  margin-bottom:2px;
}

.fi span{
  display:block;
  font-size:0.85rem;color:rgba(255,255,255,0.4);
  line-height:1.5;
}

/* ============================================
   PRICING
   ============================================ */
.pricing{
  padding:7rem clamp(1.5rem,5%,3rem);
}

.pricing-inner{max-width:640px;margin:0 auto;text-align:center}

.pricing h2{
  font-size:clamp(1.8rem,3.5vw,2.6rem);
  font-weight:800;letter-spacing:-0.03em;
  margin-bottom:0.5rem;
}

.pricing-sub{
  color:rgba(255,255,255,0.4);
  font-size:0.92rem;margin-bottom:0.75rem;
}

.pricing-note{
  color:rgba(255,217,112,0.6);
  font-size:0.82rem;font-weight:500;
  margin-bottom:3rem;
}

.plans{
  display:grid;grid-template-columns:1fr 1fr;
  gap:16px;
}

.plan{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:20px;
  padding:2rem 1.5rem;
  text-align:left;
  position:relative;
}

.plan-pop{
  border-color:rgba(255,217,112,0.3);
  background:rgba(255,217,112,0.03);
}

.plan-badge{
  position:absolute;top:-10px;left:50%;transform:translateX(-50%);
  background:#FFD970;color:#1a1408;
  font-size:0.65rem;font-weight:700;
  padding:3px 10px;border-radius:6px;
  text-transform:uppercase;letter-spacing:0.04em;
}

.plan-name{
  font-size:0.82rem;color:rgba(255,255,255,0.4);
  font-weight:500;margin-bottom:0.4rem;
}

.plan-price{
  font-size:1.4rem;font-weight:800;
  letter-spacing:-0.02em;margin-bottom:1.25rem;
}

.plan-price span{
  font-size:0.85rem;font-weight:500;
  color:rgba(255,255,255,0.3);
}

.plan ul{
  list-style:none;
}

.plan li{
  padding:0.3rem 0;
  font-size:0.82rem;color:rgba(255,255,255,0.5);
  display:flex;align-items:center;gap:8px;
}

.plan li::before{
  content:'';
  width:5px;height:5px;border-radius:50%;
  background:#FFD970;flex-shrink:0;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final{
  padding:8rem clamp(1.5rem,5%,3rem);
  text-align:center;
  background:linear-gradient(180deg, #0A0808 0%, #14100A 50%, #0A0808 100%);
}

.final h2{
  font-size:clamp(2rem,5vw,3.5rem);
  font-weight:900;letter-spacing:-0.04em;
  margin-bottom:2rem;
  background:linear-gradient(135deg, #fff 30%, #FFD970);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
  background-clip:text;
}

.dl-btn{
  display:inline-flex;align-items:center;gap:10px;
  background:#fff;color:#0a0a0a;
  text-decoration:none;
  padding:14px 32px;border-radius:14px;
  font-size:1rem;font-weight:700;
  transition:transform 0.2s,box-shadow 0.2s;
}

.dl-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 30px rgba(255,217,112,0.15);
}

/* ============================================
   FOOTER
   ============================================ */
.foot{
  padding:1.5rem clamp(1rem,4%,2.5rem);
  border-top:1px solid rgba(255,255,255,0.04);
}

.foot-inner{
  max-width:1200px;margin:0 auto;
  display:flex;justify-content:space-between;align-items:center;
  flex-wrap:wrap;gap:0.75rem;
}

.foot span{font-size:0.75rem;color:rgba(255,255,255,0.25)}
.foot-links{display:flex;gap:20px}
.foot-links a{color:rgba(255,255,255,0.25);text-decoration:none;font-size:0.75rem;transition:color 0.2s}
.foot-links a:hover{color:rgba(255,255,255,0.5)}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.rv{
  opacity:0;transform:translateY(24px);
  transition:opacity 0.7s ease,transform 0.7s ease;
}

.rv.vis{opacity:1;transform:none}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal{
  max-width:720px;margin:0 auto;
  padding:6rem clamp(1.25rem,4%,2.5rem) 4rem;
}

.legal h1{
  font-size:clamp(1.8rem,4vw,2.4rem);
  font-weight:800;letter-spacing:-0.03em;
  margin-bottom:2rem;
}

.legal-meta{
  font-size:0.85rem;color:rgba(255,255,255,0.4);
  margin-bottom:2rem;padding-bottom:1.5rem;
  border-bottom:1px solid rgba(255,255,255,0.06);
}

.legal-content h2{font-size:1.2rem;font-weight:700;margin:2rem 0 0.75rem}
.legal-content h3{font-size:1rem;font-weight:600;margin:1.25rem 0 0.5rem}
.legal-content p{font-size:0.9rem;color:rgba(255,255,255,0.55);line-height:1.7;margin-bottom:0.75rem}
.legal-content ul{list-style:none;margin:0 0 1rem;padding:0}
.legal-content ul li{font-size:0.88rem;color:rgba(255,255,255,0.55);padding:0.3rem 0 0.3rem 1.25rem;position:relative;line-height:1.6}
.legal-content ul li::before{content:'';position:absolute;left:0;top:0.7rem;width:5px;height:5px;border-radius:50%;background:#FFD970}
.legal-content a{color:#FFD970;text-decoration:none;border-bottom:1px solid rgba(255,217,112,0.3);transition:border-color 0.2s}
.legal-content a:hover{border-color:#FFD970}

/* ============================================
   RESPONSIVE
   ============================================ */
@media(max-width:768px){
  .nav-links{gap:14px}
  .nav-links a{font-size:0.72rem}

  .hero{padding:6rem 1.25rem 3rem}
  .hero h1{font-size:2.4rem}
  .hero-app-icon{width:64px;height:64px;border-radius:16px}
  .phone{width:220px;border-radius:38px;padding:5px}
  .phone img{border-radius:33px}
  .phone::before{width:3px}
  .phone::after{width:3px;height:10px;box-shadow:0 15px 0 0 #1c1c1e}

  .scene-row,.scene-row-reverse{flex-direction:column;text-align:center;gap:2rem;padding:2rem 0}
  .scene-phone{flex:auto}

  .steps{flex-direction:column;align-items:center;gap:1.5rem}
  .step-line{width:2px;height:40px;background:linear-gradient(180deg, rgba(255,217,112,0.3), rgba(255,217,112,0.05))}
  .step{max-width:100%}

  .feats-inner{flex-direction:column;gap:2rem}
  .feats-left h2{position:static;font-size:2rem}

  .plans{grid-template-columns:1fr}

  .foot-inner{flex-direction:column;text-align:center;gap:0.5rem}
}

@media(max-width:480px){
  .nav-links a:nth-child(n+3){display:none}

  .hero h1{font-size:2rem}
  .phone{width:190px;border-radius:28px;padding:4px}
  .phone img{border-radius:24px}
  .phone::before{width:2px}
  .phone::after{width:2px;height:8px;box-shadow:0 12px 0 0 #1c1c1e}

  .scene-text h3{font-size:1.2rem}
}
