/* Impact ECU • Product Registration
   Premium responsive UI (mobile + desktop)
*/

:root{
  --bg0:#05060a;
  --bg1:#070913;
  --card: rgba(16, 18, 28, .72);
  --card2: rgba(12, 13, 20, .78);
  --text:#f3f6ff;
  --muted: rgba(243,246,255,.70);
  --line: rgba(243,246,255,.12);
  --shadow: 0 22px 60px rgba(0,0,0,.55);
  --radius: 22px;

  /* Brand-ish gradient (matches Impact ECU logo vibe) */
  --g1:#6a5cff;   /* indigo */
  --g2:#3db7ff;   /* cyan */
  --g3:#9dffcf;   /* mint */
  --accent: #48c6ff;
  --danger:#ff5a7a;
  --ok:#49f0b5;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(61,183,255,.25), transparent 60%),
    radial-gradient(900px 600px at 80% 20%, rgba(106,92,255,.22), transparent 60%),
    radial-gradient(1100px 750px at 50% 90%, rgba(157,255,207,.12), transparent 65%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-decoration-color: rgba(72,198,255,.7); }

.wrap{
  width:min(980px, calc(100% - 40px));
  margin:0 auto;
}

.site-header{
  position: sticky;
  top:0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(5,6,10,.55);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}
.brand-logo{
  height: 34px;
  width: auto;
  display:block;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.4));
}
.brand-title{
  display:flex;
  flex-direction:column;
  line-height: 1.05;
  min-width: 0;
}
.brand-title strong{
  font-size: 14px;
  letter-spacing:.08em;
  text-transform: uppercase;
  opacity:.92;
}
.brand-title span{
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 13px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.pill:hover{
  transform: translateY(-1px);
  border-color: rgba(72,198,255,.35);
  background: rgba(72,198,255,.06);
  text-decoration:none;
}
.pill-dot{
  width:8px; height:8px; border-radius:50%;
  background: linear-gradient(135deg, var(--g1), var(--g2), var(--g3));
  box-shadow: 0 0 0 4px rgba(72,198,255,.12);
}

main{ padding: 42px 0 56px; }

.hero{
  display:grid;
  gap: 10px;
  margin-bottom: 22px;
}
.kicker{
  color: var(--muted);
  letter-spacing:.08em;
  text-transform: uppercase;
  font-size: 12px;
}
.h1{
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  margin:0;
}
.h1 .grad{
  background: linear-gradient(90deg, var(--g2), var(--g3));
  -webkit-background-clip: text;
  background-clip:text;
  color: transparent;
}
.sub{
  margin:0;
  color: var(--muted);
  font-size: 15px;
  max-width: 60ch;
}

.grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  margin-top: 22px;
}
@media (max-width: 880px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px 220px at 20% 0%, rgba(61,183,255,.18), transparent 60%),
              radial-gradient(600px 220px at 80% 0%, rgba(106,92,255,.15), transparent 60%);
  pointer-events:none;
}
.card-inner{
  position:relative;
  padding: 22px;
}
.card h2{
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing:.02em;
}
.small{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.form{
  display:grid;
  gap: 14px;
  margin-top: 14px;
}
.field{
  display:grid;
  gap: 8px;
}
label{
  font-size: 13px;
  color: rgba(243,246,255,.86);
}
input, select{
  width:100%;
  appearance: none;
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
input::placeholder{ color: rgba(243,246,255,.42); }
input:focus, select:focus{
  border-color: rgba(72,198,255,.55);
  box-shadow: 0 0 0 4px rgba(72,198,255,.16);
}

.two{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px){
  .two{ grid-template-columns: 1fr; }
}

.actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.btn{
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 650;
  letter-spacing:.01em;
  transition: transform .12s ease, filter .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: linear-gradient(135deg, var(--g1), var(--g2), var(--g3));
  color: #061018;
  box-shadow: 0 12px 30px rgba(61,183,255,.18);
}
.btn-primary:hover{ filter: brightness(1.04); }

.btn-ghost{
  background: rgba(255,255,255,.04);
  color: rgba(243,246,255,.88);
  border: 1px solid rgba(255,255,255,.12);
}
.btn-ghost:hover{
  background: rgba(72,198,255,.08);
  border-color: rgba(72,198,255,.30);
}

.note{
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 13px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 13px;
}
.badge strong{ color: rgba(243,246,255,.92); }

hr.sep{
  border:0;
  border-top: 1px solid rgba(255,255,255,.10);
  margin: 14px 0;
}

.footer{
  padding: 22px 0 40px;
  color: rgba(243,246,255,.55);
  font-size: 12px;
}
.footer a{ color: rgba(243,246,255,.70); }

.toast{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(243,246,255,.82);
  font-size: 13px;
  display:none;
}
.toast.show{ display:block; }
.toast.ok{ border-color: rgba(73,240,181,.25); background: rgba(73,240,181,.08); }
.toast.err{ border-color: rgba(255,90,122,.25); background: rgba(255,90,122,.08); }


.divider{
  height:1px;
  width:100%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.14), rgba(255,255,255,0));
  margin: 14px 0;
}
