* {
  box-sizing: border-box;
}

:root {
  --navy: #101b46;
  --indigo: #4338ca;
  --violet: #6366f1;
  --text: #172033;
  --muted: #64748b;
  --border: #e2e8f0;
  --surface: #ffffff;
  --background: #f5f7fb;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--background);
  color: var(--text);
}

header {
  background:
    radial-gradient(circle at 85% 20%, rgba(129, 140, 248, 0.35), transparent 28%),
    linear-gradient(135deg, #101b46 0%, #312e81 55%, #4338ca 100%);
  color: white;
  padding: 64px 24px 58px;
}

.hero {
  max-width: 980px;
  margin: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #c7d2fe;
}

header h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 68px);
  letter-spacing: -2px;
}

.hero-text {
  max-width: 760px;
  margin: 18px auto 30px;
  font-size: 19px;
  line-height: 1.65;
  color: #eef2ff;
}

.hero-flow {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-flow span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
}

.hero-flow strong {
  color: #c7d2fe;
}

main {
  max-width: 980px;
  margin: 36px auto;
  padding: 0 20px 50px;
}

section {
  background: var(--surface);
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

section > div:first-child:not(.constraint-box):not(.candidate-grid) {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef2ff;
  color: var(--indigo);
  font-size: 13px;
  font-weight: 800;
}

h2 {
  margin: 0;
  font-size: 21px;
}

.section-note {
  margin: 14px 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

label {
  font-weight: 700;
}

input[type="text"],
select {
  width: 100%;
  margin-top: 9px;
  padding: 13px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: white;
  color: var(--text);
  font-size: 16px;
}

input[type="text"]:focus,
select:focus {
  outline: 3px solid #e0e7ff;
  border-color: var(--violet);
}

.constraint-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.constraint-box label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 16px;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  background: #f8faff;
  cursor: pointer;
}

.constraint-box input {
  margin-top: 4px;
}

.constraint-box span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 600;
}

.constraint-box strong {
  color: var(--indigo);
  font-size: 11px;
  letter-spacing: 0.8px;
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.candidate-grid article {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fafbff;
}

.candidate-grid article > span {
  color: var(--indigo);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.candidate-grid h3 {
  margin: 10px 0 8px;
  font-size: 18px;
}

.candidate-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.action-card {
  text-align: center;
  background: #111a42;
  color: white;
}

.action-card p {
  margin: 0 auto 18px;
  max-width: 700px;
  color: #dbeafe;
  line-height: 1.6;
}

button {
  width: 100%;
  padding: 17px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(90deg, #6366f1, #7c3aed);
  color: white;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.result-card {
  border-left: 5px solid var(--indigo);
}

.result-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--indigo);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.result-card h2 {
  margin-bottom: 12px;
}

.result-card p,
.result-card li {
  line-height: 1.65;
}

.result-card ol {
  padding-left: 24px;
}

footer {
  padding: 26px 20px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  header {
    padding: 48px 18px;
  }

  .hero-flow strong {
    display: none;
  }

  .constraint-box,
  .candidate-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 21px;
  }
}

/* CultureShift AI — Judge-facing decision results */

.result-card {
  padding: 32px;
}

.result-card h3 {
  margin: 28px 0 14px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.4;
}

.result-card p {
  margin: 10px 0 16px;
}

.decision-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 30px;
}

.decision-summary > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
}

.decision-summary span {
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.decision-summary strong {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.5;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 24px;
}

.evidence-item {
  padding: 18px;
  background: #f8faff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-wrap: anywhere;
}

.evidence-item strong {
  color: var(--navy);
}

.evidence-item p {
  margin: 10px 0 0;
  color: #475569;
  font-size: 14px;
}

.rejected-note {
  padding: 14px 16px;
  background: #f8fafc;
  border-left: 3px solid #94a3b8;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.ranking-list {
  margin: 14px 0 22px;
}

.ranking-list li {
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
}

.ranking-list li span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.method-note {
  margin-top: 20px !important;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #475569;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .result-card {
    padding: 21px;
  }

  .decision-summary,
  .evidence-grid {
    grid-template-columns: 1fr;
  }
}
