/* ========================================
   FLOWWISE — Theme Stylesheet
   ======================================== */

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

:root {
  --bg:        #0d1117;
  --bg2:       #161b22;
  --bg3:       #1c2128;
  --fg:        #f0f6fc;
  --fg2:       #8b949e;
  --fg3:       #6e7681;
  --accent:    #4ade80;
  --accent2:   #22c55e;
  --accent-dim: rgba(74, 222, 128, 0.12);
  --amber:     #fbbf24;
  --amber-dim: rgba(251, 191, 36, 0.12);
  --border:    rgba(240, 246, 252, 0.08);
  --border2:   rgba(240, 246, 252, 0.04);
  --radius:    12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 {
  font-family: 'Syne', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 17px;
  color: var(--fg2);
  max-width: 520px;
  line-height: 1.7;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(74,222,128,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(74,222,128,0.2);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 32px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.0;
  margin-bottom: 28px;
  color: var(--fg);
}
.hero-headline em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero-headline em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.4;
}

.hero-sub {
  font-size: 18px;
  color: var(--fg2);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--fg2);
  font-weight: 500;
}

/* ---------- FLOW VIZ ---------- */
.flow-viz {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
}
.flow-header {
  margin-bottom: 24px;
}
.flow-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg3);
}
.flow-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg3);
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  position: relative;
  z-index: 1;
}
.fn-1 { border-left: 3px solid var(--accent); }
.fn-2 { border-left: 3px solid var(--amber); }
.fn-3 { border-left: 3px solid var(--accent); }
.fn-4 { border-left: 3px solid var(--accent); }

.node-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg2);
  flex-shrink: 0;
}
.fn-1 .node-icon { color: var(--accent); background: var(--accent-dim); }
.fn-2 .node-icon { color: var(--amber); background: var(--amber-dim); }

.node-body { flex: 1; }
.node-title { font-size: 14px; font-weight: 600; color: var(--fg); margin-bottom: 2px; }
.node-sub { font-size: 12px; color: var(--fg3); }

.node-status {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.s-green { background: var(--accent-dim); color: var(--accent); }
.s-amber { background: var(--amber-dim); color: var(--amber); }

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}
.spin-ring {
  width: 10px;
  height: 10px;
  border: 2px solid var(--amber);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.check-mark { font-size: 12px; font-weight: 700; }

.flow-connector {
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 32px;
  position: relative;
}
.connector-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--accent), rgba(74,222,128,0.3));
  height: 100%;
  position: relative;
}
.connector-arrow::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(74,222,128,0.5);
}

.flow-footer {
  display: flex;
  align-items: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border2);
  gap: 0;
}
.flow-stat { flex: 1; text-align: center; }
.flow-divider { width: 1px; height: 32px; background: var(--border2); }
.stat-val {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}
.stat-lab { font-size: 11px; color: var(--fg3); display: block; margin-top: 2px; }

/* ---------- LOGOS ---------- */
.logos {
  padding: 48px 48px;
  border-bottom: 1px solid var(--border);
}
.logos-inner { max-width: 1200px; margin: 0 auto; }
.logos-label {
  text-align: center;
  font-size: 13px;
  color: var(--fg3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
  font-weight: 500;
}
.logo-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.logo-item {
  color: var(--fg3);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.logo-item:hover { opacity: 1; }
.logo-svg { height: 20px; width: auto; }

/* ---------- FEATURES ---------- */
.features {
  padding: 100px 48px;
  background: var(--bg2);
}
.features-inner { max-width: 1200px; margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 60px;
  border: 1px solid var(--border);
}

.feature-card {
  background: var(--bg);
  padding: 40px 32px;
  position: relative;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg2); }
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.feature-card:hover::before { opacity: 1; }

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 14px;
  color: var(--fg2);
  line-height: 1.65;
  margin-bottom: 20px;
}
.feature-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.fm-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--fg3);
  font-weight: 500;
}

/* ---------- PRICING ---------- */
.pricing {
  padding: 100px 48px;
}
.pricing-inner { max-width: 1200px; margin: 0 auto; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.pricing-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.pricing-card:hover { border-color: rgba(74,222,128,0.3); transform: translateY(-2px); }
.pc-popular { border-color: var(--accent); }
.pc-popular::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 20px 20px 0 0;
}

.pc-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pc-tier {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 16px;
}
.pc-popular .pc-tier { color: var(--accent); }

.pc-price { margin-bottom: 12px; }
.pc-amount {
  font-family: 'Syne', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--fg);
}
.pc-period { font-size: 16px; color: var(--fg2); margin-left: 4px; }
.pc-desc { font-size: 14px; color: var(--fg2); line-height: 1.6; margin-bottom: 24px; }

.pc-features { list-style: none; margin-bottom: 24px; }
.pc-feat {
  font-size: 14px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border2);
  color: var(--fg2);
}
.pc-feat::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}
.pc-feat-on::before { background: var(--accent-dim); border: 1px solid rgba(74,222,128,0.3); }
.pc-feat-on::before { content: '✓'; color: var(--accent); font-size: 10px; display: flex; align-items: center; justify-content: center; }
.pc-feat-off::before { background: var(--bg); border: 1px solid var(--border); }
.pc-feat-off { opacity: 0.5; }

.pc-ideal {
  font-size: 12px;
  color: var(--fg3);
  font-style: italic;
  padding-top: 16px;
  border-top: 1px solid var(--border2);
}

.pricing-cta { text-align: center; margin-top: 48px; }
.pricing-cta-text { font-size: 15px; color: var(--fg3); }

/* ---------- PROCESS ---------- */
.process {
  padding: 100px 48px;
  background: var(--bg2);
}
.process-inner { max-width: 900px; margin: 0 auto; }

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 60px;
}
.ps-item {
  display: flex;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.ps-item:last-child { border-bottom: none; }
.ps-item::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 80px;
  bottom: -1px;
  width: 1px;
  background: var(--border);
}
.ps-item:last-child::before { display: none; }

.ps-num {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  width: 80px;
  transition: color 0.2s;
}
.ps-item:hover .ps-num { color: var(--accent); }

.ps-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}
.ps-body p { font-size: 15px; color: var(--fg2); line-height: 1.7; max-width: 600px; }

.process-stat-row {
  display: flex;
  align-items: center;
  margin-top: 60px;
  padding: 40px;
  background: var(--accent-dim);
  border: 1px solid rgba(74,222,128,0.15);
  border-radius: 20px;
  gap: 0;
}
.psr-item { flex: 1; text-align: center; }
.psr-val {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.psr-lab { font-size: 13px; color: var(--fg2); }
.psr-div { width: 1px; height: 48px; background: rgba(74,222,128,0.2); }

/* ---------- MANIFESTO ---------- */
.manifesto {
  padding: 100px 48px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.manifesto-inner { max-width: 760px; margin: 0 auto; }
.manifesto-quote {}
.mq-text {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--fg);
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 400;
  font-style: italic;
}
.mq-final { color: var(--accent); }

/* ---------- CLOSING ---------- */
.closing {
  padding: 100px 48px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  text-align: center;
}
.closing-inner { max-width: 640px; margin: 0 auto; }
.closing-headline {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 16px;
  color: var(--fg2);
  line-height: 1.7;
  margin-bottom: 20px;
}
.closing-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-top: 36px;
}
.cta-btn-primary {
  padding: 14px 28px; border-radius: var(--radius);
  background: var(--accent); color: #0d1117;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
.cta-btn-primary:hover { background: var(--accent2); transform: scale(0.99); }
.cta-btn-secondary {
  padding: 14px 28px; border-radius: var(--radius);
  background: transparent; color: var(--fg);
  border: 1px solid var(--border);
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.1s;
}
.cta-btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: scale(0.99); }

/* ---------- FOOTER ---------- */
footer {
  padding: 60px 48px 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 80px;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 12px;
}
.footer-tagline { font-size: 14px; color: var(--fg3); }
.footer-links { display: flex; gap: 60px; }
.fl-col { display: flex; flex-direction: column; gap: 10px; }
.fl-head { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg3); margin-bottom: 4px; }
.fl-link { font-size: 14px; color: var(--fg2); text-decoration: none; transition: color 0.2s; }
.fl-link:hover { color: var(--fg); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border2);
  font-size: 12px;
  color: var(--fg3);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero { padding: 100px 24px 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .ps-item { flex-direction: column; gap: 12px; }
  .ps-num { font-size: 36px; }
  .process-stat-row { flex-direction: column; gap: 20px; }
  .psr-div { width: 48px; height: 1px; }
}

@media (max-width: 600px) {
  .section-title { font-size: 30px; }
  .hero-headline { font-size: 44px; }
  .logo-grid { gap: 28px; }
  .features, .pricing, .process, .manifesto, .closing { padding: 60px 24px; }
}