/* assets/style.css */

:root{
  --bg: #0b1220;
  --text: #eaf0ff;
  --muted: rgba(234,240,255,.72);
  --line: rgba(234,240,255,.12);
  --danger:#ff6b6b;
  --ok:#48d597;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(900px 420px at 15% 10%, rgba(110,168,255,.25), transparent 60%),
    radial-gradient(700px 380px at 90% 0%, rgba(139,255,207,.16), transparent 60%),
    radial-gradient(900px 520px at 40% 95%, rgba(110,168,255,.14), transparent 60%),
    var(--bg);
  color:var(--text);
}

.container{ width:min(980px, 92vw); margin:0 auto; }

.site-header{
  position:sticky;
  top:0;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.55);
  border-bottom: 1px solid var(--line);
  z-index:10;
}
.header-inner{ padding:14px 0; }
.header-center{ display:flex; justify-content:center; align-items:center; }

.brand-logo{ height:80px; width:auto; display:block; }
@media (max-width:520px){ .brand-logo{ height:38px; } }

.content{ padding: 26px 0 42px; }

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.grid{ display:grid; gap:16px; }

.hero{
  padding: 26px;
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(180deg, rgba(110,168,255,.20), transparent 55%),
    rgba(255,255,255,.04);
  border: 1px solid rgba(234,240,255,.14);
}

h1,h2{ margin:0 0 10px; letter-spacing:-.02em; }
h1{ font-size: clamp(24px, 3.4vw, 34px); }
h2{ font-size: clamp(18px, 2.3vw, 22px); }
p{ margin:0 0 12px; color:var(--muted); line-height:1.55; }

.hr{ height:1px; background: var(--line); margin: 16px 0; }

.badge-row{
  display:flex; flex-wrap:wrap; gap:10px;
  align-items:center; justify-content:space-between;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 10px;
  border:1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  font-size: 13px;
  color: rgba(234,240,255,.86);
}

.progress{
  width:100%; height:10px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow:hidden;
}
.progress > div{
  height:100%;
  background: linear-gradient(90deg, rgba(110,168,255,.95), rgba(139,255,207,.85));
}

.form{ display:grid; gap:12px; margin-top: 10px; }

.option{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 14px 14px;
  display:flex; gap:12px;
  align-items:flex-start;
  cursor:pointer;
}
.option:hover{ border-color: rgba(234,240,255,.24); }
.option input{ margin-top:3px; transform: scale(1.2); }
.option .label{ color: rgba(234,240,255,.92); line-height:1.35; }

.actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 10px; }

.btn{
  appearance:none;
  border:1px solid rgba(234,240,255,.18);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-weight: 650;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn:hover{ border-color: rgba(234,240,255,.30); }
.btn-primary{
  background: linear-gradient(135deg, rgba(110,168,255,.95), rgba(139,255,207,.40));
  color: #071124;
  border: none;
}

.alert{
  border:1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  color: rgba(234,240,255,.92);
}
.alert-danger{
  border-color: rgba(255,107,107,.30);
  background: rgba(255,107,107,.08);
}
.alert-ok{
  border-color: rgba(72,213,151,.30);
  background: rgba(72,213,151,.08);
}
.result-title{
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 8px;
  color: rgba(234,240,255,.98);
}
.explanation-text{
  margin: 0;
  color: rgba(234,240,255,.90);
  line-height: 1.55;
}

.site-footer{
  border-top: 1px solid var(--line);
  padding: 18px 0;
  background: rgba(11,18,32,.35);
}
.muted{ color: var(--muted); font-size: 13px; }

@media (max-width: 520px){
  .card{ padding: 16px; }
  .hero{ padding: 18px; }
  .actions .btn{ width:100%; }
}
