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

:root {
  --bg: #0D0D10;
  --bg-raised: #131318;
  --bg-card: #18181F;
  --fg: #F4F1EA;
  --fg-muted: #9A9488;
  --accent: #F59E0B;
  --accent-glow: rgba(245, 158, 11, 0.18);
  --accent-border: rgba(245, 158, 11, 0.35);
  --border: rgba(244, 241, 234, 0.08);
  --border-strong: rgba(244, 241, 234, 0.14);
  --radius: 6px;
  --radius-lg: 12px;
}

html {
  scroll-behavior: smooth;
}

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

/* ===== NAV ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 6px;
  display: block;
  position: relative;
}

.nav-logo-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: var(--bg);
  border-radius: 3px;
}

.nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 100px 48px 80px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 90vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: -100px;
  left: 20%;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--accent-border);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 480px;
  font-weight: 300;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ===== WORKFLOW DIAGRAM ===== */
.workflow-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}

.workflow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
  text-align: center;
}

.workflow-node-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.workflow-node--trigger .workflow-node-icon {
  background: var(--accent-glow);
  border-color: var(--accent-border);
}

.workflow-node--trigger .workflow-node-icon::after {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 3px;
}

.workflow-node--ai .workflow-node-icon::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1.5s linear infinite;
}

.workflow-node--action .workflow-node-icon {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

.workflow-node--action .workflow-node-icon::after {
  content: '';
  width: 14px;
  height: 10px;
  border-left: 2px solid #10B981;
  border-bottom: 2px solid #10B981;
  transform: rotate(-45deg) translateY(-2px);
}

@keyframes spin { to { transform: rotate(360deg); } }

.workflow-node-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.workflow-arrow {
  flex-shrink: 0;
  color: var(--fg-muted);
  opacity: 0.4;
}

/* ===== HERO METRICS ===== */
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-metric {
  flex: 1;
  padding: 20px 24px;
  text-align: center;
}

.hero-metric-value {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}

.hero-metric-label {
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 400;
  line-height: 1.4;
}

.hero-metric-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ===== STATS ===== */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.stats-inner {
  display: flex;
  align-items: center;
  padding: 48px;
  gap: 0;
}

.stats-item {
  flex: 1;
  padding: 0 40px;
}

.stats-item:first-child { padding-left: 0; }
.stats-item:last-child { padding-right: 0; }

.stats-number {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 40px;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}

.stats-desc {
  font-size: 15px;
  color: var(--fg);
  font-weight: 400;
  margin-bottom: 6px;
  line-height: 1.4;
}

.stats-source {
  font-size: 12px;
  color: var(--fg-muted);
  font-style: italic;
}

.stats-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
  flex-shrink: 0;
}

/* ===== SECTION LABELS ===== */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 48px;
}

.features-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 72px;
}

.features-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 20px;
}

.features-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.65;
  font-weight: 300;
}

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

.feature-card {
  background: var(--bg-card);
  padding: 36px 32px;
  transition: background 0.2s;
}

.feature-card:hover {
  background: var(--bg-raised);
}

.feature-card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-card-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ===== PROCESS ===== */
.process {
  padding: 80px 48px;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-header {
  max-width: 500px;
  margin-bottom: 64px;
}

.process-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.5vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--fg);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.process-step {
  flex: 1;
  padding-right: 40px;
}

.process-step-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 56px;
  color: var(--accent);
  opacity: 0.25;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
}

.process-step-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.process-step-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
  font-weight: 300;
}

.process-step-connector {
  width: 80px;
  height: 1px;
  background: var(--accent-border);
  margin-top: 28px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 36px;
}

/* ===== OUTCOMES ===== */
.outcomes {
  padding: 100px 48px;
}

.outcomes-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.outcomes-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.5vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 20px;
}

.outcomes-desc {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.65;
  font-weight: 300;
}

.outcomes-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.outcome-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  color: var(--fg);
  font-weight: 400;
}

.outcome-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

/* ===== CLOSING ===== */
.closing {
  padding: 120px 48px;
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.closing-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid var(--accent-border);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 40px;
}

.closing-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 28px;
}

.closing-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.65;
  font-weight: 300;
  max-width: 620px;
  margin: 0 auto 48px;
}

.closing-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  color: var(--fg-muted);
  font-weight: 400;
}

.closing-cta-accent {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-mark {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 5px;
  display: block;
  position: relative;
}

.footer-logo-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--bg);
  border-radius: 2px;
}

.footer-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--fg);
}

.footer-tagline {
  font-size: 14px;
  color: var(--fg-muted);
  flex: 1;
}

.footer-legal {
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 80px 24px 60px;
    gap: 48px;
    min-height: auto;
  }

  .hero-visual {
    order: -1;
  }

  .nav {
    padding: 20px 24px;
  }

  .nav-tagline {
    display: none;
  }

  .stats-inner {
    flex-direction: column;
    gap: 32px;
    padding: 40px 24px;
  }

  .stats-item {
    padding: 0;
    text-align: center;
  }

  .stats-divider {
    width: 48px;
    height: 1px;
  }

  .features {
    padding: 60px 24px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps {
    flex-direction: column;
    gap: 40px;
  }

  .process-step-connector {
    width: 1px;
    height: 40px;
    margin-top: 0;
    align-self: center;
  }

  .outcomes-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .closing {
    padding: 80px 24px;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 16px;
    padding: 32px 24px;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    flex-direction: column;
  }

  .hero-metric-divider {
    width: 48px;
    height: 1px;
  }

  .workflow-diagram {
    flex-direction: column;
    gap: 24px;
  }

  .workflow-arrow {
    transform: rotate(90deg);
  }
}