/* =========================
   Steve's Dev & Data - CSS
   Cleaned + Deduped v1
   ========================= */

/* ---------- Variables ---------- */
:root {
  --bg-color: #0a0a0f;
  --bg-dark: #0a0a0f;
  --card-bg: #13131f;

  --primary-color: #6d28d9;   /* Electric Purple */
  --secondary-color: #0ea5e9; /* Electric Blue */
  --accent-color: #10b981;    /* Neon Green */

  --text-color: #ffffff;
  --text-muted: #94a3b8;
  --text-secondary: #94a3b8;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;

  --border-soft: 1px solid rgba(255, 255, 255, 0.1);
  --border-softer: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- Resets ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-x: hidden; scroll-padding-top: 140px; scroll-behavior: smooth; }
body { overflow-x: hidden; }

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-soft);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  height: 120px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--secondary-color); }

.cta-button {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.cta-button.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10%;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1 span {
  font-size: 0.5em;
  color: var(--primary-color);
  -webkit-text-fill-color: initial;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.primary-btn {
  background: var(--text-color);
  color: var(--bg-color);
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.secondary-btn {
  border: 1px solid var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-color);
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.secondary-btn:hover { background: rgba(255, 255, 255, 0.05); }

/* Hero Visual / Canvas */
.hero-visual {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Sections ---------- */
.services-section,
.work-section,
.how-it-works-section,
.industries-section {
  padding: 6rem 10%;
  background: var(--bg-color);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 4rem;
}

.highlight { color: var(--secondary-color); }

/* ---------- Industries ---------- */
.industries-section { text-align: center; }

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.industry-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 1rem;
  border-radius: var(--radius-md);
  transition: transform 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.industry-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.industry-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.industry-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-color);
}

/* ---------- Services Grid + Flip Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Flip container */
.service-card {
  background-color: transparent;
  perspective: 1000px;
  transform: translateZ(0); /* Firefox bleed fix */
}

.card-inner {
  position: relative;
  width: 100%;
  min-height: 320px;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.service-card:hover .card-inner,
.service-card.active .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: var(--border-soft);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card-front {
  position: relative; /* front should be normal flow */
  background: var(--card-bg);
}

.card-back {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: white;
  transform: rotateY(180deg);
}

.service-card:hover .card-front,
.service-card:hover .card-back,
.service-card.active .card-front,
.service-card.active .card-back {
  border-color: var(--primary-color);
  box-shadow: 0 15px 35px rgba(109, 40, 217, 0.2);
}

.icon { font-size: 2.5rem; margin-bottom: 1.5rem; }

.card-front h3,
.card-back h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-front p { color: var(--text-muted); }

.card-back ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.card-back li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.25rem;
}

.card-back li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

/* ---------- Work Section ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.work-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  height: 300px;
  border: var(--border-soft);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: white;
  transform: translateZ(0);
}

.work-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 35px rgba(109, 40, 217, 0.18);
}

.work-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.work-card.featured {
  background-image: url('https://storage.googleapis.com/70700-website2/assets/hero-bg-C8F8F8F8.jpg');
  background-size: cover;
  background-position: center;
}

.work-card.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e1e2e, #13131f);
}

/* ---------- How It Works ---------- */
.how-it-works-section { text-align: center; }

.steps-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.step {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 50%;
  width: 280px;
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: var(--border-soft);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.step:hover {
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(109, 40, 217, 0.45);
  border-color: var(--primary-color);
}

.step-icon { font-size: 3rem; margin-bottom: 1rem; }

.step h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.step-arrow {
  font-size: 3rem;
  color: var(--primary-color);
  animation: bounceRight 2s infinite;
}

@keyframes bounceRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

/* ---------- Scroll Animations ---------- */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Contact ---------- */
.contact-section {
  padding: 6rem 10%;
  display: flex;
  justify-content: center;
}

.contact-container {
  background: linear-gradient(135deg, #1e1e2e, #13131f);
  padding: 3rem;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  text-align: center;
  border: var(--border-soft);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

input,
select,
textarea {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  color: white;
  font-family: var(--font-body);
}

textarea { resize: vertical; }

.submit-btn {
  background: var(--secondary-color);
  color: white;
  padding: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover { background: #0284c7; }

/* ---------- Lead Magnet ---------- */
.lead-magnet-section {
  padding: 8rem 10%;
  background: linear-gradient(135deg, #0f172a 0%, #1e1e2e 100%);
  overflow: hidden;
}

.lead-magnet-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.lead-magnet-content {
  flex: 1;
  max-width: 650px;
  z-index: 2;
}

.lead-magnet-content .badge {
  background: rgba(109, 40, 217, 0.2);
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.lead-magnet-content h2 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
}

.lead-magnet-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.benefits-list {
  list-style: none;
  margin-bottom: 2rem;
}

.benefits-list li {
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
}

.benefits-list i { color: var(--accent-color); }

#lead-magnet-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 2rem 0 0;
}

#lead-magnet-form input {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  color: white;
}

#lead-magnet-form button {
  width: 100%;
  padding: 1rem;
  background: var(--primary-color);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.3s;
}

#lead-magnet-form button:hover { background: #5b21b6; }

/* ---------- Pricing ---------- */
.pricing-section {
  padding: 8rem 5%;
  background: var(--bg-dark);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto 0;
}

.pricing-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: var(--border-softer);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.15);
  border-color: var(--primary-color);
}

.pricing-card.popular {
  border: 1px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.pricing-card .price .period {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-card .price-desc {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  flex-grow: 1;
}

.pricing-card .cta-button { width: 100%; }

.badge {
  display: inline-block;
  font-weight: 800;
}

/* ---------- Automation Examples ---------- */
.automation-section {
  padding: 8rem 5%;
  background: var(--bg-dark);
}

.automation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto 0;
}

.auto-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: var(--border-softer);
  padding: 2.5rem;
  border-radius: 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.auto-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
}

.auto-card:hover::before { transform: translateX(100%); }

.auto-card:hover {
  transform: translateY(-7px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 35px -5px rgba(109, 40, 217, 0.2);
}

.auto-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: var(--border-soft);
}

.auto-card h3 {
  margin-bottom: 1rem;
  color: white;
  font-size: 1.4rem;
  font-family: var(--font-heading);
}

.auto-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.auto-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.auto-tags span {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  border: var(--border-soft);
}

/* ---------- Why Choose Us ---------- */
.why-us-section {
  padding: 8rem 5%;
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(20, 20, 20, 1) 100%);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto 0;
}

.why-card {
  position: relative;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: var(--border-softer);
}

.why-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
}

.why-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  color: white;
  position: relative;
  z-index: 2;
}

.why-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

/* ---------- Tech Visual Pulse ---------- */
.tech-visual img {
  border-radius: 12px;
  border: var(--border-soft);
  animation: diagramPulse 3s infinite ease-in-out;
}

@keyframes diagramPulse {
  0% {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 40px rgba(109, 40, 217, 0.3);
    border-color: var(--primary-color);
    transform: scale(1.01);
  }
  100% {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    transform: scale(1);
  }
}

/* ---------- Glitch Effect ---------- */
.glitch-text { position: relative; }

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
}

.glitch-text::before {
  left: 2px;
  text-shadow: -1px 0 #ff00c1;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  text-shadow: -1px 0 #00fff9;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

/* Keep your existing keyframes (same as yours) */
@keyframes glitch-anim {
  0% { clip: rect(30px, 9999px, 10px, 0); }
  5% { clip: rect(80px, 9999px, 90px, 0); }
  10% { clip: rect(10px, 9999px, 40px, 0); }
  15% { clip: rect(50px, 9999px, 20px, 0); }
  20% { clip: rect(20px, 9999px, 60px, 0); }
  25% { clip: rect(90px, 9999px, 10px, 0); }
  30% { clip: rect(60px, 9999px, 30px, 0); }
  35% { clip: rect(10px, 9999px, 80px, 0); }
  40% { clip: rect(40px, 9999px, 50px, 0); }
  45% { clip: rect(70px, 9999px, 20px, 0); }
  50% { clip: rect(20px, 9999px, 90px, 0); }
  55% { clip: rect(50px, 9999px, 10px, 0); }
  60% { clip: rect(80px, 9999px, 40px, 0); }
  65% { clip: rect(10px, 9999px, 60px, 0); }
  70% { clip: rect(60px, 9999px, 30px, 0); }
  75% { clip: rect(30px, 9999px, 70px, 0); }
  80% { clip: rect(90px, 9999px, 20px, 0); }
  85% { clip: rect(40px, 9999px, 50px, 0); }
  90% { clip: rect(70px, 9999px, 10px, 0); }
  95% { clip: rect(20px, 9999px, 80px, 0); }
  100% { clip: rect(50px, 9999px, 40px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(60px, 9999px, 30px, 0); }
  5% { clip: rect(10px, 9999px, 70px, 0); }
  10% { clip: rect(40px, 9999px, 20px, 0); }
  15% { clip: rect(90px, 9999px, 50px, 0); }
  20% { clip: rect(30px, 9999px, 80px, 0); }
  25% { clip: rect(70px, 9999px, 10px, 0); }
  30% { clip: rect(20px, 9999px, 60px, 0); }
  35% { clip: rect(50px, 9999px, 20px, 0); }
  40% { clip: rect(80px, 9999px, 40px, 0); }
  45% { clip: rect(10px, 9999px, 90px, 0); }
  50% { clip: rect(60px, 9999px, 30px, 0); }
  55% { clip: rect(30px, 9999px, 50px, 0); }
  60% { clip: rect(70px, 9999px, 20px, 0); }
  65% { clip: rect(20px, 9999px, 60px, 0); }
  70% { clip: rect(50px, 9999px, 10px, 0); }
  75% { clip: rect(80px, 9999px, 40px, 0); }
  80% { clip: rect(10px, 9999px, 70px, 0); }
  85% { clip: rect(40px, 9999px, 30px, 0); }
  90% { clip: rect(90px, 9999px, 50px, 0); }
  95% { clip: rect(30px, 9999px, 20px, 0); }
  100% { clip: rect(60px, 9999px, 80px, 0); }
}

/* ---------- Chatbot ---------- */
.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  font-family: var(--font-body);
}

.chat-toggle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: pulse-glow 2s infinite;
}

.chat-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.6);
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(0, 255, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 450px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border: var(--border-soft);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.chat-window.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.chat-header {
  background: var(--primary-color);
  color: black;
  padding: 15px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: black;
}

.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  padding: 10px 15px;
  border-radius: 10px;
  max-width: 80%;
  font-size: 0.9rem;
  line-height: 1.4;
}

.message.bot {
  background: rgba(255, 255, 255, 0.1);
  align-self: flex-start;
  color: #e2e8f0;
}

.message.user {
  background: var(--primary-color);
  align-self: flex-end;
  color: white;
}

.chat-input {
  padding: 15px;
  border-top: var(--border-soft);
  display: flex;
  gap: 10px;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border-radius: 20px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  outline: none;
}

.chat-input button {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.chat-input button:hover { transform: scale(1.1); }

/* Listening State for Microphone */
#mic-btn {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

#mic-btn.listening {
    color: #ff4747;
    background: rgba(255, 71, 71, 0.1);
    border-color: #ff4747;
    animation: pulseMic 1.5s infinite;
}

@keyframes pulseMic {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 71, 0.4); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(255, 71, 71, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 71, 0); }
}

/* ---------- Modal ---------- */
.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.modal.active { display: flex; }

.modal-content {
  position: relative;
  width: 80%;
  max-width: 900px;
  background: #000;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--primary-color);
}

.close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
}

.modal-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 10px 15px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 5px;
  margin: 0 10px;
  transition: background 0.2s;
}

.modal-nav-btn:hover { background: var(--primary-color); }

/* ---------- Footer ---------- */
footer {
  padding: 4rem 5% 2rem;
  background: black;
  text-align: center;
  border-top: var(--border-soft);
  color: var(--text-muted);
}

.footer-content {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.footer-bio {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: white;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .lead-magnet-container {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }
  #lead-magnet-form { margin: 2rem auto 0; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-logo { height: 60px; }

  .hero {
    padding: 120px 6% 2rem;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    min-height: 100vh;
  }

  .hero-visual {
    display: block;
    position: absolute;
    inset: auto 0 0 0;   /* bottom */
    width: 100%;
    height: 45vh;        /* only takes part of the hero */
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
  }

  .hero-content {
    position: relative;
    z-index: 2;          /* keep text above canvas */
  }

  h1 { font-size: 2.4rem; }
  .hero-subtitle { font-size: 1.1rem; }

  .industries-section,
  .services-section,
  .work-section,
  .how-it-works-section {
    padding: 4rem 6%;
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  /* Ensure Services Grid defaults to 2-columns (as per user preference) */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .steps-container { flex-direction: column; }
  .step-arrow {
    transform: rotate(90deg);
    margin: 1rem 0;
    animation: bounceDown 2s infinite;
  }

  @keyframes bounceDown {
    0%, 100% { transform: translateY(0) rotate(90deg); }
    50% { transform: translateY(10px) rotate(90deg); }
  }

  .why-us-section,
  .pricing-section,
  .automation-section {
    padding: 4rem 1.5rem;
  }

  .why-us-grid,
  .automation-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}


.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    text-align: left;
    width: 100%;
}

.pricing-card li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pricing-card li::before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
}


/* ---------- Testimonials ---------- */
.testimonials-section {
    padding: 8rem 5%;
    background: var(--bg-dark); /* Blend with dark theme */
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.testimonial-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: var(--border-softer);
    text-align: left;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.quote-icon {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    line-height: 1;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.testimonial-card p {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative; /* z-index fix if needed */
    font-style: italic;
}

.testimonial-card .author {
    display: flex;
    flex-direction: column;
}

.testimonial-card .name {
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
}

.testimonial-card .role {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}


/* --- Cleaned Inline Styles --- */
.pain-text {
    margin-top: 0.5rem;
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.8;
}

.tech-visual-container {
    margin-top: 4rem;
    text-align: center;
}

.tech-visual-label {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
}

.tech-visual-img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
}

.demo-badge-live {
    background: #00ff88;
    color: black;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: inline-block;
}

.demo-badge-wip {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #777;
    border: 1px solid #333;
    padding: 4px 10px;
    border-radius: 20px;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #555;
    background: transparent;
    border: none;
    width: auto;
    height: auto;
}

/* --- Promo Banner --- */
.promo-bar {
    background: linear-gradient(90deg, #6d28d9, #0ea5e9);
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    position: sticky;
    top: 60px; /* Below fixed navbar? OR Fixed at top? */
    /* Wait, Navbar is fixed top: 0. If we want this visible, it should be above content. */
    /* Let's make it part of the normal flow BUT sticky below navbar? 
       Or static at top of body, and navbar pushes down?
       Current navbar is fixed. So body needs padding-top. 
       Actually, safest is Fixed Bottom or High Z-Index Top Overlay.
       User suggested "Sticky banner". */
    z-index: 999;
}
.promo-bar a {
    color: white;
    text-decoration: underline;
    margin-left: 10px;
}

/* Fix Navbar top offset if we add a top banner? 
   Actually, let's put the banner INSIDE the navbar or just above the hero content.
   Let's try a "Floating Notification" style at the top of the Hero. */
   
.promo-notification {
    background: rgba(109, 40, 217, 0.2);
    border: 1px solid var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s;
}
.promo-notification:hover {
    transform: translateY(-2px);
    background: rgba(109, 40, 217, 0.4);
}
