:root {
  /* ── Palette (Quickly.africa Elite) ── */
  --accent: #10B981;      /* Emerald Green */
  --accent-glow: rgba(16, 185, 129, 0.2);
  --bg: #050505;          /* Absolute Black */
  --surface: #111111;      /* Neutral Dark Surface */
  --surface-lighter: #181818;
  --surface-glass: rgba(10, 10, 10, 0.85);
  
  --text: #FFFFFF;
  --text-dim: #D1D5DB;
  --text-muted: #6B7280;
  
  --border: #262626;
  --border-active: #10B981;
  --border-glass: rgba(255, 255, 255, 0.05);

  /* ── Geometry ── */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --glass-blur: 24px;
  
  /* ── Shadows ── */
  --shadow-premium: 0 20px 50px rgba(0,0,0,0.8), 0 0 0 1px var(--border);
}

* { margin:0; padding:0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

h1, h2, h3, h4, .brand-name, .stage-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Container Logic ── */
.onboarding-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 80px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-icon { font-size: 28px; background: var(--accent); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--bg); box-shadow: 0 8px 16px var(--accent-glow); }
.brand-name { font-size: 22px; color: var(--text); }
.brand-status { font-size: 13px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }

.viewport {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
}

/* ── Progress Stepper ── */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
}

.step-node {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  color: var(--text-muted);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--surface);
}

.step-node.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 25px var(--accent-glow);
  transform: scale(1.1);
}

.step-node.completed {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.step-connector {
  width: 60px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.step-connector::after {
  content: '';
  display: block;
  width: 100%; height: 100%;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-connector.filled::after { transform: translateX(0); }

/* ── Stage System ── */
.stage-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.stage-slider {
  display: flex;
  width: 300%;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stage {
  width: 33.333333%;
  padding: 0 4%;
  animation: stageEntry 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stageEntry {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.stage-header { text-align: center; margin-bottom: 60px; }
.stage-title { font-size: 48px; margin-bottom: 16px; color: var(--text); letter-spacing: -0.04em; line-height: 1.1; }
.stage-desc { font-size: 20px; color: var(--text-muted); max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* ── Form Components ── */
.form-group { margin-bottom: 40px; }
.label { display: block; font-size: 12px; font-weight: 800; margin-bottom: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.15em; }

input[type="text"], input[type="tel"], input[type="email"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--text);
  font-size: 17px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-lighter);
  box-shadow: 0 0 0 1px var(--accent), 0 0 30px var(--accent-glow);
}

/* ── Actions Row ── */
.actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.actions .btn { flex: 1; }

/* ── Button Elite ── */
.btn {
  padding: 18px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--accent-glow);
}

.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.25; cursor: not-allowed; filter: grayscale(1); }

.btn-secondary {
  background: transparent;
  color: var(--text-dim);
  border: 1.5px solid var(--border);
  flex: 0 0 auto;
  width: auto;
  padding: 18px 28px;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.btn-secondary:active { transform: scale(0.97); }

/* ── Industry Grid ── */
.industry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.industry-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.industry-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.industry-card.selected { border-color: var(--accent); background: rgba(16, 185, 129, 0.05); box-shadow: 0 10px 30px var(--accent-glow); }

.ic-icon { font-size: 32px; }
.ic-name { font-size: 17px; font-weight: 700; color: var(--text); }
.ic-desc { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

/* ── Chip System ── */
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip {
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-dim);
}

.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.selected { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* ── Summary & Polish ── */
.summary-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--text-muted); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.summary-value { color: var(--text); font-weight: 700; font-size: 16px; }

/* ── AI Pulse ── */
.ai-pulse {
  width: 80px; height: 80px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  margin: 0 auto 32px;
  box-shadow: 0 0 50px var(--accent-glow);
  animation: pulseRotate 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pulseRotate {
  0% { transform: scale(1) rotate(0); box-shadow: 0 0 20px var(--accent-glow); }
  50% { transform: scale(1.1) rotate(180deg); box-shadow: 0 0 60px var(--accent-glow); }
  100% { transform: scale(1) rotate(360deg); box-shadow: 0 0 20px var(--accent-glow); }
}

/* ── Responsive Elite ── */
@media (max-width: 768px) {
  .stage { padding: 0 20px; }
  .stage-title { font-size: 32px; }
  .industry-grid { grid-template-columns: 1fr; }
  .topbar { padding: 0 20px; }
}
