@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,600&family=DM+Mono:wght@400;500&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --navy: #0a1b33;
  --navy-soft: #132a4c;
  --text: #263e59;
  --muted: #5a6f86;
  --faint: #7e91a5;
  --purple: #5b3fa6;
  --purple-light: #7c5cd9;
  --teal: #0ea5a3;
  --teal-light: #2dd4c4;
  --blue: #1d4ed8;
  --paper: #f7fafc;
  --white: #ffffff;
  --border: rgba(19, 42, 76, 0.14);
  --glass: rgba(247, 250, 253, 0.68);
  --gradient: linear-gradient(100deg, var(--purple), var(--purple-light) 34%, var(--teal) 70%, var(--teal-light));
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", Inter, system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --shadow: 0 20px 60px -34px rgba(10, 27, 51, 0.42);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: #f4f7fb;
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.68), rgba(245, 249, 252, 0.75)),
    radial-gradient(circle at 15% 15%, rgba(91, 63, 166, 0.13), transparent 34rem),
    radial-gradient(circle at 86% 48%, rgba(14, 165, 163, 0.12), transparent 34rem);
  content: "";
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
ul { padding: 0; margin: 0; list-style: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.background { position: fixed; z-index: -2; inset: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; width: 34rem; height: 34rem; border-radius: 50%; filter: blur(80px); opacity: 0.12; }
.orb-one { top: -12rem; left: -12rem; background: var(--purple); }
.orb-two { right: -14rem; bottom: 0; background: var(--teal); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  transform: translateX(-50%);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 66px;
  padding: 9px 11px 9px 20px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 999px;
  color: #f5f8fb;
  background: rgba(17, 28, 41, 0.86);
  backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.19), 0 24px 60px -24px rgba(10, 27, 51, 0.7);
}

.brand, .footer-brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; white-space: nowrap; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand em, .footer-brand em { opacity: 0.7; font-weight: 500; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 24px; margin-left: auto; }
.nav-links a { font-weight: 600; transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: #83f0e4; }

.menu-button { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); cursor: pointer; }
.menu-button span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 4px auto; background: #fff; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 14px 30px -16px rgba(91, 63, 166, 0.85), inset 0 1px rgba(255, 255, 255, 0.3);
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button:hover, .button:focus-visible { transform: translateY(-2px); filter: saturate(1.1); box-shadow: 0 20px 36px -18px rgba(91, 63, 166, 0.9); }
.button-small { min-height: 46px; padding-inline: 18px; font-size: 0.9rem; }
.button-secondary { color: var(--navy); background: rgba(255, 255, 255, 0.52); border: 1px solid rgba(255, 255, 255, 0.72); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }

.section, .section-narrow { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: 5.5rem; }
.section-narrow { max-width: 900px; }

.hero { padding-top: 170px; padding-bottom: 80px; text-align: center; }
.hero .eyebrow { justify-content: center; }
.hero h1 { max-width: 15ch; margin: 24px auto; color: var(--navy); font-family: var(--serif); font-size: clamp(2.7rem, 7vw, 5.2rem); font-weight: 600; letter-spacing: -0.04em; line-height: 0.96; }
.hero h1 em { color: transparent; background: var(--gradient); background-clip: text; -webkit-background-clip: text; font-weight: 600; }
.hero-copy { max-width: 56ch; margin: 0 auto 36px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); line-height: 1.7; }
.hero .button-row { justify-content: center; }

.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--muted); font-family: var(--mono); font-size: 0.73rem; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; }
.eyebrow::before { width: 24px; height: 3px; border-radius: 2px; background: var(--blue); content: ""; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--border); background: rgba(247, 250, 253, 0.56); backdrop-filter: blur(18px); }
.stat { display: grid; align-content: center; min-height: 150px; padding: 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat strong { color: var(--teal); font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; }
.stat span { margin-top: 10px; color: var(--muted); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; }

.two-column { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.section-title, .two-column h2 { max-width: 24ch; margin-bottom: 2rem; color: var(--navy); font-family: var(--serif); font-size: clamp(2.15rem, 4.5vw, 3.35rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; }
.body-copy p, .section-intro { color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.body-copy p + p { margin-top: 1.4rem; }
.section-intro { max-width: 58ch; margin-bottom: 2.5rem; }

.card-grid { display: grid; gap: 22px; }
.three-column { grid-template-columns: repeat(3, 1fr); }
/* Four pricing tiers: Micro, Starter, Professional, Enterprise. The approved
   Migration Framework defines four, so the grid holds four. */
.four-column { grid-template-columns: repeat(4, 1fr); }
.glass-card { position: relative; padding: 2rem; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.78); border-radius: 22px; background: var(--glass); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.75); backdrop-filter: blur(18px) saturate(1.25); }
.glass-card::after { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.22), transparent 62%); transform: translateX(-100%); content: ""; transition: transform .8s ease; pointer-events: none; }
.glass-card:hover::after { transform: translateX(100%); }
.glass-card h3 { margin-bottom: 0.75rem; color: var(--navy); font-size: 1.25rem; }
.glass-card p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.metric { display: block; margin-bottom: 0.8rem; color: var(--teal); font-family: var(--serif); font-size: 3rem; line-height: 1; }
.step-number { display: block; margin-bottom: 1rem; color: transparent; background: var(--gradient); background-clip: text; -webkit-background-clip: text; font-family: var(--serif); font-size: 3.5rem; line-height: 1; }

.services { border-top: 2px solid var(--navy); }
.service { display: grid; grid-template-columns: 56px minmax(180px, 240px) 1fr; gap: 22px; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--border); transition: padding-left 0.2s ease, background 0.2s ease; }
.service:hover { padding-left: 10px; background: rgba(255,255,255,.25); }
.service-number { color: var(--teal); font-family: var(--mono); font-size: 0.78rem; }
.service h3, .service p { margin: 0; }
.service h3 { color: var(--navy); font-family: var(--serif); font-size: 1.45rem; }
.service p { color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 1.5rem; }
.tag-list span { padding: 6px 14px; border: 1px solid var(--border); border-radius: 99px; color: var(--muted); background: rgba(255,255,255,.35); font-family: var(--mono); font-size: 0.7rem; }

.architecture { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 18px; padding: 2.5rem; }
.architecture article { min-height: 180px; padding: 1.4rem; border: 1px solid var(--border); border-radius: 16px; background: rgba(255, 255, 255, 0.42); text-align: center; }
.architecture article.highlight { border-color: var(--teal); box-shadow: 0 20px 50px -30px rgba(14, 165, 163, 0.7); }
.architecture article > span { color: var(--faint); font-family: var(--mono); font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; }
.architecture h3 { margin: .6rem 0; font-family: var(--serif); font-size: 1.35rem; }
.architecture p { font-size: .9rem; }
.connector { color: var(--teal); font-size: 2rem; }

.tracks .glass-card { display: flex; flex-direction: column; }
.tracks .featured { border-color: var(--teal); box-shadow: 0 22px 60px -30px rgba(14,165,163,.55); }
.popular { align-self: flex-start; margin-bottom: 1rem; padding: 5px 12px; border-radius: 99px; color: #fff; background: var(--gradient); font-family: var(--mono); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.track-name { margin-bottom: .65rem !important; color: var(--teal) !important; font-family: var(--mono); font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; }
.tracks ul { display: grid; gap: .7rem; margin: 1rem 0 1.7rem; color: var(--muted); }
.tracks li { display: flex; gap: .6rem; }
.tracks li::before { color: var(--teal); content: "—"; }
.tracks .button { margin-top: auto; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding: clamp(2rem, 5vw, 3.5rem); background: radial-gradient(circle at 90% 0%, rgba(14,165,163,.13), transparent 35rem), var(--glass); }
.cta > div:first-child { max-width: 620px; }
.cta h2 { margin-bottom: .8rem; color: var(--navy); font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; }
.cta p:last-child { color: var(--muted); }

.site-footer { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 4rem 0 2rem; border-top: 1px solid var(--border); color: var(--muted); }
.site-footer > div { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; }
.site-footer strong { margin-bottom: .2rem; color: var(--navy); }
.site-footer a:not(.footer-brand):hover { color: var(--teal); }
.footer-brand { color: var(--navy); }
.site-footer p { max-width: 34ch; line-height: 1.6; }
.copyright { grid-column: 1 / -1; margin-top: 1rem; padding-top: 1.3rem; border-top: 1px solid var(--border); font-family: var(--mono); font-size: .7rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .nav-links { position: absolute; top: 76px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 24px; background: rgba(17,28,41,.96); box-shadow: 0 26px 50px rgba(10,27,51,.35); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .menu-button { display: block; margin-left: auto; }
  .nav-shell > .button { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
  .stat:nth-child(4) { border-top: 1px solid var(--border); }
  .two-column { grid-template-columns: 1fr; gap: 2.5rem; }
  .three-column { grid-template-columns: 1fr; }
  .four-column { grid-template-columns: 1fr; }
  .architecture { grid-template-columns: 1fr; }
  .connector { transform: rotate(90deg); justify-self: center; }
  .cta { align-items: flex-start; flex-direction: column; }
  .site-footer { grid-template-columns: repeat(2, 1fr); }
}

/* Four tiers are too tight below ~1140px but the page does not collapse to a
   single column until 920px, so this fills the gap with a 2x2. The lower bound
   is 921px on purpose: at 920px and below the rule above already stacks
   everything, and overlapping the two ranges would let this one win there. */
@media (min-width: 921px) and (max-width: 1140px) {
  .four-column { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .site-header { top: 10px; width: calc(100% - 20px); }
  .nav-shell { min-height: 58px; padding-left: 12px; }
  .brand img { width: 34px; height: 34px; }
  .brand { font-size: 1.15rem; }
  .section, .section-narrow, .site-footer { width: calc(100% - 32px); }
  .section { padding-block: 4rem; }
  .hero { padding-top: 135px; padding-bottom: 56px; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border); }
  .service { grid-template-columns: 42px 1fr; gap: 12px; }
  .service p { grid-column: 2; }
  .glass-card { padding: 1.5rem; }
  .architecture { padding: 1.4rem; }
  .site-footer { grid-template-columns: 1fr; }
}

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