/* ====== Base ====== */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:#fff;
  overflow-x:hidden;

  /* Full-page background */
  background-image: url("assets/background.jpg");
  background-repeat: no-repeat;
  background-size: cover;

  /* Key fix: bias the crop so the mic (right side) stays visible on tall phones */
  background-position: 72% 30%;

  /* Mobile Safari: fixed attachment causes weirdness; keep it simple */
  background-attachment: scroll;

  min-height: 100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  padding: env(safe-area-inset-top) 14px env(safe-area-inset-bottom);
}

/* Soft vignette for readability without killing the art */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.08) 0%, rgba(0,0,0,.30) 60%, rgba(0,0,0,.52) 100%);
}

/* ====== Layout ====== */
.panel{
  width:min(420px, 100%);
  text-align:center;
  position:relative; /* above vignette */
}

.hero{
  margin: 6vh 0 18px;
  line-height:1.0;
  letter-spacing:.2px;
}
.hero__top{
  display:block;
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 900;
  color:#ffffff;
  text-shadow: 0 4px 0 rgba(0,0,0,.35);
}
.hero__bottom{
  display:block;
  font-size: clamp(44px, 12vw, 72px);
  font-weight: 1000;
  color: #FFD24D;
  text-shadow:
    0 5px 0 rgba(160,120,0,.95),
    0 10px 18px rgba(0,0,0,.35);
}

.form{ text-align:left; }

.label{
  display:block;
  margin: 14px 0 7px;
  font-weight: 900;
  font-size: 15px;
  text-shadow: 0 2px 0 rgba(0,0,0,.25);
}

.input{
  width:100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,.55);
  background: linear-gradient(#eef2f8, #d6dde8);
  color:#2b2f36;
  font-size: 16px;
  font-weight: 700;
  box-shadow:
    inset 0 3px 7px rgba(0,0,0,.18),
    0 4px 0 rgba(0,0,0,.18);
  outline:none;
}
.input::placeholder{ color:#8a96a8; font-weight:800; }
.input:focus{
  border-color: rgba(255, 225, 125, .95);
  box-shadow:
    inset 0 3px 7px rgba(0,0,0,.18),
    0 4px 0 rgba(0,0,0,.18),
    0 0 0 4px rgba(255, 210, 77, .22);
}

/* ====== Buttons ====== */
.btn{
  width:100%;
  border:none;
  border-radius: 999px;
  padding: 18px 18px;
  font-weight: 1000;
  letter-spacing: .6px;
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .08s ease, filter .12s ease;
}

.btn--primary{
  margin-top: 18px;
  font-size: 26px;
  color:#fff;
  background:
    radial-gradient(120% 180% at 50% 0%, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 45%),
    linear-gradient(#2f9cff, #1d66d3);
  box-shadow:
    0 10px 0 #154ea6,
    0 18px 28px rgba(0,0,0,.42);
  text-shadow: 0 3px 0 rgba(0,0,0,.35);
}

.btn--secondary{
  margin-top: 14px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .2px;
  color:#ffffff;
  background: rgba(255,255,255,.14);
  box-shadow:
    0 8px 0 rgba(0,0,0,.18),
    0 14px 22px rgba(0,0,0,.30);
  backdrop-filter: blur(6px);
}

.btn__icon{ margin-right: 10px; }

.btn:active, .btn.is-pressed{
  transform: translateY(6px);
  filter: brightness(.98);
}
.btn--primary:active, .btn--primary.is-pressed{
  box-shadow:
    0 4px 0 #154ea6,
    0 10px 18px rgba(0,0,0,.38);
}
.btn--secondary:active, .btn--secondary.is-pressed{
  box-shadow:
    0 3px 0 rgba(0,0,0,.18),
    0 8px 14px rgba(0,0,0,.28);
}

.hint{
  text-align:center;
  margin: 14px 0 4px;
  opacity:.92;
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 2px 0 rgba(0,0,0,.25);
}

/* ====== Adaptive background positioning ====== */
/* Very tall phones: push crop even more to the right to keep mic */
@media (max-aspect-ratio: 9/16){
  body{ background-position: 78% 28%; }
}

/* Landscape: recentre a bit */
@media (orientation: landscape){
  body{
    background-position: 62% 35%;
    align-items:center;
  }
  .panel{ width:min(520px, 96vw); }
  .hero{ margin: 2vh 0 14px; }
}

@media (max-height: 760px){
  .hero{ margin-top: 4vh; }
}

@media (prefers-reduced-motion: reduce){
  .btn{ transition:none; }
}
