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

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface2: #1c1c1c;
  --border: #272727;
  --gold: #d4a847;
  --gold-dim: rgba(212,168,71,.12);
  --gold-border: rgba(212,168,71,.25);
  --text: #e6e6e6;
  --muted: #808080;
  --radius: 10px;
  --max: 740px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Layout ── */
.page { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ── Nav ── */
nav {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
nav .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -0.3px; }
.nav-badge {
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Progress ── */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--gold); transition: width .3s; z-index: 100;
  width: 0%;
}

/* ── Hero (index) ── */
.hero {
  padding: 80px 0 100px;
  text-align: center;
}
.hero-icon {
  font-size: 48px;
  margin-bottom: 24px;
  display: block;
}
.hero h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity .2s, transform .1s;
  cursor: pointer;
  border: none;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #000; }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

.stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-num { display: block; font-size: 28px; font-weight: 700; color: #fff; }
.stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Form page ── */
.form-header {
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 44px;
}
.form-header h1 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.form-header p { color: var(--muted); font-size: 14px; }

/* Category */
.category { margin-bottom: 44px; }
.cat-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.cat-num {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  color: var(--gold); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cat-head h2 { font-size: 15px; font-weight: 600; color: #fff; }

/* Question card */
.q {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 10px;
  transition: border-color .2s;
}
.q:focus-within { border-color: var(--gold-border); }
.q-label { display: block; font-weight: 600; color: #fff; font-size: 14px; margin-bottom: 4px; }
.q-hint { display: block; color: var(--muted); font-size: 12px; font-style: italic; margin-bottom: 11px; }

/* Inputs */
input[type=text], input[type=email], input[type=url], textarea, select {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 14px; font-family: inherit;
  padding: 9px 13px; outline: none; transition: border-color .2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); }
textarea { resize: vertical; min-height: 80px; }
::placeholder { color: #444; }

/* Options */
.opts { display: flex; flex-direction: column; gap: 7px; }
.opts.row { flex-direction: row; flex-wrap: wrap; gap: 7px; }
.opt {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 13px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; font-size: 14px;
  transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--gold-border); background: rgba(212,168,71,.04); }
.opt input[type=checkbox], .opt input[type=radio] {
  width: 15px; height: 15px; accent-color: var(--gold); flex-shrink: 0;
  border: none; background: transparent; padding: 0;
}

/* Scale */
.scale-wrap { display: flex; align-items: center; gap: 10px; }
.scale-wrap span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.scale-wrap input[type=range] {
  flex: 1; accent-color: var(--gold);
  height: 4px; padding: 0; border: none; background: transparent;
}
.scale-val { width: 32px; text-align: center; font-weight: 700; color: var(--gold); font-size: 15px; flex-shrink: 0; }
.scale-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }

/* Color row */
.color-row { display: flex; align-items: center; gap: 10px; }
input[type=color] {
  width: 40px; height: 34px; border: 1px solid var(--border);
  border-radius: 7px; background: var(--surface2); cursor: pointer;
  padding: 2px; flex-shrink: 0;
}
.color-inputs { display: flex; flex-direction: column; gap: 8px; }

/* Submit area */
.submit-area {
  padding: 40px 0 80px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  border-top: 1px solid var(--border); margin-top: 20px; text-align: center;
}
.submit-area p { color: var(--muted); font-size: 13px; max-width: 360px; }

/* Thanks page */
.thanks {
  padding: 100px 0;
  text-align: center;
}
.thanks .icon { font-size: 56px; margin-bottom: 24px; display: block; }
.thanks h1 { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.thanks p { color: var(--muted); max-width: 400px; margin: 0 auto 32px; line-height: 1.7; }

@media (max-width: 540px) {
  .hero h1 { font-size: 26px; }
  .stats { gap: 24px; }
  .stat-num { font-size: 22px; }
}
