/* =========================================
   FlowForge — AI Automation Agency
   Dark theme, amber accent
   ========================================= */

:root {
  --bg:        #0E0E10;
  --surface:   #161619;
  --surface2:  #1E1E22;
  --border:    #2A2A30;
  --fg:        #F0EDE8;
  --fg-muted:  #8A8790;
  --accent:    #F5A623;
  --accent-dim:#F5A62322;
  --green:     #4ADE80;
  --red:       #F87171;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Figtree', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Navigation ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.nav__tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- Typography helpers ---- */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fg);
}

.section-heading--center {
  text-align: center;
}

/* ---- Hero ---- */
.hero {
  min-height: 85vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 5rem 4rem;
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

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

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--fg);
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.7;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 0.5rem;
}

.hero__stat {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.hero__stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.2rem;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Workflow diagram */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.workflow-diagram {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.wd-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  min-width: 90px;
}

.wd-node--trigger { background: var(--accent-dim); border-color: var(--accent); }
.wd-node--ai { background: #3b82f620; border-color: #3b82f6; }
.wd-node--action { background: #4ade8020; border-color: var(--green); }

.wd-node__icon { font-size: 1.5rem; }

.wd-node__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wd-arrow {
  display: flex;
  align-items: center;
  color: var(--fg-muted);
}

.wd-arrow__line {
  width: 24px;
  height: 1px;
  background: var(--border);
}

.wd-arrow__head {
  font-size: 0.7rem;
  color: var(--fg-muted);
}

/* ---- Problem ---- */
.problem {
  padding: 6rem 4rem;
  border-bottom: 1px solid var(--border);
}

.problem__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.problem__col--left {
  position: sticky;
  top: 6rem;
}

.problem__col--left .section-heading {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.problem__item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.problem__item--solved {
  background: var(--surface);
  border: 1px solid var(--green);
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.problem__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--red);
  background: #f8717120;
}

.problem__item--solved .problem__icon {
  color: var(--green);
  background: #4ade8020;
}

.problem__title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.problem__desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---- Features ---- */
.features {
  padding: 6rem 4rem;
  border-bottom: 1px solid var(--border);
}

.features__header {
  margin-bottom: 3.5rem;
}

.features__sub {
  color: var(--fg-muted);
  margin-top: 0.75rem;
  font-size: 1rem;
}

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

.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feat-card__icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.feat-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
}

.feat-card__desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---- Process ---- */
.process {
  padding: 6rem 4rem;
  border-bottom: 1px solid var(--border);
}

.process__header {
  margin-bottom: 3.5rem;
}

.process__sub {
  color: var(--fg-muted);
  margin-top: 0.5rem;
}

.process__steps {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.step {
  flex: 1;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.step__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.step__desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.step__connector {
  width: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 12'%3E%3Cpath d='M0 6 L40 6 M32 1 L40 6 L32 11' stroke='%232A2A30' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") center center / 48px 12px no-repeat;
  flex-shrink: 0;
  align-self: center;
}

/* ---- Manifesto ---- */
.manifesto {
  padding: 7rem 4rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.manifesto__inner {
  max-width: 800px;
}

.manifesto__line {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 2.5rem;
}

.manifesto__quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--fg);
  font-style: normal;
  margin-bottom: 1.5rem;
}

.manifesto__attribution {
  font-size: 0.85rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

/* ---- Footer ---- */
.footer {
  padding: 4rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer__tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer__link-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.footer__link {
  font-size: 0.9rem;
  color: var(--fg-muted);
  padding: 0.2rem 0;
  cursor: default;
}

.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer__legal {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ---- Lead App Pages ---- */
.app-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 4rem 2rem; }
.app-card { width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 3rem; }
.app-card__title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.app-card__sub { color: var(--fg-muted); font-size: 0.9rem; margin-bottom: 2.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-label { font-size: 0.85rem; font-weight: 500; color: var(--fg-muted); }
.form-input, .form-textarea { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 1rem; color: var(--fg); font-family: var(--font-body); font-size: 0.95rem; transition: border-color 0.2s; width: 100%; }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 100px; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.75rem; background: var(--accent); color: #0E0E10; font-family: var(--font-body); font-weight: 600; font-size: 1rem; border: none; border-radius: 8px; cursor: pointer; transition: opacity 0.2s, transform 0.2s; text-decoration: none; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-ghost { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1.2rem; background: transparent; color: var(--fg-muted); font-family: var(--font-body); font-weight: 500; font-size: 0.9rem; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; text-decoration: none; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.question-block { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem 2rem; margin: 1rem 0; }
.question-block__label { font-size: 0.75rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.question-block__text { font-size: 1rem; font-weight: 500; color: var(--fg); line-height: 1.5; margin-bottom: 1.25rem; }
.progress-dots { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.progress-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.progress-dot--active { background: var(--accent); }
.progress-dot--done { background: var(--green); }
.result-hero { text-align: center; padding: 3rem 2rem; }
.result-emoji { font-size: 3rem; margin-bottom: 1rem; }
.result-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.result-sub { color: var(--fg-muted); font-size: 0.95rem; margin-bottom: 2rem; }
.status-badge { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.status-badge--hot { background: #4ade8020; color: var(--green); border: 1px solid var(--green); }
.status-badge--qualified { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent); }
.status-badge--cold { background: #f8717120; color: var(--red); border: 1px solid var(--red); }
.calendar-cta { background: linear-gradient(135deg, #1a2a1a, #162016); border: 1px solid var(--green); border-radius: 12px; padding: 2rem; text-align: center; margin: 1.5rem 0; }
.calendar-cta__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--green); margin-bottom: 0.5rem; }
.calendar-cta__sub { color: var(--fg-muted); font-size: 0.85rem; margin-bottom: 1.25rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: 0.75rem; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 0.85rem 1rem; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.admin-table tr:hover td { background: var(--surface2); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding: 3rem 4rem; }
  .hero__visual { display: none; }
  .problem__inner { grid-template-columns: 1fr; gap: 2rem; }
  .problem__col--left { position: static; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .process__steps { flex-direction: column; }
  .step__connector { width: 100%; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 24'%3E%3Cpath d='M6 0 L6 16 M1 10 L6 16 L11 10' stroke='%232A2A30' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") center center / 12px 24px no-repeat; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav, .hero, .problem, .features, .process, .manifesto, .footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .hero { padding-top: 2rem; }
  .features__grid { grid-template-columns: 1fr; }
  .hero__stats { flex-direction: column; gap: 1rem; }
  .hero__stat-divider { width: 40px; height: 1px; }
  .footer__links { grid-template-columns: 1fr; }
}