/* ─── Agentify Brief — Design Tokens & Base ──────────────────────────────────
   Identity color: Violet #8B5CF6
   Fonts: Montserrat (headings) + Manrope (body)
   Modes: Dark (default) / Light via [data-theme="light"]
────────────────────────────────────────────────────────────────────────────── */

/* Google Fonts already loaded in <head> */

:root {
  /* Brand */
  --violet: #8B5CF6;
  --violet-light: #A78BFA;
  --violet-dim: rgba(139, 92, 246, 0.15);
  --cyan: #22D3EE;

  /* Dark mode surfaces */
  --bg: #09090B;
  --surface: #101014;
  --surface-2: #18181B;
  --border: #27272A;
  --border-subtle: #1F1F22;
  --text: #F8FAFC;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;

  /* Fonts */
  --font-heading: 'Montserrat', 'Trebuchet MS', Arial, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', Tahoma, sans-serif;

  /* Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg: #F4F4F5;
  --surface: #FFFFFF;
  --surface-2: #F9F9FA;
  --border: #E4E4E7;
  --border-subtle: #EDEDEF;
  --text: #18181B;
  --text-secondary: #52525B;
  --text-muted: #A1A1AA;
}

/* ─── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

/* ─── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="light"] .site-header {
  background: rgba(244, 244, 245, 0.92);
}

.header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  transition: all 0.2s;
}
.theme-toggle:hover { color: var(--text); background: var(--surface-2); }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ─── Progress Bar ───────────────────────────────────────────────────────────── */
.progress-bar-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px 0;
}

.progress-track {
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  border-radius: 99px;
  width: 25%;
  transition: width 0.5s var(--ease-out);
}

.step-labels {
  display: flex;
  gap: 0;
}

.step-label {
  flex: 1;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-align: center;
  transition: color 0.3s;
}

.step-label.active { color: var(--violet-light); font-weight: 600; }

/* ─── Main Layout ────────────────────────────────────────────────────────────── */
.main-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.form-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* ─── Inputs ─────────────────────────────────────────────────────────────────── */
.input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}
.input::placeholder { color: var(--text-muted); }
.input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-dim);
}
.textarea { resize: vertical; min-height: 96px; }
.input-sm { padding: 10px 14px; font-size: 14px; }

/* ─── Labels ─────────────────────────────────────────────────────────────────── */
.label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}
.label-hint {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.req { color: var(--violet-light); }
.opt { color: var(--text-muted); font-weight: 400; font-size: 12px; }
.char-counter { font-size: 11px; color: var(--text-muted); text-align: right; margin-top: 4px; }

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-next, .btn-submit {
  background: var(--violet);
  color: #fff;
}
.btn-next:hover, .btn-submit:hover {
  background: var(--violet-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

.btn-back {
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-back:hover { color: var(--text); background: var(--border); }

.btn-submit { min-width: 160px; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ─── Divider ────────────────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 8px 0 20px; }

/* ─── Error Banner ───────────────────────────────────────────────────────────── */
.error-banner {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  color: #F87171;
  font-size: 14px;
}

/* ─── Submit Note ────────────────────────────────────────────────────────────── */
.submit-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .main-wrapper { padding: 16px 12px 60px; }
  .header-inner { padding: 12px 16px; }
  .progress-bar-wrapper { padding: 16px 16px 0; }
}
