/* ===========================
   FlowOps — Custom Stylesheet
   =========================== */

/* --- Variables --- */
:root {
  --bg: #0D0D0D;
  --surface: #141414;
  --surface-alt: #1A1A1A;
  --amber: #F59E0B;
  --amber-dim: rgba(245, 158, 11, 0.15);
  --amber-border: rgba(245, 158, 11, 0.25);
  --text: #F2F2F2;
  --text-muted: #888;
  --text-subtle: #555;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; }

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 8rem 2.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(245,158,11,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content, .hero-visual { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.hero-headline {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.hero-lede {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.65;
}

/* --- Hero Visual: Flow Streams --- */
.flow-streams {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--amber-border);
  border-radius: 16px;
}

.stream {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.stream-line {
  height: 2px;
  width: 32px;
  background: linear-gradient(90deg, var(--amber), transparent);
  opacity: 0.5;
}

.stream-node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.7;
}

.stream-node-final {
  opacity: 1;
  box-shadow: 0 0 12px rgba(245,158,11,0.5);
}

.stream-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 500;
}

.flow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  background: var(--amber-dim);
  border: 1px solid var(--amber-border);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--amber);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2s infinite;
}

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

/* --- Problem --- */
.problem {
  padding: 6rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.problem-header { margin-bottom: 4rem; }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.problem-stat {
  background: var(--surface);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}

.stat-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.problem-tail {
  font-size: 1rem;
  color: var(--text-muted);
  border-left: 3px solid var(--amber);
  padding-left: 1.5rem;
  font-style: italic;
}

/* --- How It Works --- */
.howitworks {
  padding: 6rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.howitworks-header { margin-bottom: 4rem; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(7, auto);
  align-items: start;
  gap: 0;
}

.step {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  flex: 1;
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 2.5rem;
  flex-shrink: 0;
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.625rem;
  line-height: 1.3;
}

.step-body {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Who It's For --- */
.whoisfor {
  padding: 6rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.whoisfor-header { margin-bottom: 4rem; max-width: 600px; }

.whoisfor-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.client-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2rem 1.75rem;
}

.client-icon {
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.client-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.625rem;
}

.client-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Automation --- */
.automation {
  padding: 6rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.automation-header { margin-bottom: 3rem; }

.automation-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.auto-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.125rem 1.5rem;
  background: var(--surface);
}

.auto-check { flex-shrink: 0; }

.auto-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.auto-text strong { color: var(--text); }

.automation-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  padding: 1rem;
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 8px;
}

/* --- Closing --- */
.closing {
  padding: 8rem 2.5rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.closing-content { max-width: 680px; }

.closing-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.closing-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* --- Footer --- */
.footer {
  padding: 3rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-meta {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 6rem;
    gap: 3rem;
  }

  .hero-visual { order: -1; }

  .hero-headline { font-size: 2.75rem; }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .step-connector { display: none; }

  .problem-grid,
  .client-grid { grid-template-columns: 1fr; }

  .stat-number { font-size: 2.25rem; }

  .footer { padding: 2rem 1.5rem; }
}