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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #050508;
  color: #e5e5e5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── BACKGROUND EFFECTS ─── */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow.glow-blue {
  background: radial-gradient(ellipse, rgba(59,130,246,0.08) 0%, transparent 70%);
}

/* ─── FORM PAGE ─── */
.form-page, .loading-page, .results-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-container {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 100%;
  padding: 40px 20px;
}

/* ─── HERO ─── */
.hero {
  text-align: center;
  margin-bottom: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #f59e0b;
  margin-bottom: 20px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #f59e0b;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

h1 {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.subhead {
  font-size: 16px;
  color: #8a8a9a;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto;
}

/* ─── STEP INDICATORS ─── */
.step-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 8px;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #2a2a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #4a4a5a;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: #0a0a12;
}

.step-dot.active {
  border-color: #f59e0b;
  color: #f59e0b;
  background: rgba(245,158,11,0.1);
  box-shadow: 0 0 20px rgba(245,158,11,0.15);
}

.step-dot.completed {
  border-color: #22c55e;
  background: #22c55e;
  color: #fff;
}

.step-line {
  width: 60px;
  height: 2px;
  background: #1a1a2a;
  border-radius: 2px;
  overflow: hidden;
}

.step-line-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #f59e0b);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.step-labels {
  display: flex;
  justify-content: center;
  gap: 42px;
  margin-bottom: 28px;
}

.step-label {
  font-size: 11px;
  font-weight: 600;
  color: #3a3a4a;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.step-label.active {
  color: #8a8a9a;
}

/* ─── FORM ─── */
form {
  background: rgba(14,14,22,0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.3), transparent);
}

.form-step {
  display: none;
  animation: fadeSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-step.active {
  display: block;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-group {
  margin-bottom: 22px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #c4c4d4;
  margin-bottom: 8px;
}

.optional {
  font-weight: 400;
  color: #4a4a5a;
  font-size: 12px;
}

input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.25s;
}

input:focus {
  outline: none;
  border-color: rgba(245,158,11,0.5);
  background: rgba(245,158,11,0.03);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.08);
}

input::placeholder {
  color: #3a3a4a;
}

.input-with-icon {
  position: relative;
}

.input-with-icon svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 42px;
}

/* ─── INDUSTRY CHIPS ─── */
.industry-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.industry-chip {
  padding: 8px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  color: #8a8a9a;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  width: auto;
  margin: 0;
}

.industry-chip:hover {
  border-color: rgba(245,158,11,0.3);
  color: #c4c4d4;
  background: rgba(245,158,11,0.05);
}

.industry-chip.selected {
  border-color: #f59e0b;
  color: #f59e0b;
  background: rgba(245,158,11,0.1);
  box-shadow: 0 0 12px rgba(245,158,11,0.1);
}

.helper-text {
  font-size: 13px;
  color: #4a4a5a;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* ─── BUTTONS ─── */
.step-nav {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.btn-next, .btn-submit {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #f59e0b, #e88d00);
  color: #000;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  width: auto;
  margin: 0;
}

.btn-next::after, .btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15));
  pointer-events: none;
}

.btn-next:hover, .btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245,158,11,0.25);
}

.btn-next:active, .btn-submit:active {
  transform: translateY(0);
}

.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #8a8a9a;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  width: auto;
  margin: 0;
}

.btn-back:hover {
  background: rgba(255,255,255,0.06);
  color: #c4c4d4;
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.disclaimer {
  text-align: center;
  font-size: 12px;
  color: #3a3a4a;
  margin-top: 16px;
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  color: #2a2a3a;
  font-weight: 500;
}

.trust-sep {
  color: #1a1a2a;
}

.footer-disclaimer {
  font-size: 10px;
  color: #2a2a3a;
  line-height: 1.6;
  margin-top: 20px;
  text-align: center;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── TERMS CHECKBOX ─── */
.terms-check {
  margin-bottom: 16px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #6a6a7a;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-top: 1px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #f59e0b;
  border-color: #f59e0b;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.checkbox-label a {
  color: #f59e0b;
  text-decoration: none;
  border-bottom: 1px solid rgba(245,158,11,0.3);
  transition: border-color 0.2s;
}

.checkbox-label a:hover {
  border-color: #f59e0b;
}

/* ─── LOADING PAGE ─── */
.loading-container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 480px;
}

.loading-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
}

.loading-ring svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.progress-ring {
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-percent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}

.loading-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.loading-domain {
  font-size: 14px;
  color: #4a4a5a;
  margin-bottom: 36px;
}

.loading-steps {
  text-align: left;
  max-width: 340px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.load-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  transition: all 0.4s;
  color: #3a3a4a;
}

.load-step.active {
  background: rgba(245,158,11,0.05);
  color: #c4c4d4;
}

.load-step.done {
  color: #4a4a5a;
}

.load-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.load-step.active .load-step-icon {
  background: rgba(245,158,11,0.1);
}

.load-step.active .load-step-icon svg {
  stroke: #f59e0b;
}

.load-step.done .load-step-icon {
  background: rgba(34,197,94,0.1);
}

.load-step.done .load-step-icon svg {
  stroke: #22c55e;
}

.load-step span {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
}

.load-step-check {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.load-step.done .load-step-check {
  opacity: 1;
  transform: scale(1);
}

/* ─── RESULTS PAGE ─── */
.results-container {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
  padding: 40px 20px 60px;
}

.results-eyebrow {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #4a4a5a;
  margin-bottom: 6px;
}

#results-domain {
  text-align: center;
  font-size: 14px;
  color: #6a6a7a;
  margin-bottom: 32px;
}

/* ─── SCORE RING ─── */
.score-hero {
  text-align: center;
  margin-bottom: 32px;
}

.score-ring-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
}

.score-ring {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}

.score-ring-progress {
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -2px;
}

.score-label {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.score-verdict {
  font-size: 14px;
  color: #6a6a7a;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ─── GRADE CARDS ─── */
.grade-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.grade-card {
  background: rgba(14,14,22,0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.grade-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.grade-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.grade-card-header span {
  font-size: 12px;
  font-weight: 600;
  color: #6a6a7a;
  letter-spacing: 0.3px;
}

.grade-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.grade-icon svg {
  stroke: #6a6a7a;
}

.grade-letter {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.grade-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}

.grade-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Grade colors */
.grade-a .grade-letter { color: #22c55e; }
.grade-a .grade-icon svg { stroke: #22c55e; }
.grade-a .grade-icon { background: rgba(34,197,94,0.1); }
.grade-a .grade-bar-fill { background: linear-gradient(90deg, #22c55e, #4ade80); }

.grade-b .grade-letter { color: #84cc16; }
.grade-b .grade-icon svg { stroke: #84cc16; }
.grade-b .grade-icon { background: rgba(132,204,22,0.1); }
.grade-b .grade-bar-fill { background: linear-gradient(90deg, #84cc16, #a3e635); }

.grade-c .grade-letter { color: #f59e0b; }
.grade-c .grade-icon svg { stroke: #f59e0b; }
.grade-c .grade-icon { background: rgba(245,158,11,0.1); }
.grade-c .grade-bar-fill { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.grade-d .grade-letter { color: #f97316; }
.grade-d .grade-icon svg { stroke: #f97316; }
.grade-d .grade-icon { background: rgba(249,115,22,0.1); }
.grade-d .grade-bar-fill { background: linear-gradient(90deg, #f97316, #fb923c); }

.grade-f .grade-letter { color: #ef4444; }
.grade-f .grade-icon svg { stroke: #ef4444; }
.grade-f .grade-icon { background: rgba(239,68,68,0.1); }
.grade-f .grade-bar-fill { background: linear-gradient(90deg, #ef4444, #f87171); }

/* ─── REPORT CONTENT ─── */
.report-card {
  background: rgba(14,14,22,0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 36px;
  line-height: 1.75;
  font-size: 15px;
}

.report-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-top: 28px;
  margin-bottom: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-card h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.report-card p {
  margin-bottom: 12px;
  color: #b4b4c4;
}

.report-card ul {
  margin-bottom: 16px;
  padding-left: 0;
  list-style: none;
}

.report-card li {
  margin-bottom: 8px;
  color: #b4b4c4;
  padding-left: 20px;
  position: relative;
}

.report-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}

.report-card strong {
  color: #fff;
  font-weight: 700;
}

/* ─── CTA BOX ─── */
.cta-box {
  position: relative;
  background: rgba(14,14,22,0.9);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  margin-top: 28px;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h3 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
}

.cta-box p {
  color: #8a8a9a;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.5;
  position: relative;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #f59e0b, #e88d00);
  color: #000;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s;
  position: relative;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(245,158,11,0.3);
}

.cta-sub {
  font-size: 12px !important;
  color: #3a3a4a !important;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}

.field-hint {
  font-size: 12px;
  color: #4a4a5a;
  margin-top: 6px;
}

.input-with-icon {
  position: relative;
}

.fb-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #12121a;
  border: 1px solid rgba(255,255,255,0.1);
  border-top: none;
  border-radius: 0 0 10px 10px;
  z-index: 50;
  max-height: 280px;
  overflow-y: auto;
}

.fb-dropdown.active {
  display: block;
}

.fb-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.fb-dropdown-item:hover {
  background: rgba(255,255,255,0.06);
}

.fb-dropdown-item img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a1a2e;
}

.fb-dropdown-item .fb-page-name {
  font-size: 14px;
  font-weight: 600;
  color: #e5e5e5;
}

.fb-dropdown-item .fb-page-url {
  font-size: 11px;
  color: #4a4a5a;
  margin-top: 2px;
}

.fb-dropdown-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: #4a4a5a;
}

.fb-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: #f59e0b;
  border-radius: 50%;
  animation: fb-spin 0.6s linear infinite;
}

@keyframes fb-spin {
  to { transform: rotate(360deg); }
}

.input-spinner {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: #f59e0b;
  border-radius: 50%;
  animation: fb-spin 0.6s linear infinite;
  display: none;
}

.input-spinner.active {
  display: block;
}

.fb-selected {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 8px;
  font-size: 13px;
  color: #f59e0b;
}

.fb-selected img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.fb-selected .fb-clear {
  margin-left: auto;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.fb-selected .fb-clear:hover {
  opacity: 1;
}

.download-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: #b4b4c4;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.download-pdf-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(245,158,11,0.3);
  color: #f59e0b;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  h1 { font-size: 28px; }
  form { padding: 24px 18px; }
  .form-container { padding: 24px 16px; }
  .results-container { padding: 24px 16px 60px; }
  .grade-cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .grade-card { padding: 14px 10px; }
  .grade-letter { font-size: 28px; }
  .grade-card-header span { font-size: 10px; }
  .step-labels { gap: 24px; }
  .report-card { padding: 24px 18px; }
  .score-ring-wrap { width: 130px; height: 130px; }
  .score-ring { width: 130px; height: 130px; }
  .score-number { font-size: 40px; }
  .trust-row { flex-wrap: wrap; }
}
