/* ==========================================
   AUTOMATEFLOW — THEME CSS
   Dark industrial. Electric. Original.
   ========================================== */

:root {
  --bg: #060810;
  --bg-2: #0c1020;
  --bg-card: #0a0e1f;
  --fg: #e8eaf0;
  --fg-2: #8892a4;
  --accent: #00e5ff;
  --accent-dim: rgba(0, 229, 255, 0.12);
  --accent-glow: rgba(0, 229, 255, 0.25);
  --amber: #f5a623;
  --amber-dim: rgba(245, 166, 35, 0.15);
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(0, 229, 255, 0.3);
  --radius: 8px;
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  background: rgba(6, 8, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1280px; margin: 0 auto; }
.nav-logo { display: flex; align-items: center; gap: 8px; }
.logo-mark { font-family: var(--font-mono); font-size: 18px; color: var(--accent); font-weight: 600; }
.logo-name { font-family: var(--font-head); font-size: 20px; letter-spacing: 0.12em; color: var(--fg); }
.nav-tagline { font-size: 12px; color: var(--fg-2); font-family: var(--font-mono); letter-spacing: 0.06em; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  position: relative;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
}
.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(72px, 10vw, 120px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin-bottom: 32px;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-size: 17px;
  color: var(--fg-2);
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 480px;
}
.hero-pricing {
  display: flex;
  align-items: center;
  gap: 32px;
}
.price-block { display: flex; flex-direction: column; }
.price-label { font-size: 11px; color: var(--fg-2); font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.price-val { font-family: var(--font-head); font-size: 40px; color: var(--fg); }
.price-divider { width: 1px; height: 48px; background: var(--border); }

/* TERMINAL */
.terminal-wrap {
  background: var(--bg-2);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.08), 0 20px 60px rgba(0,0,0,0.5);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 229, 255, 0.04);
  border-bottom: 1px solid var(--border);
}
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-red { background: #ff5f57; }
.t-yellow { background: #febc2e; }
.t-green { background: #28c840; }
.t-title { font-family: var(--font-mono); font-size: 11px; color: var(--fg-2); margin-left: 8px; }
.terminal-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.t-line { font-family: var(--font-mono); font-size: 13px; line-height: 1.6; }
.t-ok { color: #28c840; }
.t-time { color: var(--fg-2); font-size: 12px; }
.t-prompt { color: var(--accent); }
.t-cmd { color: var(--fg); }
.t-tag { color: var(--amber); }
.t-sep { border-top: 1px solid var(--border); margin: 8px 0; }
.t-cursor { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.terminal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.stat-item { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat-val { display: block; font-family: var(--font-head); font-size: 32px; color: var(--accent); }
.stat-lab { font-size: 11px; color: var(--fg-2); font-family: var(--font-mono); }

/* ---- MANIFESTO ---- */
.manifesto {
  padding: 120px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.manifesto-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 80px; align-items: start; }
.manifesto-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 6px 14px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 8px;
}
.manifesto-text {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--fg);
  grid-column: 2;
}
.manifesto-rule {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}
.manifesto-right { grid-column: 2; }
.manifesto-body { font-size: 16px; color: var(--fg-2); line-height: 1.8; margin-bottom: 20px; }
.manifesto-body:last-child { margin-bottom: 0; }

/* ---- SECTION SHARED ---- */
.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 6px 14px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--fg);
}

/* ---- SERVICES ---- */
.services { padding: 120px 40px; }
.services-header { max-width: 1280px; margin: 0 auto 72px; }
.services-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.06);
}
.service-icon {
  width: 48px; height: 48px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.service-title {
  font-family: var(--font-head);
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--fg);
  margin-bottom: 12px;
}
.service-desc { font-size: 14px; color: var(--fg-2); line-height: 1.7; margin-bottom: 20px; }
.service-metric { font-size: 12px; color: var(--accent); font-family: var(--font-mono); }
.service-metric strong { font-weight: 600; }

/* ---- PIPELINE ---- */
.pipeline { padding: 120px 40px; background: var(--bg-2); border-top: 1px solid var(--border); }
.pipeline-header { max-width: 1280px; margin: 0 auto 72px; }
.pipeline-steps { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.pipe-step {
  padding: 40px 40px 40px 0;
  border-right: 1px solid var(--border);
  position: relative;
}
.pipe-step:last-child { border-right: none; }
.pipe-step:not(:first-child) { padding-left: 40px; }
.pipe-num {
  font-family: var(--font-head);
  font-size: 80px;
  line-height: 1;
  color: var(--accent-dim);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.pipe-title {
  font-family: var(--font-head);
  font-size: 28px;
  letter-spacing: 0.06em;
  color: var(--fg);
  margin-bottom: 16px;
}
.pipe-desc { font-size: 14px; color: var(--fg-2); line-height: 1.7; }
.pipe-arrow {
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}

/* ---- OUTCOMES ---- */
.outcomes { padding: 120px 40px; }
.outcomes-header { max-width: 1280px; margin: 0 auto 72px; }
.outcomes-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.outcome-item { background: var(--bg-card); padding: 40px 36px; }
.outcome-val {
  font-family: var(--font-head);
  font-size: 56px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.outcome-desc { font-size: 14px; color: var(--fg-2); line-height: 1.6; }

/* ---- CLOSING ---- */
.closing { padding: 140px 40px; text-align: center; }
.closing-inner { max-width: 800px; margin: 0 auto; }
.closing-title {
  font-family: var(--font-head);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin-bottom: 32px;
}
.closing-title .accent { color: var(--accent); }
.closing-sub { font-size: 18px; color: var(--fg-2); line-height: 1.7; max-width: 560px; margin: 0 auto; }

/* ---- FOOTER ---- */
.footer { padding: 48px 40px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-name { font-family: var(--font-head); font-size: 16px; letter-spacing: 0.12em; color: var(--fg-2); }
.footer-info p { font-size: 13px; color: var(--fg-2); margin-bottom: 4px; }
.footer-copy { font-size: 12px; color: rgba(136, 146, 164, 0.5); font-family: var(--font-mono); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline-steps { grid-template-columns: 1fr; }
  .pipe-step { border-right: none; border-bottom: 1px solid var(--border); padding: 32px 0; }
  .pipe-step:last-child { border-bottom: none; }
}
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .manifesto-inner { grid-template-columns: 1fr; gap: 24px; }
  .manifesto-text { grid-column: 1; }
  .manifesto-right { grid-column: 1; }
  .services-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .hero { padding: 100px 24px 60px; }
  .manifesto, .services, .pipeline, .outcomes, .closing, .footer { padding: 80px 24px; }
  .footer-inner { flex-direction: column; }
  .nav { padding: 0 24px; }
  .hero-pricing { flex-wrap: wrap; gap: 20px; }
  .terminal-stats { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 64px; }
  .closing-title { font-size: 36px; }
  .outcome-val { font-size: 42px; }
}