/* ==========================================================================
   HLXperts UI Components — SaaS Grade Design
   Caliber: Linear / Stripe / Vercel / Framer
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Header Area (Zero navigation menu - Logo & status pill only)
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  width: 100%;
  padding: var(--space-6) 0 var(--space-4);
  z-index: 50;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  flex-wrap: wrap;
  gap: 12px;
}

.brand-logo-wrapper {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

@media (max-width: 480px) {
  .brand-logo {
    height: 34px;
  }
}

.brand-logo:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.header-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

@media (max-width: 480px) {
  .header-status-pill {
    padding: 4px 10px;
    font-size: 0.725rem;
  }
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
  position: relative;
  flex-shrink: 0;
}

.live-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--brand-green);
  animation: pulseRing 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

/* --------------------------------------------------------------------------
   2. Buttons & CTAs
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.975rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-green);
  color: #050705;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(152, 202, 58, 0.28), 0 2px 4px rgba(0, 0, 0, 0.4);
  border: 1px solid #a8db46;
}

.btn-primary:hover {
  background: var(--brand-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(152, 202, 58, 0.45), 0 4px 12px rgba(0, 0, 0, 0.5);
  color: #000000;
}

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

.btn-secondary {
  /* backdrop-filter removed: it was live-reblurring whatever sits behind
     every secondary button (3+ on this page) on every scroll frame,
     which is one of the more expensive things a browser can be asked to
     do during scroll. Bumped the background opacity slightly to keep a
     similar frosted look without the live sampling cost. */
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--brand-green);
  border: 1px solid var(--brand-green-border);
}

.btn-ghost:hover {
  background: var(--brand-green-soft);
  border-color: var(--brand-green);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

@media (max-width: 480px) {
  .btn-lg {
    padding: 14px 24px;
    font-size: 0.95rem;
    width: 100%;
  }
}

.btn-icon {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   3. Hero Section & Live CRM Visualizer
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: var(--space-8);
  padding-bottom: var(--space-20);
  text-align: center;
  position: relative;
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: var(--space-4);
    padding-bottom: var(--space-12);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--brand-green-soft);
  border: 1px solid var(--brand-green-border);
  color: var(--brand-green);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  box-shadow: 0 0 25px rgba(152, 202, 58, 0.12);
}

.hero-headline {
  max-width: 980px;
  margin: 0 auto var(--space-6);
  line-height: 1.1;
  font-weight: 800;
}

.hero-subheadline {
  max-width: 720px;
  margin: 0 auto var(--space-10);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-secondary);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.hero-guarantee-microcopy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: var(--space-16);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hero-guarantee-microcopy span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-guarantee-microcopy i {
  color: var(--brand-green);
}

/* CRM Live Dashboard Simulation */
.crm-dashboard-container {
  max-width: 1060px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  background: #0d120f;
  border: 1px solid var(--border-medium);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85), 0 0 50px rgba(152, 202, 58, 0.1);
  overflow: hidden;
  text-align: left;
  position: relative;
}

.crm-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #090d0b;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 8px;
}

.crm-window-dots {
  display: flex;
  gap: 7px;
}

.crm-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.crm-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.crm-body {
  padding: var(--space-6);
}

@media (max-width: 600px) {
  .crm-body {
    padding: var(--space-4);
  }
}

.crm-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

@media (max-width: 480px) {
  .crm-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.crm-metric-card {
  background: #121815;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  border-top: 3px solid var(--brand-green);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

@media (max-width: 480px) {
  .crm-metric-card {
    padding: 12px;
  }
}

.crm-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.crm-metric-card.amber-top {
  border-top-color: var(--accent-amber);
}

.crm-metric-card.cyan-top {
  border-top-color: var(--accent-cyan);
}

.crm-metric-card.blue-top {
  border-top-color: var(--accent-blue);
}

.crm-metric-label {
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.crm-metric-value {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.crm-metric-sub {
  font-size: 0.725rem;
  color: var(--brand-green);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.crm-pipeline-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 840px) {
  .crm-pipeline-row {
    grid-template-columns: 1fr;
  }
}

.crm-pipeline-stages {
  background: #111714;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.crm-stage-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.crm-stage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.crm-stage-bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  margin: 0 14px;
  overflow: hidden;
}

.crm-stage-bar {
  height: 100%;
  background: var(--brand-green);
  border-radius: 3px;
  transition: width 1s ease;
}

.crm-activity-feed {
  background: #111714;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow: hidden;
  height: 240px;
  display: flex;
  flex-direction: column;
}

.crm-activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  overflow-y: hidden;
}

.crm-activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  animation: slideDownFade 0.4s ease forwards;
}

.crm-activity-item .tag-live {
  color: var(--brand-green);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   4. Problem / Pain Points (4 Walls)
   -------------------------------------------------------------------------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

@media (max-width: 768px) {
  .pain-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-top: var(--space-6);
  }
}

.pain-card {
  background: linear-gradient(180deg, rgba(20, 26, 22, 0.7) 0%, rgba(13, 17, 15, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

@media (max-width: 480px) {
  .pain-card {
    padding: var(--space-6) var(--space-5);
  }
}

.pain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6), 0 0 30px rgba(239, 68, 68, 0.1);
}

.pain-card-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
}

.pain-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-5);
  transition: transform var(--transition-fast);
}

.pain-card:hover .pain-card-icon {
  transform: scale(1.1) rotate(-4deg);
}

.pain-card-title {
  font-size: 1.35rem;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.pain-card-desc {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   5. Industry Strip (Single-Line Seamless Marquee)
   -------------------------------------------------------------------------- */
.industry-strip-section {
  padding: var(--space-10) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 15, 13, 0.6);
  overflow: hidden;
  width: 100%;
}

.industry-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.925rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.industry-item:hover {
  background: var(--brand-green-soft);
  border-color: var(--brand-green-border);
  color: var(--brand-green);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(152, 202, 58, 0.2);
}

.industry-item i {
  font-size: 1.2rem;
  color: var(--brand-green);
}

/* --------------------------------------------------------------------------
   6. Services Grid (8 Core Pillars)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-10);
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-top: var(--space-6);
  }
}

.service-card {
  background: linear-gradient(180deg, rgba(18, 24, 20, 0.6) 0%, rgba(10, 14, 12, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-green-border);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6), 0 0 30px rgba(152, 202, 58, 0.12);
}

.service-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-green-soft);
  border: 1px solid var(--brand-green-border);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--space-4);
  transition: transform var(--transition-fast);
}

.service-card:hover .service-icon-box {
  transform: scale(1.1);
}

.service-card-title {
  font-size: 1.15rem;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
  font-weight: 700;
}

.service-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

/* --------------------------------------------------------------------------
   7. AI Voice & Chat Feature Block
   -------------------------------------------------------------------------- */
.voice-chat-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-10);
  align-items: center;
}

@media (max-width: 900px) {
  .voice-chat-container {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-top: var(--space-6);
  }
}

.voice-call-mockup {
  background: #0d1210;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(152, 202, 58, 0.12);
}

@media (max-width: 480px) {
  .voice-call-mockup {
    padding: var(--space-5);
  }
}

.voice-call-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.voice-agent-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.voice-agent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-green-soft);
  border: 2px solid var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
  font-size: 1.3rem;
}

.voice-waveform-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 60px;
  margin: var(--space-6) 0;
}

.voice-bar {
  width: 4px;
  border-radius: 2px;
  background: var(--brand-green);
  /* Fixed at the tallest peak (was previously animated between 12 and
     48px via height). The keyframes now scale this down with transform
     instead of resizing the box, so this needs to be the max, not the
     resting size. */
  height: 56px;
  will-change: transform;
}

.voice-bar:nth-child(1) {
  animation: waveformPulse1 1.1s ease-in-out infinite;
}

.voice-bar:nth-child(2) {
  animation: waveformPulse2 1.3s ease-in-out infinite;
}

.voice-bar:nth-child(3) {
  animation: waveformPulse3 0.9s ease-in-out infinite;
}

.voice-bar:nth-child(4) {
  animation: waveformPulse4 1.4s ease-in-out infinite;
}

.voice-bar:nth-child(5) {
  animation: waveformPulse1 1.2s ease-in-out infinite 0.2s;
}

.voice-bar:nth-child(6) {
  animation: waveformPulse2 1.0s ease-in-out infinite 0.1s;
}

.voice-bar:nth-child(7) {
  animation: waveformPulse3 1.5s ease-in-out infinite 0.3s;
}

.voice-bar:nth-child(8) {
  animation: waveformPulse4 1.2s ease-in-out infinite 0.15s;
}

.voice-bar:nth-child(9) {
  animation: waveformPulse2 0.8s ease-in-out infinite 0.25s;
}

.voice-bar:nth-child(10) {
  animation: waveformPulse1 1.3s ease-in-out infinite 0.05s;
}

.chat-widget-simulator {
  background: #0c100e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 380px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 480px) {
  .chat-widget-simulator {
    height: 340px;
  }
}

.chat-widget-header {
  padding: 12px 16px;
  background: #070a08;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}

.chat-widget-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  line-height: 1.45;
  animation: fadeIn 0.3s ease;
}

.chat-msg.msg-ai {
  align-self: flex-start;
  background: #16201b;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-msg.msg-user {
  align-self: flex-end;
  background: var(--brand-green);
  color: #060907;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

.chat-slot-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.chat-slot-btn {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--brand-green-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.8rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.chat-slot-btn:hover {
  background: var(--brand-green-soft);
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.chat-typing-indicator {
  display: inline-flex;
  gap: 4px;
  padding: 8px 12px;
  background: #16201b;
  border-radius: var(--radius-lg);
  align-self: flex-start;
}

.chat-typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingDot 1.4s infinite;
}

.chat-widget-footer {
  padding: 10px 14px;
  background: #080b09;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-subfeatures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}

@media (max-width: 900px) {
  .ai-subfeatures-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ai-subfeatures-grid {
    grid-template-columns: 1fr;
  }
}

.ai-subfeature-card {
  background: rgba(18, 24, 20, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition-smooth);
}

.ai-subfeature-card:hover {
  border-color: var(--brand-green-border);
  transform: translateY(-3px);
}

.ai-subfeature-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.ai-subfeature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ai-subfeature-badge {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--brand-green);
  margin-top: 8px;
  text-transform: uppercase;
}

/* Stat row for AI Voice */
.ai-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin: var(--space-8) 0;
}

@media (max-width: 500px) {
  .ai-stat-row {
    gap: 8px;
  }
}

.ai-stat-box {
  text-align: center;
  padding: 16px 8px;
  background: rgba(152, 202, 58, 0.06);
  border: 1px solid var(--brand-green-border);
  border-radius: var(--radius-lg);
}

.ai-stat-number {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--brand-green);
  line-height: 1;
  margin-bottom: 4px;
}

.ai-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   8. Live Workflow Visualizer & Interactive Node Inspector
   -------------------------------------------------------------------------- */
.workflow-section {
  position: relative;
}

.workflow-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.workflow-tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
}

@media (max-width: 480px) {
  .workflow-tab-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}

.workflow-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.workflow-tab-btn.active {
  background: var(--brand-green-soft);
  border-color: var(--brand-green);
  color: var(--brand-green);
  box-shadow: 0 0 20px rgba(152, 202, 58, 0.15);
}

.workflow-canvas-wrap {
  background: #090d0b;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

@media (max-width: 600px) {
  .workflow-canvas-wrap {
    padding: var(--space-5) var(--space-3);
  }
}

.workflow-nodes-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.workflow-node-card {
  width: 100%;
  background: #111714;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
}

@media (max-width: 480px) {
  .workflow-node-card {
    padding: 12px 14px;
  }
}

.workflow-node-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-green-border);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6), 0 0 25px rgba(152, 202, 58, 0.12);
}

.workflow-node-card.node-active {
  border-color: var(--brand-green);
  background: #151e19;
  box-shadow: 0 0 30px rgba(152, 202, 58, 0.2);
}

.node-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.node-icon-pill {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--brand-green);
  flex-shrink: 0;
}

.node-icon-pill.trigger {
  background: rgba(152, 202, 58, 0.15);
  color: var(--brand-green);
}

.node-icon-pill.action {
  background: rgba(24, 139, 246, 0.15);
  color: var(--accent-blue);
}

.node-icon-pill.wait {
  background: rgba(245, 166, 35, 0.15);
  color: var(--accent-amber);
}

.node-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.node-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.node-tag-badge {
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Connecting lines between nodes */
.workflow-connector-line {
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, var(--brand-green) 0%, rgba(152, 202, 58, 0.2) 100%);
  position: relative;
}

.workflow-connector-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-green);
  animation: flowParticle 1.5s infinite linear;
  will-change: transform;
}

/* Node Settings Detail Drawer / Modal */
.node-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: var(--space-4);
}

.node-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.node-drawer-card {
  width: 100%;
  max-width: 520px;
  background: #0e1411;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-smooth);
}

.node-drawer-overlay.open .node-drawer-card {
  transform: translateY(0);
}

.node-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.node-settings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: var(--space-4) 0;
}

.node-setting-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
  gap: 6px;
}

.node-setting-row .key {
  color: var(--text-muted);
}

.node-setting-row .val {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   9. A2P / SMS Compliance Section
   -------------------------------------------------------------------------- */
.a2p-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-8);
  margin-top: var(--space-10);
  align-items: center;
}

@media (max-width: 900px) {
  .a2p-container {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.a2p-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

@media (max-width: 480px) {
  .a2p-stats-grid {
    gap: 8px;
  }
}

.a2p-stat-card {
  background: #111714;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 8px;
  text-align: center;
}

.a2p-stat-value {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--brand-green);
}

.a2p-stat-label {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.a2p-stepper-wrap {
  background: #0c100e;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
}

@media (max-width: 480px) {
  .a2p-stepper-wrap {
    padding: var(--space-5);
  }
}

.a2p-step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
}

.a2p-step-item:last-child {
  padding-bottom: 0;
}

.a2p-step-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.a2p-step-item.step-complete:not(:last-child)::before {
  background: var(--brand-green);
}

.a2p-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  z-index: 1;
}

.a2p-step-item.step-complete .a2p-step-circle {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #000;
}

.a2p-step-item.step-active .a2p-step-circle {
  background: var(--brand-green-soft);
  border-color: var(--brand-green);
  color: var(--brand-green);
  box-shadow: 0 0 16px rgba(152, 202, 58, 0.3);
}

.a2p-step-content h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.a2p-step-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.a2p-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-top: 6px;
  text-transform: uppercase;
}

.a2p-status-chip.complete {
  background: rgba(152, 202, 58, 0.15);
  color: var(--brand-green);
}

.a2p-status-chip.review {
  background: rgba(245, 166, 35, 0.15);
  color: var(--accent-amber);
}

.a2p-status-chip.pending {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. Support Tiers & Pricing (Service Rates: $57, $107, $157)
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
  align-items: stretch;
  padding-top: 16px;
  /* Allow badge to breathe */
}

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    gap: var(--space-8);
  }
}

.pricing-card {
  background: linear-gradient(180deg, rgba(18, 24, 20, 0.7) 0%, rgba(10, 14, 12, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible !important;
  /* Fix badge clipping */
  transition: all var(--transition-smooth);
}

@media (max-width: 480px) {
  .pricing-card {
    padding: var(--space-6) var(--space-5);
  }
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(24, 34, 28, 0.85) 0%, rgba(12, 18, 15, 0.98) 100%);
  border: 1px solid var(--brand-green);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(152, 202, 58, 0.18);
  transform: scale(1.03);
  z-index: 5;
}

@media (max-width: 960px) {
  .pricing-card.featured {
    transform: none;
  }
}

/* Clear, Prominent "MOST POPULAR" Badge */
.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: var(--brand-green);
  color: #050705;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(152, 202, 58, 0.5);
  white-space: nowrap;
  border: 1px solid #c3f16d;
}

.pricing-tier-duration {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-green);
  margin-bottom: var(--space-2);
}

.pricing-tier-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.pricing-tier-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  min-height: 40px;
}

@media (max-width: 960px) {
  .pricing-tier-desc {
    min-height: auto;
  }
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-price-current {
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  color: var(--brand-green);
  letter-spacing: -0.03em;
}

.pricing-price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--space-8);
  flex: 1;
}

.pricing-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-features-list li i {
  color: var(--brand-green);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 90-Day Guarantee Banner */
.guarantee-banner {
  background: linear-gradient(135deg, rgba(20, 28, 23, 0.9) 0%, rgba(10, 15, 12, 0.95) 100%);
  border: 1px solid var(--brand-green-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-8);
  margin-top: var(--space-12);
  text-align: center;
  box-shadow: 0 0 50px rgba(152, 202, 58, 0.1);
  position: relative;
  overflow: hidden;
}

@media (max-width: 600px) {
  .guarantee-banner {
    padding: var(--space-6) var(--space-4);
  }
}

.guarantee-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.guarantee-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(152, 202, 58, 0.08);
  border: 1px solid var(--brand-green-border);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.guarantee-pill i {
  color: var(--brand-green);
}

/* --------------------------------------------------------------------------
   11. Case Studies Slider (3 Detailed Scenarios)
   -------------------------------------------------------------------------- */
.case-study-slider-wrap {
  position: relative;
  margin-top: var(--space-10);
}

.case-study-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.case-study-slide.active {
  display: grid;
  animation: fadeIn 0.4s ease forwards;
}

@media (max-width: 900px) {
  .case-study-slide {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.case-study-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--brand-green);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.case-study-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

@media (max-width: 480px) {
  .case-study-stats-grid {
    gap: 6px;
  }
}

.case-stat-box {
  background: #111714;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  text-align: center;
}

.case-stat-box .num {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 800;
  color: var(--brand-green);
}

.case-stat-box .lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.case-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--space-4);
}

.case-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.case-checklist li i {
  color: var(--brand-green);
}

.case-mock-card {
  background: #0d120f;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 480px) {
  .case-mock-card {
    padding: var(--space-4);
  }
}

.case-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: var(--space-8);
}

.case-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #121815;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.case-nav-btn:hover {
  background: var(--brand-green);
  color: #000;
  border-color: var(--brand-green);
}

/* --------------------------------------------------------------------------
   12. Testimonials Slider (Real Client Reviews)
   -------------------------------------------------------------------------- */
.testimonials-section {
  position: relative;
}

.testi-track-wrap {
  overflow: hidden;
  margin-top: var(--space-10);
  cursor: grab;
  padding: 10px 0;
}

.testi-track-wrap:active {
  cursor: grabbing;
}

.testi-track {
  display: flex;
  gap: var(--space-6);
  transition: transform var(--transition-smooth);
}

.testi-card {
  flex: 0 0 380px;
  background: #0f1512;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  user-select: none;
}

@media (max-width: 500px) {
  .testi-card {
    flex: 0 0 85vw;
    padding: var(--space-5);
  }
}

.testi-stars {
  color: #f5a623;
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
}

.testi-screenshot-img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-4);
  max-height: 220px;
  object-fit: cover;
  object-position: top;
}

.testi-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-4);
}

.testi-author-meta h5 {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.testi-author-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. About / Why Choose Me Section
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-10);
  margin-top: var(--space-10);
  align-items: center;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.about-credentials-card {
  background: #0f1512;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(152, 202, 58, 0.1);
}

@media (max-width: 480px) {
  .about-credentials-card {
    padding: var(--space-6) var(--space-4);
  }
}

.admin-badge-img {
  max-width: 180px;
  margin: 0 auto var(--space-6);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.about-stat-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.about-stat-item .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-green);
}

.about-stat-item .lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   14. Final CTA & Footer (Contact Channels)
   -------------------------------------------------------------------------- */
.final-cta-section {
  text-align: center;
  position: relative;
  padding: var(--space-24) 0;
  background: radial-gradient(circle at 50% 50%, rgba(152, 202, 58, 0.15) 0%, rgba(7, 9, 8, 0.8) 70%);
}

@media (max-width: 768px) {
  .final-cta-section {
    padding: var(--space-16) 0;
  }
}

.footer-section {
  background: #050806;
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (max-width: 840px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.contact-channels-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: var(--space-4);
}

.contact-channel-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.contact-channel-item:hover {
  background: var(--brand-green-soft);
  border-color: var(--brand-green-border);
  color: var(--brand-green);
  transform: translateX(4px);
}

.contact-channel-icon {
  font-size: 1.3rem;
  color: var(--brand-green);
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* --------------------------------------------------------------------------
   15. High-Performance Booking Modal
   -------------------------------------------------------------------------- */
.booking-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: var(--space-4);
}

@media (max-width: 480px) {
  .booking-modal-overlay {
    padding: 8px;
  }
}

.booking-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.booking-modal-container {
  width: 100%;
  max-width: 840px;
  height: 88vh;
  max-height: 740px;
  background: #0f1411;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(152, 202, 58, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-smooth);
}

@media (max-width: 480px) {
  .booking-modal-container {
    height: 94vh;
    border-radius: var(--radius-lg);
  }
}

.booking-modal-overlay.active .booking-modal-container {
  transform: scale(1) translateY(0);
}

.booking-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.booking-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: scale(1.1);
}

.booking-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}