@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root{
  --bg: #0f0b2e;              /* Azul profundo (não usado no bg da foto) */
  --card: #f5efe8;            /* tom areia / off-white */
  --accent: #B88A2C;          /* dourado suave */
  --shadow: 0 10px 30px rgba(0,0,0,.25);
}

*{ box-sizing:border-box }
html,body{ height:100% }
body{
  margin:0;
  font-family:"Poppins",sans-serif;
  font-weight:100;
  color:#2a2a2a;
}

/* ===========================
   FUNDO (estático no CSS)
   =========================== */
.bg-wrap{
  position:fixed;
  inset:0;
  overflow:hidden;
  background: url('/public/assets/bg.jpg') no-repeat center center / cover;
}

/* Mobile: foco no topo, centralizado (acima dos links) */
@media (max-width:480px){
  .bg-wrap{
    background-position:center top;
  }
}

/* ===========================
   CONTEÚDO
   =========================== */
.container{
  position:relative;
  min-height:100%;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:48px 16px 80px;
}

.card{
  position:relative;
  width:100%;
  max-width:420px;
  background:var(--card);
  border-radius:28px;
  box-shadow:var(--shadow);
  padding:120px 18px 28px;
  overflow:hidden;
}

/* “Capa” curva no topo do cartão */
.card::before{
  content:"";
  position:absolute; left:-15%; right:-15%; top:-40%;
  height:70%;
  background:linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,0));
  border-bottom-left-radius:50% 60%;
  border-bottom-right-radius:50% 60%;
  z-index:0;
}

/* Logo */
.brand{
  position:absolute; left:50%; top:24px; transform:translateX(-50%);
  width:130px; height:130px; z-index:2;
  display:flex; align-items:center; justify-content:center;
}
.brand img{
  width:100%; height:100%; object-fit:contain;
  filter:drop-shadow(0 6px 18px rgba(0,0,0,.15));
}

/* Handle Instagram */
.handle{
  position:relative; z-index:2;
  text-align:center; margin-top:26px;
  letter-spacing:.12em; color:#7c6d5a; font-weight:600;
}

/* Links */
.links{
  position:relative; z-index:2;
  margin-top:18px; display:flex; flex-direction:column; gap:16px;
}
.link-btn{
  display:flex; align-items:center; justify-content:center;
  width:100%; min-height:62px; padding:14px 18px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.06);
  background:linear-gradient(180deg,#f3eee7,#ebe3db);
  box-shadow:0 2px 0 rgba(0,0,0,.06), 0 8px 20px rgba(0,0,0,.06) inset;
  text-decoration:none; color:#2d2a26; font-weight:300; font-size:18px;
  transition:transform .06s ease, box-shadow .2s ease, filter .2s ease;
}
.link-btn:hover{ filter:brightness(0.98); transform:translateY(-1px); }
.link-btn:active{ transform:translateY(0); }

/* Rodapé */
.footer{
  margin-top:28px; text-align:center; color:#52473a; line-height:1.5;
}
.footer b{ font-size:18px; display:block; margin-bottom:6px; font-weight:700; color:#2d2a26 }
.small{ font-size:13px; font-weight:500; }

@media (min-width:480px){
  .card{ padding:130px 22px 32px }
}

/* ===========================
   DARK MODE (automático)
   =========================== */
@media (prefers-color-scheme: dark){
  :root{
    --card:#1a1620;
    --shadow:0 12px 34px rgba(0,0,0,.55);
  }

  body{ color:#eee; }

  .card{ background:var(--card); }
  .card::before{
    background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  }
  .handle{ color:#d8c9b3; }

  .link-btn{
    color:#eee;
    background:linear-gradient(180deg,#2b2730,#1f1a22);
    border-color:rgba(255,255,255,.08);
    box-shadow:0 2px 0 rgba(0,0,0,.45), 0 8px 20px rgba(0,0,0,.25) inset;
  }

  .footer{ color:#cbbfaa; }
  .footer b{ color:#f3eee8; }

  /* Scrim escuro por cima da foto */
  .bg-wrap{
    background:
      linear-gradient(rgba(8,8,12,.55), rgba(8,8,12,.55)),
      url('/public/assets/bg.jpg') no-repeat center center / cover;
  }

  /* No mobile escuro, foco no topo */
  @media (max-width:480px){
    .bg-wrap{
      background:
        linear-gradient(rgba(8,8,12,.55), rgba(8,8,12,.55)),
        url('/public/assets/bg.jpg') no-repeat center top / cover;
    }
  }
}
