/* ============================================
   SERP Hawk CRM — Showcase Styles
   ============================================ */

/* ---- Global ---- */
html { scroll-behavior: smooth; }
::selection { background: rgba(43,145,255,0.3); color: white; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #080812; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ---- Navbar ---- */
#navbar.scrolled {
  background: rgba(8,8,18,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ---- Hero ---- */
.hero-bg { pointer-events: none; }
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #2b91ff 0%, transparent 70%);
  top: -10%; left: -10%;
  animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #9333ea 0%, transparent 70%);
  top: 20%; right: -10%;
  animation-delay: -7s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  bottom: -5%; left: 30%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(30px, 40px) scale(1.02); }
}

.pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
}
.pill:hover {
  color: rgba(255,255,255,0.8);
  border-color: rgba(43,145,255,0.3);
  background: rgba(43,145,255,0.05);
  transform: translateY(-2px);
}

/* ---- Feature Cards ---- */
.feature-card {
  position: relative;
  padding: 28px;
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43,145,255,0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.feature-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  margin-bottom: 16px;
  transition: transform 0.3s;
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-3deg); }

.feature-visual {
  border-radius: 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 16px;
}

/* ---- Mock Dashboard ---- */
.mock-stat-row {
  display: flex; gap: 8px; align-items: flex-end; height: 60px;
}
.mock-stat {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  animation: fadeInUp 0.6s ease-out both;
  animation-delay: var(--delay);
}
.mock-stat-bar {
  width: 100%; border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, #2b91ff, #53b1ff);
  transition: height 1s ease-out;
}
.mock-stat span { font-size: 8px; color: rgba(255,255,255,0.3); }

/* ---- Mock Client Cards ---- */
.mock-client-cards { display: flex; flex-direction: column; gap: 8px; }
.mock-client-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  animation: slideIn 0.5s ease-out both;
  animation-delay: var(--delay);
}

/* ---- AI Pipeline ---- */
.ai-pipeline { display: flex; flex-direction: column; gap: 4px; }
.ai-step {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 11px; color: rgba(255,255,255,0.7);
  animation: slideIn 0.5s ease-out both;
  animation-delay: var(--delay);
  transition: all 0.3s;
}
.ai-step:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(139,92,246,0.3);
}
.ai-step-icon { font-size: 16px; }
.ai-connector {
  width: 2px; height: 8px; margin-left: 22px;
  background: linear-gradient(to bottom, rgba(139,92,246,0.3), transparent);
}

/* ---- Mock Kanban ---- */
.mock-kanban { display: flex; gap: 6px; }
.mock-column { flex: 1; }
.mock-task-card {
  font-size: 9px; padding: 6px 8px; margin-bottom: 4px;
  border-radius: 6px; color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.03);
}
.pulse-glow { box-shadow: 0 0 8px rgba(59,130,246,0.2); }

/* ---- Mock Chat ---- */
.mock-chat { display: flex; flex-direction: column; gap: 8px; }
.mock-msg {
  max-width: 80%; padding: 8px 12px;
  border-radius: 12px; font-size: 10px;
  animation: fadeInUp 0.5s ease-out both;
  animation-delay: var(--delay);
}
.mock-msg-other {
  align-self: flex-start; color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
  border-bottom-left-radius: 4px;
}
.mock-msg-self {
  align-self: flex-end; color: white;
  background: linear-gradient(135deg, #2b91ff, #6366f1);
  border-bottom-right-radius: 4px;
}
.typing-indicator {
  display: flex; align-items: center; gap: 6px;
  animation: fadeIn 0.5s ease-out both;
  animation-delay: var(--delay);
}
.typing-dots { display: flex; gap: 3px; }
.typing-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  animation: typingBounce 1.4s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ---- Pipeline Flow ---- */
.pipeline-flow {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px;
}
.pipeline-node {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 12px; color: rgba(255,255,255,0.7);
  animation: fadeInUp 0.5s ease-out both;
  animation-delay: var(--delay);
}
.pipeline-dot { width: 8px; height: 8px; border-radius: 50%; }
.pipeline-arrow { color: rgba(255,255,255,0.15); font-size: 14px; }

/* ---- Progress Animate ---- */
.progress-animate {
  animation: progressGrow 1.5s ease-out both;
}
@keyframes progressGrow {
  from { width: 0; }
}

/* ---- Mock Invoice ---- */
.mock-invoice {
  padding: 4px;
}

/* ---- Status Pills ---- */
.status-pill {
  display: inline-block; padding: 4px 10px;
  border-radius: 9999px; font-size: 10px; font-weight: 500;
}

/* ---- Mock Comparison ---- */
.mock-comparison {
  display: flex; align-items: center; justify-content: space-around;
}

/* ---- Mock Webhook ---- */
.mock-webhook { font-family: monospace; }

/* ---- NPS Scores ---- */
.nps-score {
  width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: default;
}
.nps-detractor { background: rgba(239,68,68,0.1); color: rgba(239,68,68,0.6); border-color: rgba(239,68,68,0.1); }
.nps-passive { background: rgba(245,158,11,0.1); color: rgba(245,158,11,0.6); border-color: rgba(245,158,11,0.1); }
.nps-promoter { background: rgba(34,197,94,0.1); color: rgba(34,197,94,0.6); border-color: rgba(34,197,94,0.1); }
.nps-selected {
  background: rgba(34,197,94,0.2) !important; color: #22c55e !important;
  border-color: rgba(34,197,94,0.5) !important;
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(34,197,94,0.3);
}

/* ---- Ranking Line ---- */
.ranking-line {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawLine 2s ease-out forwards;
}
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* ---- Score Circle ---- */
.score-circle {
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  animation: fillScore 2s ease-out forwards;
}
@keyframes fillScore {
  to { stroke-dashoffset: 40; }
}

/* ---- AI Cards ---- */
.ai-card {
  padding: 28px; border-radius: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column;
  transition: all 0.4s;
}
.ai-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(139,92,246,0.2);
  transform: translateY(-4px);
}
.ai-number {
  font-size: 48px; font-weight: 900; line-height: 1;
  background: linear-gradient(to bottom, rgba(255,255,255,0.08), transparent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.ai-flow {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  font-size: 10px; color: rgba(255,255,255,0.5);
}
.ai-flow span { color: rgba(139,92,246,0.8); }

/* ---- Role Cards ---- */
.role-card {
  padding: 28px; border-radius: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s;
  text-align: center;
}
.role-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.role-card-dark {
  background: linear-gradient(135deg, rgba(139,92,246,0.05), rgba(236,72,153,0.05));
  border-color: rgba(139,92,246,0.15);
}
.role-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 0 auto 16px;
}
.role-perms { list-style: none; padding: 0; text-align: left; }
.role-perms li {
  font-size: 12px; color: rgba(255,255,255,0.5);
  padding: 4px 0; display: flex; align-items: center; gap: 8px;
}
.perm-check { color: #22c55e; font-weight: bold; font-size: 11px; }
.perm-minus { color: rgba(255,255,255,0.15); font-weight: bold; font-size: 14px; }

/* ---- Tech Cards ---- */
.tech-card {
  padding: 24px 16px; border-radius: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  transition: all 0.3s;
}
.tech-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px) scale(1.02);
}

/* ---- Stat Cards ---- */
.stat-card {
  padding: 28px 20px; border-radius: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  transition: all 0.3s;
}
.stat-card:hover {
  background: rgba(255,255,255,0.04);
  transform: translateY(-4px);
}
.stat-number {
  font-size: 42px; font-weight: 900; line-height: 1;
  background: linear-gradient(to bottom, white, rgba(255,255,255,0.5));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: inline;
}
.stat-suffix {
  font-size: 24px; font-weight: 700; display: inline;
  color: rgba(255,255,255,0.3);
}
.stat-label {
  font-size: 12px; color: rgba(255,255,255,0.4);
  margin-top: 8px; font-weight: 500;
}

/* ---- Architecture Diagram ---- */
.arch-diagram {
  padding: 40px; border-radius: 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
}
.arch-layer { margin-bottom: 0; }
.arch-layer-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: rgba(255,255,255,0.3); margin-bottom: 12px;
}
.arch-boxes { display: flex; gap: 12px; flex-wrap: wrap; }
.arch-box {
  flex: 1; min-width: 120px; padding: 16px;
  border-radius: 12px; border: 1px solid;
  text-align: center;
}
.arch-connector {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 0;
}
.arch-connector-line {
  width: 2px; height: 24px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
}
.arch-connector-label {
  font-size: 10px; color: rgba(255,255,255,0.2);
  margin-top: 4px; font-weight: 500;
}

/* ---- Keyframe Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---- Health Score ---- */
.health-score-ring {
  filter: drop-shadow(0 0 20px rgba(34,197,94,0.2));
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .pipeline-flow { flex-direction: column; }
  .pipeline-arrow { transform: rotate(90deg); }
  .mock-kanban { overflow-x: auto; }
  .nps-score { width: 18px; height: 18px; font-size: 7px; border-radius: 4px; }
}
