/* =============================================
   AskFlow Landing Page — styles.css
   Dark theme, purple-blue gradient accent
============================================= */

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

:root {
  --bg:        #0d0d1a;
  --bg-card:   #13132a;
  --bg-dark:   #0a0a14;
  --border:    rgba(124, 58, 237, 0.15);
  --grad:      linear-gradient(135deg, #7c3aed, #2563eb);
  --grad-text: linear-gradient(135deg, #a78bfa, #60a5fa);
  --purple:    #7c3aed;
  --blue:      #2563eb;
  --text:      #e2e8f0;
  --text-muted:#94a3b8;
  --white:     #ffffff;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(124, 58, 237, 0.15);
  --font:      'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s ease;
  border: none;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--purple); color: #a78bfa; }
.btn-nav {
  background: var(--grad);
  color: #fff;
  padding: .55rem 1.25rem;
  font-size: .875rem;
  box-shadow: 0 2px 12px rgba(124,58,237,.3);
}
.btn-nav:hover { transform: translateY(-1px); }
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all .3s ease;
}
.navbar.scrolled {
  background: rgba(13,13,26,.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: .875rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.25rem;
}
.logo-icon { font-size: 1.5rem; background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-text { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-muted);
  font-size: .95rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .35;
  animation: float 8s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: #7c3aed; top: -100px; right: -100px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: #2563eb; bottom: -50px; left: -100px; animation-delay: -3s; }
.orb-3 { width: 300px; height: 300px; background: #7c3aed40; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: -6s; }
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.badge {
  display: inline-block;
  padding: .35rem 1rem;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  color: #a78bfa;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--white);
}
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-value { display: block; font-size: 1.75rem; font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: .8rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* SECTIONS */
.section { padding: 5rem 0; }
.section-dark { background: var(--bg-dark); }
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: .75rem;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* PROBLEM */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all .3s;
}
.problem-card:hover { border-color: var(--purple); transform: translateY(-4px); box-shadow: var(--shadow); }
.problem-icon { font-size: 2rem; margin-bottom: 1rem; }
.problem-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.problem-card p { color: var(--text-muted); font-size: .95rem; }

/* SOLUTION */
.solution-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.solution-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin: 1rem 0 1.25rem;
  line-height: 1.2;
}
.solution-text p { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.7; }
.solution-list { display: flex; flex-direction: column; gap: .6rem; }
.solution-list li { color: var(--text); font-size: .95rem; }

/* CODE BLOCK */
.code-block {
  background: #0a0a14;
  border: 1px solid rgba(124,58,237,.25);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 1rem;
  background: rgba(124,58,237,.08);
  border-bottom: 1px solid rgba(124,58,237,.15);
}
.code-dots { display: flex; gap: .4rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28c940; }
.code-label { font-size: .75rem; color: var(--text-muted); font-family: var(--font-mono); }
.code-body {
  padding: 1.25rem;
  font-size: .82rem;
  line-height: 1.7;
  overflow-x: auto;
  color: #cdd9e5;
}
.code-comment { color: #768390; }
.code-string { color: #96d0ff; }
.code-key { color: #dcbdfb; }
.code-number { color: #6cb6ff; }

/* HOW IT WORKS */
.steps-grid {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  position: relative;
  transition: all .3s;
}
.step-card:hover { border-color: var(--purple); transform: translateY(-4px); box-shadow: var(--shadow); }
.step-number {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: .75rem;
  font-weight: 700;
  color: rgba(124,58,237,.5);
  font-family: var(--font-mono);
}
.step-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.step-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.step-card p { color: var(--text-muted); font-size: .9rem; }
.step-arrow { font-size: 1.5rem; color: var(--purple); }

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { border-color: var(--purple); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.feature-card p { color: var(--text-muted); font-size: .92rem; line-height: 1.65; }

/* TECH STACK */
.tech-groups { display: flex; flex-direction: column; gap: 2.5rem; }
.tech-group h4 {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.tech-badges { display: flex; flex-wrap: wrap; gap: .75rem; }
.tech-badge {
  padding: .45rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .85rem;
  color: var(--text);
  font-weight: 500;
  transition: all .2s;
}
.tech-badge:hover { border-color: var(--purple); color: #a78bfa; }
.tech-badge.aws { border-color: rgba(255,153,0,.2); color: #ffd580; }
.tech-badge.aws:hover { border-color: #ff9900; }

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: all .3s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-featured {
  border-color: var(--purple);
  background: linear-gradient(180deg, rgba(124,58,237,.1) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 40px rgba(124,58,237,.2);
  transform: scale(1.03);
}
.pricing-featured:hover { transform: scale(1.03) translateY(-4px); }
.pricing-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-tier { font-size: 1rem; font-weight: 700; color: var(--text-muted); margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .05em; }
.pricing-price { font-size: 3rem; font-weight: 900; color: var(--white); margin-bottom: 1.5rem; line-height: 1; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-features { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
.pricing-features li { color: var(--text-muted); font-size: .92rem; }

/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(37,99,235,.15));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-content { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--white); margin-bottom: 1rem; }
.cta-content p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.05rem; }

/* FOOTER */
.footer { background: var(--bg-dark); padding: 3rem 0 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; gap: 4rem; flex-wrap: wrap; padding-bottom: 3rem; }
.footer-brand { flex: 1; min-width: 200px; }
.footer-brand p { color: var(--text-muted); font-size: .9rem; margin-top: .75rem; }
.footer-links { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-col h5 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.25rem 1.5rem; text-align: center; color: var(--text-muted); font-size: .82rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .solution-content { grid-template-columns: 1fr; gap: 2rem; }
  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .pricing-featured { transform: none; }
  .pricing-featured:hover { transform: translateY(-4px); }
  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-links { gap: 2rem; }
  .hero-stats { gap: 1rem; }
  .stat-divider { display: none; }
}
