:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5b6472;
  --line: #d7dde5;
  --panel: #ffffff;
  --soft: #eef4f8;
  --blue: #0f5e9c;
  --green: #127c58;
  --red: #b22d3b;
  --gold: #a96713;
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f8fafc;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(215, 221, 229, 0.8);
  backdrop-filter: blur(16px);
}

.header-actions {
  order: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 0.85rem;
}

.main-nav {
  order: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--blue);
}

.language-switcher {
  display: inline-flex;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.language-switcher button {
  min-width: 38px;
  min-height: 34px;
  padding: 7px 9px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: #fff;
  background: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.section-band,
.section,
.metrics,
.site-footer {
  padding-inline: clamp(18px, 4vw, 56px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  min-height: calc(100svh - 72px);
  padding-top: 52px;
  padding-bottom: 52px;
  background: linear-gradient(135deg, #f8fafc 0%, #e8f1f6 48%, #f4f1ea 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: #334155;
  font-size: clamp(1.03rem, 1.4vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.migration-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 70px 1.35fr;
  align-items: center;
  min-height: 430px;
  padding: clamp(18px, 4vw, 34px);
  background:
    linear-gradient(rgba(17, 24, 39, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.06) 1px, transparent 1px),
    #ffffff;
  background-size: 28px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.node {
  display: grid;
  place-items: center;
  min-height: 76px;
  padding: 16px;
  color: #fff;
  background: var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 12px 24px rgba(15, 94, 156, 0.2);
}

.node.source {
  background: var(--red);
}

.flow-line {
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--green));
}

.target-grid {
  display: grid;
  gap: 14px;
}

.target-grid .node:nth-child(2) {
  background: var(--green);
}

.target-grid .node:nth-child(3) {
  background: var(--gold);
}

.target-grid .node:nth-child(4) {
  background: var(--ink);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.metrics div {
  padding: 24px;
  background: #fff;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
}

.metrics span {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding-top: clamp(62px, 8vw, 108px);
  padding-bottom: clamp(62px, 8vw, 108px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.platform-card,
.location-grid article,
.sap-checklist,
.about-story,
.company-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.platform-card {
  padding: 24px;
}

.platform-card p,
.platform-card li,
.location-grid p,
.sap-section p,
.sap-checklist li,
.about-section p,
.company-card dd,
.note,
.sources p {
  color: var(--muted);
}

.platform-card ul,
.sap-checklist ul {
  padding-left: 18px;
  margin-bottom: 0;
}

.platform-card li + li,
.sap-checklist li + li {
  margin-top: 8px;
}

.platform-tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 9px;
  color: var(--blue);
  background: #e4f0f7;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 74px);
  background: var(--soft);
}

.sticky-heading {
  position: sticky;
  top: 100px;
  align-self: start;
  margin-bottom: 0;
}

.timeline {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.timeline li {
  position: relative;
  padding: 24px 24px 24px 74px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline li::before {
  position: absolute;
  top: 24px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  counter-increment: steps;
  content: counter(steps);
  font-weight: 800;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #fff;
  background: var(--ink);
  font-size: 0.92rem;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody td:first-child {
  font-weight: 800;
}

.note {
  max-width: 900px;
  margin: 18px 0 0;
  font-size: 0.95rem;
}

.sap-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 58px);
  background: #16202b;
  color: #fff;
}

.sap-section p,
.sap-checklist li {
  color: #dbe4ef;
}

.sap-checklist {
  padding: 26px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.about-section {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
}

.about-story,
.company-card {
  padding: 28px;
}

.about-story p {
  margin-bottom: 0;
}

.company-card dl {
  display: grid;
  gap: 18px;
  margin: 22px 0 0;
}

.company-card div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.company-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.company-card dd {
  margin: 6px 0 0;
  font-weight: 800;
}

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

.proof-grid div {
  padding: 22px;
  background: var(--soft);
}

.proof-grid strong,
.proof-grid span {
  display: block;
}

.proof-grid strong {
  font-size: clamp(1.4rem, 2.4vw, 2.35rem);
  line-height: 1;
}

.proof-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.locations {
  background: #fff;
}

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

.location-grid article {
  padding: 28px;
}

.location-grid a {
  color: var(--blue);
  font-weight: 800;
}

.sources {
  padding-top: 44px;
  padding-bottom: 44px;
  background: var(--soft);
}

.sources h2 {
  font-size: 1.25rem;
}

.sources a {
  color: var(--blue);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  padding-bottom: 24px;
  color: #dce6f2;
  background: var(--ink);
}

.site-footer a {
  color: #fff;
}

@media (max-width: 1100px) {
  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-left: 0;
  }

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

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

  .hero,
  .section-split,
  .sap-section,
  .about-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .migration-visual {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
  }

  .flow-line {
    width: 4px;
    height: 42px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--red), var(--green));
  }

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

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 560px) {
  .brand span:last-child {
    font-size: 0.9rem;
  }

  .platform-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .timeline li {
    padding: 74px 20px 20px;
  }

  .timeline li::before {
    top: 20px;
    left: 20px;
  }
}
