:root {
  --ink: #0b1116;
  --ink-soft: #141e26;
  --primary: #0d2f4d;
  --brand: #0d2f4d;
  --secondary: #061018;
  --accent: #14f1d9;
  --accent-warm: #f6c15f;
  --surface-dark: #081722;
  --surface-deep: #071018;
  --paper: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #edf2f6;
  --text: #10202b;
  --muted: #64727e;
  --line: #d8e0e7;
  --line-dark: #25323d;
  --teal: #14d7c3;
  --teal-dark: #078276;
  --amber: #f0b84f;
  --blue: #3f8cff;
  --executive-blue: #0d2f4d;
  --signal-cyan: #14f1d9;
  --premium-gold: #f6c15f;
  --motion-blue: #3f8cff;
  --glass-dark: rgba(6, 14, 21, .72);
  --danger: #d85b4a;
  --positive: #14f1d9;
  --warning: #f6c15f;
  --icon: #14f1d9;
  --glow-cyan: 0 0 38px rgba(20, 241, 217, .34);
  --glow-amber: 0 0 38px rgba(246, 193, 95, .22);
  --deep-shadow: 0 28px 100px rgba(0, 0, 0, .42);
  --gradient-hero: linear-gradient(135deg, #061018 0%, #0d2f4d 46%, #081722 100%);
  --gradient-panel: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(239, 248, 252, .9));
  --gradient-dark: linear-gradient(145deg, #061018, #0d2f4d 58%, #081722);
  --radius: 8px;
  --shadow: 0 18px 55px rgba(15, 30, 44, .12);
  --container: min(1280px, calc(100vw - 44px));
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 32, 43, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 32, 43, .03) 1px, transparent 1px);
  background-size: 44px 44px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

p,
ul,
ol {
  margin-top: 0;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 17, 22, .95);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.site-nav {
  width: var(--container);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 820;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--teal);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
}

.nav-menu a:hover {
  color: #fff;
}

.nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), #43ffe9);
  color: #031412 !important;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(20, 241, 217, .22);
}

.menu-toggle {
  display: none;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #061018;
  border-bottom: 1px solid #1f2c36;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(135deg, rgba(20, 241, 217, .18), rgba(63, 140, 255, .08) 48%, rgba(246, 193, 95, .10));
  background-size: 48px 48px, 48px 48px, auto;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -24% -18%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 0 42%, rgba(20, 241, 217, .11) 48%, transparent 56%),
    linear-gradient(64deg, transparent 0 58%, rgba(246, 193, 95, .08) 64%, transparent 72%);
  transform: translateX(-34%);
  animation: heroSweep 9s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: var(--container);
  min-height: calc(100vh - 72px);
  max-height: 900px;
  margin: 0 auto;
  padding: 76px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, .82fr);
  gap: 64px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
  max-width: 690px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 710px;
  margin-bottom: 24px;
  font-size: 58px;
  line-height: .98;
  font-weight: 840;
}

h2 {
  margin-bottom: 14px;
  font-size: 36px;
  font-weight: 820;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 790;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, .78);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.btn {
  width: auto;
  max-width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 820;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #6fffee);
  color: #031412;
  box-shadow: 0 14px 40px rgba(20, 241, 217, .28);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #45ffe9, var(--accent));
  box-shadow: 0 18px 52px rgba(20, 241, 217, .36);
}

.btn.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, .24);
  background: transparent;
}

.btn.secondary:hover {
  border-color: rgba(255, 255, 255, .46);
  background: rgba(255, 255, 255, .06);
}

.hero-proof {
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .12);
}

.hero-proof div {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  padding: 18px;
  background: rgba(11, 17, 22, .66);
}

.hero-proof div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 42%, rgba(20, 241, 217, .08) 50%, transparent 58%);
  transform: translateX(-130%);
  animation: cardSweep 8s ease-in-out infinite;
}

.hero-proof div:nth-child(2)::after {
  animation-delay: 1.2s;
}

.hero-proof div:nth-child(3)::after {
  animation-delay: 2.4s;
}

.hero-proof strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 9px;
  font-size: 22px;
  line-height: 1.05;
}

.hero-proof span {
  position: relative;
  z-index: 1;
  display: block;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  max-width: 100%;
  min-height: 610px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(247, 251, 255, .20);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(20, 241, 217, .18), rgba(13, 47, 77, .24) 42%, rgba(6, 16, 24, .91)),
    #071018;
  box-shadow: var(--deep-shadow), 0 0 0 1px rgba(20, 241, 217, .05);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-command-texture.svg");
  background-size: cover;
  opacity: .42;
}

.hero-image-shell {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-image {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  height: auto;
  display: block;
  transform: translateY(6px);
  filter: drop-shadow(0 26px 46px rgba(0, 0, 0, .32));
  animation: heroFloat 8s ease-in-out infinite;
}

.automation-board {
  position: absolute;
  inset: 44px 20px 72px;
  z-index: 3;
  pointer-events: none;
}

.automation-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 12px rgba(20, 241, 217, .42));
}

.flow-path {
  fill: none;
  stroke: rgba(20, 241, 217, .74);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 8 16;
  animation: flowDash 2.6s linear infinite;
}

.flow-alt {
  stroke: rgba(246, 193, 95, .66);
  animation-duration: 3.4s;
}

.flow-top {
  stroke: rgba(63, 140, 255, .64);
  animation-duration: 4.2s;
}

.automation-node {
  position: absolute;
  min-width: 78px;
  padding: 7px 10px;
  border: 1px solid rgba(247, 251, 255, .18);
  border-radius: var(--radius);
  background: rgba(6, 14, 21, .74);
  color: rgba(247, 251, 255, .86);
  font-size: 11px;
  font-weight: 830;
  line-height: 1;
  text-align: center;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28), 0 0 24px rgba(20, 241, 217, .16);
  backdrop-filter: blur(12px);
  animation: nodePulse 4.6s ease-in-out infinite;
}

.node-in {
  left: 1%;
  top: 46%;
}

.node-ai {
  left: 40%;
  top: 44%;
  border-color: rgba(20, 241, 217, .42);
}

.node-crm {
  right: 0;
  top: 43%;
}

.node-control {
  left: 57%;
  bottom: 18%;
  border-color: rgba(246, 193, 95, .42);
  animation-delay: .8s;
}

.node-report {
  right: 4%;
  bottom: 6%;
  border-color: rgba(63, 140, 255, .40);
  animation-delay: 1.4s;
}

.data-packet {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal-cyan);
  box-shadow: 0 0 18px rgba(20, 241, 217, .9), 0 0 40px rgba(20, 241, 217, .34);
  opacity: 0;
}

.packet-one {
  animation: packetOne 4.2s cubic-bezier(.45, 0, .15, 1) infinite;
}

.packet-two {
  background: var(--premium-gold);
  box-shadow: 0 0 18px rgba(246, 193, 95, .86), 0 0 40px rgba(246, 193, 95, .28);
  animation: packetTwo 5.1s cubic-bezier(.45, 0, .15, 1) .9s infinite;
}

.packet-three {
  background: var(--motion-blue);
  box-shadow: 0 0 18px rgba(63, 140, 255, .82), 0 0 40px rgba(63, 140, 255, .28);
  animation: packetThree 5.7s cubic-bezier(.45, 0, .15, 1) 1.6s infinite;
}

.hero-route-glow {
  position: absolute;
  z-index: 0;
  width: 82%;
  height: 68%;
  border: 1px solid rgba(45, 226, 198, .22);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(20, 241, 217, .16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 241, 217, .12) 1px, transparent 1px),
    linear-gradient(135deg, rgba(20, 241, 217, .14), rgba(246, 193, 95, .10));
  background-size: 34px 34px, 34px 34px, auto;
  animation: routePulse 7s ease-in-out infinite;
}

.hero-status,
.hero-metric {
  position: absolute;
  z-index: 4;
  max-width: 210px;
  padding: 14px 16px;
  border: 1px solid rgba(247, 251, 255, .16);
  border-radius: var(--radius);
  background: rgba(6, 14, 21, .84);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .26);
}

.hero-status strong,
.hero-metric strong,
.hero-status em,
.hero-metric span {
  display: block;
}

.hero-status strong,
.hero-metric strong {
  color: #f7fbff;
  font-size: 15px;
  line-height: 1.2;
}

.hero-status em,
.hero-metric span {
  margin-top: 5px;
  color: rgba(247, 251, 255, .66);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.hero-status-a {
  top: 56px;
  left: 6px;
}

.hero-status-b {
  right: 0;
  bottom: 112px;
}

.hero-metric {
  left: 42px;
  bottom: 38px;
  border-color: rgba(242, 184, 75, .34);
}

.status-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(20, 241, 217, .72);
  animation: statusBlink 1.8s ease-in-out infinite;
}

.status-dot.amber {
  background: var(--accent-warm);
  box-shadow: 0 0 18px rgba(246, 193, 95, .62);
  animation-delay: .55s;
}

.hero-flow-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(247, 251, 255, .14);
  border-radius: var(--radius);
  background: rgba(7, 16, 24, .78);
}

.hero-flow-row span {
  color: rgba(247, 251, 255, .74);
  font-size: 12px;
  font-weight: 760;
}

.hero-flow-row i {
  height: 2px;
  min-width: 28px;
  background: linear-gradient(90deg, rgba(20, 241, 217, .12), var(--accent), rgba(246, 193, 95, .80), rgba(20, 241, 217, .12));
  background-size: 220% 100%;
  box-shadow: 0 0 14px rgba(20, 241, 217, .28);
  animation: flow 3.4s linear infinite;
}

@keyframes flow {
  to {
    background-position: 220% 0;
  }
}

@keyframes flowDash {
  to {
    stroke-dashoffset: -192;
  }
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(6px) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.01);
  }
}

@keyframes heroSweep {
  0%,
  100% {
    transform: translateX(-36%) translateY(0);
    opacity: .62;
  }

  50% {
    transform: translateX(26%) translateY(4%);
    opacity: .96;
  }
}

@keyframes nodePulse {
  0%,
  100% {
    box-shadow: 0 12px 34px rgba(0, 0, 0, .28), 0 0 18px rgba(20, 241, 217, .12);
  }

  50% {
    box-shadow: 0 18px 42px rgba(0, 0, 0, .34), 0 0 34px rgba(20, 241, 217, .34);
  }
}

@keyframes packetOne {
  0% {
    left: 5%;
    top: 49%;
    opacity: 0;
  }

  10%,
  82% {
    opacity: 1;
  }

  45% {
    left: 46%;
    top: 47%;
  }

  78% {
    left: 83%;
    top: 44%;
  }

  100% {
    left: 93%;
    top: 47%;
    opacity: 0;
  }
}

@keyframes packetTwo {
  0% {
    left: 7%;
    top: 74%;
    opacity: 0;
  }

  12%,
  76% {
    opacity: 1;
  }

  45% {
    left: 50%;
    top: 68%;
  }

  72% {
    left: 66%;
    top: 71%;
  }

  100% {
    left: 91%;
    top: 76%;
    opacity: 0;
  }
}

@keyframes packetThree {
  0% {
    left: 12%;
    top: 25%;
    opacity: 0;
  }

  12%,
  78% {
    opacity: 1;
  }

  45% {
    left: 50%;
    top: 29%;
  }

  75% {
    left: 78%;
    top: 24%;
  }

  100% {
    left: 88%;
    top: 31%;
    opacity: 0;
  }
}

@keyframes statusBlink {
  0%,
  100% {
    opacity: .78;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.55);
  }
}

@keyframes cardSweep {
  0%,
  18% {
    transform: translateX(-130%);
  }

  42%,
  100% {
    transform: translateX(130%);
  }
}

@keyframes processCurrent {
  to {
    background-position: 220% 0;
  }
}

@keyframes routePulse {
  0%,
  100% {
    transform: scale(.98);
    opacity: .62;
  }

  50% {
    transform: scale(1.04);
    opacity: .88;
  }
}

.section {
  padding: 76px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 820px;
  margin-bottom: 30px;
}

.lead {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 48px;
  align-items: start;
}

.definition-card,
.card,
.role-list article,
.risk-grid article,
.compare-grid article,
.glossary article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(15, 30, 44, .06);
}

.definition-card {
  padding: 24px;
}

.definition-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

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

.cards-grid.compact .card {
  min-height: 180px;
}

.card {
  min-height: 210px;
  padding: 22px;
}

.card p,
.role-list p,
.risk-grid p,
.compare-grid p,
.glossary p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.business-context {
  background: var(--surface);
}

.meaning-list {
  display: grid;
  gap: 16px;
  max-width: 980px;
}

.meaning-list p {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.dark {
  color: #fff;
  background: var(--ink-soft);
}

.dark .lead {
  color: rgba(255, 255, 255, .72);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: item;
}

.timeline article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
}

.timeline span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #061414;
  border-radius: var(--radius);
  background: var(--teal);
  font-size: 13px;
  font-weight: 820;
}

.timeline p {
  margin-bottom: 0;
  color: rgba(255,255,255,.68);
  font-size: 15px;
}

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

.compare-grid article {
  min-height: 200px;
  padding: 24px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.role-list {
  display: grid;
  gap: 12px;
}

.role-list article {
  padding: 20px;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.risk-grid article {
  min-height: 190px;
  padding: 24px;
}

.factor-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.factor-strip div {
  min-height: 155px;
  padding: 22px;
  background: #fff;
}

.factor-strip b {
  display: block;
  margin-bottom: 10px;
  font-size: 19px;
}

.factor-strip span {
  color: var(--muted);
  font-size: 15px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metrics-grid article {
  min-height: 170px;
  padding: 22px;
  color: #fff;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--ink), #162732);
  box-shadow: var(--shadow);
}

.metrics-grid strong {
  display: block;
  margin-bottom: 12px;
  font-size: 26px;
}

.metrics-grid span {
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checklist p {
  position: relative;
  min-height: 82px;
  margin: 0;
  padding: 18px 18px 18px 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
}

.checklist p::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 24px;
  width: 13px;
  height: 8px;
  border-left: 2px solid var(--teal-dark);
  border-bottom: 2px solid var(--teal-dark);
  transform: rotate(-45deg);
}

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

.glossary article {
  min-height: 165px;
  padding: 22px;
}

.faq-section {
  background: var(--surface);
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-size: 17px;
  font-weight: 780;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.cta-section {
  padding-top: 64px;
}

.cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  color: #fff;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ink), #162630);
  box-shadow: var(--shadow);
}

.cta-box p {
  margin-bottom: 0;
  max-width: 780px;
  color: rgba(255, 255, 255, .72);
}

.site-footer {
  padding: 42px 0;
  color: rgba(255, 255, 255, .66);
  background: #071015;
}

.footer-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-inner strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
}

.footer-inner p {
  margin-bottom: 0;
  max-width: 650px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: flex-end;
}

.footer-inner nav a {
  color: #fff;
}

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
}

.section-head {
  position: relative;
}

.section-head::before {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
}

.intro-section,
.method-section,
.tools-section,
.budget-section,
.faq-section {
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(244,248,251,.96)),
    var(--light-surface, var(--paper));
}

.bento-section,
.department-section,
.risk-section,
.kpi-section {
  background:
    linear-gradient(135deg, rgba(18, 59, 93, .05), rgba(45, 226, 198, .035)),
    var(--paper);
}

.business-context,
.insight-section {
  background:
    linear-gradient(180deg, #fff, #eef5f8);
}

.agents-section {
  background:
    linear-gradient(135deg, rgba(7, 16, 24, .04), rgba(45, 226, 198, .05)),
    #fff;
}

.section-dark,
.contrast-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.03) 1px, transparent 1px),
    var(--gradient-dark);
  background-size: 46px 46px, 46px 46px, auto;
}

.section-dark::after,
.contrast-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 226, 198, .72), transparent);
}

.card,
.definition-card,
.role-list article,
.risk-grid article,
.compare-grid article,
.glossary article {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.card:hover,
.role-list article:hover,
.risk-grid article:hover,
.glossary article:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 226, 198, .34);
  box-shadow: 0 20px 52px rgba(15, 30, 44, .12);
}

.icon-card {
  position: relative;
  overflow: hidden;
}

.icon-card::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(45, 226, 198, .22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(45, 226, 198, .20), rgba(242, 184, 75, .10)),
    rgba(18, 59, 93, .05);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--icon);
  border: 1px solid rgba(45, 226, 198, .28);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(45, 226, 198, .13), rgba(18, 59, 93, .07));
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bento-grid {
  grid-auto-flow: dense;
}

.bento-grid .card:nth-child(1),
.bento-grid .card:nth-child(6) {
  grid-column: span 2;
  min-height: 240px;
  background:
    linear-gradient(135deg, rgba(45, 226, 198, .11), rgba(18, 59, 93, .05)),
    var(--surface);
}

.bento-grid .card:nth-child(3) {
  background:
    linear-gradient(145deg, rgba(242, 184, 75, .12), rgba(255,255,255,.96)),
    var(--surface);
}

.meaning-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
}

.meaning-list p {
  min-height: 210px;
  box-shadow: 0 12px 32px rgba(15, 30, 44, .05);
}

.insight-section .meaning-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.insight-section .meaning-list p {
  min-height: 260px;
  padding-top: 22px;
}

.process-flow {
  position: relative;
}

.process-flow::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 42px;
  height: 2px;
  background: linear-gradient(90deg, rgba(20, 241, 217, .12), rgba(20, 241, 217, .84), rgba(246, 193, 95, .64), rgba(63, 140, 255, .36));
  background-size: 220% 100%;
  box-shadow: 0 0 18px rgba(20, 241, 217, .26);
  animation: processCurrent 4.4s linear infinite;
}

.timeline article {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.075);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}

.timeline span {
  position: relative;
  box-shadow: var(--glow-cyan);
}

.comparison-section {
  background: #fff;
}

.comparison-table {
  gap: 0;
  border-color: rgba(18, 59, 93, .16);
  box-shadow: var(--shadow);
}

.comparison-table article:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(45, 226, 198, .10), rgba(255,255,255,.98)),
    #fff;
}

.comparison-table article:nth-child(3) {
  color: #fff;
  background: var(--gradient-dark);
}

.comparison-table article:nth-child(3) p {
  color: rgba(247, 251, 255, .72);
}

.risk-card {
  border-color: rgba(242, 184, 75, .28);
}

.risk-card::before {
  border-color: rgba(242, 184, 75, .34);
  background:
    linear-gradient(135deg, rgba(242, 184, 75, .18), rgba(227, 93, 79, .08)),
    rgba(255,255,255,.8);
}

.kpi-strip div,
.stats-grid article {
  position: relative;
  overflow: hidden;
}

.kpi-strip div::after,
.stats-grid article::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm), var(--motion-blue), var(--accent));
  background-size: 220% 100%;
  animation: processCurrent 5.6s linear infinite;
}

.kpi-strip div::before,
.stats-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 46%, rgba(255, 255, 255, .07) 52%, transparent 60%);
  transform: translateX(-130%);
  animation: cardSweep 9s ease-in-out infinite;
  pointer-events: none;
}

.kpi-strip div:nth-child(2)::before,
.stats-grid article:nth-child(2)::before {
  animation-delay: 1.2s;
}

.kpi-strip div:nth-child(3)::before,
.stats-grid article:nth-child(3)::before {
  animation-delay: 2.4s;
}

.metrics-grid article {
  background:
    linear-gradient(145deg, rgba(45, 226, 198, .14), rgba(18, 59, 93, .20)),
    var(--gradient-dark);
}

.checklist p {
  box-shadow: 0 10px 28px rgba(15, 30, 44, .05);
}

.glossary-section {
  background:
    linear-gradient(135deg, rgba(7, 16, 24, .035), rgba(45, 226, 198, .035)),
    #fff;
}

.faq-list {
  gap: 12px;
}

details {
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 30, 44, .05);
}

summary {
  position: relative;
  padding-right: 54px;
}

summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .18s ease;
}

details[open] summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.cta-banner {
  background:
    linear-gradient(180deg, rgba(244,248,251,.4), rgba(7,16,24,.08));
}

.cta-box {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.035) 1px, transparent 1px),
    var(--gradient-dark);
  background-size: 42px 42px, 42px 42px, auto;
}

.cta-box::after {
  content: "";
  position: absolute;
  inset: auto 34px 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm), var(--motion-blue), var(--accent));
  background-size: 220% 100%;
  animation: processCurrent 4.8s linear infinite;
}

.floating-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 35;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(7, 16, 24, .16);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), #6fffee);
  color: #031412;
  font-size: 14px;
  font-weight: 840;
  box-shadow: 0 16px 42px rgba(20, 241, 217, .30);
  transition: transform .18s ease, box-shadow .18s ease;
}

.floating-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(20, 241, 217, .40);
}

.site-footer {
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    var(--secondary);
  background-size: 46px 46px, auto;
}

.reveal-ready {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .5s ease, transform .5s ease;
}

.legal-page {
  padding: 72px 0;
}

.legal-page .container {
  max-width: 920px;
}

.legal-page h1 {
  color: var(--text);
  font-size: 44px;
}

.legal-card {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.legal-card h2 {
  margin-top: 28px;
  font-size: 26px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

@media (max-width: 1120px) {
  .hero-inner,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    max-height: none;
  }

  .hero-visual {
    min-height: 540px;
  }

  .timeline,
  .cards-grid,
  .glossary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics-grid,
  .factor-strip,
  .meaning-list,
  .insight-section .meaning-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --container: min(100vw - 28px, 720px);
  }

  .site-nav {
    min-height: 64px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .nav-menu {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius);
    background: var(--ink);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 12px;
  }

  .nav-cta {
    margin-top: 6px;
  }

  .hero-inner {
    min-height: auto;
    padding: 48px 0 58px;
    gap: 38px;
  }

  .automation-board {
    inset: 38px 18px 70px;
  }

  .automation-node {
    min-width: 70px;
    font-size: 10px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.05;
  }

  h2 {
    font-size: 29px;
  }

  .hero-lead,
  .lead {
    font-size: 16px;
  }

  .hero-proof,
  .timeline,
  .cards-grid,
  .compare-grid,
  .risk-grid,
  .metrics-grid,
  .factor-strip,
  .meaning-list,
  .checklist,
  .glossary,
  .footer-inner,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-proof div {
    min-height: 104px;
    padding: 13px;
  }

  .hero-proof strong {
    font-size: 16px;
  }

  .hero-proof span {
    font-size: 11px;
    line-height: 1.32;
  }

  .bento-grid .card:nth-child(1),
  .bento-grid .card:nth-child(6) {
    grid-column: auto;
  }

  .process-flow::before {
    display: none;
  }

  .footer-inner nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  :root {
    --container: min(100vw - 28px, 420px);
  }

  .brand span:last-child {
    display: none;
  }

  h1 {
    font-size: 34px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    white-space: normal;
    line-height: 1.2;
  }

  .hero-visual {
    min-height: auto;
    padding: 16px;
  }

  .hero-image-shell {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-image {
    width: 100%;
  }

  .automation-board {
    position: absolute;
    inset: 12px 8px auto;
    order: initial;
    height: min(250px, 66vw);
    min-height: 210px;
    margin: 0;
  }

  .automation-node {
    min-width: 62px;
    padding: 6px 7px;
    font-size: 10px;
  }

  .node-in {
    left: 2%;
    top: 46%;
  }

  .node-ai {
    left: 37%;
    top: 44%;
  }

  .node-crm {
    right: 1%;
    top: 43%;
  }

  .node-control {
    left: 47%;
    bottom: 17%;
  }

  .node-report {
    right: 2%;
    bottom: 5%;
  }

  .data-packet {
    width: 8px;
    height: 8px;
  }

  .hero-route-glow {
    display: none;
  }

  .hero-status,
  .hero-metric {
    position: relative;
    inset: auto;
    order: 2;
    max-width: none;
    width: 100%;
    margin-top: 10px;
  }

  .hero-flow-row {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .hero-flow-row i {
    display: none;
  }

  .floating-cta {
    right: 14px;
    bottom: 14px;
    min-height: 42px;
    padding: 10px 14px;
  }

  .section {
    padding: 56px 0;
  }

  .cta-box {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .data-packet {
    opacity: .45;
  }
}
