:root{
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted2: rgba(255,255,255,.56);

  --pink:#ff4fd8;
  --violet:#8b5cff;
  --cyan:#2ee6ff;

  --shadow: 0 18px 60px rgba(0,0,0,.42);
  --glow: 0 0 28px rgba(139,92,255,.25), 0 0 60px rgba(46,230,255,.16);

  --radius: 18px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #050611;
  overflow-x:hidden;
}

/* Video background */
.bg{
  position: fixed;
  inset:0;
  z-index:-2;
  background:
    radial-gradient(1000px 700px at 20% 0%, rgba(139,92,255,.22), transparent 55%),
    radial-gradient(900px 650px at 90% 10%, rgba(46,230,255,.18), transparent 55%),
    radial-gradient(900px 650px at 50% 110%, rgba(255,79,216,.16), transparent 60%),
    linear-gradient(180deg, #060714, #050611);
}

#bgVideo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  filter: contrast(1.06) saturate(1.12) brightness(.74);
  opacity: .95;
}

.overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1100px 700px at 50% 15%, rgba(0,0,0,.10), rgba(0,0,0,.65)),
    linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.72));
}

.grain{
  position:absolute;
  inset:0;
  opacity:.10;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* Foreground stage (no cards/boxes) */
.stage{
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: 18px 0 70px;
  min-height: 100vh;
  display:flex;
  flex-direction: column;
  gap: 18px;
}

.top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  position: sticky;
  top:0;
  z-index: 10;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.heart{
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 0 18px rgba(255,79,216,.22)) drop-shadow(0 0 28px rgba(46,230,255,.14));
}
.brandTitle{ font-weight: 700; letter-spacing: .2px; }
.brandSub{ font-size: 12.5px; color: var(--muted2); margin-top: 2px; }

.chip{
  cursor:pointer;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.86);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-family: inherit;
  transition: .2s;
}
.chip:hover{ transform: translateY(-1px); }

.screen{
  display:none;
  padding: 10px 2px;
  animation: fade .35s ease;
}
.screen.is-active{ display:block; }
@keyframes fade{ from{opacity:0; transform: translateY(8px);} to{opacity:1; transform: translateY(0);} }

.kicker{
  margin: 14px 0 10px;
  color: rgba(255,255,255,.78);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .2px;
}

h1{
  margin: 6px 0 12px;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.8px;
}
h2{
  margin: 6px 0 10px;
  font-size: 22px;
  letter-spacing: -0.2px;
}

.grad{
  background: linear-gradient(135deg, #fff, rgba(255,255,255,.78), rgba(46,230,255,.90));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead{
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15.5px;
  max-width: 75ch;
}

.actions{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn{
  cursor:pointer;
  border: none;
  padding: 12px 14px;
  border-radius: 16px;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 14px;
  transition: .2s;
  user-select: none;
}
.btnPrimary{
  color: #0a0c18;
  background: linear-gradient(135deg, rgba(255,79,216,.95), rgba(139,92,255,.90), rgba(46,230,255,.75));
  box-shadow: var(--glow);
}
.btnPrimary:hover{ transform: translateY(-1px); filter: brightness(1.05); }
.btnPrimary:disabled{
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(.2);
}

.btnGhost{
  color: rgba(255,255,255,.90);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
}
.btnGhost:hover{ background: rgba(255,255,255,.10); transform: translateY(-1px); }

.noZone{
  position: relative;
  height: 64px;
  width: 100%;
}

.hint{
  margin: 14px 0 0;
  color: rgba(255,255,255,.52);
  font-size: 13px;
}

/* Text big */
.scrollText{
  margin-top: 14px;
  max-width: 80ch;
  line-height: 1.95;
  font-size: 15.5px;
  color: rgba(255,255,255,.84);
}
.scrollText p{ margin: 0 0 14px; }
.scrollText b{ color: rgba(255,255,255,.95); }
.finalAsk{ margin-top: 18px; }

.scrollText{
  max-height: 56vh;
  overflow: auto;
  padding-right: 10px;
}
.scrollText::-webkit-scrollbar{ width: 10px; }
.scrollText::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.16);
  border-radius: 999px;
}

/* Promises */
.promises{
  margin-top: 14px;
  display:flex;
  flex-direction: column;
  gap: 12px;
  max-width: 70ch;
}
.promise{
  cursor:pointer;
  text-align:left;
  padding: 14px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.88);
  font-family: inherit;
  font-weight: 600;
  line-height: 1.55;
  transition: .2s;
}
.promise:hover{
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}
.promise.is-picked{
  border-color: rgba(46,230,255,.35);
  box-shadow: 0 0 0 1px rgba(46,230,255,.15), var(--glow);
}

.reveal{
  margin: 14px 0 0;
  color: rgba(255,255,255,.74);
  max-width: 75ch;
  line-height: 1.75;
}

.bottom{
  margin-top: auto;
  padding: 18px 2px 0;
  display:flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.55);
  font-size: 13px;
}
.tag{
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.70);
}

/* Mobile tweaks */
@media (max-width: 720px){
  .top{ position: relative; }
  .noZone{ width: 90vw; height: 74px; }
  .scrollText{ max-height: 52vh; }
}


/* Gallery (screen 5) */
.gallery{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: min(900px, 92vw);
}
.ph{
  margin:0;
}
.phBox{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(120px 120px at 30% 25%, rgba(255,79,216,.16), transparent 60%),
    radial-gradient(140px 140px at 70% 70%, rgba(46,230,255,.14), transparent 60%),
    rgba(255,255,255,.05);
  aspect-ratio: 9/16;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,.70);
  font-weight: 700;
  letter-spacing: .2px;
}
.ph figcaption{
  margin-top: 8px;
  color: rgba(255,255,255,.62);
  font-size: 12.5px;
  line-height: 1.5;
  max-width: 30ch;
}
@media (max-width: 860px){
  .gallery{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .gallery{ grid-template-columns: 1fr; }
}


/* Photo styling (Gallery) */
.ph{
  display:flex;
  flex-direction: column;
  gap: 8px;
}
.phImg{
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
@media (hover:hover){
  .phImg{ transition: transform .25s ease, filter .25s ease; }
  .ph:hover .phImg{ transform: translateY(-2px) scale(1.01); filter: brightness(1.02) saturate(1.05); }
}
/* Safety: hide placeholder blocks if any remain */
.phBox{ display:none; }


/* --- Parte 5: Nosso futuro (SVG) --- */
.futureCard{
  margin-top: 22px;
  padding: 18px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
}
.futureTitle{ margin-top: 6px; }

.familyWrap{
  margin-top: 14px;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
}

.familySvg{
  width: 100%;
  height: auto;
  display: block;
  padding: 12px;
}

.familySvg .stroke{
  stroke: rgba(255,255,255,.92);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.familySvg .dashed{ stroke-dasharray: 10 10; opacity: .55; }
.familySvg .fillNone{ fill: none; }
.familySvg .fillSoft{ fill: rgba(173, 126, 255, .35); stroke: rgba(255,255,255,.55); stroke-width: 2; }

.familyOut{ opacity: 0; transform: translateX(40px); transform-box: fill-box; transform-origin: center; }
.coupleIn{ opacity: 1; transform: translateX(0); transform-box: fill-box; transform-origin: center; }

/* animate when .is-anim is applied */
.familyWrap.is-anim .coupleIn{
  animation: coupleWalk 2.2s ease-in-out forwards;
}
.familyWrap.is-anim .familyOut{
  animation: familyAppear 2.2s ease-in-out 1.2s forwards;
}
.familyWrap.is-anim .familyOut [opacity="0"]{
  animation: kid2In 1.1s ease-out 2.1s forwards;
}

@keyframes coupleWalk{
  0%{ transform: translateX(0); opacity: 1; }
  75%{ transform: translateX(270px); opacity: 1; }
  100%{ transform: translateX(300px); opacity: 0; }
}
@keyframes familyAppear{
  0%{ opacity: 0; transform: translateX(40px) scale(.98); }
  100%{ opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes kid2In{
  0%{ opacity: 0; }
  100%{ opacity: 1; }
}

@media (max-width: 420px){
  .futureCard{ padding: 16px 12px; }
  .familySvg{ padding: 10px; }
}


/* Gallery modal */
.imgModal{
  position:fixed; inset:0; display:none;
  background:rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  z-index:9999;
  align-items:center; justify-content:center;
  padding:24px;
}
.imgModal.open{display:flex;}
.imgModalImg{
  max-width:min(92vw,980px);
  max-height:88vh;
  width:auto; height:auto;
  border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.45);
}
.imgModalClose{
  position:absolute;
  top:18px; right:18px;
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.35);
  color:#fff; font-size:18px;
}
html.modalOpen{overflow:hidden;}
.shake{animation:shake .45s;}
@keyframes shake{
  0%{transform:translateX(0)}
  20%{transform:translateX(-6px)}
  40%{transform:translateX(6px)}
  60%{transform:translateX(-4px)}
  80%{transform:translateX(4px)}
  100%{transform:translateX(0)}
}


/* 'NÃO' fujão */
.noZone{ position: relative; }
#no1{ position:absolute; left:0; top:0; }


/* Cena (Parte 5) */
.sub{ margin:0; color: rgba(255,255,255,.72); }
.sceneCard{ margin-top: 18px; }
.sceneFrame{ width:100%; max-width: 900px; }
