/*
  FlowForge Systems — styles
  Design notes:
  - Dark mode aesthetic with electric blue accent
  - Mobile-first, responsive
  - Subtle motion + reveal animations
*/

:root {
  --bg: #070A12;
  --bg-2: #0B1020;
  --card: rgba(255,255,255,0.06);
  --card-2: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --muted-2: rgba(255,255,255,0.55);
  --accent: #0066FF;
  --accent-2: #4DA3FF;
  --shadow: 0 20px 60px rgba(0,0,0,0.55);
  --radius: 18px;
  --radius-lg: 24px;
  --max: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 800px at 15% -10%, rgba(0,102,255,0.22), transparent 55%),
              radial-gradient(900px 700px at 95% 0%, rgba(77,163,255,0.14), transparent 55%),
              linear-gradient(180deg, var(--bg) 0%, #05070D 70%, #04060B 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  padding: 0 18px;
  margin: 0 auto;
}

.section {
  padding: 78px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.muted { color: var(--muted); }
.accent { color: var(--accent-2); }

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-family: Poppins, Inter, system-ui, sans-serif;
  margin: 0 0 10px;
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(14px);
  background: rgba(7,10,18,0.60);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), rgba(255,255,255,0) 55%),
              linear-gradient(135deg, var(--accent), rgba(77,163,255,0.65));
  box-shadow: 0 10px 30px rgba(0,102,255,0.25);
  border: 1px solid rgba(255,255,255,0.16);
}

.brand-text { font-size: 14px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  padding: 8px 10px;
  border-radius: 12px;
  transition: background .2s ease, color .2s ease;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
}

.nav-cta {
  background: rgba(0,102,255,0.14);
  border: 1px solid rgba(0,102,255,0.35);
  color: rgba(255,255,255,0.92) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: rgba(255,255,255,0.82);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  user-select: none;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), rgba(77,163,255,0.95));
  border-color: rgba(0,102,255,0.45);
  box-shadow: 0 16px 40px rgba(0,102,255,0.25);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -200px -120px auto -120px;
  height: 520px;
  background: radial-gradient(closest-side at 20% 35%, rgba(0,102,255,0.28), transparent 60%),
              radial-gradient(closest-side at 85% 40%, rgba(77,163,255,0.18), transparent 62%);
  pointer-events: none;
  filter: blur(0px);
}

.hero-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255,255,255,0.76);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
}

.headline {
  font-family: Poppins, Inter, system-ui, sans-serif;
  margin: 14px 0 10px;
  font-size: clamp(32px, 4.6vw, 54px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.subhead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 18px;
}

.hero-proof {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.proof-chip {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.proof-number {
  font-weight: 800;
  color: rgba(255,255,255,0.92);
}

.proof-label {
  color: rgba(255,255,255,0.68);
  font-size: 12px;
}

.hero-visual { width: 100%; }

.hero-card {
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
  padding: 18px;
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.pill {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.pill-blue {
  background: rgba(0,102,255,0.16);
  border-color: rgba(0,102,255,0.35);
}

.timeline { display: grid; gap: 10px; margin: 14px 0; }
.timeline-row { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,0.78); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.30); }
.dot-dim { background: rgba(255,255,255,0.22); }
.dot-blue { background: var(--accent-2); box-shadow: 0 0 0 6px rgba(0,102,255,0.12); }

.hero-card-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 14px 0;
}

.hero-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(0,102,255,0.10);
  border: 1px solid rgba(0,102,255,0.25);
  color: rgba(255,255,255,0.82);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.spark { color: var(--accent-2); }

/* Panels / grids */
.problem-grid,
.mechanism-grid,
.for-grid,
.about-grid,
.case-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.panel h3 {
  margin: 0 0 10px;
  font-family: Poppins, Inter, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.panel p { margin: 0 0 12px; color: rgba(255,255,255,0.82); }
.panel p.muted { color: var(--muted); }

.bullets {
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.78);
}

.bullets li { margin: 8px 0; }

.callout {
  margin: 12px 0;
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
}

.callout-strong {
  font-weight: 900;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

/* Flow diagram */
.flow {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  align-items: stretch;
  margin-top: 18px;
}

.flow-step {
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 18px;
}

.flow-step h3 {
  margin: 10px 0 8px;
  font-family: Poppins, Inter, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.flow-step p { margin: 0; color: var(--muted); }

.flow-arrow {
  display: none;
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 22px;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(0,102,255,0.10);
  border: 1px solid rgba(0,102,255,0.25);
  color: rgba(255,255,255,0.90);
}

.icon svg { width: 22px; height: 22px; }

/* Mini KPI */
.mini-kpi {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0 10px;
}

.mini-kpi-item {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
}

.mini-kpi-num {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.mini-kpi-label { color: var(--muted-2); font-size: 12px; margin-top: 4px; }

/* Gallery */
.gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.shot {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 14px 50px rgba(0,0,0,0.35);
}

.shot img {
  width: 100%;
  height: auto;
}

.shot figcaption {
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.shot figcaption strong { letter-spacing: -0.01em; }
.shot figcaption .muted { font-size: 13px; }

/* Case Study */
.kpis {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0 12px;
}

.kpi {
  padding: 14px;
  border-radius: 18px;
  background: rgba(0,102,255,0.08);
  border: 1px solid rgba(0,102,255,0.20);
}

.kpi-num {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.kpi-label { margin-top: 6px; color: rgba(255,255,255,0.72); font-size: 12px; }

.quote {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.86);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.quote-by {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,0.60);
  font-weight: 500;
  font-size: 13px;
}

.case-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Stack */
.stack-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.stack-card {
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 18px;
}

.stack-icon {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.88);
  margin-bottom: 10px;
}

.stack-card h3 {
  margin: 0 0 6px;
  font-family: Poppins, Inter, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.stack-card p { margin: 0; color: var(--muted); }

/* ROI */
.roi {
  border-radius: var(--radius-lg);
  background: rgba(0,102,255,0.06);
  border: 1px solid rgba(0,102,255,0.20);
  padding: 18px;
  margin: 22px 0 18px;
}

.roi-head h3 {
  margin: 0 0 6px;
  font-family: Poppins, Inter, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.roi-head p { margin: 0; }

.roi-form {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.roi-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
}

.roi-form input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.92);
  outline: none;
}

.roi-form input:focus {
  border-color: rgba(0,102,255,0.55);
  box-shadow: 0 0 0 6px rgba(0,102,255,0.12);
}

.roi-results {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.roi-box {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
}

.roi-label { font-size: 12px; color: rgba(255,255,255,0.72); }
.roi-value { margin-top: 6px; font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.roi-sub { margin-top: 6px; font-size: 12px; }

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.price-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 18px;
}

.price-card-popular {
  background: radial-gradient(900px 600px at 20% -10%, rgba(0,102,255,0.22), transparent 60%),
              rgba(255,255,255,0.05);
  border-color: rgba(0,102,255,0.30);
  box-shadow: 0 22px 80px rgba(0,102,255,0.14);
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.01em;
  background: rgba(0,102,255,0.20);
  border: 1px solid rgba(0,102,255,0.40);
  color: rgba(255,255,255,0.92);
}

.price-top .tier {
  font-size: 12px;
  color: rgba(255,255,255,0.70);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.price-top h3 {
  margin: 8px 0 6px;
  font-family: Poppins, Inter, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.price-top .price {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.price-bullets {
  margin: 12px 0 16px;
  padding-left: 18px;
  color: rgba(255,255,255,0.78);
}

.price-bullets li { margin: 8px 0; }

.pricing-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
}

/* About tags */
.about-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tag {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.74);
  font-size: 12px;
  font-weight: 650;
}

/* CTA */
.cta {
  padding: 86px 0;
}

.cta-box {
  border-radius: 28px;
  padding: 24px;
  background: radial-gradient(1000px 700px at 20% 10%, rgba(0,102,255,0.26), transparent 60%),
              rgba(255,255,255,0.04);
  border: 1px solid rgba(0,102,255,0.25);
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
}

.cta-box h2 {
  margin: 0 0 10px;
  font-family: Poppins, Inter, system-ui, sans-serif;
  letter-spacing: -0.03em;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.1;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.cta-contact {
  margin-top: 14px;
  color: rgba(255,255,255,0.70);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.dot-sep { color: rgba(255,255,255,0.25); }

/* Footer */
.footer {
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.01);
}

.footer-inner {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.62);
  font-size: 13px;
}

.footer-links a:hover { color: rgba(255,255,255,0.88); }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 22px; }
  .problem-grid, .mechanism-grid, .for-grid, .about-grid, .case-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .stack-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .flow {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
  }

  .flow-arrow { display: block; }

  .roi-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .roi-results { grid-template-columns: 1fr 1fr; }

  .pricing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 859px) {
  .nav-toggle { display: inline-block; }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(7,10,18,0.92);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  }

  .nav-links.is-open { display: flex; }
  .nav-links a { width: 100%; }
}
