:root {
  --ink: #101827;
  --muted: #5c667a;
  --line: #e5ebf5;
  --surface: #ffffff;
  --soft: #f6f9fc;
  --blue: #0b5cff;
  --blue-weak: #eef4ff;
  --green: #13a96b;
  --green-weak: #eefaf4;
  --shadow: 0 18px 50px rgba(16, 24, 39, 0.08);
  --shadow-soft: 0 8px 24px rgba(16, 24, 39, 0.055);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.ai-site {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Inter", "Sen", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: clip;
}

.ai-site a {
  color: inherit;
  text-decoration: none;
}

.ai-shell {
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto;
}

.ai-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 235, 245, 0.85);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.22s var(--ease-out), background 0.22s var(--ease-out);
}

.ai-header.is-compact {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(16, 24, 39, 0.06);
}

.ai-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
  transition: min-height 0.22s var(--ease-out);
}

.ai-header.is-compact .ai-nav {
  min-height: 68px;
}

.ai-logo {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.ai-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  font-size: 13px;
  font-weight: 700;
}

.ai-links a {
  position: relative;
  color: #1f2937;
  padding: 27px 0 23px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.ai-links a[aria-current="page"],
.ai-links a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.ai-links a.ai-green-active[aria-current="page"] {
  color: var(--green);
  border-color: var(--green);
}

.ai-language-switcher {
  position: relative;
  flex: 0 0 auto;
}

.ai-language-switcher summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: #1f2937;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.ai-language-switcher summary::-webkit-details-marker {
  display: none;
}

.ai-language-switcher summary::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.ai-language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  display: grid;
  min-width: 138px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ai-language-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 5px;
  color: #1f2937;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ai-language-menu a span {
  color: #536071;
  font-weight: 700;
}

.ai-language-menu a:hover,
.ai-language-menu a[aria-current="true"] {
  background: #eef4ff;
  color: var(--blue);
}

.ai-menu {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}

.ai-menu span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.ai-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  gap: 12px;
  border: 1px solid var(--blue);
  border-radius: 5px;
  background: var(--blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background 0.18s ease, border-color 0.18s ease;
}

.ai-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(11, 92, 255, 0.22);
}

.ai-button:hover .ai-arrow,
.ai-card-link:hover span {
  transform: translateX(3px);
}

.ai-arrow,
.ai-card-link span {
  display: inline-block;
  transition: transform 0.18s var(--ease-out);
}

.ai-button.secondary {
  background: #ffffff;
  color: var(--blue);
}

.ai-button.green {
  border-color: var(--green);
  background: var(--green);
}

.ai-button.green.secondary {
  background: #ffffff;
  color: var(--green);
}

.ai-arrow {
  font-size: 18px;
  line-height: 1;
}

.ai-hero {
  padding: 86px 0 62px;
}

.ai-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: 76px;
}

.ai-contact-hero-grid {
  align-items: start;
}

.ai-contact-hero-grid .ai-hero-copy {
  padding-top: 90px;
}

.ai-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ai-kicker.green {
  color: var(--green);
}

.ai-hero h1,
.ai-page-title {
  margin: 0;
  max-width: 820px;
  font-size: clamp(52px, 5.6vw, 74px);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.ai-hero p.lead,
.ai-page-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 1.55vw, 24px);
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.ai-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 42px;
  color: #323b4f;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  min-width: 0;
}

.ai-trust span:first-child {
  flex-basis: 100%;
  color: #8a94a6;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.ai-section {
  padding: 72px 0;
}

.ai-section.soft {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-top: 1px solid #eef3fb;
  border-bottom: 1px solid #eef3fb;
}

.ai-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.65fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 28px;
}

.ai-section h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: 0;
}

.ai-section-head p,
.ai-muted {
  color: var(--muted);
  margin: 0;
}

.ai-grid-2,
.ai-grid-3,
.ai-grid-4,
.ai-grid-5,
.ai-grid-6 {
  display: grid;
  gap: 18px;
}

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

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

.ai-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ai-grid-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ai-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s var(--ease-out), border-color 0.22s ease, box-shadow 0.22s ease;
}

.ai-card.has-link:hover,
.ai-card.is-interactive:hover {
  transform: translateY(-3px);
  border-color: #cfe0ff;
  box-shadow: 0 18px 40px rgba(16, 24, 39, 0.09);
}

.ai-card.is-static:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.ai-card.large {
  padding: 34px;
}

.ai-card.soft-blue {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.ai-card.soft-green {
  background: linear-gradient(180deg, #ffffff 0%, #f5fff9 100%);
}

.ai-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.16;
  font-weight: 850;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.ai-card h4 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.22;
  font-weight: 850;
}

.ai-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.ai-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--blue);
  font-weight: 850;
  font-size: 14px;
}

.ai-card-link.green {
  color: var(--green);
}

.ai-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  background: var(--blue-weak);
  color: var(--blue);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.68);
}

.ai-icon.green {
  border-color: #ccefdc;
  background: var(--green-weak);
  color: var(--green);
}

.ai-check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ai-check-list li {
  position: relative;
  padding-left: 24px;
  color: #374151;
  font-size: 14px;
}

.ai-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 3px #ffffff;
  outline: 1px solid #9ee7be;
}

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

.ai-metric strong {
  display: block;
  color: var(--blue);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  margin-bottom: 8px;
}

.ai-metric.green strong {
  color: var(--green);
}

.ai-metric span {
  color: var(--muted);
  font-size: 13px;
}

.ai-diagram {
  position: relative;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12px 12px, rgba(11, 92, 255, 0.12) 1px, transparent 1px) 0 0 / 24px 24px,
    #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ai-loop {
  position: absolute;
  inset: 34px;
  border: 2px solid rgba(11, 92, 255, 0.55);
  border-radius: 50%;
}

.ai-node {
  position: absolute;
  width: 132px;
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(16, 24, 39, 0.08);
  text-align: center;
}

.ai-node strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.ai-node span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.ai-node.n1 { top: 28px; left: 50%; transform: translateX(-50%); }
.ai-node.n2 { top: 112px; right: 46px; }
.ai-node.n3 { right: 78px; bottom: 90px; }
.ai-node.n4 { bottom: 28px; left: 50%; transform: translateX(-50%); }
.ai-node.n5 { left: 48px; bottom: 92px; }
.ai-node.n6 { top: 112px; left: 46px; }

.ai-center-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118px;
  height: 118px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--blue-weak);
  color: var(--blue);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  font-size: 13px;
}

.ai-agent-map {
  display: grid;
  gap: 14px;
  padding: 34px;
}

.ai-agent-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
}

.ai-agent-row.second {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-left: 12%;
}

.ai-agent-step {
  position: relative;
  min-height: 96px;
  padding: 18px;
  border: 1px solid #d7efe4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 24, 39, 0.06);
}

.ai-agent-step strong {
  display: block;
  margin-bottom: 6px;
}

.ai-agent-step span {
  color: var(--muted);
  font-size: 12px;
}

.ai-agent-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  width: 18px;
  border-top: 2px solid var(--green);
}

.ai-agent-row .ai-agent-step:last-child::after,
.ai-agent-row.second .ai-agent-step:last-child::after {
  display: none;
}

.ai-process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.ai-process-item {
  position: relative;
  padding-top: 62px;
}

.ai-process-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #bfd3ff;
  border-radius: 50%;
  color: var(--blue);
  font-weight: 900;
}

.ai-process-item::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 58px;
  right: -10px;
  border-top: 1px dashed #cbd5e1;
}

.ai-process-item:last-child::after {
  display: none;
}

.ai-process-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.ai-process-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.ai-cta {
  margin: 20px 0 0;
  padding: 44px 72px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 34px 34px,
    var(--blue);
}

.ai-cta.green {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 34px 34px,
    #07945c;
}

.ai-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
}

.ai-cta h2 {
  color: #ffffff;
}

.ai-cta p {
  max-width: 560px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.ai-cta .ai-button {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--blue);
}

.ai-cta.green .ai-button {
  color: var(--green);
}

.ai-footer {
  padding: 46px 0 28px;
  background: #f8fafc;
  border-top: 1px solid var(--line);
}

.ai-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.7fr) 0.9fr;
  gap: 34px;
}

.ai-footer h3,
.ai-footer h4 {
  margin: 0 0 12px;
}

.ai-footer h3 {
  font-size: 22px;
}

.ai-footer h4 {
  color: var(--blue);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ai-footer p,
.ai-footer a {
  color: var(--muted);
  font-size: 14px;
}

.ai-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #7b8496;
  font-size: 12px;
}

.ai-cookie-notice {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ai-cookie-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.ai-cookie-notice a {
  color: var(--blue);
  font-weight: 800;
}

.ai-cookie-actions {
  display: flex;
  gap: 10px;
}

.ai-cookie-actions button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.ai-cookie-actions button:last-child {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.ai-case-card {
  display: grid;
  min-height: 100%;
}

.ai-proof-strip,
.ai-loop-steps,
.ai-module-groups,
.ai-case-grid,
.ai-playbook-grid {
  display: grid;
  gap: 18px;
}

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

.ai-proof-strip .ai-card {
  min-height: 100%;
}

.ai-loop-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: loop;
}

.ai-loop-step {
  position: relative;
  min-height: 168px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ai-loop-step::before {
  counter-increment: loop;
  content: counter(loop, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border: 1px solid #cfe0ff;
  border-radius: 50%;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.ai-loop-step::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  animation: aiStepSignal 8s var(--ease-out) infinite;
  animation-delay: calc(var(--step-index, 0) * 0.45s);
}

.ai-loop-step h3,
.ai-case-evidence h3,
.ai-playbook-card h3,
.ai-audit-list h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.2;
}

.ai-loop-step p,
.ai-case-evidence p,
.ai-playbook-card p,
.ai-audit-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.ai-module-groups {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-module-group {
  min-width: 0;
}

.ai-module-group h3 {
  margin: 0 0 18px;
  font-size: 22px;
}

.ai-module-group .ai-card + .ai-card {
  margin-top: 14px;
}

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

.ai-case-card dl,
.ai-playbook-card dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.ai-case-card dt,
.ai-playbook-card dt {
  color: #1f2937;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-case-card dd,
.ai-playbook-card dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.ai-case-evidence {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

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

.ai-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.ai-tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.ai-contact-steps-shell {
  max-width: 760px;
}

.ai-contact-form-card {
  scroll-margin-top: 110px;
}

.ai-hero-form-card {
  align-self: center;
  width: 100%;
  box-shadow: var(--shadow);
}

.ai-hero-form-card h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.ai-hero-form-card .ai-muted {
  margin-bottom: 18px;
}

.ai-hero-form-card .ai-form {
  gap: 13px;
}

.ai-hero-form-card .ai-form textarea {
  min-height: 96px;
}

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

.ai-form label {
  display: grid;
  gap: 8px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 800;
}

.ai-form .full {
  grid-column: 1 / -1;
}

.ai-form input,
.ai-form select,
.ai-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ai-form input:focus,
.ai-form select:focus,
.ai-form textarea:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 92, 255, 0.1);
}

.ai-form textarea {
  min-height: 118px;
  resize: vertical;
}

.ai-form button {
  grid-column: 1 / -1;
  border: 0;
  cursor: pointer;
}

.ai-quote {
  border-left: 3px solid var(--blue);
  padding-left: 20px;
  color: #1f2937;
  font-size: 17px;
}

.ai-form-proof {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid #dbe8ff;
  border-radius: 8px;
  background: #f7fbff;
  color: #31405a;
  font-size: 13px;
  font-weight: 700;
}

.ai-audit-list {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: audit;
}

.ai-audit-list li {
  position: relative;
  padding: 18px 18px 18px 68px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.ai-audit-list li::before {
  counter-increment: audit;
  content: counter(audit, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #cfe0ff;
  border-radius: 50%;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.ai-split-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ai-mini-system {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.ai-mini-system strong {
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-mini-system.green strong {
  color: var(--green);
}

.ai-mini-row {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: #263244;
  font-size: 13px;
  font-weight: 800;
}

.ai-home-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 430px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 24px 24px, rgba(19, 169, 107, 0.16) 1px, transparent 2px) 0 0 / 36px 36px,
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ai-home-visual::before {
  content: "";
  position: absolute;
  left: 54px;
  right: 54px;
  bottom: 46px;
  height: 60px;
  border: 1px solid #cfe0ff;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(239, 245, 255, 0.72));
  transform: perspective(760px) rotateX(58deg);
}

.ai-home-panel {
  position: relative;
  z-index: 1;
  min-height: 282px;
  padding: 22px;
  border: 1px solid #dbe8ff;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 34px rgba(16, 24, 39, 0.055);
}

.ai-home-panel.green {
  border-color: #d6f1e3;
}

.ai-home-panel > span {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.ai-home-panel.green > span {
  color: var(--green);
}

.ai-home-loop {
  position: relative;
  width: min(250px, 100%);
  aspect-ratio: 1;
  margin: 18px auto 0;
  border: 2px solid rgba(11, 92, 255, 0.8);
  border-radius: 50%;
}

.ai-home-loop::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--blue);
  animation: aiSpin 12s linear infinite;
}

.ai-home-loop-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--blue-weak);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.ai-home-loop-item {
  position: absolute;
  width: 94px;
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  color: #1d2738;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.ai-home-loop-item.i1 { left: 50%; top: -12px; transform: translateX(-50%); }
.ai-home-loop-item.i2 { right: -34px; top: 48px; }
.ai-home-loop-item.i3 { right: -18px; bottom: 44px; }
.ai-home-loop-item.i4 { left: 50%; bottom: -12px; transform: translateX(-50%); }
.ai-home-loop-item.i5 { left: -34px; bottom: 44px; }
.ai-home-loop-item.i6 { left: -30px; top: 48px; }

.ai-home-bridge {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #cfe0ff;
  border-radius: 50%;
  background: #ffffff;
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.ai-home-flow {
  display: grid;
  gap: 13px;
  margin-top: 22px;
}

.ai-home-flow div {
  position: relative;
  min-height: 50px;
  padding: 10px 12px 10px 46px;
  border: 1px solid #d6f1e3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ai-home-flow div::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--green-weak);
}

.ai-home-flow div::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -14px;
  height: 14px;
  border-left: 1px dashed rgba(19, 169, 107, 0.65);
}

.ai-home-flow div:last-child::after {
  display: none;
}

.ai-home-flow strong,
.ai-home-flow small {
  display: block;
}

.ai-home-flow strong {
  color: #1d2738;
  font-size: 13px;
  font-weight: 900;
}

.ai-home-flow small {
  color: var(--muted);
  font-size: 11px;
}

.ai-home-base {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  justify-self: center;
  width: min(410px, calc(100% - 80px));
  padding: 10px 16px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  background: #ffffff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
}

.ai-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.52s var(--ease-out), transform 0.52s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.ai-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.ai-visual-panel {
  position: relative;
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 28px 28px, rgba(19, 169, 107, 0.2) 1px, transparent 2px) 0 0 / 34px 34px,
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.ai-visual-panel::before,
.ai-visual-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.ai-visual-panel::before {
  inset: 34px;
  border: 1px solid rgba(11, 92, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(11, 92, 255, 0.07) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgba(11, 92, 255, 0.07) 1px, transparent 1px) 0 0 / 42px 42px;
  transform: perspective(900px) rotateX(62deg) rotateZ(-2deg);
  transform-origin: center bottom;
}

.ai-visual-panel::after {
  left: 8%;
  right: 8%;
  bottom: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(11, 92, 255, 0.08);
  filter: blur(22px);
}

.ai-os-visual {
  min-height: 440px;
}

.ai-system-stage {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 58px;
  height: 62px;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #eff5ff 100%);
  box-shadow: 0 18px 42px rgba(11, 92, 255, 0.12);
  transform: perspective(800px) rotateX(54deg);
}

.ai-system-stage span {
  position: absolute;
  left: 50%;
  bottom: 15px;
  transform: translateX(-50%);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.ai-orbit-loop {
  position: absolute;
  left: 8%;
  top: 54px;
  width: 42%;
  aspect-ratio: 1;
  border: 2px solid rgba(11, 92, 255, 0.8);
  border-radius: 50%;
  animation: aiFloat 5.6s ease-in-out infinite;
}

.ai-orbit-loop::before {
  content: "";
  position: absolute;
  inset: 50%;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--blue-weak);
  box-shadow: 0 0 0 18px rgba(11, 92, 255, 0.035);
}

.ai-orbit-loop::after {
  content: "DATA / INSIGHTS";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ai-orbit-node,
.ai-flow-step,
.ai-floating-card,
.ai-cap-node,
.ai-contact-node {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(16, 24, 39, 0.09);
  color: #182235;
}

.ai-orbit-node {
  width: 106px;
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 10px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.ai-orbit-node:nth-child(1) { left: 20%; top: 46px; }
.ai-orbit-node:nth-child(2) { right: -8px; top: 46%; transform: translateY(-50%); }
.ai-orbit-node:nth-child(3) { left: 20%; bottom: 0; }
.ai-orbit-node:nth-child(4) { left: -24px; top: 46%; transform: translateY(-50%); }

.ai-flow-stack {
  position: absolute;
  right: 7%;
  top: 60px;
  width: 38%;
  display: grid;
  gap: 13px;
}

.ai-flow-step {
  position: relative;
  min-height: 62px;
  padding: 13px 16px 13px 48px;
  border-color: #d6f1e3;
}

.ai-flow-step::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: var(--green-weak);
}

.ai-flow-step::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -15px;
  height: 15px;
  border-left: 1px dashed rgba(19, 169, 107, 0.68);
}

.ai-flow-step:last-child::after {
  display: none;
}

.ai-flow-step strong,
.ai-floating-card strong,
.ai-contact-node strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.ai-flow-step span,
.ai-floating-card span,
.ai-contact-node span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.ai-diagram {
  min-height: 462px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 28px 28px, rgba(11, 92, 255, 0.12) 1px, transparent 2px) 0 0 / 36px 36px,
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.ai-diagram::before {
  content: "GROWTH LOOP / EXPERIMENT ENGINE";
  position: absolute;
  left: 0;
  right: 0;
  top: 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
}

.ai-loop {
  inset: 88px 112px 74px;
  border-color: rgba(11, 92, 255, 0.88);
  animation: aiSpin 18s linear infinite;
}

.ai-loop::before,
.ai-loop::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}

.ai-loop::before { top: 12%; right: 8%; }
.ai-loop::after { left: 11%; bottom: 11%; }

.ai-center-node {
  width: 104px;
  height: 104px;
  background: linear-gradient(180deg, var(--blue-weak), #ffffff);
  box-shadow: inset 0 0 0 1px #dbe8ff;
}

.ai-node {
  width: 138px;
  min-height: 78px;
  border-radius: 9px;
  animation: aiFloat 6s ease-in-out infinite;
}

.ai-node.n1 { top: 74px; }
.ai-node.n2 { top: 150px; right: 62px; animation-delay: 0.2s; }
.ai-node.n3 { right: 88px; bottom: 94px; animation-delay: 0.4s; }
.ai-node.n4 { bottom: 42px; animation-delay: 0.6s; }
.ai-node.n5 { left: 70px; bottom: 96px; animation-delay: 0.8s; }
.ai-node.n6 { top: 152px; left: 56px; animation-delay: 1s; }

.ai-agent-map {
  align-content: center;
  min-height: 420px;
  background:
    linear-gradient(90deg, rgba(19, 169, 107, 0.08) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(rgba(19, 169, 107, 0.08) 1px, transparent 1px) 0 0 / 44px 44px,
    #ffffff;
}

.ai-agent-map::before {
  content: "ORCHESTRATED AGENT WORKFLOW";
  position: absolute;
  left: 0;
  right: 0;
  top: 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
}

.ai-agent-step {
  border-color: #d7efe4;
  animation: aiPulseGreen 3.6s ease-in-out infinite;
}

.ai-agent-step::after {
  right: -20px;
  width: 20px;
  border-top-style: dashed;
}

.ai-agent-row.second {
  padding-left: 0;
  direction: rtl;
}

.ai-agent-row.second .ai-agent-step {
  direction: ltr;
}

.ai-capability-orbit {
  min-height: 360px;
}

.ai-cap-base {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 184px;
  height: 126px;
  transform: translate(-50%, -50%) rotateX(58deg) rotateZ(45deg);
  border: 2px solid var(--blue);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #eaf2ff 100%);
  box-shadow: 0 24px 42px rgba(11, 92, 255, 0.16);
}

.ai-cap-base::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid #bdd2ff;
  border-radius: 12px;
  background: #ffffff;
}

.ai-cap-node {
  width: 92px;
  height: 72px;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 30px;
  animation: aiFloat 6s ease-in-out infinite;
}

.ai-cap-node.green {
  color: var(--green);
  border-color: #d6f1e3;
}

.ai-cap-node.n1 { left: 10%; top: 42%; }
.ai-cap-node.n2 { left: 25%; top: 15%; animation-delay: .25s; }
.ai-cap-node.n3 { right: 25%; top: 15%; animation-delay: .5s; }
.ai-cap-node.n4 { right: 10%; top: 42%; animation-delay: .75s; }
.ai-cap-node.n5 { right: 28%; bottom: 12%; animation-delay: 1s; }
.ai-cap-node.n6 { left: 28%; bottom: 12%; animation-delay: 1.25s; }

.ai-case-visual {
  min-height: 360px;
}

.ai-case-gridline {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 58px;
  height: 128px;
  border-left: 1px solid #dbe8ff;
  border-bottom: 1px solid #dbe8ff;
  background:
    linear-gradient(90deg, rgba(11, 92, 255, 0.08) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(rgba(11, 92, 255, 0.08) 1px, transparent 1px) 0 0 / 46px 46px;
  transform: perspective(760px) rotateX(58deg);
  transform-origin: center bottom;
}

.ai-case-chart {
  position: absolute;
  left: 13%;
  right: 12%;
  bottom: 92px;
  height: 190px;
}

.ai-case-chart::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 152px;
  background: linear-gradient(135deg,
    transparent 0 16%,
    var(--blue) 16.2% 18.6%,
    transparent 18.8% 39%,
    var(--blue) 39.2% 41.6%,
    transparent 41.8% 63%,
    var(--blue) 63.2% 65.8%,
    transparent 66%);
  clip-path: polygon(0 82%, 22% 64%, 43% 70%, 65% 38%, 100% 12%, 100% 20%, 66% 47%, 44% 80%, 23% 74%, 0 92%);
  filter: drop-shadow(0 10px 16px rgba(11, 92, 255, 0.16));
}

.ai-case-chart::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 152px;
  background: linear-gradient(180deg, rgba(11, 92, 255, 0.16), rgba(11, 92, 255, 0));
  clip-path: polygon(0 92%, 22% 74%, 44% 80%, 66% 47%, 100% 20%, 100% 100%, 0 100%);
}

.ai-case-chart span {
  position: absolute;
  z-index: 2;
  width: 12px;
  height: 12px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 6px rgba(11, 92, 255, 0.08);
}

.ai-case-chart .p1 { left: 0; bottom: 18px; }
.ai-case-chart .p2 { left: 22%; bottom: 47px; }
.ai-case-chart .p3 { left: 65%; bottom: 94px; }
.ai-case-chart .p4 { right: 0; bottom: 144px; }

.ai-case-visual::before {
  display: none;
}

.ai-floating-card {
  min-width: 142px;
  padding: 14px 16px;
  animation: aiFloat 5.8s ease-in-out infinite;
}

.ai-floating-card.n1 { left: 9%; bottom: 128px; }
.ai-floating-card.n2 { left: 33%; top: 112px; animation-delay: .4s; }
.ai-floating-card.n3 { right: 23%; top: 84px; animation-delay: .8s; }
.ai-floating-card.n4 { right: 8%; top: 58px; animation-delay: 1.2s; }

.ai-about-visual {
  min-height: 390px;
  display: grid;
  place-items: center;
}

.ai-about-screen {
  position: relative;
  width: min(420px, 80%);
  height: 236px;
  border: 1px solid #cfe0ff;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #eff5ff);
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateY(-13deg) rotateX(6deg);
}

.ai-about-screen::before {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 36px;
  height: 98px;
  border-left: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  border-radius: 0 0 0 10px;
  background: linear-gradient(135deg, transparent 40%, rgba(11, 92, 255, 0.08));
}

.ai-about-screen::after {
  content: "";
  position: absolute;
  left: 54px;
  right: 54px;
  bottom: 66px;
  height: 86px;
  background: linear-gradient(135deg, transparent 42%, var(--blue) 43%, var(--blue) 45%, transparent 46%);
}

.ai-code-card,
.ai-avatar-card {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ai-code-card {
  left: -28px;
  top: 54px;
  width: 154px;
  height: 102px;
}

.ai-code-card::before {
  content: "</>";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 34px;
  font-weight: 900;
}

.ai-avatar-card {
  right: -28px;
  top: 80px;
  width: 132px;
  height: 78px;
}

.ai-avatar-card::before,
.ai-avatar-card::after {
  content: "";
  position: absolute;
  border: 2px solid var(--green);
}

.ai-avatar-card::before {
  left: 28px;
  top: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.ai-avatar-card::after {
  left: 21px;
  bottom: 18px;
  width: 34px;
  height: 18px;
  border-radius: 16px 16px 0 0;
  border-bottom: 0;
}

.ai-contact-orbit {
  min-height: 360px;
}

.ai-contact-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 240px;
  height: 240px;
  transform: translate(-50%, -50%);
  border: 2px dashed rgba(11, 92, 255, 0.38);
  border-radius: 50%;
  animation: aiSpin 26s linear infinite;
}

.ai-contact-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--blue-weak);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px #dbe8ff;
}

.ai-contact-node {
  width: 156px;
  padding: 16px 18px;
  animation: aiFloat 6s ease-in-out infinite;
}

.ai-contact-node.n1 { left: 50%; top: 22px; transform: translateX(-50%); }
.ai-contact-node.n2 { right: 28px; top: 145px; animation-delay: .4s; }
.ai-contact-node.n3 { left: 50%; bottom: 22px; transform: translateX(-50%); animation-delay: .8s; }
.ai-contact-node.n4 { left: 28px; top: 145px; animation-delay: 1.2s; }

.ai-metric {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ai-process {
  align-items: start;
}

.ai-process-item::before {
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(11, 92, 255, 0.08);
}

.ai-cta {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px) 0 0 / 38px 38px,
    radial-gradient(circle at 78% 10%, rgba(255, 255, 255, 0.18), transparent 28%),
    var(--blue);
}

.ai-cta::after {
  content: "";
  position: absolute;
  right: -4%;
  bottom: -42%;
  width: 430px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.ai-cta.green {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px) 0 0 / 38px 38px,
    radial-gradient(circle at 78% 10%, rgba(255, 255, 255, 0.15), transparent 28%),
    #07945c;
}

@keyframes aiFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes aiSpin {
  to { rotate: 360deg; }
}

@keyframes aiPulseGreen {
  0%, 100% { box-shadow: 0 10px 24px rgba(16, 24, 39, 0.06); }
  50% { box-shadow: 0 14px 34px rgba(19, 169, 107, 0.13); }
}

@keyframes aiStepSignal {
  0%, 18% { transform: scaleX(0); opacity: 0; }
  28%, 62% { transform: scaleX(1); opacity: 1; }
  78%, 100% { transform: scaleX(1); opacity: 0; }
}

@media (max-width: 1080px) {
  .ai-hero-grid,
  .ai-section-head,
  .ai-contact-grid {
    grid-template-columns: 1fr;
  }

  .ai-hero-grid {
    gap: 44px;
  }

  .ai-contact-hero-grid .ai-hero-copy {
    padding-top: 0;
  }

  .ai-grid-5,
  .ai-grid-6,
  .ai-loop-steps,
  .ai-case-grid,
  .ai-playbook-grid,
  .ai-module-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ai-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .ai-shell {
    width: min(calc(100% - 32px), 680px);
  }

  .ai-nav {
    min-height: 72px;
    gap: 12px;
  }

  .ai-language-switcher {
    margin-left: auto;
  }

  .ai-nav > .ai-button {
    display: none;
  }

  .ai-menu {
    display: block;
    flex: 0 0 auto;
  }

  .ai-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 0;
  }

  .ai-links.open {
    display: flex;
  }

  .ai-links a {
    padding: 13px 4px;
  }

  .ai-hero {
    padding: 42px 0 48px;
  }

  .ai-grid-2,
  .ai-grid-3,
  .ai-grid-4,
  .ai-grid-5,
  .ai-grid-6,
  .ai-proof-strip,
  .ai-loop-steps,
  .ai-case-grid,
  .ai-case-evidence,
  .ai-playbook-grid,
  .ai-module-groups,
  .ai-metrics,
  .ai-process,
  .ai-agent-row,
  .ai-agent-row.second,
  .ai-split-visual {
    grid-template-columns: 1fr;
  }

  .ai-split-visual {
    width: 100%;
    min-width: 0;
    padding: 16px;
    gap: 14px;
  }

  .ai-mini-system,
  .ai-mini-row {
    min-width: 0;
  }

  .ai-agent-row.second {
    padding-left: 0;
  }

  .ai-agent-step::after,
  .ai-process-item::after {
    display: none;
  }

  .ai-diagram {
    min-height: 600px;
  }

  .ai-visual-panel,
  .ai-home-visual,
  .ai-os-visual,
  .ai-capability-orbit,
  .ai-contact-orbit,
  .ai-about-visual {
    min-height: 480px;
  }

  .ai-home-visual {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ai-home-bridge {
    margin: 0 auto;
  }

  .ai-orbit-loop {
    left: 50%;
    top: 34px;
    width: min(310px, 74vw);
    transform: translateX(-50%);
  }

  .ai-flow-stack {
    left: 12%;
    right: 12%;
    top: auto;
    bottom: 92px;
    width: auto;
  }

  .ai-system-stage {
    display: none;
  }

  .ai-cap-node.n1 { left: 5%; top: 42%; }
  .ai-cap-node.n2 { left: 18%; top: 14%; }
  .ai-cap-node.n3 { right: 18%; top: 14%; }
  .ai-cap-node.n4 { right: 5%; top: 42%; }
  .ai-cap-node.n5 { right: 20%; bottom: 12%; }
  .ai-cap-node.n6 { left: 20%; bottom: 12%; }

  .ai-loop {
    inset: 66px 40px;
    animation: none;
  }

  .ai-contact-ring {
    width: min(220px, 62vw);
    height: min(220px, 62vw);
    animation: none;
  }

  .ai-node {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }

  .ai-node.n1 { top: 28px; }
  .ai-node.n2 { top: 126px; }
  .ai-node.n3 { top: 224px; bottom: auto; }
  .ai-node.n4 { top: 322px; bottom: auto; }
  .ai-node.n5 { top: 420px; bottom: auto; }
  .ai-node.n6 { top: 518px; }

  .ai-center-node {
    display: none;
  }

  .ai-cta {
    padding: 32px 24px;
  }

  .ai-cta-inner {
    grid-template-columns: 1fr;
  }

  .ai-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ai-shell {
    width: min(calc(100% - 28px), 680px);
  }

  .ai-logo {
    font-size: clamp(20px, 6.2vw, 24px);
  }

  .ai-hero h1,
  .ai-page-title {
    font-size: clamp(36px, 11.5vw, 46px);
    line-height: 0.98;
  }

  .ai-hero p.lead,
  .ai-page-lead {
    font-size: 18px;
  }

  .ai-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ai-button {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
  }

  .ai-footer-grid {
    grid-template-columns: 1fr;
  }

  .ai-footer-bottom {
    flex-direction: column;
  }

  .ai-visual-panel {
    min-height: 420px;
  }

  .ai-home-visual {
    min-height: 600px;
    padding: 20px 16px;
  }

  .ai-home-loop {
    width: min(216px, 82vw);
  }

  .ai-home-loop-item {
    width: 80px;
    font-size: 10px;
  }

  .ai-home-loop-item.i2 { right: -24px; }
  .ai-home-loop-item.i5,
  .ai-home-loop-item.i6 { left: -24px; }

  .ai-home-base {
    width: calc(100% - 32px);
    font-size: 10px;
  }

  .ai-orbit-node {
    width: 92px;
  }

  .ai-contact-node {
    width: 136px;
  }

  .ai-cookie-notice {
    left: 12px;
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
  }

  .ai-cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .ai-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
