/* ---------------------------------------------------------
   Mobflix PWA Install Page
   Fast + Elegant + Responsive (no deps)
--------------------------------------------------------- */

:root{
  --bg: #08000d;
  --ink: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --soft: rgba(255,255,255,.10);
  --soft2: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.12);
  --accent: #ae36fc;
  --accent2: #7c1cf0;
  --shadow: 0 24px 80px rgba(0,0,0,.55);
  --radius: 22px;
  --radius2: 28px;
  --container: 1120px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--ink);
  background: radial-gradient(1200px 700px at 50% -10%, rgba(174,54,252,.25), transparent 60%),
              radial-gradient(900px 600px at 70% 15%, rgba(124,28,240,.18), transparent 62%),
              var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 4px; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left: 16px; top: 12px;
  width: auto; height: auto; padding: 10px 12px;
  background: rgba(0,0,0,.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  z-index: 9999;
}

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8,0,13,.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar__inner{
  height: 68px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  user-select:none;
}
.brand__dot{
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(174,54,252,.18);
}
.brand__text{
  font-weight: 800;
  letter-spacing: .2px;
  text-transform: lowercase;
}
.brand__x{
  color: var(--accent);
}
.topbar__actions{
  display:flex;
  gap: 10px;
  align-items:center;
}

/* Buttons */
.btn{
  appearance:none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  text-decoration:none;
  user-select:none;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.18);
  text-decoration:none;
}
.btn:active{ transform: translateY(0); }
.btn--primary{
  border-color: rgba(174,54,252,.55);
  background: linear-gradient(135deg, rgba(174,54,252,.95), rgba(124,28,240,.95));
  box-shadow: 0 14px 40px rgba(174,54,252,.25);
}
.btn--primary:hover{
  box-shadow: 0 18px 56px rgba(174,54,252,.32);
}
.btn--ghost{
  background: rgba(255,255,255,.04);
}
.btn--lg{
  padding: 12px 18px;
  font-size: 1.02rem;
}

/* HERO */
.hero{
  position: relative;
  overflow: hidden;
  padding: 54px 0 36px;
}
.hero__bg{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 520px at 30% 40%, rgba(174,54,252,.28), transparent 60%),
    radial-gradient(780px 520px at 80% 20%, rgba(124,28,240,.18), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.25));
  pointer-events:none;
}
.hero__inner{
  position: relative;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items:center;
}
.eyebrow{
  margin:0 0 8px;
  color: rgba(255,255,255,.70);
  letter-spacing: .6px;
  text-transform: uppercase;
  font-weight: 750;
  font-size: .82rem;
}
.hero h1{
  margin:0 0 14px;
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: -0.6px;
}
.lead{
  margin: 0 0 10px;
  font-size: 1.12rem;
}
.muted{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.hero__cta{
  margin-top: 22px;
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items:center;
}
.pillrow{
  margin-top: 18px;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.82);
  font-weight: 650;
  font-size: .92rem;
}

/* Phones */
.hero__visual{
  position: relative;
  min-height: 360px;
}
.phones{
  position: relative;
  height: 420px;
  width: min(440px, 100%);
  margin-left: auto;
  filter: drop-shadow(0 30px 70px rgba(0,0,0,.55));
}
.phone{
  position:absolute;
  width: 58%;
  aspect-ratio: 9 / 19.5;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  overflow:hidden;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}
.phone img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.phone__glow{
  position:absolute; inset:-30%;
  background: radial-gradient(circle at 30% 25%, rgba(174,54,252,.22), transparent 52%),
              radial-gradient(circle at 75% 60%, rgba(124,28,240,.18), transparent 58%);
  pointer-events:none;
}
.phone--a{
  left: 10%;
  top: 4%;
  transform: rotate(-8deg);
  animation: floatA 6.4s ease-in-out infinite;
}
.phone--b{
  right: 0%;
  top: 18%;
  transform: rotate(10deg);
  animation: floatB 7.2s ease-in-out infinite;
}
@keyframes floatA{
  0%,100%{ transform: translateY(0) rotate(-8deg); }
  50%{ transform: translateY(-10px) rotate(-7deg); }
}
@keyframes floatB{
  0%,100%{ transform: translateY(0) rotate(10deg); }
  50%{ transform: translateY(-12px) rotate(9deg); }
}

.hero__sparkles{
  position:absolute; inset:-20%;
  background:
    radial-gradient(2px 2px at 20% 35%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(2px 2px at 70% 25%, rgba(255,255,255,.25), transparent 60%),
    radial-gradient(2px 2px at 55% 70%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(2px 2px at 82% 62%, rgba(255,255,255,.16), transparent 60%);
  opacity: .7;
  pointer-events:none;
  animation: shimmer 9s ease-in-out infinite;
}
@keyframes shimmer{
  0%,100%{ transform: translateY(0); opacity: .6; }
  50%{ transform: translateY(10px); opacity: .85; }
}

.hero__fade{
  position:absolute; left:0; right:0; bottom:-2px; height: 68px;
  background: linear-gradient(180deg, rgba(8,0,13,0), rgba(8,0,13,1));
}

/* HOWTO section */
.howto{
  padding: 54px 0 60px;
  background: rgba(255,255,255,.02);
  border-top: 1px solid rgba(255,255,255,.06);
}
.howto__head{
  text-align:center;
  margin-bottom: 26px;
}
.howto__head h2{
  margin: 0;
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
  letter-spacing: -0.4px;
}
.sub{
  margin: 10px auto 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.55;
}
.sub a{
  color: rgba(255,255,255,.9);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.howto__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
}

.card{
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  overflow:hidden;
}
.step{
  display:flex;
  gap: 14px;
  align-items:flex-start;
  margin-bottom: 14px;
}
.step__n{
  width: 42px; height: 42px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: rgba(174,54,252,.18);
  border: 1px solid rgba(174,54,252,.35);
  color: rgba(255,255,255,.92);
  font-weight: 850;
}
.step__body h3{
  margin: 2px 0 6px;
  font-size: 1.12rem;
  letter-spacing: -0.2px;
}
.shots{
  display:grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.shot{
  margin:0;
  border-radius: 18px;
  overflow:hidden;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.08);
}
.shot img{
  width:100%;
  height:100%;
  display:block;
  object-fit: cover;
}
.card:nth-child(2) .shots,
.card:nth-child(3) .shots{
  grid-template-columns: 1fr;
}

/* Bottom CTA */
.bottom{
  position: relative;
  padding: 56px 0 72px;
  overflow:hidden;
}
.bottom__bg{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 520px at 50% 30%, rgba(174,54,252,.26), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.34));
  border-top: 1px solid rgba(255,255,255,.08);
}
.bottom__inner{
  position: relative;
  text-align:center;
  max-width: 66ch;
  margin: 0 auto;
}
.bottom__inner h2{
  margin:0;
  font-size: clamp(1.9rem, 2.4vw, 2.5rem);
}
.bottom__actions{
  margin-top: 18px;
  display:flex;
  justify-content:center;
}

/* Footer */
.footer{
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 18px 0;
  background: rgba(0,0,0,.24);
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__small{
  color: rgba(255,255,255,.62);
  font-size: .92rem;
}

/* Reveal animations */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 920px){
  .hero__inner{
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .hero__visual{ min-height: 320px; }
  .phones{ margin-inline: auto; }
  .topbar__actions a#btnLoginTop{ display:none; }
}
@media (max-width: 640px){
  .topbar__inner{ height: 64px; }
  .hero{ padding: 42px 0 30px; }
  .phones{ height: 360px; }
  .shots{ grid-template-columns: 1fr; }
  .btn--lg{ width: 100%; }
  .hero__cta{ width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; }
  .phone--a, .phone--b, .hero__sparkles{ animation: none !important; }
  .reveal{ transition: none !important; }
  .btn{ transition: none !important; }
}

.shot img{aspect-ratio:9/19;}
.device-note{margin-top:10px;color:#ddd;font-size:.95rem;opacity:.9}

/* -------------------------------------------
   Adaptado às imagens reais (prints pequenos)
-------------------------------------------- */

/* HERO mockup (um único arquivo com 2 celulares) */

.mockup{
  position: relative;
  width: min(520px, 92%);
  margin-left: auto;
  aspect-ratio: 346 / 353;
  background: transparent;
  border: none;
  box-shadow: none;
  transform: rotate(6deg);
  animation: mockFloat 7s ease-in-out infinite;
}

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

.mockup__glow{
  position:absolute; inset:-30%;
  background: radial-gradient(circle at 30% 25%, rgba(174,54,252,.18), transparent 52%),
              radial-gradient(circle at 75% 60%, rgba(124,28,240,.14), transparent 58%);
  filter: blur(40px);
  pointer-events:none;
}

@keyframes mockFloat{
  0%,100%{ transform: translateY(0) rotate(6deg); }
  50%{ transform: translateY(-10px) rotate(5deg); }
}

/* Prints: evitar esticar gigante no desktop */
.shots{
  display:flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: flex-start;
}
.shots--single{ justify-content: center; }

.shot{
  width: auto;
  max-width: 320px;
  border-radius: 18px;
}
.shot img{
  width: min(280px, 86vw);
  height: auto;
  object-fit: contain;
  image-rendering: auto;
  aspect-ratio: auto;
}

/* Card spacing better for print */
.card{
  padding: 20px;
}
.step__body p{
  max-width: 70ch;
}

/* Mobile fine-tune */
@media (max-width: 640px){
  .mockup{ margin-inline: auto; }
  .shot img{ width: min(260px, 86vw); }
}


/* Apple level UX */
html,body{scroll-behavior:smooth;background:#06030b;}
.main.apple section{scroll-snap-align:start;}
.main.apple{scroll-snap-type:y proximity;}

.card{
 backdrop-filter: blur(22px);
 background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
 border:1px solid rgba(255,255,255,.12);
 box-shadow:0 40px 120px rgba(0,0,0,.7);
 transition:transform .5s cubic-bezier(.22,.9,.3,1), box-shadow .5s;
}
.card:hover{
 transform:translateY(-6px) scale(1.01);
 box-shadow:0 60px 180px rgba(124,28,240,.35);
}

.shot img{
 border-radius:22px;
 box-shadow:0 20px 60px rgba(0,0,0,.8);
 transition:transform .7s cubic-bezier(.2,.8,.2,1), box-shadow .7s;
}
.shot img:hover{
 transform:scale(1.08);
 box-shadow:0 40px 140px rgba(174,54,252,.45);
}

/* floating ambient gradient */
body::before{
 content:"";
 position:fixed;
 inset:-20%;
 background:
 radial-gradient(circle at 20% 30%, rgba(174,54,252,.18), transparent 40%),
 radial-gradient(circle at 80% 70%, rgba(124,28,240,.16), transparent 45%);
 animation:ambient 18s linear infinite;
 pointer-events:none;
 z-index:-1;
}
@keyframes ambient{
 0%{transform:translateY(0);}
 50%{transform:translateY(-5%);}
 100%{transform:translateY(0);}
}

/* typography refinement */
h1,h2{letter-spacing:-0.02em}
p{opacity:.82}

/* cinematic section spacing */
section{padding:120px 0;}

.mockup img{
  filter: drop-shadow(0 40px 80px rgba(0,0,0,.65))
          drop-shadow(0 0 60px rgba(174,54,252,.25));
}
