/* ============================================
   MVO AUTOMATION PAGE — LIGHT THEME (scoped)
   Loaded AFTER styles.css. Reuses brand tokens.
   ============================================ */

.automation-page {
  background: var(--bg-primary);
  color: var(--text-body);
}

/* Reveal fallback (script.js drives the toggle) */
.automation-page .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.automation-page .reveal.visible { opacity: 1; transform: translateY(0); }
.automation-page .reveal-delay-1 { transition-delay: .12s; }
.automation-page .reveal-delay-2 { transition-delay: .24s; }
.automation-page .reveal-delay-3 { transition-delay: .36s; }

/* ============================================
   SHARED BUTTONS / TYPOGRAPHY
   ============================================ */
.auto-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all .25s ease;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.auto-btn-primary {
  background: var(--accent-orange);
  color: #fff;
  box-shadow: 0 8px 24px rgba(249,115,22,0.20);
}
.auto-btn-primary:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(249,115,22,0.30);
}
.auto-btn-secondary {
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.auto-btn-secondary:hover {
  border-color: rgba(249,115,22,0.4);
  background: #FFF7ED;
  color: var(--accent-orange);
}
.auto-btn-lg { padding: 18px 36px; font-size: 16px; }
.auto-btn-block { width: 100%; }

.auto-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-orange);
  display: inline-block;
  margin-bottom: 14px;
}

.auto-section {
  padding: 120px 0;
  position: relative;
}
.auto-section-alt {
  background: var(--bg-secondary);
}

.auto-section-header {
  max-width: 720px;
  margin-bottom: 64px;
}
.auto-section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.auto-section-header.left { margin-bottom: 48px; }

.auto-section-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
}
.auto-section-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: 16px;
}

/* ============================================
   SECTION 1 — HERO
   ============================================ */
.auto-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.auto-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 720px 540px at 78% 30%, rgba(249,115,22,0.08), transparent 60%),
    radial-gradient(ellipse 480px 360px at 12% 80%, rgba(59,130,246,0.04), transparent 60%);
  pointer-events: none;
}
.auto-hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 56px;
  align-items: center;
}
.auto-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #FFF7ED;
  border: 1px solid rgba(249,115,22,0.15);
  color: var(--accent-orange);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 22px;
}
.auto-hero-headline {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.auto-hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
  margin-top: 22px;
}
.auto-hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.auto-hero-trust {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 12px 28px;
  margin-top: 36px;
}
.auto-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== HERO CANVAS (workflow visual) ===== */
.auto-hero-visual {
  position: relative;
}
.auto-canvas {
  position: relative;
  background: #1A1A24;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
}
.auto-canvas-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #14141C;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.auto-canvas-dots {
  display: flex;
  gap: 6px;
}
.auto-canvas-dots i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2A2D38;
  display: block;
}
.auto-canvas-dots i:nth-child(1) { background: #FF5F57; }
.auto-canvas-dots i:nth-child(2) { background: #FEBC2E; }
.auto-canvas-dots i:nth-child(3) { background: #28C840; }
.auto-canvas-title {
  flex: 1;
  text-align: center;
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.3px;
}
.auto-canvas-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #4ADE80;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.auto-pulse {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22C55E;
  animation: auto-pulse-dot 2s ease-in-out infinite;
}
@keyframes auto-pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(34,197,94,0.8); }
  50%      { opacity: 0.4; box-shadow: 0 0 2px rgba(34,197,94,0.3); }
}

/* === Canvas stage: dot-grid background === */
.auto-canvas-grid {
  position: relative;
  height: 560px;
  background:
    radial-gradient(circle at 20% 30%, rgba(249,115,22,0.07), transparent 45%),
    radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1.5px) 0 0 / 24px 24px;
}
.auto-canvas-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

/* === Connection paths === */
.auto-line-base path,
.auto-wf-base path {
  stroke: rgba(249,115,22,0.18);
  stroke-width: 2;
  fill: none;
}
.auto-flow-line path {
  fill: none;
  stroke: rgba(249,115,22,0.6);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 8 4;
  animation: flowDash 1.5s linear infinite;
}
.auto-flow-line--yes  path { stroke: rgba(34,197,94,0.85); }
.auto-flow-line--no   path { stroke: rgba(239,68,68,0.85); }
.auto-flow-line--main path { stroke: rgba(249,115,22,0.75); }
.auto-flow-trail {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 8 4;
  animation: flowDash 1.5s linear infinite;
}
@keyframes flowDash {
  to { stroke-dashoffset: -24; }
}

/* Particles flowing along main path */
.auto-particle {
  fill: #F97316;
  opacity: 0.95;
}

/* === Nodes === */
.auto-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #20212B;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  min-width: 150px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: default;
  z-index: 2;
}
.auto-node:hover {
  transform: translateY(-2px) scale(1.05);
  z-index: 5;
}

/* Brand glows (always-on subtle, intensified on hover) */
.auto-node--gmail    { box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 20px rgba(234,67,53,0.15); }
.auto-node--openai   { box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 20px rgba(16,163,127,0.15); }
.auto-node--hubspot  { box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 20px rgba(255,122,69,0.15); }
.auto-node--slack    { box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 20px rgba(97,31,105,0.18); }
.auto-node--calendar { box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 20px rgba(66,133,244,0.15); }
.auto-node--claude   { box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 20px rgba(204,169,131,0.18); }

.auto-node--gmail:hover    { box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 30px rgba(234,67,53,0.35); border-color: rgba(234,67,53,0.45); }
.auto-node--openai:hover   { box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 30px rgba(16,163,127,0.35); border-color: rgba(16,163,127,0.45); }
.auto-node--hubspot:hover  { box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 30px rgba(255,122,69,0.40); border-color: rgba(255,122,69,0.50); }
.auto-node--slack:hover    { box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 30px rgba(151,71,255,0.35); border-color: rgba(151,71,255,0.45); }
.auto-node--calendar:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 30px rgba(66,133,244,0.35); border-color: rgba(66,133,244,0.45); }
.auto-node--claude:hover   { box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 30px rgba(204,169,131,0.40); border-color: rgba(204,169,131,0.50); }

.auto-node--ai  { border-color: rgba(249,115,22,0.35); }
.auto-node--ok  { border-color: rgba(34,197,94,0.35); }

/* === Tooltip on hover === */
.auto-node[data-tooltip]::after,
.auto-wf-node[data-tooltip]::after,
.auto-wf-decision[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0A0C12;
  color: rgba(255,255,255,0.92);
  padding: 7px 11px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-body);
  letter-spacing: 0.1px;
}
.auto-node[data-tooltip]::before,
.auto-wf-node[data-tooltip]::before,
.auto-wf-decision[data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #0A0C12;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 20;
}
.auto-node:hover[data-tooltip]::after,
.auto-wf-node:hover[data-tooltip]::after,
.auto-wf-decision:hover[data-tooltip]::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.auto-node:hover[data-tooltip]::before,
.auto-wf-node:hover[data-tooltip]::before,
.auto-wf-decision:hover[data-tooltip]::before { opacity: 1; }
.auto-node-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
}
.auto-node-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.auto-node-body { line-height: 1.2; }
.auto-node-app {
  font-size: 12px;
  color: rgba(255,255,255,0.95);
  font-weight: 600;
}
.auto-node-action {
  font-size: 10.5px;
  color: rgba(255,255,255,0.5);
  margin-top: 3px;
}
.auto-node-trigger {
  position: absolute;
  top: -7px;
  right: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 2px 6px;
  background: #F97316;
  color: #fff;
  border-radius: 4px;
}
.auto-node-trigger--ok { background: #22C55E; }

/* Floating pills around the hero canvas */
.auto-float-pill {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 18px 40px -10px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-body);
  z-index: 3;
  animation: auto-float 4.5s ease-in-out infinite;
}
.auto-float-pill--tr {
  top: -22px;
  right: -16px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.auto-float-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-orange);
  line-height: 1;
}
.auto-float-label {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}
.auto-float-pill--bl {
  bottom: -20px;
  left: -20px;
  animation-delay: .8s;
}
.auto-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22C55E;
  animation: auto-pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes auto-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ============================================
   SECTION 2 — LOGO MARQUEE
   ============================================ */
.auto-logos {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 56px 0;
  overflow: hidden;
}
.auto-logos-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 36px;
}
.auto-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.auto-marquee + .auto-marquee { margin-top: 6px; }

.auto-marquee-track {
  display: flex;
  width: max-content;
  gap: 56px;
  align-items: center;
}
.auto-marquee-track--left  { animation: auto-marquee-left  45s linear infinite; }
.auto-marquee-track--right { animation: auto-marquee-right 50s linear infinite; }
.auto-marquee-track--slow  { animation-duration: 60s; }

.auto-marquee:hover .auto-marquee-track { animation-play-state: paused; }

@keyframes auto-marquee-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes auto-marquee-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.auto-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  opacity: 0.55;
  filter: grayscale(0.85);
  transition: opacity .3s ease, filter .3s ease, transform .3s ease;
  font-size: 14px;
  font-weight: 600;
  color: #4B5563;
  white-space: nowrap;
  flex-shrink: 0;
}
.auto-marquee-item img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.auto-marquee-item:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: translateY(-1px);
}

/* ============================================
   SECTION 3 — SCENARIOS (Do you need this?)
   ============================================ */
.auto-scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.auto-scenario {
  background: #FAFAFA;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all .3s ease;
}
.auto-scenario:hover {
  background: #fff;
  border-color: rgba(249,115,22,0.25);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.10);
}
.auto-scenario-icons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.auto-scenario-logo {
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  padding: 8px;
}
.auto-scenario-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.auto-scenario-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.auto-scenario-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.auto-scenario-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.auto-scenario-pills span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-body);
  background: #fff;
  border: 1px solid var(--border-subtle);
  padding: 5px 10px;
  border-radius: 999px;
}
.auto-scenario-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-orange);
  text-decoration: none;
  transition: gap .2s ease;
}
.auto-scenario-link:hover { color: var(--accent-orange-hover); }

/* ============================================
   SECTION 4 — SERVICES GRID
   ============================================ */
.auto-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.auto-service {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  transition: all .3s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.auto-service:hover {
  border-color: rgba(249,115,22,0.3);
  box-shadow: 0 18px 36px -12px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.auto-service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(249,115,22,0.08);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.auto-service-title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}
.auto-service-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.auto-service-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #9CA3AF;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.auto-tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent-orange);
}

/* ============================================
   SECTION 5 — HOW IT WORKS (workflow + phases)
   ============================================ */
.auto-workflow-canvas {
  background: #1A1A24;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  margin-bottom: 64px;
  border: 1px solid rgba(255,255,255,0.08);
}
.auto-workflow-stage {
  position: relative;
  height: 280px;
  padding: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(249,115,22,0.05), transparent 40%),
    radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1.5px) 0 0 / 24px 24px;
}
.auto-workflow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.auto-wf-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #20212B;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  min-width: 130px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: default;
  z-index: 2;
}
.auto-wf-node:hover { transform: translateY(-2px) scale(1.05); z-index: 5; }

/* Per-brand glows for workflow nodes */
.auto-wf-node--gmail    { box-shadow: 0 6px 16px rgba(0,0,0,0.3), 0 0 18px rgba(234,67,53,0.15); }
.auto-wf-node--openai   { box-shadow: 0 6px 16px rgba(0,0,0,0.3), 0 0 18px rgba(16,163,127,0.18); }
.auto-wf-node--hubspot  { box-shadow: 0 6px 16px rgba(0,0,0,0.3), 0 0 18px rgba(255,122,69,0.18); }
.auto-wf-node--slack    { box-shadow: 0 6px 16px rgba(0,0,0,0.3), 0 0 18px rgba(151,71,255,0.18); }
.auto-wf-node--claude   { box-shadow: 0 6px 16px rgba(0,0,0,0.3), 0 0 18px rgba(204,169,131,0.18); }

.auto-wf-node--gmail:hover    { box-shadow: 0 10px 28px rgba(0,0,0,0.4), 0 0 28px rgba(234,67,53,0.35); border-color: rgba(234,67,53,0.45); }
.auto-wf-node--openai:hover   { box-shadow: 0 10px 28px rgba(0,0,0,0.4), 0 0 28px rgba(16,163,127,0.35); border-color: rgba(16,163,127,0.45); }
.auto-wf-node--hubspot:hover  { box-shadow: 0 10px 28px rgba(0,0,0,0.4), 0 0 28px rgba(255,122,69,0.40); border-color: rgba(255,122,69,0.50); }
.auto-wf-node--slack:hover    { box-shadow: 0 10px 28px rgba(0,0,0,0.4), 0 0 28px rgba(151,71,255,0.35); border-color: rgba(151,71,255,0.45); }
.auto-wf-node--claude:hover   { box-shadow: 0 10px 28px rgba(0,0,0,0.4), 0 0 28px rgba(204,169,131,0.40); border-color: rgba(204,169,131,0.50); }

.auto-wf-node--ai { border-color: rgba(249,115,22,0.4); }
.auto-wf-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
}
.auto-wf-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.auto-wf-app { font-size: 12px; color: #fff; font-weight: 600; line-height: 1.2; }
.auto-wf-action { font-size: 10.5px; color: rgba(255,255,255,0.55); margin-top: 2px; line-height: 1.2; }
.auto-wf-decision {
  position: absolute;
  width: 130px;
  height: 60px;
  background: #20212B;
  border: 1.5px solid rgba(249,115,22,0.4);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: transform .25s ease;
  cursor: default;
  z-index: 2;
  animation: decisionPulse 2.4s ease-in-out infinite;
}
.auto-wf-decision:hover { transform: translateY(-2px) scale(1.05); z-index: 5; }
@keyframes decisionPulse {
  0%, 100% { border-color: rgba(34,197,94,0.55);  box-shadow: 0 6px 16px rgba(0,0,0,0.3), 0 0 22px rgba(34,197,94,0.25); }
  50%      { border-color: rgba(239,68,68,0.55);  box-shadow: 0 6px 16px rgba(0,0,0,0.3), 0 0 22px rgba(239,68,68,0.25); }
}
.auto-wf-diamond {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  background: rgba(249,115,22,0.18);
  color: #FB923C;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.auto-wf-label {
  position: absolute;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
}
.auto-wf-label--yes { background: #22C55E; }
.auto-wf-label--no { background: #EF4444; }

.auto-phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.auto-phase {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  transition: all .3s ease;
}
.auto-phase:hover {
  border-color: rgba(249,115,22,0.3);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -12px rgba(0,0,0,0.08);
}
.auto-phase-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-orange);
  line-height: 1;
  margin-bottom: 12px;
}
.auto-phase-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.auto-phase-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.auto-phase-timeline {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-orange);
  background: rgba(249,115,22,0.10);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ============================================
   SECTION 6 — INTEGRATIONS SHOWCASE
   ============================================ */
.auto-int-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
}
.auto-int-tab {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-body);
  background: #fff;
  border: 1px solid var(--border-subtle);
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
  font-family: var(--font-body);
}
.auto-int-tab:hover {
  border-color: rgba(249,115,22,0.4);
  color: var(--accent-orange);
}
.auto-int-tab.is-active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
}

.auto-int-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.auto-int-card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all .25s ease;
  min-height: 92px;
  justify-content: center;
}
.auto-int-card:hover {
  border-color: rgba(249,115,22,0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.12);
}
.auto-int-card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
.auto-int-card span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-body);
}
.auto-int-foot {
  text-align: center;
  margin-top: 36px;
  font-size: 15px;
  color: var(--text-secondary);
}
.auto-int-foot a {
  color: var(--accent-orange);
  font-weight: 600;
  text-decoration: none;
}
.auto-int-foot a:hover { color: var(--accent-orange-hover); }

/* ============================================
   SECTION 7 — CASE STUDY
   ============================================ */
.auto-case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.auto-case-meta { margin-bottom: 28px; }
.auto-case-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--accent-orange);
  background: #FFF7ED;
  border: 1px solid rgba(249,115,22,0.15);
  padding: 6px 12px;
  border-radius: 999px;
}
.auto-case-block { margin-bottom: 20px; }
.auto-case-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 6px;
}
.auto-case-block p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  margin: 0;
}
.auto-case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 28px;
  padding: 24px;
  background: #FAFAFA;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}
.auto-case-stat { text-align: center; }
.auto-case-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent-orange);
  line-height: 1;
  margin-bottom: 6px;
}
.auto-case-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}
.auto-case-quote {
  position: relative;
  padding: 22px 24px 22px 60px;
  background: #FFF7ED;
  border-left: 3px solid var(--accent-orange);
  border-radius: 0 12px 12px 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-primary);
  font-style: italic;
}
.auto-quote-mark {
  position: absolute;
  top: 0;
  left: 18px;
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 700;
  color: var(--accent-orange);
  line-height: 1;
}
.auto-case-quote footer {
  margin-top: 10px;
  font-style: normal;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Case visual flow */
.auto-case-flow {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auto-case-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #1A1D26;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
}
.auto-case-step img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  background: rgba(255,255,255,0.92);
  border-radius: 5px;
  padding: 2px;
  flex-shrink: 0;
}
.auto-case-step-num {
  width: 22px;
  height: 22px;
  background: rgba(249,115,22,0.18);
  color: #FB923C;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.auto-case-arrow {
  width: 2px;
  height: 14px;
  background: linear-gradient(to bottom, rgba(249,115,22,0.6), rgba(249,115,22,0.2));
  margin-left: 30px;
  border-radius: 1px;
}

/* ============================================
   SECTION 8 — PRICING
   ============================================ */
.auto-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.auto-pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: all .3s ease;
}
.auto-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.10);
}
.auto-pricing-card.is-featured {
  background: linear-gradient(180deg, #fff 0%, #FFFBF6 100%);
  border-color: rgba(249,115,22,0.30);
  box-shadow: 0 24px 48px -12px rgba(249,115,22,0.18);
  transform: translateY(-8px);
}
.auto-pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(249,115,22,0.3);
}
.auto-pricing-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.auto-pricing-price {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.auto-pricing-price span {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
}
.auto-pricing-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.55;
}
.auto-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auto-pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.5;
}
.auto-pricing-features li svg { flex-shrink: 0; }
.auto-pricing-bestfor {
  margin: 0 0 20px;
  padding: 12px 14px;
  background: #FAFAFA;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.auto-pricing-bestfor strong {
  color: var(--text-primary);
  font-weight: 600;
}
.auto-pricing-card .auto-btn { margin-top: auto; }

.auto-pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 13.5px;
  color: #9CA3AF;
}

/* ============================================
   SECTION 9 — FINAL CTA (DARK)
   ============================================ */
.auto-final-cta {
  position: relative;
  background: #0A0A0F;
  padding: 120px 0;
  overflow: hidden;
}
.auto-final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 680px 460px at 50% 0%, rgba(249,115,22,0.20), transparent 60%),
    radial-gradient(ellipse 480px 360px at 80% 100%, rgba(249,115,22,0.10), transparent 60%);
}
.auto-final-cta .container { position: relative; z-index: 1; }
.auto-final-cta-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.auto-final-cta-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 18px;
}
.auto-final-cta-sub {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .auto-hero .container { grid-template-columns: 1fr; gap: 48px; }
  .auto-hero-headline { font-size: 44px; }
  .auto-scenarios { grid-template-columns: 1fr 1fr; }
  .auto-services-grid { grid-template-columns: 1fr 1fr; }
  .auto-phases { grid-template-columns: 1fr 1fr; }
  .auto-int-grid { grid-template-columns: repeat(4, 1fr); }
  .auto-case { grid-template-columns: 1fr; gap: 36px; }
  .auto-pricing-grid { grid-template-columns: 1fr; }
  .auto-pricing-card.is-featured { transform: none; }
  .auto-workflow-stage { overflow-x: auto; }
}

@media (max-width: 768px) {
  .auto-section { padding: 80px 0; }
  .auto-hero { padding: 120px 0 60px; min-height: auto; }
  .auto-hero-headline { font-size: 36px; }
  .auto-hero-trust { grid-template-columns: 1fr; }
  .auto-section-title { font-size: 32px; }
  .auto-final-cta-title { font-size: 32px; }
  .auto-scenarios { grid-template-columns: 1fr; }
  .auto-services-grid { grid-template-columns: 1fr; }
  .auto-phases { grid-template-columns: 1fr; }
  .auto-int-grid { grid-template-columns: repeat(3, 1fr); }
  .auto-case-stats { grid-template-columns: 1fr; }
  .auto-hero-cta { flex-direction: column; align-items: stretch; }
  .auto-hero-cta .auto-btn { width: 100%; }
  .auto-canvas-grid { height: 380px; transform: scale(0.85); transform-origin: top left; }
  .auto-workflow-canvas { display: none; } /* too cramped on mobile */
  .auto-float-pill--tr,
  .auto-float-pill--bl { display: none; }
}

@media (max-width: 480px) {
  .auto-int-grid { grid-template-columns: repeat(2, 1fr); }
  .auto-hero-headline { font-size: 30px; }
  .auto-section-title { font-size: 26px; }
}
