/* ===========================
   FLOWSTACK — THEME CSS
   =========================== */

:root {
  --bg: #050a18;
  --bg-card: #0a1628;
  --fg: #e8f0fe;
  --fg-muted: #7a8ba8;
  --accent: #00d4ff;
  --accent-dim: rgba(0, 212, 255, 0.12);
  --accent-border: rgba(0, 212, 255, 0.25);
  --surface: #0d1f35;
  --border: rgba(255,255,255,0.06);
}

/* BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===========================
   NAV
   =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  background: rgba(5,10,24,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}
.nav-tagline {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
}
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

/* Node graph */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.node-graph {
  position: relative;
  width: 400px;
  height: 320px;
}
.node-lines {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
}
.node-hub {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.node-1 { top: 15%; left: 12%; }
.node-2 { top: 15%; left: 60%; }
.node-3 { top: 65%; left: 12%; }
.node-4 { top: 65%; left: 60%; }
.node-5 { top: 50%; left: 84%; transform: translateY(-50%); }

.node-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0,212,255,0.4);
}
.node-1 .node-dot { background: var(--accent); box-shadow: 0 0 12px rgba(0,212,255,0.4); }
.node-2 .node-dot { background: rgba(0,212,255,0.6); }
.node-3 .node-dot { background: rgba(0,212,255,0.4); }
.node-4 .node-dot { background: rgba(0,212,255,0.7); }
.node-5 .node-dot { background: var(--accent); box-shadow: 0 0 16px rgba(0,212,255,0.6); }

.node-label {
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--surface);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.pulse-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.15);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 0.2; transform: translate(-50%,-50%) scale(1.5); }
}

/* Hero copy */
.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-desc {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 0;
}
.proof-item {
  display: flex;
  flex-direction: column;
  padding: 0 28px;
}
.proof-item:first-child { padding-left: 0; }
.proof-stat {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.proof-label {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.4;
  max-width: 100px;
}
.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===========================
   SHARED SECTION
   =========================== */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 20px;
}
.section-body {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 60px;
}

/* ===========================
   WHAT WE DO / SERVICE PILLARS
   =========================== */
.whatwedo {
  border-top: 1px solid var(--border);
}
.service-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px;
  transition: border-color 0.25s, transform 0.25s;
}
.pillar:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
}
.pillar-icon {
  margin-bottom: 24px;
}
.pillar h3 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 14px;
}
.pillar p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}
.pillar-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pillar-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  background: var(--surface);
  letter-spacing: 0.02em;
}

/* ===========================
   HOW IT WORKS
   =========================== */
.howitworks {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 60px;
}
.step {
  flex: 1;
  padding: 40px 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  position: relative;
}
.step-connector {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-connector::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: var(--accent-border);
  position: relative;
  top: 0;
}
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 20px;
}
.step h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}
.step p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ===========================
   MANIFESTO
   =========================== */
.manifesto {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px;
}
.manifesto-quote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--fg);
  letter-spacing: -0.5px;
  margin-bottom: 28px;
  max-width: 900px;
  border-left: 3px solid var(--accent);
  padding-left: 32px;
}
.manifesto-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 48px;
  padding-left: 35px;
}
.manifesto-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-left: 35px;
}
.tools-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  font-weight: 600;
}
.tools-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tool-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--accent-border);
  color: var(--accent);
  background: var(--accent-dim);
  letter-spacing: 0.02em;
}

/* ===========================
   PRICING
   =========================== */
.pricing {
  border-top: 1px solid var(--border);
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
.pkg {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  position: relative;
}
.pkg-featured {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, rgba(0,212,255,0.06) 0%, var(--surface) 100%);
}
.pkg-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pkg-name {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.pkg-price {
  font-family: 'Syne', sans-serif;
  font-size: 44px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}
.pkg-price span {
  font-size: 18px;
  font-weight: 500;
  color: var(--fg-muted);
}
.pkg-desc {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}
.pkg-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pkg-features li {
  font-size: 14px;
  color: var(--fg);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.pkg-features li::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%2300d4ff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* ===========================
   CLOSING
   =========================== */
.closing {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px;
  text-align: center;
}
.closing h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.25;
  color: var(--fg);
  margin-bottom: 20px;
}
.closing p {
  font-size: 16px;
  color: var(--fg-muted);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
  flex-shrink: 0;
}
.footer-copy {
  font-size: 13px;
  color: var(--fg-muted);
}
.footer-note {
  font-size: 12px;
  color: var(--fg-muted);
  margin-left: auto;
  font-family: monospace;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { order: -1; }
  .node-graph { width: 280px; height: 240px; }
  .service-pillars { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .process-track { flex-direction: column; }
  .step-connector { width: 1px; height: 20px; }
  .step-connector::after { width: 1px; height: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-note { margin-left: 0; }
  .hero-proof { flex-wrap: wrap; }
  .proof-item { padding: 0 16px 0 0; }
  .closing-ctas { flex-direction: column; }
}

@media (max-width: 600px) {
  .nav { padding: 16px 20px; }
  .hero { padding: 100px 20px 60px; }
  .section-inner { padding: 60px 20px; }
  .manifesto-inner { padding: 60px 20px; }
  .closing-inner { padding: 60px 20px; }
  .footer-inner { padding: 40px 20px; }
  .hero-headline { font-size: 32px; }
  .pkg { padding: 28px 24px; }
}
