﻿:root {
  --cyan: #00e5ff;
  --cyan-2: #3ba6ff;
  --bg1: #020d18;
  --bg2: #041526;
  --panel: rgba(4, 21, 38, 0.86);
  --line: rgba(0, 229, 255, 0.2);
  --line-soft: rgba(0, 229, 255, 0.08);
  --text: #d5eef8;
  --muted: #78a7bc;
  --ok: #00ffbf;
  --warn: #f0c86a;
  --bad: #ff8e8e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg1), var(--bg2));
  min-height: 100vh;
  overflow-x: hidden;
}

#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.scan {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 229, 255, 0.012) 2px,
    rgba(0, 229, 255, 0.012) 4px
  );
}

.page {
  width: min(1080px, 92vw);
  margin: 28px auto 48px;
  position: relative;
  z-index: 2;
}

.hero {
  background: linear-gradient(140deg, rgba(0, 229, 255, 0.1), rgba(2, 13, 24, 0.96) 55%, rgba(59, 166, 255, 0.1));
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(22px, 4.5vw, 42px);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border-style: solid;
  border-color: var(--cyan);
}

.hero::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.hero::after { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.05);
  color: var(--cyan);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.brand-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-block {
  display: flex;
  justify-content: center;
  min-width: 210px;
}

.brand-logo {
  width: 210px;
  max-width: 35vw;
  height: auto;
}

.hero h1,
.card h2,
#resultCard h2,
h3,
legend {
  font-family: "Orbitron", sans-serif;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 2.4vw, 2.1rem);
  line-height: 1.2;
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.32);
}

.hero p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 64ch;
}

.slogan {
  display: inline-block;
  margin-top: 10px;
  color: #fff;
  font-weight: 700;
  border-left: 2px solid var(--cyan);
  padding-left: 10px;
}

.card {
  margin-top: 12px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-top: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(14px, 3vw, 22px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.5;
}

.form-progress {
  border: 1px solid var(--line);
  background: rgba(0, 229, 255, 0.04);
  border-radius: 3px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.form-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.progress-meta {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--cyan);
}

.progress-track {
  width: 100%;
  height: 8px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(2, 17, 34, 0.9);
}

.progress-fill {
  height: 100%;
  width: 13%;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-2));
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
  transition: width 0.2s ease;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 14px;
  margin: 0 0 12px;
  background: rgba(0, 229, 255, 0.03);
}

legend {
  padding: 0 8px;
  color: var(--cyan);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 11px;
  font-weight: 600;
}

.label-inline {
  margin: 0 0 8px;
  font-weight: 700;
  color: #dff6ff;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(2, 17, 34, 0.82);
  color: #effaff;
  border-radius: 3px;
  padding: 10px 11px;
}

input::placeholder {
  color: #6f9ab0;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.14);
}

.grid-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.grid-checks label {
  margin: 0;
  border: 1px dashed rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.04);
  padding: 8px 10px;
  border-radius: 3px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.success-message {
  margin-top: 12px;
  border: 1px solid rgba(0, 255, 191, 0.35);
  background: rgba(0, 255, 191, 0.1);
  color: #dffef2;
  padding: 10px 12px;
  border-radius: 3px;
  font-weight: 700;
}

button {
  border: 1px solid var(--cyan);
  border-radius: 3px;
  padding: 11px 16px;
  font-family: "Share Tech Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  cursor: pointer;
}

button[type='submit'] {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.25), rgba(59, 166, 255, 0.25));
  color: #03111d;
}

button.nav-btn {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.18), rgba(59, 166, 255, 0.15));
  color: #03111d;
}

#prevBtn {
  color: #eefcff;
  border-color: rgba(0, 229, 255, 0.55);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.35);
  font-weight: 800;
}

button[type='submit']:hover,
button.secondary:hover {
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
}

button.secondary {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.18), rgba(59, 166, 255, 0.15));
  color: #03111d;
}

.score-box {
  display: inline-block;
  margin-bottom: 8px;
  border-radius: 3px;
  padding: 8px 11px;
  font-weight: 800;
  font-family: "Share Tech Mono", monospace;
}

.score-low {
  background: rgba(255, 142, 142, 0.12);
  border: 1px solid rgba(255, 142, 142, 0.35);
  color: var(--bad);
}

.score-mid {
  background: rgba(240, 200, 106, 0.12);
  border: 1px solid rgba(240, 200, 106, 0.35);
  color: var(--warn);
}

.score-high {
  background: rgba(0, 255, 191, 0.11);
  border: 1px solid rgba(0, 255, 191, 0.35);
  color: var(--ok);
}

#profileBox h3,
#proposalBox h3 {
  margin: 8px 0;
  color: var(--cyan);
  font-size: 1rem;
}

#profileBox p,
#proposalBox p,
#proposalBox li {
  color: var(--text);
  line-height: 1.5;
}

.hidden {
  display: none;
}

body.modal-open .page {
  filter: blur(6px) brightness(0.7);
  pointer-events: none;
  user-select: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(1, 9, 17, 0.55);
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  width: min(560px, 94vw);
  background: linear-gradient(140deg, rgba(0, 229, 255, 0.1), rgba(2, 13, 24, 0.96) 55%, rgba(59, 166, 255, 0.1));
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.modal-card h2 {
  color: #fff;
  margin: 0 0 10px;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
}

.modal-card p {
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 740px) {
  .page {
    width: min(96vw, 1080px);
    margin-top: 16px;
  }

  .brand-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-block {
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .brand-logo {
    width: 190px;
    max-width: 56vw;
  }

  .actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  button[type='submit'],
  button.nav-btn {
    width: 100%;
  }

  .modal-actions {
    flex-wrap: wrap;
  }

  .modal-actions button {
    width: 100%;
  }
}
