/* Autoflow AI — Global Styles */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --dark: #0f172a;
  --dark2: #1e293b;
  --dark3: #334155;
  --green: #22c55e;
  --green-light: #dcfce7;
  --green-dark: #15803d;
  --text: #374151;
  --muted: #64748b;
  --faint: #94a3b8;
  --border: #e2e8f0;
  --white: #ffffff;
  --bg: #f0f4f8;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  border-bottom: 1px solid var(--dark2);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo .mark { background: var(--green); color: var(--dark); font-weight: 800; font-size: 14px; padding: 4px 10px; border-radius: 5px; }
.nav-logo .wordmark { color: var(--white); font-size: 17px; font-weight: 700; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a { color: var(--faint); text-decoration: none; font-size: 14px; padding: 6px 12px; border-radius: 6px; transition: color .2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta { background: var(--green); color: var(--dark) !important; font-weight: 700 !important; padding: 8px 18px !important; border-radius: 7px; }
.nav-cta:hover { background: #16a34a !important; color: var(--white) !important; }

/* ── Hero ── */
.hero {
  background: linear-gradient(160deg, var(--dark) 0%, #0d2137 60%, #1a2e1a 100%);
  padding: 100px 5% 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 70% 40%, rgba(34,197,94,.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block; background: rgba(34,197,94,.15); border: 1px solid rgba(34,197,94,.3);
  color: var(--green); font-size: 13px; font-weight: 600;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 24px;
}
.hero h1 {
  color: var(--white); font-size: clamp(32px, 5vw, 56px); font-weight: 800;
  line-height: 1.15; margin-bottom: 20px; max-width: 800px; margin-left: auto; margin-right: auto;
}
.hero h1 span { color: var(--green); }
.hero p {
  color: var(--faint); font-size: clamp(16px, 2vw, 19px);
  max-width: 580px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--green); color: var(--dark); font-weight: 700;
  padding: 14px 32px; border-radius: 8px; text-decoration: none;
  font-size: 16px; transition: all .2s; display: inline-block;
}
.btn-primary:hover { background: #16a34a; transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--white); font-weight: 600;
  padding: 14px 32px; border-radius: 8px; text-decoration: none;
  font-size: 16px; border: 1.5px solid var(--dark3); transition: all .2s; display: inline-block;
}
.btn-secondary:hover { border-color: var(--faint); }

.hero-stats {
  display: flex; justify-content: center; gap: 40px; margin-top: 60px;
  flex-wrap: wrap; padding-top: 40px; border-top: 1px solid var(--dark2);
}
.hero-stat .num { color: var(--green); font-size: 28px; font-weight: 800; display: block; }
.hero-stat .label { color: var(--faint); font-size: 13px; }

/* ── Section ── */
section { padding: 80px 5%; }
.section-label {
  display: inline-block; background: var(--green-light); color: var(--green-dark);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
}
.section-title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: var(--dark); margin-bottom: 14px; }
.section-sub { font-size: 17px; color: var(--muted); max-width: 560px; line-height: 1.7; }
.section-center { text-align: center; }
.section-center .section-sub { margin: 0 auto; }

/* ── Problem section ── */
.problems { background: var(--bg); }
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 48px; }
.problem-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; position: relative;
}
.problem-icon { font-size: 28px; margin-bottom: 12px; }
.problem-card h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.problem-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── Industries ── */
.industries { background: var(--white); }
.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 48px; }
.industry-card {
  background: var(--dark); border-radius: 14px; padding: 32px;
  text-decoration: none; transition: transform .2s;
  display: block; border: 1px solid var(--dark2);
}
.industry-card:hover { transform: translateY(-4px); }
.industry-icon { font-size: 36px; margin-bottom: 16px; display: block; }
.industry-card h3 { color: var(--white); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.industry-card p { color: var(--faint); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.industry-tag {
  display: inline-block; background: rgba(34,197,94,.15); color: var(--green);
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 12px; margin-right: 6px; margin-bottom: 4px;
}
.industry-link { color: var(--green); font-size: 14px; font-weight: 600; margin-top: 16px; display: block; }

/* ── How it works ── */
.how { background: var(--dark); padding: 80px 5%; }
.how .section-title { color: var(--white); }
.how .section-sub { color: var(--faint); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-top: 56px; }
.step {
  text-align: center; padding: 28px 20px;
  background: var(--dark2); border-radius: 12px;
  border: 1px solid var(--dark3);
}
.step-num {
  width: 48px; height: 48px; background: var(--green); color: var(--dark);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; margin: 0 auto 16px;
}
.step h3 { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--faint); font-size: 14px; line-height: 1.7; }

/* ── Why us ── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 48px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.why-item h3 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.why-item p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── Pricing ── */
.pricing { background: var(--bg); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 48px; }
.pricing-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 28px; position: relative;
}
.pricing-card.featured { border-color: var(--green); }
.pricing-card.featured::before {
  content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: var(--dark); font-size: 12px; font-weight: 700;
  padding: 3px 14px; border-radius: 12px;
}
.price-name { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.price-amount { font-size: 36px; font-weight: 800; color: var(--dark); }
.price-amount sup { font-size: 20px; vertical-align: top; margin-top: 6px; display: inline-block; }
.price-period { font-size: 13px; color: var(--muted); margin-top: 4px; margin-bottom: 20px; }
.price-features { list-style: none; margin-bottom: 24px; }
.price-features li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--bg); font-size: 14px; color: var(--text); }
.price-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ── CTA Banner ── */
.cta-banner { background: var(--green); padding: 80px 5%; text-align: center; }
.cta-banner h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; color: var(--dark); margin-bottom: 14px; }
.cta-banner p { font-size: 17px; color: var(--dark); opacity: .75; margin-bottom: 32px; }
.btn-dark { background: var(--dark); color: var(--white); font-weight: 700; padding: 15px 36px; border-radius: 8px; text-decoration: none; font-size: 16px; display: inline-block; transition: opacity .2s; }
.btn-dark:hover { opacity: .85; }

/* ── Footer ── */
footer { background: var(--dark); padding: 48px 5% 28px; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--dark2); }
.footer-brand .mark { background: var(--green); color: var(--dark); font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 5px; }
.footer-brand .name { color: var(--white); font-size: 17px; font-weight: 700; display: inline; margin-left: 8px; }
.footer-brand p { color: var(--faint); font-size: 13px; margin-top: 12px; line-height: 1.7; max-width: 240px; }
.footer-col h4 { color: var(--white); font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--faint); text-decoration: none; font-size: 13px; margin-bottom: 8px; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: var(--dark3); font-size: 12px; }
.footer-bottom a { color: var(--dark3); }

/* ── Contact Form ── */
.form-wrap { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 15px; font-family: inherit;
  transition: border-color .2s; outline: none; color: var(--dark);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--green); }
.form-group textarea { height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { background: var(--green); color: var(--dark); font-weight: 700; font-size: 16px; padding: 14px 32px; border: none; border-radius: 8px; cursor: pointer; width: 100%; transition: background .2s; }
.form-submit:hover { background: #16a34a; }

/* ── Page Hero (inner pages) ── */
.page-hero { background: var(--dark); padding: 70px 5%; text-align: center; }
.page-hero h1 { color: var(--white); font-size: clamp(28px, 4vw, 46px); font-weight: 800; margin-bottom: 14px; }
.page-hero p { color: var(--faint); font-size: 17px; max-width: 560px; margin: 0 auto; }

/* ── Feature List ── */
.feature-list { list-style: none; margin-top: 24px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--bg); font-size: 15px; color: var(--text); }
.feature-list li::before { content: '✓'; background: var(--green); color: var(--dark); font-weight: 800; font-size: 12px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }

/* ── Two-col ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.two-col img { width: 100%; border-radius: 12px; }

/* ── Tags ── */
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 12px; margin-right: 6px; margin-bottom: 6px; }
.tag-green { background: var(--green-light); color: var(--green-dark); }
.tag-dark { background: var(--dark2); color: var(--faint); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 60px 5%; }
  .hero { padding: 70px 5% 60px; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}
