/* autoflow_landing.css - Custom stylesheet for AutoFlow Restaurant Automation Agency */

/* CSS Variables */
:root {
  --primary: #3b82f6;        /* Electric Blue */
  --primary-hover: #2563eb;
  --accent: #10b981;         /* Emerald Green (success/automation) */
  --bg: #09090b;             /* Zinc Black */
  --card-bg: #18181b;        /* Zinc Gray */
  --alt-bg: #121214;         /* Slightly different gray */
  --text-main: #f4f4f5;      /* White */
  --text-muted: #a1a1aa;     /* Gray */
  --glow-color: rgba(59, 130, 246, 0.15);
  
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Reset & Basics */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

/* Noise overlay for texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: 100px 0;
}

.section.alt-bg {
  background: var(--alt-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* NAVBAR */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 76px;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
  font-family: var(--font-headings);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  text-decoration: none;
}

.logo-accent {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-cta-btn {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--text-main);
  padding: 10px 22px;
  font-family: var(--font-headings);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nav-cta-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

/* HERO SECTION */
.hero {
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1.2;
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-headings);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero h1 span {
  color: var(--primary);
  display: block;
}

.hero p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-family: var(--font-headings);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px 32px;
  font-family: var(--font-headings);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  text-align: center;
}

.btn-outline:hover {
  border-color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.hero-social-proof {
  font-size: 13px;
  color: var(--text-muted);
}

.proof-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.green-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-image-wrap {
  flex: 0.8;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
  filter: blur(40px);
  z-index: 1;
  border-radius: 12px;
  opacity: 0.7;
}

.hero-dashboard-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
  position: relative;
  z-index: 2;
  animation: floatMockup 7s ease-in-out infinite;
}

@keyframes floatMockup {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-0.5deg); }
}

/* METRICS STRIP */
.metrics-strip {
  background: var(--card-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-around;
  padding: 30px 24px;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 10;
}

.metric-item {
  text-align: center;
  min-width: 180px;
}

.metric-item h3 {
  font-family: var(--font-headings);
  font-size: 38px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.metric-item p {
  font-size: 13px;
  color: var(--text-muted);
}

/* SECTION HEADER */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-headings);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

/* BENEFITS GRID */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.benefit-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 32px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.benefit-icon {
  font-size: 32px;
  margin-bottom: 18px;
}

.benefit-card h3 {
  font-family: var(--font-headings);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* HOW IT WORKS PROCESS STEPS */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
}

.step-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 30px 24px;
  border-radius: 8px;
}

.step-num {
  position: absolute;
  top: -15px;
  left: 24px;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.step-card h4 {
  font-family: var(--font-headings);
  font-size: 18px;
  font-weight: 600;
  margin: 10px 0 12px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* LIVE DEMOS SECTION */
.demos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.demo-card-highlight {
  background: linear-gradient(145deg, #18181b, #121214);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.demo-card-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}

.demo-card-highlight:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.demo-card-highlight:last-child::before {
  background: var(--accent);
}

.demo-card-highlight:last-child:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.demo-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.demo-card-highlight h3 {
  font-family: var(--font-headings);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.demo-card-highlight p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.btn-demo {
  display: inline-block;
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-headings);
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.demo-card-highlight:hover .btn-demo {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.demo-card-highlight:last-child:hover .btn-demo {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
  color: #000;
}

/* FAQ SECTION */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(255,255,255,0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
}

.faq-question h4 {
  font-family: var(--font-headings);
  font-size: 17px;
  font-weight: 600;
}

.faq-icon {
  font-size: 20px;
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 28px;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 22px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* CALL TO ACTION FOOTER */
.cta-footer {
  background: linear-gradient(to top, #060608 0%, var(--alt-bg) 100%);
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.cta-footer h2 {
  font-family: var(--font-headings);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.8px;
}

.cta-footer p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-btn {
  font-size: 18px;
  padding: 16px 36px;
}

/* FOOTER */
footer {
  background: #060608;
  padding: 30px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  text-align: center;
}

.footer-wrap p {
  font-size: 13px;
  color: var(--text-muted);
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  nav {
    padding: 0 20px;
  }
  .nav-links {
    display: none;
  }
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-social-proof {
    display: flex;
    justify-content: center;
  }
  .hero-image-wrap {
    width: 80%;
  }
  .metrics-strip {
    flex-direction: column;
    align-items: center;
    padding: 30px 10px;
  }
  .metric-item {
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 14px;
    width: 100%;
  }
  .metric-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}
