/* ============================================================
   Mindset-Kompass — Stylesheet
   ============================================================ */

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

:root {
  --bg-base:      #050810;
  --bg-surface:   #0c111d;
  --bg-card:      #0f1629;
  --bg-input:     #111827;
  --border:       rgba(59, 130, 246, 0.15);
  --border-hover: rgba(59, 130, 246, 0.4);

  --blue-primary: #3b82f6;
  --blue-light:   #60a5fa;
  --blue-deep:    #1d4ed8;
  --blue-glow:    rgba(59, 130, 246, 0.25);

  --text-primary: #f0f4ff;
  --text-muted:   #94a3b8;
  --text-dim:     #475569;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-blue: 0 0 30px rgba(59, 130, 246, 0.2), 0 4px 20px rgba(0,0,0,0.5);
}

html { scroll-behavior: auto; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--blue-deep); border-radius: 3px; }

/* ── Container ── */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 48px 100px;
}
@media (max-width: 900px) {
  .hero { padding: 80px 24px 90px; }
}

/* Animated background */
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #0d1f4a 0%, #050810 60%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 8s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #1d4ed8 0%, transparent 70%);
  top: -150px; left: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  top: 100px; right: -80px;
  animation-delay: -3s;
}
.orb-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, #1e3a8a 0%, transparent 70%);
  bottom: 50px; left: 30%;
  animation-delay: -5s;
}
.orb-4 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #312e81 0%, transparent 70%);
  top: 40%; right: 15%;
  animation-delay: -2s;
  opacity: 0.35;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 20%, transparent 80%);
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,0.1);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.logo-icon { font-size: 16px; }

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 40%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  font-weight: 400;
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}
.stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue-light);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-indicator {
  width: 24px;
  height: 38px;
  border: 2px solid var(--border-hover);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--blue-light);
  border-radius: 2px;
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ============================================================
   HERO — SPLIT LAYOUT
   ============================================================ */

.hero-split {
  display: flex;
  gap: 64px;
  align-items: center;
  width: 100%;
}

/* ── Left Column ─────────────────────────────── */
.hero-left {
  flex: 1;
  max-width: 520px;
  text-align: left;
}

/* ── Logo Block ──────────────────────────────── */
.hero-logo-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-logo-img-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(29,78,216,0.35), rgba(59,130,246,0.2));
  border: 1px solid rgba(59,130,246,0.45);
  overflow: hidden;
  box-shadow: 0 0 28px rgba(59,130,246,0.3), inset 0 0 20px rgba(59,130,246,0.05);
  flex-shrink: 0;
}

.hero-logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 2;
}

.hero-logo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #60a5fa;
  text-shadow: 0 0 16px rgba(96,165,250,0.6);
}

.hero-logo-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f0f4ff;
  line-height: 1.2;
}

.hero-logo-sub {
  font-size: 11px;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 3px;
  font-weight: 600;
}

/* Override hero-title alignment for hero-left */
.hero-left .hero-title   { text-align: left; }
.hero-left .hero-subtitle {
  text-align: left;
  margin: 0 0 36px;
  max-width: 440px;
}
.hero-left .hero-stats { justify-content: flex-start; padding: 0; }

/* ── CTA Button ──────────────────────────────── */
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  color: #fff;
  border-radius: 14px;
  padding: 16px 30px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 32px;
  box-shadow: 0 4px 24px rgba(59,130,246,0.4), 0 1px 0 rgba(255,255,255,0.1) inset;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  letter-spacing: -0.01em;
}
.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(59,130,246,0.55);
}
.hero-cta-arrow { transition: transform 0.25s; display: inline-block; }
.hero-cta-btn:hover .hero-cta-arrow { transform: translateX(5px); }

/* ── Right Column ────────────────────────────── */
.hero-right {
  flex: 1;
  max-width: 480px;
  position: relative;
  padding: 30px 30px 30px 20px;
}

/* Decorative concentric rings behind panel */
.hero-panel-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 540px;
  height: 540px;
  border-radius: 50%;
  border: 1px solid rgba(59,130,246,0.07);
  pointer-events: none;
  z-index: 0;
}
.hero-panel-ring::before {
  content: '';
  position: absolute;
  inset: 50px;
  border-radius: 50%;
  border: 1px solid rgba(59,130,246,0.05);
}
.hero-panel-ring::after {
  content: '';
  position: absolute;
  inset: -50px;
  border-radius: 50%;
  border: 1px solid rgba(59,130,246,0.04);
}

/* ── AI Panel Card ───────────────────────────── */
.hero-ai-panel {
  position: relative;
  z-index: 2;
  background: linear-gradient(150deg, rgba(12,20,42,0.97) 0%, rgba(7,12,28,0.99) 100%);
  border-radius: 24px;
  padding: 26px;
  box-shadow:
    0 0 0 1px rgba(59,130,246,0.12),
    0 0 80px rgba(59,130,246,0.13),
    0 40px 80px rgba(0,0,0,0.65);
  backdrop-filter: blur(24px);
  will-change: transform;
}

/* Animated gradient border */
.hero-ai-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  background: linear-gradient(
    135deg,
    rgba(59,130,246,0.45),
    rgba(99,102,241,0.2),
    rgba(139,92,246,0.15),
    rgba(59,130,246,0.35)
  );
  background-size: 300% 300%;
  animation: borderShimmer 5s ease infinite;
  z-index: -1;
}

@keyframes panelFloat {
  0%, 100% { transform: translateY(0px);  }
  50%       { transform: translateY(-10px); }
}
@keyframes borderShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* Panel header */
.ai-panel-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(59,130,246,0.12);
}

.ai-live-dot {
  width: 9px; height: 9px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e, 0 0 16px rgba(34,197,94,0.4);
  animation: livePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 6px #22c55e; opacity: 1; }
  50%       { box-shadow: 0 0 18px rgba(34,197,94,0.7); opacity: 0.75; }
}

.ai-panel-title {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  flex: 1;
  letter-spacing: 0.3px;
}

.ai-live-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: #22c55e;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  padding: 3px 8px;
  border-radius: 100px;
}

/* Chat body */
.ai-panel-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 360px;
  overflow: hidden;
}

/* User message */
.ai-msg-user {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 14px 14px 14px 4px;
  padding: 13px 17px;
  font-size: 14px;
  font-weight: 500;
  color: #bfdbfe;
  line-height: 1.5;
  transition: opacity 0.3s;
}

/* AI response */
.ai-msg-ai {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: opacity 0.3s;
}

.ai-msg-avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(59,130,246,0.45);
}

.ai-msg-text {
  background: rgba(10,16,36,0.7);
  border: 1px solid rgba(59,130,246,0.1);
  border-radius: 4px 14px 14px 14px;
  padding: 13px 16px;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.7;
  flex: 1;
  min-height: 72px;
  overflow: hidden;
}

/* Typing indicator */
.ai-typing {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ai-typing-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  background: rgba(10,16,36,0.7);
  border: 1px solid rgba(59,130,246,0.1);
  border-radius: 4px 14px 14px 14px;
  padding: 14px 18px;
}
.ai-typing-dots span {
  width: 7px; height: 7px;
  background: #334155;
  border-radius: 50%;
  animation: typingBounce 1.3s ease-in-out infinite;
}
.ai-typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0);    background: #334155; }
  30%            { transform: translateY(-7px); background: #3b82f6; }
}

/* Panel footer */
.ai-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(59,130,246,0.1);
}

.ai-category-badge {
  font-size: 11px;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.22);
  padding: 5px 11px;
  border-radius: 100px;
  letter-spacing: 0.2px;
}

.ai-next-btn {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.18);
  color: #60a5fa;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.1px;
}
.ai-next-btn:hover:not(:disabled) {
  background: rgba(59,130,246,0.16);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59,130,246,0.2);
}
.ai-next-btn:disabled { opacity: 0.4; cursor: default; }

/* ── Floating Feature Pills ──────────────────── */
.hero-pill {
  position: absolute;
  background: rgba(10,18,40,0.92);
  border: 1px solid rgba(59,130,246,0.22);
  border-radius: 100px;
  padding: 8px 15px;
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  z-index: 4;
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
}
.hero-pill-1 {
  top: 8px; left: -10px;
  animation: pillFloat1 5s ease-in-out infinite;
}
.hero-pill-2 {
  top: 24px; right: -4px;
  border-color: rgba(245,158,11,0.3);
  color: #fbbf24;
  background: rgba(15,10,2,0.92);
  animation: pillFloat2 6.5s ease-in-out infinite;
}
.hero-pill-3 {
  bottom: 8px; left: 30px;
  border-color: rgba(34,197,94,0.28);
  color: #4ade80;
  background: rgba(2,12,6,0.92);
  animation: pillFloat3 7.5s ease-in-out infinite;
}
@keyframes pillFloat1 {
  0%, 100% { transform: translateY(0)   rotate(-1.5deg); }
  50%       { transform: translateY(-7px) rotate(1deg);  }
}
@keyframes pillFloat2 {
  0%, 100% { transform: translateY(0)   rotate(1.5deg); }
  50%       { transform: translateY(-9px) rotate(-1deg); }
}
@keyframes pillFloat3 {
  0%, 100% { transform: translateY(0)   rotate(1deg); }
  50%       { transform: translateY(-6px) rotate(-1.5deg); }
}

/* ── Hero Responsive ─────────────────────────── */
@media (max-width: 960px) {
  .hero-split {
    flex-direction: column;
    gap: 48px;
  }
  .hero-left {
    max-width: 100%;
    text-align: center;
  }
  .hero-left .hero-title,
  .hero-left .hero-subtitle { text-align: center; }
  .hero-left .hero-subtitle { margin: 0 auto 32px; }
  .hero-left .hero-stats { justify-content: center; }
  .hero-logo-block { justify-content: center; }
  .hero-cta-btn { display: inline-flex; }
  .hero-right {
    max-width: 100%;
    width: 100%;
    padding: 24px 10px;
  }
}
@media (max-width: 600px) {
  .hero-pill { display: none; }
  .hero-panel-ring { display: none; }
  .ai-panel-title { display: none; }
}

/* ============================================================
   MAIN SECTION
   ============================================================ */
.main-section {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, var(--bg-base) 0%, #070c1a 100%);
}

/* ── Section label ── */
.section-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

/* ============================================================
   CATEGORY BUTTONS
   ============================================================ */
.category-section { margin-bottom: 40px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  color: var(--text-muted);
  text-align: center;
  overflow: hidden;
  transition: var(--transition);
  font-family: inherit;
}

.category-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.category-btn.active {
  border-color: var(--blue-primary);
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(29,78,216,0.2) 0%, rgba(15,22,41,0.9) 100%);
}

.category-btn.active .btn-glow {
  opacity: 1;
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(59,130,246,0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.category-btn:hover .btn-glow { opacity: 0.7; }

.btn-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
  display: block;
  filter: drop-shadow(0 0 8px var(--blue-glow));
}

.btn-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  display: block;
  margin-bottom: 4px;
}

.btn-desc {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.3px;
  display: block;
}

.category-btn.active .btn-desc { color: var(--blue-light); }

/* ============================================================
   INPUT CARD
   ============================================================ */
.input-section { margin-bottom: 32px; }

.input-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: border-color 0.3s ease;
}

.input-card:focus-within {
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-blue);
}

.input-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.input-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--blue-light);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22d3ee;
  border-radius: 50%;
  box-shadow: 0 0 8px #22d3ee;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

.input-hint {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.question-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(59,130,246,0.12);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  padding: 16px 18px;
  resize: vertical;
  min-height: 90px;
  outline: none;
  transition: var(--transition);
}

.question-input::placeholder { color: var(--text-dim); }

.question-input:focus {
  border-color: rgba(59,130,246,0.5);
  background: rgba(17,24,39,0.9);
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-deep) 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 28px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  align-self: flex-end;
  min-width: 200px;
}

.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.4);
}

.submit-btn:hover::before { opacity: 1; }

.submit-btn:active { transform: translateY(0); }

.submit-arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
}
.submit-btn:hover .submit-arrow { transform: translateX(4px); }

.input-footer {
  margin-top: 12px;
  text-align: right;
}
.char-hint {
  font-size: 11px;
  color: var(--text-dim);
}

/* ============================================================
   RESPONSE SECTION
   ============================================================ */
.response-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  min-height: 200px;
  padding: 36px;
  transition: border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.response-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.5), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.response-card.has-content {
  border-color: rgba(59,130,246,0.3);
}

.response-card.has-content::before { opacity: 1; }

/* Placeholder */
.response-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 0;
  opacity: 0.5;
}

.placeholder-icon {
  font-size: 2.5rem;
  color: var(--blue-primary);
  margin-bottom: 16px;
  opacity: 0.5;
}

.placeholder-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.placeholder-sub {
  font-size: 13px;
  color: var(--text-dim);
}

/* Loading */
.response-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  gap: 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.loading-dots {
  display: flex;
  gap: 8px;
}

.loading-dots span {
  width: 10px; height: 10px;
  background: var(--blue-primary);
  border-radius: 50%;
  animation: bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40%            { transform: scale(1.1); opacity: 1; }
}

/* Content */
.response-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.response-category-badge {
  display: inline-block;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.response-time {
  font-size: 11px;
  color: var(--text-dim);
}

.response-question {
  font-size: 14px;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.response-question::before {
  content: '»';
  color: var(--blue-primary);
  margin-right: 6px;
}
.response-question::after {
  content: '«';
  color: var(--blue-primary);
  margin-left: 6px;
}

.response-answer {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-primary);
  white-space: pre-line;
  animation: fadeUp 0.5s ease forwards;
  min-height: 80px;
  contain: layout;
}

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

.response-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.action-btn {
  background: rgba(59,130,246,0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  cursor: pointer;
  transition: var(--transition);
}

.action-btn:hover {
  background: rgba(59,130,246,0.18);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-light);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  .stat-divider { display: none; }

  .response-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }

  .submit-btn { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .category-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 2rem; }
}
