/* ========================================
   AI CONSULTATION SITE - MAIN STYLES
   Core variables, reset, and base styles
   ======================================== */

/* CSS Variables */
:root {
  --bg-dark: #09090b;
  --bg-card: #18181b;
  --bg-card-hover: #27272a;
  --border-color: #27272a;
  --border-hover: #3f3f46;
  --text-white: #ffffff;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --gradient-start: #3b82f6;
  --gradient-mid: #8b5cf6;
  --gradient-end: #ec4899;
}

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

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
}

.heading-font {
  font-family: "Space Grotesk", sans-serif;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* ========================================
   BACKGROUND EFFECTS
   ======================================== */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.top-gradient {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: linear-gradient(to bottom, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05), transparent);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.top-gradient-industry {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
  position: relative;
  z-index: 10;
  padding: 1.5rem;
}

.header-container {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-main { color: var(--text-white); }
.logo-ai { 
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-grow { color: var(--text-dim); } /* legacy support */

/* Desktop Navigation */
.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav { display: flex; }
  .mobile-menu-btn { display: none !important; }
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-white);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-white);
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 9, 11, 0.98);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: var(--gradient-mid);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  z-index: 10;
  max-width: 72rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 8rem;
}

.badge {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.badge > div,
.badge > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(39, 39, 42, 0.5);
  border: 1px solid rgba(63, 63, 70, 0.5);
  border-radius: 9999px;
  color: #d4d4d8;
  font-size: 0.875rem;
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.headline {
  text-align: center;
  margin-bottom: 1.5rem;
}

.headline h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.headline-white { color: var(--text-white); }

.headline-gradient {
  background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-mid) 25%, var(--gradient-end) 50%, var(--gradient-mid) 75%, var(--gradient-start) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientWave 4s ease infinite;
}

.subheadline {
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 auto 5rem;
  line-height: 1.6;
}

.subheadline-muted { color: var(--text-dim); }

.subheadline-highlight {
  color: var(--text-white);
  font-weight: 500;
}

/* Hero CTA Button */
.hero-cta {
  text-align: center;
  margin-bottom: 2rem;
}

.btn-gradient {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.4);
}

.btn-gradient.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* ========================================
   SERVICES SECTION (What We Do)
   ======================================== */
.services-section {
  position: relative;
  z-index: 10;
  max-width: 72rem;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.services-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: rgba(39, 39, 42, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.2);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  min-width: 4rem;
  min-height: 4rem;
  max-width: 4rem;
  max-height: 4rem;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  border-radius: 1rem;
  overflow: hidden;
}

.service-icon svg {
  width: 2rem !important;
  height: 2rem !important;
  max-width: 2rem;
  max-height: 2rem;
  flex-shrink: 0;
  color: var(--text-white);
}

.service-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ========================================
   PROCESS SECTION (How It Works)
   ======================================== */
.process-section {
  position: relative;
  z-index: 10;
  max-width: 72rem;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.process-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .process-steps {
    flex-direction: row;
    justify-content: center;
    gap: 0;
  }
}

.process-step {
  text-align: center;
  padding: 2rem;
  flex: 1;
  max-width: 280px;
}

.process-number {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  border-radius: 50%;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
}

.process-step h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.process-connector {
  display: none;
}

@media (min-width: 768px) {
  .process-connector {
    display: block;
    width: 4rem;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid));
    opacity: 0.5;
  }
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
  position: relative;
  z-index: 10;
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* ========================================
   INDUSTRY SECTION
   ======================================== */
.industry-section {
  position: relative;
  z-index: 10;
  max-width: 72rem;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

/* ========================================
   FINAL CTA SECTION
   ======================================== */
.final-cta-section {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  text-align: center;
}

.final-cta-section .section-title {
  margin-bottom: 1rem;
}

.final-cta-section .section-subtitle {
  margin-bottom: 2.5rem;
}

.industry-label {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

/* Demo Arrow Indicator */
.demo-indicator {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.demo-indicator-arrow {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 1.5rem;
  animation: bounceArrow 1.5s ease-in-out infinite;
}

/* ========================================
   TRUST STATS
   ======================================== */
.trust-stats {
  margin-top: 6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .trust-stats { gap: 3rem; }
}

.stat {
  text-align: center;
  padding: 1.5rem 2rem;
  background: rgba(39, 39, 42, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  min-width: 140px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.2);
}

.stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--text-dim);
  font-size: 0.875rem;
}

/* ========================================
   FLOATING BACK BUTTON
   ======================================== */
.floating-back-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(39, 39, 42, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: var(--text-white);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.floating-back-btn.visible {
  opacity: 1;
  visibility: visible;
}

.floating-back-btn:hover {
  background: rgba(63, 63, 70, 0.9);
  transform: translateY(-2px);
}

/* ========================================
   INDUSTRY PAGE
   ======================================== */
#industry-page { min-height: 100vh; }

.industry-header {
  position: relative;
  z-index: 10;
  padding: 1.5rem;
}

.industry-header-container {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  font-size: 0.875rem;
}

.back-button:hover { color: var(--text-white); }
.back-button span:first-child { font-size: 1.25rem; }

.industry-hero {
  position: relative;
  z-index: 10;
  max-width: 72rem;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}

.industry-hero-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.industry-hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.industry-hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

/* Section Styles */
.section {
  position: relative;
  z-index: 10;
  max-width: 64rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 3rem;
}

/* CTA Section */
.cta-section {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}

.cta-section h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
}

/* Footer */
.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem;
}

.footer-container {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-main {
  text-align: center;
}

@media (min-width: 768px) {
  .footer-main {
    text-align: left;
  }
}

.footer .logo { margin-bottom: 0.5rem; }

.footer-text {
  color: #52525b;
  font-size: 0.875rem;
}

/* Footer Contact Form */
.footer-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-input {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-white);
  font-size: 0.875rem;
  min-width: 200px;
  transition: border-color 0.2s;
}

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

.footer-input:focus {
  outline: none;
  border-color: var(--gradient-mid);
}

.footer-submit {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  color: var(--text-white);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.footer-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-muted);
}
