:root {
  --bg: #070816;
  --bg-2: #10132a;
  --panel: rgba(14, 18, 44, 0.82);
  --panel-strong: rgba(20, 27, 62, 0.95);
  --text: #f4f7ff;
  --muted: #aeb8d6;
  --cyan: #32e6ff;
  --blue: #5b7cfa;
  --violet: #a855f7;
  --pink: #ff4fd8;
  --warning: #ffd166;
  --border: rgba(96, 210, 255, 0.28);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 5%, rgba(50, 230, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 82% 12%, rgba(168, 85, 247, 0.24), transparent 34rem),
    radial-gradient(circle at 50% 80%, rgba(255, 79, 216, 0.12), transparent 38rem),
    linear-gradient(180deg, #050611 0%, #090b1e 48%, #050611 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(13, 18, 44, 0.94), rgba(20, 10, 42, 0.86)),
    url("../img/bcbc-ai-banner.svg");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.hero-glow {
  position: absolute;
  inset: -30%;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(50, 230, 255, 0.22), transparent 20rem),
    radial-gradient(circle at 70% 35%, rgba(255, 79, 216, 0.18), transparent 22rem);
  filter: blur(8px);
}

.brand-row {
  position: relative;
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 16px;
  align-items: center;
}

.brand-mark {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  filter: drop-shadow(0 0 18px rgba(50, 230, 255, 0.55));
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 8vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-shadow:
    0 0 24px rgba(50, 230, 255, 0.38),
    0 0 44px rgba(168, 85, 247, 0.28);
}

.tagline {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 3vw, 1.25rem);
  line-height: 1.45;
}

.notice-card {
  position: relative;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 209, 102, 0.38);
  border-radius: 18px;
  color: #fff6d8;
  background: rgba(255, 209, 102, 0.09);
  line-height: 1.45;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(20, 27, 62, 0.88), rgba(9, 12, 30, 0.9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.panel-header {
  margin-bottom: 14px;
}

.step-label {
  margin: 0 0 5px;
  color: var(--pink);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}

.upload-box {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 22px;
  border: 2px dashed rgba(50, 230, 255, 0.42);
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(50, 230, 255, 0.12), transparent 65%),
    rgba(5, 8, 24, 0.56);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.upload-box:hover,
.upload-box:focus-within {
  transform: translateY(-1px);
  border-color: rgba(255, 79, 216, 0.75);
  background:
    radial-gradient(circle at center, rgba(255, 79, 216, 0.12), transparent 65%),
    rgba(5, 8, 24, 0.72);
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 10px;
  border-radius: 18px;
  color: var(--bg);
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 0 28px rgba(50, 230, 255, 0.32);
}

.upload-title {
  display: block;
  font-weight: 900;
  font-size: 1.12rem;
}

.upload-note {
  display: block;
  max-width: 320px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.35;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.preview-card {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(96, 210, 255, 0.18);
  border-radius: 18px;
  background: rgba(4, 7, 20, 0.62);
}

.preview-area {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.preview-area img,
.preview-area video {
  display: block;
  max-width: 100%;
  max-height: 340px;
  border-radius: 14px;
}

.preview-placeholder {
  width: min(220px, 70%);
  opacity: 0.86;
}

.checklist {
  display: grid;
  gap: 10px;
}

.checklist label {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  padding: 13px;
  border: 1px solid rgba(96, 210, 255, 0.16);
  border-radius: 15px;
  color: #e9efff;
  background: rgba(5, 8, 24, 0.42);
  line-height: 1.35;
}

.checklist input {
  width: 22px;
  height: 22px;
  accent-color: var(--cyan);
}

.risk-row,
.notes-label {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 800;
}

select,
textarea {
  width: 100%;
  border: 1px solid rgba(96, 210, 255, 0.26);
  border-radius: 15px;
  color: var(--text);
  background: rgba(4, 7, 20, 0.76);
  outline: none;
}

select {
  min-height: 48px;
  padding: 0 13px;
}

textarea {
  padding: 13px;
  resize: vertical;
  line-height: 1.45;
}

select:focus,
textarea:focus {
  border-color: rgba(50, 230, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(50, 230, 255, 0.12);
}

.button-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0;
}

button {
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  padding: 0 16px;
  color: #050611;
  font-weight: 950;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 12px 32px rgba(50, 230, 255, 0.18);
}

button:active {
  transform: translateY(1px);
}

button.secondary {
  color: var(--text);
  border: 1px solid rgba(96, 210, 255, 0.28);
  background: rgba(5, 8, 24, 0.72);
  box-shadow: none;
}

.full-width {
  width: 100%;
}

.report-output {
  min-height: 250px;
}

.safe-reply {
  margin: 14px 0;
  padding: 15px;
  border-left: 4px solid var(--cyan);
  border-radius: 14px;
  color: #eaf8ff;
  background: rgba(50, 230, 255, 0.08);
  line-height: 1.5;
}

.site-footer {
  padding: 20px 8px 6px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
  line-height: 1.45;
}

@media (min-width: 760px) {
  .page-shell {
    padding: 26px;
  }

  .hero {
    padding: 34px;
  }

  .main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-panel {
    grid-column: span 2;
  }

  .button-row {
    grid-template-columns: 1.2fr 0.8fr 0.9fr;
  }
}

@media (min-width: 1040px) {
  .main-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .result-panel {
    grid-column: auto;
  }

  .learn-panel {
    grid-column: span 2;
  }
}
