/* ===================================================
   Mercury Studios — stylesheet
   Palette derivata dal logo: notte profonda + gradiente
   oro / corallo / ciano
=================================================== */

:root{
  --bg-void:      #000000;
  --bg-panel:     #0a0b0f;
  --bg-panel-2:   #131520;
  --line:         #22242f;
  --text-hi:      #f5f6f9;
  --text-mid:     #9297a6;
  --text-low:     #5c606d;

  --gold:   #f4c34a;
  --coral:  #e8563f;
  --cyan:   #3fa9c9;
  --violet: #7b5cf0;
  --blue:   #3b6ff0;

  --gradient-brand: linear-gradient(135deg, var(--cyan) 0%, var(--coral) 52%, var(--gold) 100%);
  --gradient-cta:   linear-gradient(120deg, var(--blue) 0%, var(--violet) 100%);

  --font-display: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(59, 111, 240, 0.18), transparent 60%),
    var(--bg-void);
  background-attachment: fixed;
  color: var(--text-hi);
  font-family: var(--font-body);
  line-height: 1.5;
}

/* leggero rumore/pattern a puntini, per non lasciare il nero piatto */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

a{ color: inherit; text-decoration: none; }

img{ max-width: 100%; display: block; }

/* ---------- Nav ---------- */

.nav{
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(5, 7, 12, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__brand{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.nav__brand img{
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.nav__links{
  display: flex;
  gap: 32px;
  font-size: 0.92rem;
  color: var(--text-mid);
}

.nav__links a{ transition: color 0.2s ease; }
.nav__links a:hover, .nav__links a.is-active{ color: var(--text-hi); }

.nav__cta{
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--gradient-cta);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 8px 20px -8px rgba(59, 111, 240, 0.6);
}

/* ---------- Hero ---------- */

.hero{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 86vh;
  padding: 60px 24px 80px;
  overflow: hidden;
}

.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 50% 30%, rgba(59, 111, 240, 0.20), transparent 70%),
    radial-gradient(ellipse 55% 40% at 30% 65%, rgba(123, 92, 240, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 40% at 75% 60%, rgba(232, 86, 63, 0.10), transparent 70%);
  pointer-events: none;
}

.hero__logo-wrap{
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

.hero__logo{
  width: 168px;
  height: 168px;
  border-radius: 50%;
  box-shadow: 0 30px 60px -20px rgba(232, 86, 63, 0.35);
}

@keyframes float{
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-22px); }
  100% { transform: translateY(0px); }
}

.hero__eyebrow{
  position: relative;
  z-index: 1;
  margin: 34px 0 10px;
  color: var(--text-mid);
  font-size: 0.95rem;
}

.hero__title{
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5.4rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.hero__subtitle{
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 18px 0 34px;
  color: var(--text-mid);
  font-size: 1.05rem;
}

.hero__actions{
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
}

.btn{
  padding: 15px 30px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid var(--line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary{
  background: var(--gradient-cta);
  color: #fff;
  border: none;
  box-shadow: 0 14px 30px -12px rgba(59, 111, 240, 0.55);
}

.btn--primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(59, 111, 240, 0.7);
}

.btn--ghost{
  color: var(--text-hi);
  background: rgba(255,255,255,0.03);
}

.btn--ghost:hover{
  background: rgba(255,255,255,0.06);
}

/* ---------- Sections ---------- */

.section{
  padding: 90px 40px;
  max-width: 980px;
  margin: 0 auto;
}

.section__head{
  margin-bottom: 40px;
}

.section__label{
  color: var(--coral);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.section__title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  margin: 0;
  letter-spacing: -0.01em;
}

.section__desc{
  color: var(--text-mid);
  max-width: 560px;
  margin-top: 12px;
}

/* ---------- Board (elenco candidature, stile forum) ---------- */

.board{
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-panel);
}

.board__row{
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.board__row:last-child{ border-bottom: none; }
.board__row:hover{ background: var(--bg-panel-2); }

.board__icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: var(--gradient-cta);
  flex-shrink: 0;
}

.board__main{ display: flex; gap: 16px; align-items: flex-start; }

.board__name{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 4px;
}

.board__desc{
  color: var(--text-mid);
  font-size: 0.88rem;
  max-width: 420px;
  margin: 0;
}

.board__stat{
  text-align: center;
  min-width: 64px;
}

.board__stat strong{
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
}

.board__stat span{
  color: var(--text-low);
  font-size: 0.76rem;
}

.board__status{
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.board__status--open{
  background: rgba(63, 201, 138, 0.12);
  color: #4fd499;
}

.board__status--closed{
  background: rgba(232, 86, 63, 0.12);
  color: var(--coral);
}

/* ---------- Step box (stile "come funziona") ---------- */

.steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.step{
  padding: 26px 22px;
  border-radius: 14px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
}

.step__num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--gradient-cta);
  color: #fff;
}

.step__title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 6px;
}

.step__desc{
  color: var(--text-mid);
  font-size: 0.88rem;
  margin: 0;
}

@media (max-width: 720px){
  .steps{ grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.footer{
  padding: 40px;
  text-align: center;
  color: var(--text-low);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

/* ---------- Responsive ---------- */

@media (max-width: 720px){
  .nav__links{ display: none; }
  .section{ padding: 60px 22px; }
  .board__row{
    grid-template-columns: 1fr;
    text-align: left;
  }
  .board__stat{ text-align: left; }
}

/* ---------- Motion sensibility ---------- */

@media (prefers-reduced-motion: reduce){
  .hero__logo-wrap{ animation: none; }
  html{ scroll-behavior: auto; }
}