:root{
  --bg:#0b0f17;
  --bg2:#0a0d14;
  --surface:rgba(255,255,255,.06);
  --surface-strong:rgba(255,255,255,.12);
  --text:#e9eef8;
  --muted:#9aa4b2;
  --accent1:#67e8f9;
  --accent2:#a78bfa;
  --ring: rgba(103,232,249,.6);
  --danger:#ff6b6b;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(103,232,249,.08), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(167,139,250,.08), transparent 60%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 88%, transparent),
      color-mix(in srgb, var(--bg2) 88%, transparent)
    ),
    url('img.png') center / cover no-repeat fixed;
  display:grid;
  place-items:center;
  line-height:1.45;
  background-color: var(--bg);
}

.bg-grid{
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 40px);
  mask: radial-gradient(600px 300px at 50% 20%, rgba(0,0,0,1) 0%, rgba(0,0,0,.3) 60%, rgba(0,0,0,0) 100%);
  -webkit-mask: radial-gradient(600px 300px at 50% 20%, rgba(0,0,0,1) 0%, rgba(0,0,0,.3) 60%, rgba(0,0,0,0) 100%);
}

.shell{
  width:min(92vw, 780px);
  background: color-mix(in hsl, white 6%, transparent);
  border:1px solid var(--surface);
  border-radius:20px;
  padding:28px;
  position:relative;
  backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 10px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
}

.top{display:grid;gap:12px}
.brand{
  font-weight:700;
  letter-spacing:.5px;
  font-size:14px;
  color:var(--muted);
  display:flex;align-items:center;gap:6px;
}
.brand span{
  color:transparent;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
}

.progress{
  height:8px;
  background:rgba(255,255,255,.06);
  border-radius:999px;
  overflow:hidden;
  border:1px solid var(--surface);
}
.progress__bar{
  height:100%;width:0%;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent1), transparent 70%);
  transition:width .3s ease;
}
.progress__meta{color:var(--muted);font-size:12px}

h1,h2,legend{margin:10px 0 8px;font-weight:700;letter-spacing:.2px}
h1{font-size:28px}
h2,legend{font-size:20px}
.lead{color:var(--muted);margin:0 0 16px}

.slide{display:none;animation:fade .35s ease}
.slide.active{display:block}
@keyframes fade{from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none}}

.choices{display:grid;gap:12px;margin-top:12px}
.choice{position:relative;display:block}
.choice input{position:absolute;opacity:0;pointer-events:none}
.choice span{
  display:block;padding:14px 16px;border-radius:14px;
  border:1px solid var(--surface);background: rgba(255,255,255,.03);
  transition: all .2s ease;
}
.choice:hover span{border-color:var(--surface-strong)}
.choice input:focus-visible + span{outline: 2px solid var(--ring); outline-offset: 2px}
.choice input:checked + span{
  border-color: color-mix(in srgb, var(--accent2), white 20%);
  background: linear-gradient(135deg, rgba(103,232,249,.12), rgba(167,139,250,.12));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent1), transparent 60%);
}

.nav{display:flex;gap:12px;justify-content:space-between;margin-top:18px}

.btn{
  appearance:none;border:1px solid var(--surface);background: rgba(255,255,255,.03);
  color:var(--text);padding:12px 16px;border-radius:14px;font-weight:600;letter-spacing:.2px;
  cursor:pointer;transition: all .2s ease;
}
.btn:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.btn:hover{border-color:var(--surface-strong)}
.btn[disabled]{opacity:.5;cursor:not-allowed}
.btn-primary{
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow: 0 10px 24px rgba(103,232,249,.18), 0 2px 0 rgba(255,255,255,.06) inset;
}
.btn-primary:hover{filter: brightness(1.05)}
.btn-ghost{background: transparent}

.form fieldset{border:0;padding:0;margin:0}
.form .hint{display:block;color:var(--muted);font-size:12px;margin-top:6px}

.grid{display:grid;gap:14px;margin-top:8px}
.grid label{display:grid;gap:6px;font-size:14px;color:var(--muted)}
.grid input,.grid select{
  width:100%;padding:12px 14px;border-radius:12px;border:1px solid var(--surface);
  background: rgba(255,255,255,.03);color:var(--text);outline:none;transition: all .2s ease;
}
.grid select{appearance:none}
.grid input::placeholder{color: color-mix(in srgb, var(--muted), white 10%)}
.grid input:focus,.grid select:focus{
  border-color: var(--surface-strong);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ring), transparent 60%);
}

@media (min-width: 560px){
  .grid{grid-template-columns: 1fr 1fr}
  .grid .full{grid-column: 1 / -1}
}

.form-note{margin:8px 0 0;color:var(--muted);font-size:12px}
.status{margin-top:10px;font-size:13px;color:var(--muted)}
.status.error{color:var(--danger)}

.success{text-align:center;padding:20px 8px}
.shell.sent .success h2{
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}

.foot{
  margin-top:24px;display:flex;justify-content:space-between;align-items:center;
  color:var(--muted);font-size:12px;border-top:1px solid var(--surface);padding-top:16px;
}
.foot a{color:var(--muted);text-decoration:none;margin-left:12px}
.foot a:hover{color:var(--text)}
