:root {
  color-scheme: light;
  --bg: #F8FAFC;
  --bg-alt: #EBEEF1;
  --surface: #FFFFFF;
  --border: #D5DAE0;
  --text: #101720;
  --text-muted: #55606C;
  --accent: #284D52;
  --accent-soft: #4C7A80;
  --on-accent: #F8FAFC;
  --shadow: 0 8px 24px rgba(16, 23, 32, .10);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(248, 250, 252, .85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
header.scrolled { border-bottom-color: var(--border); }
header .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 72px; gap: 16px;
}
header .brand { justify-self: start; }
.header-nav { display: flex; align-items: center; gap: 4px; }
header .header-cta { justify-self: end; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }

.btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: opacity .15s;
}
.btn:hover { opacity: .88; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }

/* Phone menu (hidden on wider screens). */
.menu-toggle, .mobile-menu { display: none; }

.dropdown.small { position: relative; }
.menu-small {
  display: none; position: absolute; top: calc(100% + 20px); left: 50%;
  transform: translateX(-50%); z-index: 30; width: 340px; padding: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow);
}
.dropdown.open .menu-small { display: block; }
.menu-small .mega-item { margin: 0; padding: 12px 14px; }
.menu-small.compact { width: 240px; }
.dropdown > button {
  display: flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 10px 14px; border-radius: 8px;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--text); cursor: pointer;
}
.dropdown > button:hover, .dropdown.open > button { background: var(--bg-alt); }
.dropdown > button svg { transition: transform .15s; }
.dropdown.open > button svg { transform: rotate(180deg); }

.mega {
  display: none; position: absolute; top: calc(100% + 4px); left: 50%;
  transform: translateX(-50%); z-index: 30;
  width: min(920px, calc(100vw - 32px));
  grid-template-columns: 1fr 1fr 1.3fr;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden;
}
.dropdown.open .mega { display: grid; }
.mega > div { padding: 28px; }
.mega > div + div { border-left: 1px solid var(--border); }
.mega-intro h3 { font-size: 22px; letter-spacing: -0.015em; margin-bottom: 10px; }
.mega-intro p { color: var(--text-muted); font-size: 15px; }
.mega-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mega-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-radius: 8px; font-size: 15px; font-weight: 500; text-decoration: none;
}
.mega-list a svg { opacity: 0; transition: opacity .15s, transform .15s; }
.mega-list a.active { background: var(--bg-alt); color: var(--accent); }
.mega-list a.active svg { opacity: 1; transform: translateX(2px); }
.mega-list a:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: -2px; }
.mega-detail .eyebrow { font-size: 12px; margin-bottom: 16px; }
.mega.mega-industries { grid-template-columns: 1fr 2.3fr; }
.industry-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 4px 24px; align-content: start; }
.industry-grid .mega-item { margin: 0; padding: 12px 14px; }
.mega-panel { display: none; }
.mega-panel.active { display: block; }
.mega-item { display: block; padding: 10px 12px; margin: 0 -12px; border-radius: 8px; text-decoration: none; }
.mega-item:hover, .mega-item:focus-visible { background: var(--bg-alt); outline: none; }
.mega-item strong { display: block; font-size: 15px; font-weight: 600; }
.mega-item span { display: block; color: var(--text-muted); font-size: 14px; line-height: 1.5; margin-top: 2px; }
@media (max-width: 760px) {
  .mega { grid-template-columns: 1fr; max-height: calc(100vh - 88px); overflow-y: auto; }
  .mega-intro { display: none; }
  .mega > div { padding: 16px; }
  .mega > div + div { border-left: 0; border-top: 1px solid var(--border); }
}

.hero { padding: 96px 0 88px; }
.eyebrow {
  font-size: 15px; font-weight: 600; letter-spacing: .08em;
  color: var(--accent-soft); text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 54px); line-height: 1.08;
  letter-spacing: -0.025em; font-weight: 700; max-width: 20ch;
}
.hero p {
  font-size: clamp(16px, 1.8vw, 18px); color: var(--text-muted);
  max-width: 58ch; margin: 24px 0 36px;
}
.hero h1 u { text-decoration-thickness: .08em; text-underline-offset: .12em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Home: hero + "Works with" strip fill the first screen (header is 72px + 1px border). */
.fold { display: flex; flex-direction: column; }
.fold { min-height: calc(100svh - 73px); }
.fold .hero { flex: 1; display: flex; align-items: center; padding: 56px 0; }
.fold .hero .wrap { width: 100%; }

.sources {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-alt); padding: 22px 0;
}
.sources .wrap {
  display: flex; flex-wrap: wrap; gap: 10px 19px; align-items: center;
  font-size: 14px; color: var(--text-muted);
}
.sources strong { color: var(--text); font-weight: 500; }
.sources span { display: inline-flex; align-items: center; gap: 7px; }
.sources img { height: 20px; width: auto; }
.sources img.wordmark { height: 18px; }
.sources .wordmark:not(img) { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.sources .wordmark.infor { font-size: 18px; letter-spacing: -0.03em; }
.sources .more { color: var(--accent); font-weight: 500; text-decoration: none; }
.sources .more:hover { text-decoration: underline; }

section.block { padding: 88px 0 0; }
.block h2 { font-size: 28px; line-height: 1.25; letter-spacing: -0.015em; margin-bottom: 12px; }
.block .lede { color: var(--text-muted); max-width: 60ch; margin-bottom: 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; scroll-margin-top: 96px;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 15px; }
.card .tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-soft); margin-bottom: 12px;
}
.card:target { border-color: var(--accent-soft); }

.hero.sub { padding: 80px 0 0; }
.hero.with-image .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero.with-image h1 { font-size: clamp(32px, 4.6vw, 48px); }
.hero-image {
  width: 100%; height: auto; max-height: 560px; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 16px; display: block;
}
.hero.with-image .wrap:has(.landscape) { grid-template-columns: 1fr 1fr; }
.hero-image.landscape { aspect-ratio: 4 / 3; }
.stack { display: grid; gap: 16px; }
.reg { padding: 32px; }
.reg h3 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 24px; }
.reg-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.reg-cols > div + div { border-left: 1px solid var(--border); padding-left: 40px; }
.reg .label {
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}
.reg ul { padding-left: 18px; color: var(--text-muted); font-size: 15px; }
.reg li + li { margin-top: 8px; }
.reg li::marker { color: var(--accent-soft); }
.reg .cite { color: var(--accent-soft); font-size: 13px; white-space: nowrap; }
.reg a.cite { text-decoration: underline; text-decoration-color: rgba(76, 122, 128, .35); text-underline-offset: 2px; }
.reg a.cite:hover { color: var(--accent); text-decoration-color: currentColor; }

.cta { padding: 88px 0 96px; }
.cta .box {
  background: var(--accent); color: var(--on-accent);
  border-radius: 16px; padding: 48px 40px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.cta h2 { font-size: 26px; letter-spacing: -0.01em; }
.cta p { opacity: .8; margin-top: 4px; }
.cta .btn { background: var(--on-accent); color: #284D52; }

footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--text-muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

html:has(dialog[open]) { overflow: hidden; }
dialog.demo {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  margin: auto; padding: 0; border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
dialog.demo::backdrop { background: rgba(16, 23, 32, .45); backdrop-filter: blur(2px); }
.demo-inner { padding: 32px; position: relative; }
.demo-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  display: grid; place-items: center; border: 0; border-radius: 8px;
  background: none; color: var(--text-muted); cursor: pointer;
}
.demo-close:hover { background: var(--bg-alt); color: var(--text); }
.demo h2 { font-size: 24px; letter-spacing: -0.015em; margin-bottom: 6px; }
.demo .sub { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }
.demo form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field label .opt { color: var(--text-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--text);
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); width: 100%; min-height: 46px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-soft); box-shadow: 0 0 0 3px rgba(76, 122, 128, .18);
}
.demo .hp { position: absolute; left: -9999px; }
.demo button[type="submit"] { grid-column: 1 / -1; border: 0; cursor: pointer; font: inherit; font-weight: 500; padding: 12px 18px; }
.demo button[type="submit"]:disabled { opacity: .6; cursor: progress; }
.demo-error { grid-column: 1 / -1; color: #A33A31; font-size: 14px; }
.demo-error:empty { display: none; }
.demo-done { text-align: center; padding: 16px 0 8px; }
.demo-done svg { color: var(--accent); margin-bottom: 12px; }

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 64px 0 56px; }
  .grid.two { grid-template-columns: 1fr; }
  .hero.sub { padding: 56px 0 0; }
  .reg { padding: 24px; }
  .reg h3 { margin-bottom: 20px; }
  .reg-cols { grid-template-columns: 1fr; gap: 20px; }
  .reg-cols > div + div { border-left: 0; padding-left: 0; padding-top: 20px; border-top: 1px solid var(--border); }
  .demo-inner { padding: 24px; }
  .demo form { grid-template-columns: 1fr; }
}

/* Phones and small tablets: Apple-style slim header with a full-screen menu,
   and centered hero copy. */
@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
  .card { scroll-margin-top: 80px; }
  html.menu-locked { overflow: hidden; }

  header .wrap { grid-template-columns: 1fr auto auto; height: 56px; gap: 4px; }
  .header-nav { display: none; }
  header .header-cta { padding: 7px 14px; font-size: 14px; margin-right: 4px; }
  header.menu-open { background: var(--bg); border-bottom-color: var(--border); }
  header.menu-open .header-cta { visibility: hidden; }

  .menu-toggle {
    display: grid; place-content: center; gap: 7px; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; color: var(--text);
  }
  .menu-toggle span { display: block; width: 18px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .25s ease; }
  header.menu-open .menu-toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
  header.menu-open .menu-toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  .mobile-menu {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100dvh - 56px); overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg); padding: 8px 0 48px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
  }
  header.menu-open .mobile-menu { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
  header .mobile-menu .wrap { display: block; height: auto; }
  .mobile-group { padding: 20px 0 8px; }
  .mobile-group .label {
    font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 6px;
  }
  .mobile-group a {
    display: block; padding: 8px 0; font-size: 19px; font-weight: 600;
    letter-spacing: -0.01em; line-height: 1.3; text-decoration: none;
  }
  .mobile-group a:active { color: var(--accent); }

  .fold { min-height: calc(100svh - 56px); }
  .hero .wrap, .hero.with-image .wrap > div { text-align: center; }
  .hero h1, .hero p { margin-left: auto; margin-right: auto; }
  .hero h1 { font-size: clamp(34px, 9.6vw, 44px); }
  .hero.with-image h1 { font-size: clamp(30px, 8.4vw, 40px); }
  .eyebrow { font-size: 13px; margin-bottom: 14px; }
  .hero p { font-size: 16px; margin: 18px auto 28px; max-width: 46ch; }
  .actions { justify-content: center; }
  .hero.with-image .wrap, .hero.with-image .wrap:has(.landscape) { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { aspect-ratio: 4 / 3; max-height: none; }

  .sources { padding: 20px 0 22px; }
  .sources .wrap { justify-content: center; gap: 12px 20px; }
  .sources strong { flex-basis: 100%; text-align: center; font-size: 13px; color: var(--text-muted); }
  .sources .more { flex-basis: 100%; text-align: center; }

  section.block { padding-top: 72px; }
  .block h2 { font-size: 26px; text-align: center; }
  .block .lede { text-align: center; margin-left: auto; margin-right: auto; margin-bottom: 32px; }
  .cta { padding: 72px 0; }
  .cta .box { flex-direction: column; text-align: center; justify-content: center; padding: 40px 24px; }
}
