*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #0a0d14; --panel: #111720; --panel2: #161d2e; --panel3: #1a2235;
  --rule: #1e2a42; --orange: #e85d04; --amber: #f9a03f; --chalk: #edf0f5;
  --muted: #4a5570; --soft: #7a8499; --green: #2ea84a;
}
html { scroll-behavior: smooth; }
body { background: var(--ink); color: var(--chalk); font-family: 'Outfit', sans-serif; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
body::after { content: ''; position: fixed; inset: 0; background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 50px 50px; opacity: 0.12; pointer-events: none; z-index: 0; mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%); }
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px 48px; display: flex; justify-content: space-between; align-items: center; background: rgba(10,13,20,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.nav-logo { font-size: 18px; font-weight: 700; letter-spacing: 0.2em; color: var(--chalk); text-decoration: none; text-transform: uppercase; }
.nav-logo span { color: var(--orange); font-weight: 600; }
.nav-back { font-size: 12px; font-weight: 500; color: var(--soft); text-decoration: none; letter-spacing: 0.08em; transition: color 0.2s; }
.nav-back:hover { color: var(--chalk); }
.nav-links-intake { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav-privacy { font-size: 11px !important; letter-spacing: 0.14em !important; text-transform: uppercase; }
.progress-wrap { position: fixed; top: 61px; left: 0; right: 0; z-index: 99; height: 2px; background: var(--rule); }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--orange), var(--amber)); transition: width 0.6s cubic-bezier(0.4,0,0.2,1); }
main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 110px 24px 60px; min-height: 100vh; position: relative; z-index: 1; }
.stage { width: 100%; max-width: 640px; }
.step-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.step-dot { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.5)} }
.step-text { font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange); }
.card { display: none; }
.card.active { display: block; animation: fadeUp 0.45s cubic-bezier(0.4,0,0.2,1) both; }
.card.leaving { display: block; animation: fadeDown 0.3s cubic-bezier(0.4,0,0.2,1) both; }
@keyframes fadeUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeDown { from{opacity:1;transform:translateY(0)} to{opacity:0;transform:translateY(-20px)} }
.q-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.q-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(32px,5.5vw,54px); line-height: 1.0; letter-spacing: 0.02em; color: var(--chalk); margin-bottom: 10px; }
.q-title em { color: var(--orange); font-style: normal; }
.q-sub { font-size: 14px; font-weight: 300; color: var(--soft); line-height: 1.75; margin-bottom: 32px; max-width: 480px; min-height: 44px; transition: all 0.3s; }
.type-wrap { position: relative; margin-bottom: 28px; }
.type-input { background: transparent; border: none; border-bottom: 2px solid var(--rule); padding: 14px 0; color: var(--chalk); font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 400; outline: none; width: 100%; transition: border-color 0.3s; caret-color: var(--orange); }
.type-input:focus { border-bottom-color: var(--orange); }
.type-hint { font-size: 11px; color: var(--muted); margin-top: 8px; letter-spacing: 0.06em; }
.ghost-text { position: absolute; top: 14px; left: 0; font-size: 22px; font-weight: 400; pointer-events: none; animation: ghostGlow 3s ease-in-out infinite; white-space: nowrap; overflow: hidden; font-family: 'Outfit', sans-serif; }
@keyframes ghostGlow { 0%,100%{opacity:0;color:var(--muted)} 20%,80%{opacity:1;color:var(--soft);text-shadow:0 0 20px rgba(232,93,4,0.4),0 0 40px rgba(232,93,4,0.2)} 50%{opacity:0.7;color:rgba(232,93,4,0.6);text-shadow:0 0 30px rgba(232,93,4,0.6),0 0 60px rgba(232,93,4,0.3)} }
.ghost-text.hidden { display: none; }
.options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.options.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { background: var(--panel); border: 1px solid var(--rule); padding: 16px 20px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 14px; position: relative; overflow: hidden; }
.opt::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(232,93,4,0.07), transparent); opacity: 0; transition: opacity 0.2s; }
.opt:hover { border-color: rgba(232,93,4,0.4); transform: translateX(4px); }
.opt:hover::after,.opt.selected::after { opacity: 1; }
.opt.selected { border-color: var(--orange); background: var(--panel2); transform: translateX(4px); }
.opt-icon { font-size: 20px; flex-shrink: 0; }
.opt-text { flex: 1; }
.opt-title { font-size: 14px; font-weight: 600; color: var(--chalk); line-height: 1.3; }
.opt-desc { font-size: 11px; font-weight: 300; color: #8f9db5; margin-top: 2px; line-height: 1.4; }
.opt-marker { color: var(--orange); font-size: 14px; opacity: 0; transition: opacity 0.2s; flex-shrink: 0; font-weight: 700; }
.opt.selected .opt-marker { opacity: 1; }
.multi-hint { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.multi-hint::before { content: ''; width: 16px; height: 1px; background: var(--muted); }
#ai-chat-overlay { display: none; position: fixed; inset: 0; z-index: 999; flex-direction: column; background: #050508; }

#ai-chat-overlay.active { display: flex; }

.chat-nav {
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  background: rgba(10,13,20,0.95);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}

.chat-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.12em;
  color: var(--chalk);
}

.chat-nav-logo span { color: var(--orange); }

.chat-nav-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.chat-status-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.chat-close {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: 'Outfit', sans-serif;
  padding: 8px 0;
}

.chat-close:hover { color: var(--chalk); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 2px; }

.msg {
  display: flex;
  gap: 14px;
  animation: fadeUp 0.3s both;
  max-width: 680px;
}

.msg.user { flex-direction: row-reverse; align-self: flex-end; }
.msg.ai { align-self: flex-start; }

.msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.06em;
}

.msg.ai .msg-avatar {
  background: var(--orange);
  color: #fff;
  font-size: 11px;
}

.msg.user .msg-avatar {
  background: var(--panel2);
  border: 1px solid var(--rule);
  color: var(--soft);
  font-size: 16px;
}

.msg-bubble {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  max-width: 520px;
}

.msg.ai .msg-bubble {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--orange);
  color: var(--soft);
}

.msg.ai .msg-bubble strong { color: var(--chalk); font-weight: 500; }

.msg.user .msg-bubble {
  background: var(--panel2);
  border: 1px solid var(--rule);
  color: var(--chalk);
  text-align: right;
}

.msg-cursor {
  display: inline-block;
  width: 2px;
  height: 13px;
  background: var(--orange);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

.chat-typing {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 0 4px;
}

.chat-typing-dots {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--orange);
}

.chat-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: aiPulse 1.2s ease-in-out infinite;
}

.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }

.chat-input-wrap {
  padding: 16px 28px 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-shrink: 0;
  background: var(--ink);
}

.chat-input {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 14px 18px;
  color: var(--chalk);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 300;
  outline: none;
  resize: none;
  height: 52px;
  max-height: 140px;
  overflow-y: auto;
  transition: border-color 0.2s;
  caret-color: var(--orange);
  line-height: 1.5;
}

.chat-input:focus { border-color: var(--orange); }
.chat-input::placeholder { color: var(--muted); }

.chat-send {
  background: var(--orange);
  color: #fff;
  border: none;
  width: 52px;
  height: 52px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.chat-send:hover { background: var(--amber); }
.chat-send:disabled { opacity: 0.3; cursor: not-allowed; }

.chat-done-wrap {
  padding: 0 28px 16px;
  display: none;
}

.chat-done-wrap.visible { display: block; }

.btn-chat-done {
  width: 100%;
  background: transparent;
  border: 1px solid var(--orange);
  color: var(--orange);
  padding: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-chat-done:hover { background: var(--orange); color: #fff; }

.free-text-wrap { display: none; }
.q-nav { display: flex; justify-content: space-between; align-items: center; }
.btn-next { background: var(--orange); color: #fff; border: none; padding: 15px 32px; font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background 0.2s, transform 0.15s, opacity 0.2s; }
.btn-next:hover:not(:disabled) { background: var(--amber); transform: translateY(-1px); }
.btn-next:disabled { opacity: 0.3; cursor: not-allowed; }
.btn-back { background: transparent; color: var(--soft); border: none; padding: 15px 0; font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: color 0.2s; }
.btn-back:hover { color: var(--chalk); }
#ai-stage { display: none; animation: fadeUp 0.5s both; }
.ai-thinking { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; padding: 18px 22px; background: var(--panel); border: 1px solid var(--rule); border-left: 2px solid var(--orange); }
.ai-dot-wrap { display: flex; gap: 5px; }
.ai-dot { width: 7px; height: 7px; background: var(--orange); border-radius: 50%; animation: aiPulse 1.2s ease-in-out infinite; }
.ai-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiPulse { 0%,100%{opacity:0.3;transform:scale(0.8)} 50%{opacity:1;transform:scale(1.1)} }
.ai-thinking-text { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ai-label { font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.ai-label::before { content: ''; width: 20px; height: 1px; background: var(--orange); }
.ai-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(30px,5vw,46px); letter-spacing: 0.02em; color: var(--chalk); margin-bottom: 24px; line-height: 1.0; }
.ai-title em { color: var(--orange); font-style: normal; }
.ai-response { font-size: 15px; font-weight: 300; color: var(--soft); line-height: 1.85; margin-bottom: 32px; min-height: 80px; border-left: 2px solid var(--rule); padding-left: 20px; }
.ai-response strong { color: var(--chalk); font-weight: 500; }
.ai-cursor { display: inline-block; width: 2px; height: 16px; background: var(--orange); animation: blink 1s step-end infinite; vertical-align: middle; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.capture-section { margin-top: 8px; }
.capture-divider { height: 1px; background: linear-gradient(90deg, var(--orange), transparent); margin-bottom: 28px; }
.capture-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 0.04em; color: var(--chalk); margin-bottom: 6px; }
.capture-title em { color: var(--orange); font-style: normal; }
.capture-sub { font-size: 13px; font-weight: 300; color: var(--soft); margin-bottom: 22px; line-height: 1.6; }
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.cap-input { background: var(--panel); border: 1px solid var(--rule); padding: 14px 16px; color: var(--chalk); font-family: 'Outfit', sans-serif; font-size: 14px; outline: none; width: 100%; transition: border-color 0.2s; }
.cap-input:focus { border-color: var(--orange); }
.cap-input::placeholder { color: var(--muted); }
.btn-submit { width: 100%; background: var(--orange); color: #fff; border: none; padding: 18px; font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; margin-top: 10px; }
.btn-submit:hover { background: var(--amber); }
#success { display: none; text-align: center; animation: fadeUp 0.5s both; padding: 40px 0; }
.success-emoji { font-size: 56px; margin-bottom: 20px; display: block; }
.success-title { font-family: 'Bebas Neue', sans-serif; font-size: 52px; color: var(--chalk); margin-bottom: 14px; letter-spacing: 0.02em; }
.success-title em { color: var(--green); font-style: normal; }
.success-body { font-size: 15px; font-weight: 300; color: var(--soft); line-height: 1.75; max-width: 460px; margin: 0 auto 32px; }
.btn-home { display: inline-block; background: var(--orange); color: #fff; padding: 16px 36px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.btn-home:hover { background: var(--amber); }
/* Glowing special option */
.glow-opt {
  border-color: rgba(232,93,4,0.2) !important;
  background: rgba(232,93,4,0.03) !important;
}

.glow-opt::before {
  display: none;
}

.glow-title {
  color: var(--chalk);
}

.glow-desc {
  animation: descGlow 3s ease-in-out infinite;
  font-weight: 500 !important;
}

@keyframes descGlow {
  0%, 100% { color: var(--muted); text-shadow: none; }
  50% { color: var(--soft); text-shadow: 0 0 8px rgba(232,93,4,0.25), 0 0 16px rgba(232,93,4,0.1); }
}

.glow-opt.selected {
  border-color: var(--orange) !important;
}

@media (max-width: 580px) {
  nav { padding: 16px 20px; }
  main { padding: 90px 20px 40px; }
  .options.grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
}

.chat-status-orb { position: relative; width: 10px; height: 10px; display: flex; align-items: center; justify-content: center; }
.chat-status-inner { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
.chat-status-outer { position: absolute; inset: 0; border: 1px solid rgba(46, 168, 74, 0.35); border-radius: 50%; }

.chat-typing-indicator { display: flex; gap: 14px; align-items: center; padding: 0 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card.active, .card.leaving { animation: none !important; opacity: 1 !important; transform: none !important; }
  .step-dot, .ghost-text, .glow-desc, .chat-typing-dot, .ai-dot, .msg, .chat-status-inner { animation: none !important; }
  .opt:hover { transform: none; }
  .opt.selected { transform: none; }
}

