:root {
  --ink: #102033;
  --ink-2: #25364a;
  --muted: #627184;
  --line: #d9e2ec;
  --soft: #f4f7fa;
  --white: #ffffff;
  --cyan: #0e9fbd;
  --cyan-dark: #087890;
  --green: #158661;
  --amber: #b46b16;
  --navy: #071421;
  --shadow: 0 18px 50px rgba(16, 32, 51, 0.12);
  --shadow-strong: 0 28px 90px rgba(7, 20, 33, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::selection {
  color: var(--white);
  background: var(--cyan-dark);
}

a {
  color: inherit;
}

.scroll-progress {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(7, 20, 33, 0.84), rgba(7, 20, 33, 0));
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 20, 33, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--navy);
  background: var(--white);
  font-size: 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
  opacity: 0.88;
}

.nav a:hover {
  opacity: 1;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 13px;
  opacity: 0.9;
  transition: background 180ms ease, opacity 180ms ease;
}

.lang-switch:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("../img/ai-operations-hero.png");
  background-image: -webkit-image-set(url("../img/ai-operations-hero.webp") 1x, url("../img/ai-operations-hero.png") 1x);
  background-image: image-set(url("../img/ai-operations-hero.webp") type("image/webp"), url("../img/ai-operations-hero.png") type("image/png"));
  background-size: cover;
  background-position: center right;
  transform: scale(1.02);
  will-change: transform;
}

.hero-overlay {
  background:
    radial-gradient(circle at 70% 40%, rgba(14, 159, 189, 0.22), transparent 34%),
    linear-gradient(90deg, rgba(7, 20, 33, 0.94) 0%, rgba(7, 20, 33, 0.78) 42%, rgba(7, 20, 33, 0.18) 100%),
    linear-gradient(0deg, rgba(7, 20, 33, 0.54) 0%, rgba(7, 20, 33, 0) 36%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28vh;
  background: linear-gradient(0deg, var(--white), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 64px;
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #74e2f1;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7.5vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  font-size: 21px;
  line-height: 1.2;
}

p {
  color: var(--muted);
}

.hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(20px, 2.5vw, 29px);
}

.hero-proof {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0 30px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.contact-section {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid currentColor;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(7, 20, 33, 0.2);
}

.button.primary {
  color: var(--white);
  background: var(--cyan-dark);
  border-color: var(--cyan-dark);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.36);
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.intro-grid,
.boundary-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.intro-copy p,
.boundary-grid p {
  font-size: 19px;
}

.product-section,
.process-section,
.vertical-section,
.diagnostic-section {
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 860px;
  margin-bottom: 0;
  color: var(--ink-2);
  font-size: 19px;
}

.product-grid,
.process-grid,
.vertical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.product-card,
.process-item,
.vertical-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card:hover,
.process-item:hover,
.vertical-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(14, 159, 189, 0.36);
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.product-card.primary-product {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
  position: relative;
  overflow: hidden;
}

.product-card.primary-product::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 20%;
  height: 160px;
  background: radial-gradient(circle, rgba(14, 159, 189, 0.34), transparent 64%);
  pointer-events: none;
}

.product-card.primary-product p,
.product-card.primary-product li {
  color: rgba(255, 255, 255, 0.78);
}

.pillar-section {
  padding-bottom: clamp(52px, 7vw, 86px);
}

.pillar-grid .product-card {
  min-height: 390px;
}

.product-card.primary-product span {
  color: #74e2f1;
}

.step,
.product-card span,
.vertical-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card p {
  margin-bottom: 22px;
}

.product-card ul {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.product-card .text-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 22px;
  color: inherit;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.product-card li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
  font-weight: 700;
}

.product-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.vertical-card.featured {
  background: var(--ink);
  border-color: var(--ink);
}

.vertical-card.featured h3,
.vertical-card.featured p {
  color: var(--white);
}

.vertical-card.guarded {
  border-color: rgba(180, 107, 22, 0.48);
  background: #fff8ef;
}

.proof-section {
  padding-top: 24px;
  padding-bottom: 24px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.proof-grid article {
  min-height: 136px;
  padding: 22px;
  background: var(--white);
}

.proof-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.1;
}

.proof-grid span {
  color: var(--muted);
  font-weight: 700;
}

.process-section {
  position: relative;
}

.process-line {
  height: 3px;
  margin: 26px 0 -30px;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber));
  border-radius: 999px;
}

.process-section.is-visible .process-line {
  animation: draw-line 900ms ease 220ms forwards;
}

@keyframes draw-line {
  to {
    transform: scaleX(1);
  }
}

.diagnostic-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.check-list li {
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 700;
}

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

.source-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.source-layout p {
  font-size: 19px;
}

.source-stack {
  display: grid;
  gap: 12px;
}

.source-stack div {
  position: relative;
  padding: 17px 18px 17px 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.source-stack div::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(14, 159, 189, 0.12);
}

.legal-shell {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  padding: 128px 0 84px;
}

.legal-hero {
  padding: 42px 0 36px;
}

.legal-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
}

.legal-hero p {
  max-width: 760px;
  font-size: 20px;
}

.legal-card {
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(244, 247, 250, 0.86), rgba(255, 255, 255, 1)),
    var(--white);
  box-shadow: var(--shadow);
}

.legal-card h2 {
  margin: 34px 0 10px;
  font-size: 25px;
}

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

.legal-card p,
.legal-card li {
  max-width: 780px;
  color: var(--ink-2);
}

.legal-card ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.placeholder-alert {
  margin-bottom: 34px;
  padding: 18px;
  border: 1px solid rgba(180, 107, 22, 0.42);
  border-radius: 8px;
  color: #6f3c07;
  background: #fff8ef;
}

.case-grid,
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.case-card,
.story-grid article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.case-card:hover,
.story-grid article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(14, 159, 189, 0.36);
}

.case-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.case-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--ink-2);
  font-weight: 700;
}

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

.story-grid article {
  min-height: 210px;
}

.faq-section details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.faq-section details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-section summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.faq-section details p {
  max-width: 820px;
  margin: 14px 0 0;
}

.contact-section {
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.contact-section p {
  max-width: 720px;
  font-size: 19px;
}

.footer {
  padding: 32px clamp(20px, 4vw, 56px);
  color: var(--white);
  background: var(--navy);
}

.footer p {
  max-width: 1120px;
  margin: 0 auto 8px;
  color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 82vh;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(7, 20, 33, 0.94), rgba(7, 20, 33, 0.62));
  }

  .intro-grid,
  .boundary-grid,
  .diagnostic-panel,
  .source-layout,
  .product-grid,
  .case-grid,
  .story-grid,
  .process-grid,
  .vertical-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .process-line {
    display: none;
  }

  .product-card,
  .process-item,
  .vertical-card {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      animation: scroll-progress linear both;
      animation-timeline: scroll(root);
    }

    @keyframes scroll-progress {
      to {
        transform: scaleX(1);
      }
    }

    .hero-media {
      animation: hero-drift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 70vh;
    }

    @keyframes hero-drift {
      to {
        transform: scale(1.08) translateY(28px);
      }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .button,
  .product-card,
  .process-item,
  .vertical-card,
  .site-header,
  .hero-media {
    transition: none;
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 560px) {
  .brand span:last-child {
    max-width: 160px;
    line-height: 1.1;
  }

  .hero-content,
  .section {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 31px;
  }
}
