@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --bg-primary: #050507;
  --bg-secondary: #0a0a0f;
  --accent-lime: #c8f97c;
  --accent-lime-hover: #d7ff96;
  --accent-lime-glow: rgba(200, 249, 124, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border-color: rgba(255, 255, 255, 0.08);
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background Grids & Ambient Glows */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-lime-glow) 0%, rgba(200, 249, 124, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

.glow-top-right {
  top: -150px;
  right: -100px;
}

.glow-bottom-left {
  bottom: -150px;
  left: -150px;
}

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

.nav-brand svg {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-brand:hover svg {
  transform: rotate(10deg) scale(1.05);
}

.nav-brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-brand-name span {
  color: var(--accent-lime);
}

.demo-header {
  background: rgba(5, 5, 7, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.demo-badge {
  font-size: 11px;
  background: rgba(200, 249, 124, 0.15);
  color: var(--accent-lime);
  border: 1px solid rgba(200, 249, 124, 0.3);
  padding: 4px 12px;
  border-radius: 99px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* TABS */
.tabs {
  display: flex;
  gap: 16px;
  max-width: 960px;
  margin: 32px auto 0;
  padding: 0 32px;
}

.tab {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition-smooth);
}

.tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.tab.active {
  color: var(--bg-primary);
  background: var(--accent-lime);
  border-color: var(--accent-lime);
  box-shadow: 0 4px 15px rgba(200, 249, 124, 0.2);
}

/* DEMO BODY */
.demo-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

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

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.card {
  background: rgba(10, 10, 15, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-lime);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 8px;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

label:first-of-type {
  margin-top: 0;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  outline: none;
  transition: var(--transition-smooth);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent-lime);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(200, 249, 124, 0.15);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

select option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  font-family: var(--font-family);
}

.btn-dark {
  background: var(--accent-lime);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(200, 249, 124, 0.2);
}

.btn-dark:hover {
  background: var(--accent-lime-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 249, 124, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* PHONE MOCKUP */
.phone-mock {
  background: #111115;
  border: 4px solid #27272a;
  border-radius: 36px;
  padding: 12px;
  width: 280px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* Notch effect */
.phone-mock::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 16px;
  background: #27272a;
  border-radius: 99px;
  z-index: 10;
}

.phone-screen {
  background: #09090c;
  border-radius: 26px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-header {
  background: rgba(20, 20, 25, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 16px 12px;
  text-align: center;
}

.phone-contact {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.phone-name {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 700;
  margin-top: 3px;
}

.phone-msgs {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.45;
}

.msg-out {
  background: var(--accent-lime);
  color: var(--bg-primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.msg-in {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg-time {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin: 4px 0;
  font-weight: 500;
}

.msg.hidden {
  display: none;
}

/* REVIEWS MOCKUP */
.review-input-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.star-row {
  display: flex;
  gap: 6px;
  margin: 8px 0;
}

.star {
  font-size: 24px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
}

.star.lit {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.review-out-card {
  background: rgba(10, 10, 15, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  margin-top: 14px;
  animation: fadeIn 0.4s ease-out;
}

.rev-biz-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.rev-stars-row {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
}

.rev-star {
  font-size: 14px;
  color: #fbbf24;
}

.rev-review-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  font-style: italic;
  border-left: 2px solid var(--border-color);
  padding-left: 14px;
  margin-bottom: 18px;
}

.rev-response-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-lime);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.rev-response-text {
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-radius: 0 10px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* LOADING ANIMATION */
.loading-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-lime);
  animation: bounce 1s infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.15s;
}

.dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 99px;
  margin-top: 16px;
}

.pill-green {
  background: rgba(200, 249, 124, 0.1);
  color: var(--accent-lime);
  border: 1px solid rgba(200, 249, 124, 0.2);
}

.pill-gray {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 36px;
  font-style: italic;
  line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .demo-header {
    padding: 14px 16px;
  }
  
  .demo-body {
    padding: 20px 16px;
  }
  
  .tabs {
    padding: 0 16px;
    margin-top: 16px;
    display: flex;
    gap: 8px;
  }

  .tab {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .card {
    padding: 20px;
  }
  
  .phone-mock {
    margin: 16px auto;
  }
}

@media (max-width: 480px) {
  .tabs {
    flex-direction: column;
    width: 100%;
  }

  .tab {
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
  }

  /* Override inline margin-left on sibling buttons like load example */
  .btn + .btn,
  .btn-outline,
  #btn-load-example {
    margin-left: 0 !important;
    margin-top: 8px;
  }
}

/* STEP SWITCHER */
.step-switcher {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 99px;
  border: 1px solid var(--border-color);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.step-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.step-tab:hover:not(:disabled) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.step-tab.active {
  color: var(--bg-primary) !important;
  background: var(--accent-lime) !important;
  box-shadow: 0 2px 8px rgba(200, 249, 124, 0.15);
}

.step-tab:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.10);
  color: inherit;
}

.step-tab.active .step-num {
  background: rgba(0, 0, 0, 0.15);
}

/* URGENCY BADGES */
.urgency-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
}

.urgency-badge.urgent {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.urgency-badge.medium {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.urgency-badge.low {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Pulsing highlight for completed step hint */
@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(200, 249, 124, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(200, 249, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 249, 124, 0); }
}

.step-pulse {
  animation: pulse-glow 2s infinite;
  border: 1px solid rgba(200, 249, 124, 0.6) !important;
}

/* Typing indicator dot styles */
.typing-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.typing-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: typing-bounce 1.4s infinite both;
}

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

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

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}