/* Bacterator landing, design v2: asymmetric split hero.
   Brand tokens mirrored from the device UI (copper accent, neutral-black
   base, Mulish + Jost). Radius system: panels 20px, inputs/buttons 12px. */
:root {
  --bg: #0B0C0D;
  --surface: #161719;
  --surface-2: #1E2023;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.17);
  --copper: #D2884E;
  --copper-deep: #A8632E;
  --text: #F2F4F5;
  --text-mid: rgba(242, 244, 245, 0.66);
  --text-dim: rgba(242, 244, 245, 0.44);
  --font-sans: 'Mulish', system-ui, -apple-system, sans-serif;
  --font-display: 'Jost', 'Mulish', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r-panel: 20px;
  --r-input: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(110% 90% at 18% 0%, #17191B 0%, var(--bg) 58%) fixed,
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Ambient layers (bg.js motes + aurora + brand mark) ── */
.bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.aurora::before {
  width: 58vmax; height: 58vmax; left: -16vmax; top: -24vmax;
  background: radial-gradient(circle, rgba(210, 136, 78, 0.18), transparent 60%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.aurora::after {
  width: 48vmax; height: 48vmax; right: -14vmax; bottom: -20vmax;
  background: radial-gradient(circle, rgba(168, 99, 46, 0.14), transparent 60%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
@keyframes drift-a { from { transform: translate(0,0) scale(1); } to { transform: translate(8vmax, 6vmax) scale(1.15); } }
@keyframes drift-b { from { transform: translate(0,0) scale(1); } to { transform: translate(-7vmax, -5vmax) scale(1.1); } }

.bull-watermark {
  position: fixed;
  left: 38%;
  bottom: -14%;
  width: 52vmax;
  height: 52vmax;
  background: url("bacterator-icon.png") no-repeat center / contain;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* ── Shell: asymmetric split ── */
.shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  max-width: 1500px;
  margin: 0 auto;
}

/* ── Brand side ── */
.brand-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(28px, 4vw, 56px);
}

.topbar { display: flex; align-items: center; }
.logo-h { height: 44px; width: auto; }

.hero { max-width: 560px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 18px;
}

h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(40px, 4.6vw, 64px);
  letter-spacing: -0.025em;
  line-height: 1.06;
}
h1 em {
  font-style: italic;
  color: var(--copper);
  line-height: 1.1;            /* descender clearance for the italic "g" */
  display: inline-block;
  padding-bottom: 4px;
}

.lead {
  color: var(--text-mid);
  font-size: 17px;
  line-height: 1.7;
  margin-top: 20px;
  max-width: 46ch;
}

/* ── Form side ── */
.form-side {
  display: grid;
  place-items: center;
  padding: clamp(28px, 4vw, 56px);
  border-left: 1px solid var(--border);
  background: linear-gradient(200deg, rgba(210, 136, 78, 0.05), rgba(22, 23, 25, 0.35) 55%);
}

.panel {
  width: 100%;
  max-width: 470px;
  background: rgba(22, 23, 25, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  padding: 34px 32px;
  box-shadow:
    0 30px 80px -40px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
@media (prefers-reduced-transparency: reduce) {
  .panel { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.panel--center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }

h2 {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.015em;
}
.panel-sub {
  color: var(--text-mid);
  font-size: 14.5px;
  line-height: 1.6;
  margin-top: 8px;
}

/* ── Form ── */
.signup { margin-top: 24px; display: flex; flex-direction: column; gap: 15px; }
.row { display: flex; gap: 14px; }
.row .field { flex: 1; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 7px; }

label {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

input[type="text"], input[type="email"], input[type="tel"], select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  padding: 13px 15px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
input::placeholder { color: var(--text-dim); }
input:focus, select:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(210, 136, 78, 0.18);
}

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-mid);
  border-bottom: 2px solid var(--text-mid);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 38px;
  cursor: pointer;
}
select:invalid { color: var(--text-dim); }
select option { color: var(--text); background: var(--surface-2); }

.opt {
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: none;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: var(--r-input);
  background: linear-gradient(180deg, var(--copper), var(--copper-deep));
  color: #1a0f06;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 16px 40px -16px rgba(210, 136, 78, 0.7);
  transition: transform 140ms var(--ease), filter 180ms var(--ease);
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(0.985); }
.btn--ghost {
  width: auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
  margin-top: 16px;
  padding: 12px 26px;
  text-decoration: none;
}

.consent { color: var(--text-dim); font-size: 12.5px; text-align: center; }

.check {
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--copper);
  background: rgba(210, 136, 78, 0.14);
  box-shadow: 0 0 0 1px rgba(210, 136, 78, 0.4), 0 0 60px rgba(210, 136, 78, 0.25);
  margin-bottom: 4px;
}

/* ── Footer ── */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--text-dim);
  font-size: 13px;
}
.foot a { color: var(--text-mid); text-decoration: none; }
.foot a:hover { color: var(--copper); }
.foot-mobile { display: none; }

/* ── Load-in reveal (transform/opacity only) ── */
.reveal {
  animation: rise 0.7s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 90ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .aurora::before, .aurora::after { animation: none; }
}

/* ── Mobile collapse ── */
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .brand-side { gap: 28px; padding-bottom: 8px; justify-content: flex-start; }
  .brand-side .foot { display: none; }
  .foot-mobile { display: flex; padding: 20px clamp(24px, 5vw, 40px) 28px; justify-content: center; text-align: center; }
  .form-side { border-left: none; padding-top: 8px; background: none; }
  .hero { max-width: none; }
  .logo-h { height: 36px; }
  .bull-watermark { left: 20%; width: 80vmax; height: 80vmax; }
}
@media (max-width: 480px) {
  .row { flex-direction: column; gap: 15px; }
  .panel { padding: 28px 22px; }
  h1 { font-size: 36px; }
}
