:root{
  --bg:#182033;
  --panel:rgba(25, 34, 53, .78);
  --panel2:rgba(45, 28, 45, .66);
  --line:rgba(255,255,255,.17);
  --text:#ffffff;
  --muted:rgba(255,255,255,.66);

  --red:#b11235;
  --red2:#e63956;
  --gold:#d99a44;
  --gold2:#ffd27a;

  --ok:#4ade80;
  --warn:#ffd166;
  --danger:#ff4d6d;
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  min-height:100%;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 12% 36%, rgba(190,35,65,.42) 0 45px, transparent 108px),
    radial-gradient(circle at 90% 45%, rgba(190,35,65,.38) 0 75px, transparent 155px),
    radial-gradient(circle at 55% 48%, rgba(220,65,92,.18) 0 55px, transparent 130px),
    linear-gradient(120deg,#111827 0%,#172338 45%,#271629 100%);
  background-attachment:fixed;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(circle at 20% 18%, rgba(84,125,174,.20), transparent 290px),
    radial-gradient(circle at 82% 16%, rgba(230,57,86,.14), transparent 310px),
    repeating-linear-gradient(120deg, transparent 0 90px, rgba(255,255,255,.025) 91px 92px);
  pointer-events:none;
}

body::after{
  content:"";
  position:fixed;
  right:-130px;
  top:120px;
  width:460px;
  height:460px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.10);
  background:
    repeating-linear-gradient(55deg, transparent 0 24px, rgba(230,57,86,.20) 25px 27px),
    repeating-linear-gradient(-55deg, transparent 0 24px, rgba(255,210,122,.12) 25px 27px);
  opacity:.35;
  z-index:-1;
  pointer-events:none;
}

/* TOP BAR */

.topbar{
  width:min(1180px,90%);
  margin:46px auto 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  position:relative;
  z-index:10;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.logo{
  width:64px;
  height:64px;
  border-radius:18px;
  background:linear-gradient(145deg,#650018,#9b102d 55%,#d14c58);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:950;
  font-size:17px;
  letter-spacing:.7px;
  box-shadow:0 18px 40px rgba(177,18,53,.34);
  border:1px solid rgba(255,255,255,.18);
}

.title{
  font-size:36px;
  font-weight:900;
  line-height:1;
  letter-spacing:-1px;
  color:#fff;
}

.subtitle{
  margin-top:8px;
  color:rgba(255,255,255,.72);
  font-size:13px;
  line-height:1.4;
  max-width:840px;
}

.topActions{
  display:flex;
  gap:10px;
  align-items:center;
}

/* BUTTONS */

.btn{
  border:1px solid var(--line);
  color:#fff;
  background:rgba(255,255,255,.07);
  padding:12px 18px;
  border-radius:999px;
  font-size:13px;
  font-weight:850;
  cursor:pointer;
  transition:.25s ease;
}

.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(0,0,0,.20);
}

.btn.ghost{
  background:rgba(255,255,255,.07);
  backdrop-filter:blur(16px);
}

.backBtn{
  padding-inline:18px;
}

.btn.primary{
  border:none;
  color:#fff;
  background:linear-gradient(90deg,#940b2b,#c43a45,#d99a44);
  box-shadow:0 16px 38px rgba(196,58,69,.32);
}

/* HERO */

.heroIntro{
  min-height:62vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:54px 20px 70px;
  transition:.55s ease;
}

.heroGlass{
  width:min(720px,92%);
  text-align:center;
  padding:46px 54px;
  border-radius:30px;
  background:linear-gradient(145deg,rgba(28,35,54,.78),rgba(55,25,43,.62));
  border:1px solid rgba(255,255,255,.18);
  box-shadow:
    0 34px 90px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
}

.heroBadge{
  display:inline-block;
  margin-bottom:18px;
  padding:8px 18px;
  border-radius:999px;
  background:rgba(177,18,53,.40);
  border:1px solid rgba(230,57,86,.42);
  color:#ffd7df;
  font-size:11px;
  font-weight:900;
  letter-spacing:.8px;
  text-transform:uppercase;
}

.heroGlass h1{
  margin:0;
  font-size:48px;
  line-height:1.08;
  font-weight:900;
  letter-spacing:-1.2px;
  color:#fff;
}

.heroGlass h1::after{
  content:"";
  display:block;
  width:180px;
  height:2px;
  margin:22px auto 24px;
  background:linear-gradient(90deg,transparent,var(--gold2),transparent);
}

.heroGlass p{
  max-width:560px;
  margin:0 auto 28px;
  color:rgba(255,255,255,.72);
  line-height:1.7;
  font-size:15px;
}

.enzymePicker{
  display:grid;
  gap:16px;
  width:min(520px,100%);
  margin:0 auto;
  text-align:left;
}

.enzymePicker label{
  display:none;
}

.enzymePicker select{
  width:100%;
  height:56px;
  padding:0 20px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(13,19,33,.74);
  color:#fff;
  outline:none;
  font-size:14px;
}

.enzymePicker select option{
  color:#111827;
  background:#fff;
}

.heroBtn{
  width:78%;
  margin:12px auto 0;
  padding:15px 20px;
  font-size:15px;
}

.heroSmallText{
  text-align:center;
  color:rgba(255,255,255,.48);
  font-size:11px;
}

.hiddenApp{
  display:none !important;
}

.compactHero{
  min-height:240px;
  padding:20px 20px 34px;
}

.compactHero .heroGlass{
  transform:scale(.92);
  opacity:.92;
}

/* MAIN LAYOUT */

.wrap{
  width:min(1180px,90%);
  margin:0 auto 70px;
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:26px;
}

.left,.right{
  min-width:0;
}

.card{
  background:linear-gradient(145deg,rgba(22,31,49,.78),rgba(21,26,43,.70));
  border:1px solid rgba(255,255,255,.16);
  border-radius:26px;
  box-shadow:0 26px 70px rgba(0,0,0,.30);
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
  overflow:hidden;
}

.cardHeader{
  padding:26px 28px 8px;
  background:transparent;
  border-bottom:none;
}

.cardHeader h2{
  margin:0;
  font-size:23px;
  font-weight:850;
  color:#fff;
}

.cardHeader h2::after{
  content:"";
  display:block;
  width:96px;
  height:2px;
  margin-top:16px;
  background:linear-gradient(90deg,var(--red2),var(--gold2),transparent);
}

/* FORM GRID */

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px 24px;
  padding:18px 28px 28px;
}

.smallGrid{
  margin-top:12px;
  padding:0;
}

.field label{
  display:block;
  font-size:13px;
  font-weight:800;
  color:#fff;
  margin-bottom:8px;
}

.field input,
.field select{
  width:100%;
  height:50px;
  padding:0 16px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.17);
  background:rgba(13,19,33,.66);
  color:#fff;
  outline:none;
  font-size:14px;
  transition:.2s ease;
}

.field select option{
  color:#111827;
  background:#fff;
}

.field input:focus,
.field select:focus{
  border-color:rgba(255,210,122,.75);
  box-shadow:0 0 0 4px rgba(217,154,68,.12);
}

.field input::placeholder{
  color:rgba(255,255,255,.42);
}

.row{
  display:flex;
  align-items:center;
  gap:0;
}

.row input{
  border-radius:10px 0 0 10px;
}

.row select{
  max-width:105px;
  border-radius:0 10px 10px 0;
  border-left:none;
}

.hint{
  margin-top:8px;
  color:rgba(255,255,255,.52);
  font-size:11px;
  line-height:1.45;
}

.divider{
  height:1px;
  background:rgba(255,255,255,.10);
  margin:0 28px;
}

/* BOXES */

.box,
.box.infoBox{
  margin:22px 28px;
  padding:22px;
  border-radius:18px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.12);
}

.box h3{
  margin:0 0 8px;
  color:#fff;
  font-size:17px;
}

.box.infoBox{
  border-left:4px solid var(--red2);
}

.box.infoBox h3{
  color:#ffd27a;
}

.ol{
  margin:12px 0 0;
  padding-left:20px;
}

.ol li{
  margin:10px 0;
  color:rgba(255,255,255,.74);
  font-size:13px;
  line-height:1.55;
}

.note{
  color:rgba(255,255,255,.58);
  font-size:12px;
  margin-top:10px;
}

.predictRow{
  margin-top:14px;
  gap:10px;
  justify-content:space-between;
}

.predictStatus{
  color:rgba(255,255,255,.60);
  font-size:12px;
}

/* CHECKBOXES */

.checks{
  padding:24px 28px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.chk{
  display:flex;
  align-items:center;
  gap:10px;
  padding:13px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(13,19,33,.50);
  color:rgba(255,255,255,.78);
  font-size:12px;
}

.chk input{
  accent-color:var(--red2);
}

/* ACTIONS */

.actions{
  display:flex;
  gap:12px;
  padding:0 28px 22px;
}

.actions .btn{
  padding:14px 22px;
}

.disclaimer{
  padding:0 28px 26px;
  color:rgba(255,255,255,.50);
  font-size:11px;
  line-height:1.5;
}

/* RESULTS */

.right .card{
  min-height:560px;
}

#results{
  padding:22px 28px 28px;
}

.placeholder{
  min-height:340px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at center, rgba(220,65,92,.20), transparent 90px),
    linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.025));
  color:rgba(255,255,255,.75);
  font-size:15px;
  line-height:1.7;
}

/* REFERENCES */

.refs{
  margin-top:22px;
}

.refList{
  padding:0 28px 26px 46px;
  margin:0;
}

.refList li{
  margin:10px 0;
  color:rgba(255,255,255,.75);
}

a{
  color:#ffd27a;
  text-decoration:none;
}

a:hover{
  text-decoration:underline;
}

/* TABLE / OUTPUT */

table{
  width:100%;
  border-collapse:collapse;
  margin-top:16px;
  border-radius:14px;
  overflow:hidden;
  background:rgba(255,255,255,.05);
}

th,td{
  padding:13px;
  border-bottom:1px solid rgba(255,255,255,.10);
  text-align:left;
  font-size:12px;
}

th{
  color:#ffd27a;
  background:rgba(255,255,255,.08);
}

td{
  color:rgba(255,255,255,.78);
}

.warning,
.high-risk{
  border-left:5px solid var(--danger) !important;
}

.safe,
.low-risk{
  border-left:5px solid var(--ok) !important;
}

.moderate-risk{
  border-left:5px solid var(--warn) !important;
}

/* MOBILE */

@media(max-width:980px){
  .wrap{
    grid-template-columns:1fr;
    width:92%;
  }

  .topbar{
    width:92%;
    margin-top:28px;
    align-items:flex-start;
  }
}

@media(max-width:720px){
  .topbar{
    flex-direction:column;
  }

  .topActions{
    align-self:flex-end;
  }

  .grid,
  .checks{
    grid-template-columns:1fr;
    padding-left:20px;
    padding-right:20px;
  }

  .cardHeader{
    padding-left:20px;
  }

  .box,
  .box.infoBox{
    margin-left:20px;
    margin-right:20px;
  }

  .actions,
  .disclaimer,
  #results{
    padding-left:20px;
    padding-right:20px;
  }
}

@media(max-width:620px){
  .logo{
    width:56px;
    height:56px;
  }

  .title{
    font-size:28px;
  }

  .subtitle{
    font-size:12px;
  }

  .heroGlass{
    padding:34px 24px;
  }

  .heroGlass h1{
    font-size:38px;
  }

  .wrap{
    width:92%;
  }

  .heroBtn{
    width:100%;
  }
}
