/* ============ Base ============ */
:root{
  --bg0:#070A12;
  --bg1:#0B1220;
  --ink:#EAF0FF;
  --muted:#A8B3CF;
  --line:rgba(255,255,255,.10);

  --accent:#57A5FF;     /* blau elegant */
  --accent2:#7C5CFF;    /* toc violeta */
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.04);

  --shadow: 0 24px 80px rgba(0,0,0,.55);
  --radius: 22px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: Inter, 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Montserrat, Arial, sans-serif;
  color:var(--ink);
  background: radial-gradient(1200px 700px at 20% 10%, rgba(87,165,255,.14), transparent 55%),
              radial-gradient(900px 600px at 80% 40%, rgba(124,92,255,.12), transparent 60%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

a{ color:inherit; }

/* Millora d’accessibilitat: focus visible */
:focus-visible{
  outline: 2px solid rgba(87,165,255,.75);
  outline-offset: 3px;
  border-radius: 12px;
}

/* ============ Fons decoratiu ============ */
.bg{
  position:fixed;
  inset:0;
  z-index:-1;
}

.orb{
  position:absolute;
  filter: blur(34px);
  opacity:.9;
  transform: translateZ(0);
  border-radius: 999px;
}

.orb--a{
  width:520px; height:520px;
  left:-140px; top:-120px;
  background: radial-gradient(circle at 30% 30%, rgba(87,165,255,.55), rgba(87,165,255,0) 60%),
              radial-gradient(circle at 70% 70%, rgba(124,92,255,.35), rgba(124,92,255,0) 62%);
  animation: floatA 10s ease-in-out infinite;
}

.orb--b{
  width:520px; height:520px;
  right:-180px; bottom:-180px;
  background: radial-gradient(circle at 40% 35%, rgba(124,92,255,.55), rgba(124,92,255,0) 60%),
              radial-gradient(circle at 60% 65%, rgba(87,165,255,.25), rgba(87,165,255,0) 62%);
  animation: floatB 12s ease-in-out infinite;
}

.grid{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(600px 420px at 50% 35%, rgba(0,0,0,1), rgba(0,0,0,0));
  opacity:.55;
}

.noise{
  position:absolute;
  inset:0;
  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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity:.09;
  mix-blend-mode: overlay;
}

@keyframes floatA{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(40px, 26px) scale(1.04); }
}
@keyframes floatB{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-36px, -22px) scale(1.03); }
}

/* ============ Layout ============ */
.wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding: 28px 18px;
}

.card{
  width:min(720px, 100%);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  border:1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow:hidden;
  position:relative;

  /* animació d’entrada */
  transform: translateY(8px);
  opacity: 0;
  animation: enter .8s ease-out forwards;
}

@keyframes enter{
  to{ transform: translateY(0); opacity:1; }
}

.card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(800px 260px at 30% 0%, rgba(87,165,255,.18), transparent 55%),
    radial-gradient(800px 260px at 70% 0%, rgba(124,92,255,.18), transparent 55%);
  pointer-events:none;
}

.top{
  padding: 26px 26px 0 26px;
  position:relative;
}

.logo{
  width: 100%;
  max-width: 180px;        /* mida òptima per imatge quadrada */
  height: auto;
  display: block;
  margin: 0 auto;

  object-fit: contain;

  filter:
    drop-shadow(0 12px 28px rgba(0,0,0,.55))
    drop-shadow(0 0 18px rgba(87,165,255,.25));

  opacity: .98;
}

.logo-wrap{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 6px 0;
}

.content{
  padding: 18px 26px 24px 26px;
  position:relative;
}

.title{
  margin: 8px 0 10px 0;
  font-size: clamp(28px, 4.2vw, 44px);
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.05;

  /* degradat subtil al text */
  background: linear-gradient(90deg, rgba(234,240,255,1), rgba(87,165,255,.90), rgba(124,92,255,.85));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

.lead{
  margin: 0;
  font-size: clamp(15px, 2.0vw, 18px);
  line-height: 1.55;
  color: rgba(234,240,255,.92);
}

.muted{
  color: var(--muted);
}

.divider{
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
  margin: 18px 0 14px 0;
}

.hint{
  margin: 0 0 10px 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center; 
  opacity: .9;
  letter-spacing: .02em;
}

/* CTA Mail */
.cta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  margin: 10px auto 0 auto;
  width: max-content;
  max-width: 320px;
  align-self: center;
  border-radius: 14px;
  text-decoration:none;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  font-weight: 600;
  letter-spacing: .02em;
}

.cta:hover{
  transform: translateY(-1px);
  border-color: rgba(87,165,255,.38);
  background: linear-gradient(180deg, rgba(87,165,255,.14), rgba(255,255,255,.05));
}

.cta:active{
  transform: translateY(0px);
}

.cta__dot{
  width:10px; height:10px;
  border-radius:999px;
  background: radial-gradient(circle at 30% 30%, rgba(234,240,255,1), rgba(87,165,255,.8));
  box-shadow: 0 0 0 6px rgba(87,165,255,.10);
}

.cta__icon{
  opacity:.9;
}

/* Footer */
.footer{
  margin-top: 24px; 
  display:flex;
  justify-content:center;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  color: rgba(168,179,207,.95);
  font-size: 13px;
}

.sep{ opacity:.5; }
.small{ opacity:.92; }

/* ============ Responsive ============ */
@media (max-width: 520px){
  .logo{
    max-width: 140px;
  }

  .top{ padding: 20px 18px 0 18px; }
  .content{ padding: 14px 18px 18px 18px; }
  .cta{ width: 100%; justify-content:center; }
}