.page-automation-landing {
  --auto-ink: #1d1d1f;
  --auto-ink-soft: #6e6e73;
  --auto-blue: #0071e3;
  --auto-blue-hover: #0077ed;
  --auto-navy: #0f172a;
  --auto-line: rgba(0, 0, 0, .08);
  --auto-surface: #fff;
  --auto-canvas: #f5f5f7;
  --auto-tint: #eaf3ff;
  --auto-success: #31c783;
  --auto-max: 1036px;
  background: var(--auto-canvas);
}

.automation-main {
  overflow: hidden;
  background: var(--auto-canvas);
}

.automation-main > .breadcrumbs {
  display: none;
}

.automation-main h1,
.automation-main h2,
.automation-main h3 {
  text-wrap: balance;
}

.automation-main p {
  text-wrap: pretty;
}

@media (max-width: 734px) {
  .page-automation-landing .nav-mobile-overlay {
    background: #f5f5f7;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  [data-theme="dark"] .page-automation-landing .nav-mobile-overlay {
    background: #1c1c1e;
  }
}

/* Hero: same light, precise material language as the Lumesco homepage. */
.automation-hero {
  position: relative;
  background:
    radial-gradient(circle at 74% 30%, rgba(0, 113, 227, .08), transparent 25rem),
    var(--auto-canvas);
}

.automation-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--auto-line);
}

.automation-hero-inner {
  position: relative;
  width: min(calc(100% - 44px), 1180px);
  min-height: calc(100svh - var(--nav-h));
  margin: 0 auto;
  padding: clamp(72px, 8vw, 116px) 0 clamp(66px, 8vw, 108px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(430px, 1.05fr);
  align-items: center;
  gap: clamp(50px, 7vw, 94px);
}

.automation-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--auto-ink-soft);
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.automation-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--auto-blue);
  box-shadow: 0 0 0 5px rgba(0, 113, 227, .09);
}

.automation-hero h1 {
  max-width: 680px;
  margin: 0;
  color: var(--auto-ink);
  font-size: clamp(2.65rem, 4.6vw, 4.3rem);
  line-height: .99;
  letter-spacing: -.04em;
}

.automation-hero h1 span {
  color: var(--auto-blue);
}

.automation-hero-lead {
  max-width: 650px;
  margin: 27px 0 0;
  color: var(--auto-ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.58;
}

.automation-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.automation-primary-action,
.automation-secondary-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 23px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    transform 150ms cubic-bezier(.23, 1, .32, 1),
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.automation-primary-action {
  border: 1px solid var(--auto-navy);
  background: var(--auto-navy);
  color: #fff;
}

.automation-primary-action:hover {
  border-color: #1e293b;
  background: #1e293b;
  color: #fff;
}

.automation-secondary-action {
  border: 1px solid var(--auto-blue);
  color: var(--auto-blue);
}

.automation-secondary-action:hover {
  background: var(--auto-blue);
  color: #fff;
}

.automation-primary-action:active,
.automation-secondary-action:active {
  transform: scale(.97);
}

.automation-primary-action:focus-visible,
.automation-secondary-action:focus-visible,
.automation-inline-link:focus-visible,
.automation-proof-link:focus-visible,
.automation-related a:focus-visible {
  outline: 3px solid rgba(0, 113, 227, .36);
  outline-offset: 4px;
}

.automation-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 38px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--auto-line);
  list-style: none;
}

.automation-hero-facts strong,
.automation-hero-facts span {
  display: block;
}

.automation-hero-facts strong {
  color: var(--auto-ink);
  font-size: .8rem;
  line-height: 1.35;
}

.automation-hero-facts span {
  margin-top: 4px;
  color: var(--auto-ink-soft);
  font-size: .69rem;
  line-height: 1.45;
}

/* Generated editorial visuals */
.automation-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #f7f7f8;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.automation-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.automation-visual-hero {
  position: relative;
}

.automation-visual-hero img {
  aspect-ratio: 1.22;
  object-fit: contain;
  object-position: center;
}

.automation-visual-hero figcaption {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #424245;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .08);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  font-size: .69rem;
  font-weight: 650;
}

.automation-visual-hero figcaption i {
  width: 22px;
  height: 1px;
  background: #9a9aa0;
}

.automation-visual-wide {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
  align-items: center;
  margin-bottom: 18px;
  background: #fff;
}

.automation-visual-wide img {
  min-height: 360px;
  height: 100%;
  object-fit: cover;
}

.automation-visual-wide figcaption,
.automation-visual-control figcaption {
  padding: clamp(26px, 4vw, 48px);
  color: #1d1d1f;
}

.automation-visual-wide figcaption strong,
.automation-visual-wide figcaption span,
.automation-visual-control figcaption strong,
.automation-visual-control figcaption span {
  display: block;
}

.automation-visual-wide figcaption strong,
.automation-visual-control figcaption strong {
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.automation-visual-wide figcaption span,
.automation-visual-control figcaption span {
  margin-top: 14px;
  color: #6e6e73;
  font-size: .9rem;
  line-height: 1.55;
}

.automation-visual-control {
  margin-top: 34px;
  border-radius: 16px;
  box-shadow: 0 12px 38px rgba(15, 23, 42, .06);
}

.automation-visual-control img {
  aspect-ratio: 1.5;
  object-fit: cover;
}

.automation-visual-control figcaption {
  padding: 24px 26px 27px;
  border-top: 1px solid rgba(0, 0, 0, .055);
}

/* Shared section composition */
.automation-friction,
.automation-definition,
.automation-process-section,
.automation-faq,
.automation-related,
.automation-final-cta,
.automation-build-scope,
.automation-proof {
  width: min(calc(100% - 44px), var(--auto-max));
  margin-inline: auto;
}

.automation-friction,
.automation-definition,
.automation-process-section {
  padding-block: clamp(82px, 10vw, 132px);
}

.automation-section-heading {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(300px, .65fr);
  gap: clamp(38px, 8vw, 96px);
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 66px);
}

.automation-section-heading h2,
.automation-build-intro h2,
.automation-proof h2 {
  margin: 0;
  color: var(--auto-ink);
  font-size: clamp(2rem, 4.2vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.automation-section-heading p,
.automation-build-intro > p,
.automation-proof-copy > p {
  margin: 0;
  color: var(--auto-ink-soft);
  font-size: 1rem;
  line-height: 1.68;
}

/* Friction rail */
.automation-friction-list {
  border-top: 1px solid var(--auto-line);
}

.automation-friction-list > div {
  display: grid;
  grid-template-columns: 62px minmax(250px, .8fr) minmax(300px, 1fr);
  gap: 25px;
  align-items: baseline;
  padding: 25px 0;
  border-bottom: 1px solid var(--auto-line);
}

.automation-friction-list span {
  color: var(--auto-blue);
  font-size: .72rem;
  font-weight: 700;
}

.automation-friction-list strong {
  color: var(--auto-ink);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.automation-friction-list p {
  margin: 0;
  color: var(--auto-ink-soft);
  line-height: 1.6;
}

/* Definition cards are independent service principles, not page scaffolding. */
.automation-definition {
  padding-top: 20px;
}

.automation-definition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.automation-definition-grid article {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--auto-line);
  border-radius: 16px;
  background: var(--auto-surface);
}

.automation-definition-grid article > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 11px;
  background: rgba(0, 113, 227, .09);
  color: var(--auto-blue);
}

.automation-definition-grid svg {
  width: 19px;
  height: 19px;
}

.automation-definition-grid h3 {
  margin: 0 0 11px;
  color: var(--auto-ink);
  font-size: 1rem;
}

.automation-definition-grid p {
  margin: 0;
  color: var(--auto-ink-soft);
  font-size: .88rem;
  line-height: 1.62;
}

/* Typical starting points: a quiet light band instead of a dark SaaS slab. */
.automation-usecases {
  padding: clamp(82px, 10vw, 132px) max(22px, calc((100vw - var(--auto-max)) / 2));
  border-block: 1px solid var(--auto-line);
  background: var(--auto-surface);
}

.automation-section-heading-light h2 {
  color: var(--auto-ink);
}

.automation-section-heading-light p {
  color: var(--auto-ink-soft);
}

.automation-usecase-rows {
  border-top: 1px solid var(--auto-line);
}

.automation-usecase-rows article {
  display: grid;
  grid-template-columns: 50px minmax(260px, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--auto-line);
}

.automation-usecase-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 113, 227, .09);
  color: var(--auto-blue);
}

.automation-usecase-icon svg {
  width: 19px;
  height: 19px;
}

.automation-usecase-rows h3 {
  margin: 0;
  color: var(--auto-ink);
  font-size: 1.07rem;
}

.automation-usecase-rows p {
  margin: 5px 0 0;
  color: var(--auto-ink-soft);
  font-size: .88rem;
  line-height: 1.55;
}

.automation-usecase-result {
  color: var(--auto-ink-soft);
  font-size: .73rem;
  font-weight: 600;
  white-space: nowrap;
}

.automation-inline-link,
.automation-proof-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-top: 31px;
  color: var(--auto-blue);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
}

.automation-inline-link:hover,
.automation-proof-link:hover {
  color: var(--auto-blue-hover);
}

.automation-inline-link span,
.automation-proof-link span {
  transition: transform 180ms cubic-bezier(.23, 1, .32, 1);
}

.automation-inline-link:hover span,
.automation-proof-link:hover span {
  transform: translateX(4px);
}

/* Scope split */
.automation-build-scope {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, 1fr);
  gap: clamp(52px, 8vw, 102px);
  align-items: start;
  padding-block: clamp(86px, 11vw, 142px);
}

.automation-build-intro > p {
  margin-top: 23px;
  max-width: 480px;
}

.automation-build-layers {
  border-top: 1px solid var(--auto-line);
}

.automation-build-layers div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 23px;
  padding: 25px 0;
  border-bottom: 1px solid var(--auto-line);
}

.automation-build-layers span {
  color: var(--auto-blue);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.automation-build-layers strong {
  color: var(--auto-ink);
  font-size: .98rem;
  line-height: 1.5;
}

/* Project steps */
.automation-process-section {
  border-top: 1px solid var(--auto-line);
}

.automation-process-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.automation-process-track .process-step {
  position: relative;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--auto-line);
  border-radius: 16px;
  background: var(--auto-surface);
  box-shadow: none;
}

.automation-process-track .process-step-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 38px;
  border-radius: 50%;
  background: rgba(0, 113, 227, .09);
  color: var(--auto-blue);
  font-size: .72rem;
  font-weight: 700;
}

.automation-process-track h3 {
  margin: 0 0 11px;
  color: var(--auto-ink);
  font-size: 1rem;
}

.automation-process-track p {
  margin: 0;
  color: var(--auto-ink-soft);
  font-size: .84rem;
  line-height: 1.62;
}

.automation-process-section-secondary {
  padding-top: 38px;
}

/* Proof remains visually distinct, but now uses the site's light surface system. */
.automation-proof {
  margin-bottom: clamp(88px, 11vw, 146px);
  padding: clamp(38px, 5vw, 62px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(350px, .72fr);
  gap: clamp(46px, 7vw, 86px);
  align-items: center;
  border-radius: 24px;
  background: var(--auto-tint);
}

.automation-proof-label {
  margin: 0 0 17px;
  color: var(--auto-blue);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.automation-proof-copy > p {
  margin-top: 21px;
}

.automation-proof-system {
  padding: 25px;
  border-radius: 16px;
  background: var(--auto-navy);
  color: #fff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, .14);
}

.automation-proof-system-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, .55);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.automation-proof-system ol {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.automation-proof-system li {
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.automation-proof-system li > span {
  color: #8ec5ff;
  font-size: .67rem;
  font-weight: 700;
}

.automation-proof-system strong,
.automation-proof-system small {
  display: block;
}

.automation-proof-system strong {
  color: #fff;
  font-size: .87rem;
}

.automation-proof-system small {
  margin-top: 5px;
  color: rgba(255, 255, 255, .58);
  font-size: .7rem;
  line-height: 1.45;
}

/* FAQ and closing conversion */
.automation-faq {
  padding-block: clamp(76px, 9vw, 116px);
  border-top: 1px solid var(--auto-line);
}

.automation-faq .section-title {
  color: var(--auto-ink);
}

.automation-faq .faq-list {
  max-width: 860px;
}

.automation-related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 28px 0;
  border-top: 1px solid var(--auto-line);
}

.automation-related a {
  color: var(--auto-ink-soft);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
}

.automation-related a:hover {
  color: var(--auto-blue);
}

.automation-final-cta {
  margin-top: 44px;
  margin-bottom: clamp(82px, 10vw, 132px);
  padding: clamp(40px, 6vw, 68px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, .78fr);
  gap: clamp(42px, 8vw, 96px);
  border-radius: 24px;
  background: var(--auto-navy);
  color: #fff;
}

.automation-final-cta h2 {
  margin: 9px 0 0;
  color: #fff;
  font-size: clamp(2.15rem, 4.8vw, 4rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.automation-final-cta p {
  margin: 0;
  color: rgba(255, 255, 255, .7);
  line-height: 1.62;
}

.automation-final-cta > div:first-child > p {
  color: #8ec5ff;
  font-size: .73rem;
  font-weight: 650;
}

.automation-final-cta > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 27px;
}

.automation-primary-action-light {
  border-color: #fff;
  background: #fff;
  color: var(--auto-navy);
}

.automation-primary-action-light:hover {
  border-color: #e8eef6;
  background: #e8eef6;
  color: var(--auto-navy);
}

@media (prefers-reduced-motion: no-preference) {
  .automation-visual-hero {
    animation: automation-visual-enter 720ms cubic-bezier(.23, 1, .32, 1) both;
  }

  .automation-hero-copy {
    animation: automation-copy-enter 620ms cubic-bezier(.23, 1, .32, 1) both;
  }

  @keyframes automation-visual-enter {
    from { opacity: 0; transform: translateY(14px) scale(.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  @keyframes automation-copy-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 980px) {
  .automation-hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .automation-hero-copy {
    max-width: 760px;
  }

  .automation-visual-hero {
    max-width: 760px;
  }

  .automation-section-heading,
  .automation-build-scope,
  .automation-proof,
  .automation-final-cta {
    grid-template-columns: 1fr;
  }

  .automation-section-heading {
    align-items: start;
  }

  .automation-process-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .automation-visual-control {
    max-width: 620px;
  }
}

@media (max-width: 720px) {
  .automation-hero-inner,
  .automation-friction,
  .automation-definition,
  .automation-process-section,
  .automation-faq,
  .automation-related,
  .automation-final-cta,
  .automation-build-scope,
  .automation-proof {
    width: min(calc(100% - 32px), var(--auto-max));
  }

  .automation-hero-inner {
    padding-top: 56px;
  }

  .automation-hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.65rem);
  }

  .automation-hero-facts {
    grid-template-columns: 1fr;
  }

  .automation-visual {
    border-radius: 16px;
  }

  .automation-visual-hero img {
    aspect-ratio: 1.12;
  }

  .automation-visual-hero figcaption {
    right: 12px;
    bottom: 12px;
    left: 12px;
    gap: 7px;
    padding-inline: 11px;
    font-size: .62rem;
  }

  .automation-visual-hero figcaption i {
    width: 10px;
  }

  .automation-friction-list > div,
  .automation-usecase-rows article,
  .automation-build-layers div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .automation-friction-list > div {
    padding: 25px 0;
  }

  .automation-visual-wide {
    grid-template-columns: 1fr;
  }

  .automation-visual-wide img {
    min-height: 0;
    aspect-ratio: 1.35;
  }

  .automation-definition-grid,
  .automation-process-track {
    grid-template-columns: 1fr;
  }

  .automation-usecases {
    padding-inline: 16px;
  }

  .automation-usecase-rows article {
    grid-template-columns: 42px 1fr;
    gap: 13px;
  }

  .automation-usecase-result {
    grid-column: 2;
    white-space: normal;
  }

  .automation-process-track .process-step-number {
    margin-bottom: 26px;
  }

  .automation-proof {
    padding: 30px 22px;
  }

  .automation-final-cta {
    padding: 35px 24px;
  }
}

@media (max-width: 420px) {
  .automation-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .automation-primary-action,
  .automation-secondary-action {
    width: 100%;
  }

  .automation-definition-grid article,
  .automation-process-track .process-step {
    padding: 24px;
  }
}

[data-theme="dark"] .page-automation-landing,
[data-theme="dark"].page-automation-landing {
  --auto-ink: #f5f5f7;
  --auto-ink-soft: #a1a1a6;
  --auto-line: rgba(255, 255, 255, .1);
  --auto-surface: #1a1a1d;
  --auto-canvas: #0d0d0f;
  --auto-tint: #142236;
  --auto-navy: #05080d;
}

[data-theme="dark"] .automation-hero {
  background:
    radial-gradient(circle at 74% 30%, rgba(10, 132, 255, .12), transparent 25rem),
    var(--auto-canvas);
}

[data-theme="dark"] .automation-primary-action:not(.automation-primary-action-light) {
  border-color: #0a84ff;
  background: #0a84ff;
}

[data-theme="dark"] .automation-primary-action:not(.automation-primary-action-light):hover {
  border-color: #409cff;
  background: #409cff;
}

[data-theme="dark"] .automation-visual {
  border-color: rgba(255, 255, 255, .12);
}

[data-theme="dark"] .automation-definition-grid article > span,
[data-theme="dark"].page-automation-landing .automation-definition-grid article > span,
[data-theme="dark"] .automation-usecase-icon {
  background: rgba(10, 132, 255, .16);
}
