:root {
  --paper: #f5f4f0;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --muted: #656568;
  --line: rgba(29, 29, 31, 0.14);
  --amber: #f59b35;
  --blue: #2e56cc;
  --coral: #ef705e;
  --content: min(1120px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

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

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  background: rgba(245, 244, 240, 0.78);
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
  backdrop-filter: blur(20px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.brand strong {
  color: var(--muted);
  font-weight: 500;
}

.brand-mark {
  width: 15px;
  height: 15px;
  border: 4px solid var(--amber);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--paper);
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

nav a {
  transition: color 180ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
}

.nav-company {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.hero {
  position: relative;
  min-height: min(760px, 92vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #ece9e2;
}

.hero-media,
.hero-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center;
}

.hero-wash {
  background: linear-gradient(90deg, rgba(248, 247, 244, 0.98) 0%, rgba(248, 247, 244, 0.9) 28%, rgba(248, 247, 244, 0.18) 57%, rgba(248, 247, 244, 0) 76%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--content);
  margin: 0 auto;
  padding-top: 54px;
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(42px, 5.2vw, 66px);
  font-weight: 600;
  line-height: 1.04;
}

.hero-copy {
  max-width: 540px;
  margin: 25px 0 32px;
  color: #4d4d50;
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 500;
  line-height: 1.48;
}

.primary-link,
.closing a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 19px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.primary-link:hover,
.primary-link:focus-visible,
.closing a:hover,
.closing a:focus-visible {
  background: #38383a;
  transform: translateY(-2px);
}

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

.intro {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 70px;
  padding: 120px 0;
}

.intro-copy {
  max-width: 720px;
}

.intro h2,
.migration h2,
.method h2,
.boundary h2,
.closing h2 {
  margin: 0;
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.14;
}

.intro-copy > p,
.migration-copy > p,
.boundary > p {
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.migration {
  min-height: 540px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.migration-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  overflow: hidden;
  background: #222326;
  color: #fff;
}

.migration-visual::before,
.migration-visual::after {
  content: "";
  position: absolute;
  width: 260px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.migration-visual::before {
  left: -70px;
  top: -65px;
}

.migration-visual::after {
  right: -90px;
  bottom: -70px;
  border-color: rgba(245, 155, 53, 0.45);
}

.migration-visual span {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 700;
}

.migration-visual span:last-child {
  color: #ffc36d;
}

.migration-line {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, var(--coral), var(--amber));
}

.migration-line::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--amber);
  border-right: 1px solid var(--amber);
  transform: translateY(-50%) rotate(45deg);
}

.migration-copy {
  align-self: center;
  padding: 64px;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 38px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(245, 155, 53, 0.15);
}

.tools {
  padding: 130px 0 20px;
}

.tools-head {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 90px;
  align-items: end;
  margin-bottom: 54px;
}

.tools-head h2 {
  margin: 0;
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.14;
}

.tools-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.tool-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tool-card:hover,
.tool-card:focus-visible {
  border-color: rgba(29, 29, 31, 0.3);
  box-shadow: 0 22px 48px rgba(29, 29, 31, 0.09);
  outline: none;
  transform: translateY(-3px);
}

.tool-card-amber {
  border-top-color: var(--amber);
}

.tool-card-blue {
  border-top-color: var(--blue);
}

.tool-card-coral {
  border-top-color: var(--coral);
}

.tool-card-dark {
  border-top-color: var(--ink);
}

.tool-meta,
.tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tool-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.tool-meta span:last-child {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.tool-card h3 {
  margin: 38px 0 12px;
  font-size: 25px;
  line-height: 1.2;
}

.tool-card p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.tool-footer {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.tool-footer strong {
  color: var(--ink);
  font-size: 14px;
}

.method {
  padding: 130px 0;
}

.method-head {
  max-width: 610px;
  margin-bottom: 70px;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.method-list article {
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

.method-list article:nth-child(2) {
  border-color: var(--blue);
}

.method-list article:nth-child(3) {
  border-color: var(--coral);
}

.method-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.method-list h3 {
  min-height: 64px;
  margin: 42px 0 14px;
  font-size: 21px;
  line-height: 1.3;
}

.method-list p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.boundary {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 90px;
  padding: 110px 0;
  border-top: 1px solid var(--line);
}

.boundary > p {
  align-self: end;
  margin: 0;
}

.closing {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 64px 28px;
  border-radius: 8px;
  background: #dedfdc;
  text-align: center;
}

.closing h2 {
  max-width: 650px;
  margin-bottom: 32px;
}

footer {
  width: var(--content);
  min-height: 90px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 12px;
}

footer span:first-child {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 820px) {
  :root {
    --content: min(100% - 32px, 680px);
  }

  .topbar {
    padding: 0 16px;
  }

  nav a:not(.nav-company) {
    display: none;
  }

  .nav-company {
    padding-left: 0;
    border-left: 0;
  }

  .hero {
    min-height: 760px;
    align-items: flex-end;
  }

  .hero-media {
    object-position: 63% center;
  }

  .hero-wash {
    background: linear-gradient(0deg, rgba(248, 247, 244, 1) 0%, rgba(248, 247, 244, 0.96) 32%, rgba(248, 247, 244, 0.2) 68%, rgba(248, 247, 244, 0) 100%);
  }

  .hero-content {
    padding: 0 0 54px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .intro,
  .boundary {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 88px 0;
  }

  .tools-head {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .migration-visual {
    min-height: 270px;
  }

  .migration-copy {
    padding: 42px 28px 48px;
  }

  .tools {
    padding-top: 94px;
  }

  .tools-head {
    margin-bottom: 38px;
  }

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

  .method {
    padding: 94px 0;
  }

  .method-list {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .method-list h3 {
    min-height: 0;
    margin-top: 28px;
  }

  .boundary > p {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 37px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .tool-card {
    min-height: 310px;
    padding: 24px;
  }

  .tool-footer {
    align-items: flex-end;
  }

  .tool-footer > span {
    max-width: 190px;
    overflow-wrap: anywhere;
  }

  .intro h2,
  .migration h2,
  .tools-head h2,
  .method h2,
  .boundary h2,
  .closing h2 {
    font-size: 31px;
  }

  .migration-visual {
    gap: 14px;
  }

  .migration-line {
    width: 52px;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer span:nth-child(2) {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
