/* === MMIND.ai Brand Design System === */

:root {
  --brand-primary: #0f4c81;
  --brand-primary-light: #1a6bb5;
  --brand-primary-dark: #0a3660;
  --brand-accent: #00b4d8;
  --brand-accent-light: #48cae4;
  --brand-gradient: linear-gradient(135deg, #0f4c81 0%, #00b4d8 100%);
  --brand-gradient-subtle: linear-gradient(135deg, #0f4c81 0%, #1a6bb5 100%);

  --text-primary: #1a1f36;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.7);

  --bg-body: #f0f4f8;
  --bg-card: #ffffff;
  --bg-option: #f7fafc;
  --bg-option-border: #e2e8f0;

  --border-light: #e2e8f0;
  --border-input: #cbd5e0;

  --shadow-card: 0 4px 24px rgba(15, 76, 129, 0.08);
  --shadow-card-hover: 0 8px 40px rgba(15, 76, 129, 0.12);
  --shadow-header: 0 2px 16px rgba(15, 76, 129, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === HEADER === */

.siteHeader {
  background: var(--brand-gradient-subtle);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-header);
  position: relative;
  overflow: hidden;
}

.siteHeader::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.headerInner {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.brandBlock {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brandIcon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -1px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brandText {
  display: flex;
  flex-direction: column;
}

.brandName {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brandName span {
  color: var(--brand-accent-light);
}

.brandTagline {
  font-size: 12px;
  color: var(--text-on-dark-muted);
  margin-top: 1px;
  letter-spacing: 0.3px;
}

.headerPartner {
  font-size: 13px;
  color: var(--text-on-dark-muted);
  text-align: right;
  line-height: 1.4;
}

.headerPartner strong {
  color: var(--text-on-dark);
  font-weight: 600;
}

/* === PAGE === */

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

/* === CARDS === */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
}

/* === TYPOGRAPHY === */

h1 {
  margin-top: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--brand-primary-dark);
  letter-spacing: -0.3px;
}

h2 {
  margin-top: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-primary-dark);
  letter-spacing: -0.2px;
}

h3 {
  margin-top: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

p {
  line-height: 1.6;
  color: var(--text-secondary);
}

ul {
  margin: 0 0 20px 0;
  padding-left: 0;
  list-style: none;
}

ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--brand-accent);
  border-radius: 50%;
}

.hidden {
  display: none;
}

.muted {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 4px;
}

/* === INTRO SECTION === */

.introMeta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.introChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #edf5ff;
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid #d0e3ff;
}

.introChip .chipIcon {
  font-size: 15px;
}

/* === PROGRESS === */

.progressHeader {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.progressWrap {
  min-width: 230px;
}

.progressMeta {
  text-align: right;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.progressBar {
  height: 6px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

#progressFill {
  height: 100%;
  width: 0%;
  background: var(--brand-gradient);
  border-radius: var(--radius-full);
  transition: width 250ms ease;
}

/* === QUESTIONS === */

.question {
  margin-bottom: 28px;
  border-top: 1px solid var(--border-light);
  padding-top: 22px;
}

.question:first-child {
  border-top: 0;
  padding-top: 0;
}

.question h3 {
  font-size: 15px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.questionHint {
  margin-top: -8px;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 12px;
}

/* === FIELDS === */

.field {
  width: 100%;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  background: var(--bg-card);
}

.field:focus {
  outline: none;
  border-color: var(--brand-primary-light);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

textarea.field {
  min-height: 100px;
  resize: vertical;
}

select.field {
  appearance: auto;
}

/* === OPTIONS === */

.optionList {
  display: grid;
  gap: 8px;
}

.optionItem {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-option);
  border: 1px solid var(--bg-option-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}

.optionItem:hover {
  border-color: var(--brand-primary-light);
  background: #f0f7ff;
}

.optionItem input {
  margin-top: 3px;
  accent-color: var(--brand-primary);
}

.optionItem .otherInput {
  margin-top: 8px;
}

/* === RANKING === */

.rankingRow {
  display: grid;
  gap: 10px;
  grid-template-columns: 130px 1fr;
  align-items: center;
  margin-bottom: 10px;
}

.rankingRow div:first-child {
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-primary);
}

/* === BADGE === */

.badge {
  display: inline-block;
  border-radius: var(--radius-full);
  background: #edf5ff;
  color: var(--brand-primary);
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
  border: 1px solid #d0e3ff;
}

/* === BUTTONS === */

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

button {
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 150ms ease, transform 80ms ease, box-shadow 150ms ease;
}

button:active {
  transform: scale(0.98);
}

button.primary {
  background: var(--brand-gradient);
  color: var(--text-on-dark);
  box-shadow: 0 2px 8px rgba(15, 76, 129, 0.25);
}

button.primary:hover {
  box-shadow: 0 4px 16px rgba(15, 76, 129, 0.35);
}

button.secondary {
  background: #edf2f7;
  color: var(--text-primary);
}

button.secondary:hover {
  background: #e2e8f0;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* === ERROR === */

.error {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  color: #c53030;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: 12px 0 0;
  font-size: 14px;
}

/* === SUCCESS === */

.successIcon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #48bb78, #38a169);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  margin-bottom: 20px;
}

/* === FOOTER === */

.siteFooter {
  border-top: 1px solid var(--border-light);
  margin-top: 16px;
}

.footerInner {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footerBrand {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.footerBrand span {
  color: var(--brand-accent);
}

.footerLinks {
  display: flex;
  gap: 20px;
}

.footerLinks a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}

.footerLinks a:hover {
  color: var(--brand-primary);
}

/* === RESPONSIVE === */

@media (max-width: 780px) {
  .headerInner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .headerPartner {
    text-align: left;
  }

  .progressHeader {
    flex-direction: column;
  }

  .progressWrap {
    width: 100%;
    min-width: 0;
  }

  .progressMeta {
    text-align: left;
  }

  .rankingRow {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 20px;
  }

  h1 {
    font-size: 22px;
  }

  .footerInner {
    flex-direction: column;
    text-align: center;
  }

  .introMeta {
    flex-direction: column;
  }
}
