/* === AMA — AI.Make.Automate === */
/* Samsung-inspired: clean, minimal, premium, generous whitespace */

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50: #f7f7f7;
  --gray-100: #eeeeee;
  --gray-200: #dddddd;
  --gray-400: #999999;
  --gray-500: #6e6e73;
  --gray-700: #444444;
  --gray-900: #1d1d1f;
  --radius: 11px;
  --radius-lg: 24px;
  --transition: 0.3s ease;
  --shadow: 0 4px 17px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* === Top Bar === */
.top-bar {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 10px 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* === Navigation === */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-900);
  font-size: 0.875rem;
  font-weight: 400;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--gray-500);
}

.nav-cta {
  background: var(--black) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 100px !important;
  font-weight: 500 !important;
  transition: background var(--transition) !important;
}

.nav-cta:hover {
  background: var(--gray-700) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gray-900);
  transition: var(--transition);
}

/* === Hero === */
.hero {
  text-align: center;
  padding: 80px 0 0;
  background: var(--black);
  color: var(--white);
}

.hero-content {
  padding: 60px 0 80px;
}

.hero-logo {
  width: 200px;
  height: auto;
  margin-bottom: 48px;
  filter:
    drop-shadow(0 0 2px rgba(20, 40, 80, 0.95))
    drop-shadow(0 0 8px rgba(15, 35, 70, 0.8))
    drop-shadow(0 0 20px rgba(10, 25, 55, 0.6));
  animation: float 6s ease-in-out infinite, pulse-glow 2s ease-in-out infinite;
  transition: filter 0.15s ease;
}

.hero-logo.flash {
  filter:
    drop-shadow(0 0 4px rgba(40, 70, 130, 1))
    drop-shadow(0 0 14px rgba(30, 55, 110, 0.95))
    drop-shadow(0 0 35px rgba(20, 45, 90, 0.8))
    drop-shadow(0 0 70px rgba(15, 35, 70, 0.5));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 2px rgba(20, 40, 80, 0.95))
      drop-shadow(0 0 8px rgba(15, 35, 70, 0.8))
      drop-shadow(0 0 20px rgba(10, 25, 55, 0.6));
  }
  50% {
    filter:
      drop-shadow(0 0 4px rgba(40, 70, 130, 1))
      drop-shadow(0 0 12px rgba(30, 55, 110, 0.95))
      drop-shadow(0 0 30px rgba(20, 45, 90, 0.8))
      drop-shadow(0 0 60px rgba(15, 35, 70, 0.5));
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--gray-400);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--white);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.btn-large {
  padding: 18px 48px;
  font-size: 1rem;
}

/* === Hero Stats === */
.hero-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px 0;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 400;
}

/* === Section Headers === */
.section-header {
  margin-bottom: 64px;
}

.section-header.center {
  text-align: center;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--gray-500);
  max-width: 520px;
  line-height: 1.6;
  font-weight: 300;
}

.section-header.center p {
  margin: 0 auto;
}

/* === Services === */
.services {
  padding: 120px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all var(--transition);
}

.service-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: var(--black);
  border-radius: 12px;
  color: var(--white);
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
  font-weight: 300;
}

/* === Why AMA === */
.why-ama {
  padding: 120px 0;
  background: var(--gray-50);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.why-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.why-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.why-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.why-item p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
  font-weight: 300;
}

/* === Pain Points === */
.pain-points {
  padding: 120px 0;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pain-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all var(--transition);
}

.pain-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.pain-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff0f0;
  border-radius: 10px;
  color: #d44;
}

.pain-icon svg {
  width: 22px;
  height: 22px;
}

.pain-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.pain-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
  font-weight: 300;
}

/* === CTA Section === */
.cta-section {
  padding: 120px 0;
  background: var(--black);
  color: var(--white);
}

.cta-box {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 1.0625rem;
  color: var(--gray-400);
  margin-bottom: 40px;
  line-height: 1.7;
  font-weight: 300;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--black);
}

.cta-section .btn-primary:hover {
  background: var(--gray-100);
}

.cta-note {
  display: block;
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--gray-500);
  font-weight: 300;
}

/* === Footer === */
.footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding-top: 64px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--gray-500);
  font-size: 0.875rem;
  font-weight: 400;
}

.footer-tagline {
  color: var(--gray-400) !important;
  font-size: 0.8125rem !important;
  margin-top: 4px;
  font-weight: 300;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.footer-links a {
  text-decoration: none;
  color: var(--gray-500);
  font-size: 0.875rem;
  transition: color var(--transition);
  font-weight: 400;
}

.footer-links a:hover {
  color: var(--gray-900);
}

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* === Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 900px) {
  .services-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    gap: 40px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

/* === Chat Widget Enhancements === */
/* Ensure chat widget doesn't overlap footer on mobile */
@media (max-width: 640px) {
  .footer-bottom {
    padding-bottom: 80px; /* Space for chat widget */
  }
}

/* Smooth fade-in animation when widget loads */
[class*="lc-"],
[id*="chat-widget"],
iframe[src*="leadconnector"] {
  animation: chatFadeIn 0.5s ease forwards;
}

@keyframes chatFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .top-bar {
    font-size: 0.65rem;
    letter-spacing: 3px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 12px;
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .services-grid,
  .why-grid,
  .pain-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    flex-direction: column;
    gap: 24px;
  }

  .hero-content {
    padding: 40px 0 60px;
  }

  .hero-logo {
    width: 140px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .pain-card {
    flex-direction: column;
  }
}
