/* MEI Bureau Cloud - client presentation */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap");

:root {
  --ink: #0c1624;
  --ink-soft: #243044;
  --muted: #5a6b7d;
  --line: #d5dde8;
  --paper: #f4f6f9;
  --white: #ffffff;
  --steel: #0e6b7a;
  --steel-deep: #094a54;
  --steel-soft: #e6f3f5;
  --amber: #c27803;
  --amber-soft: #fff4dc;
  --coral: #c24a3a;
  --ok: #1a7a4c;
  --shadow: 0 18px 50px rgba(12, 22, 36, 0.08);
  --radius: 18px;
  --nav-h: 72px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(14, 107, 122, 0.12), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(194, 120, 3, 0.08), transparent 50%),
    linear-gradient(180deg, #eef2f6 0%, var(--paper) 40%, #e9eef4 100%);
  line-height: 1.55;
  min-height: 100vh;
}

img {
  max-width: 100%;
}

a {
  color: var(--steel-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--steel);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--white);
  padding: 8px 12px;
}

/*  Nav  */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(244, 246, 249, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(213, 221, 232, 0.9);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--steel) 0%, var(--steel-deep) 100%);
  display: grid;
  place-items: center;
  color: white;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(14, 107, 122, 0.35);
}

.brand span {
  display: block;
  font-size: 15px;
  line-height: 1.15;
}

.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--steel-soft);
  color: var(--steel-deep);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
  flex-shrink: 0;
}

.lang-switch button {
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 11px;
  cursor: pointer;
  color: var(--muted);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--steel);
  color: white;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/*  Layout  */
.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: clamp(48px, 8vw, 96px) 0;
}

.section-tight {
  padding: clamp(32px, 5vw, 56px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--steel);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  font-weight: 750;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.lede {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0;
}

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

.stack-sm > * + * {
  margin-top: 12px;
}

.stack-md > * + * {
  margin-top: 20px;
}

.stack-lg > * + * {
  margin-top: 32px;
}

/*  Hero  */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: center;
  padding: clamp(40px, 8vw, 80px) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% -10% auto auto;
  width: min(520px, 55vw);
  height: min(520px, 55vw);
  border-radius: 40% 60% 55% 45%;
  background:
    linear-gradient(135deg, rgba(14, 107, 122, 0.18), rgba(194, 120, 3, 0.12)),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 14px,
      rgba(12, 22, 36, 0.03) 14px,
      rgba(12, 22, 36, 0.03) 15px
    );
  animation: floatBlob 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-18px, 22px) rotate(4deg);
  }
}

.hero-grid {
  display: grid;
  gap: 36px;
  position: relative;
}

.hero h1 .accent {
  color: var(--steel);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--steel) 0%, var(--steel-deep) 100%);
  color: white;
  box-shadow: 0 12px 28px rgba(14, 107, 122, 0.28);
}

.btn-primary:hover {
  color: white;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--ink);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--steel);
}

/*  Panels / cards  */
.panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(213, 221, 232, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 32px);
}

.panel-ink {
  background: linear-gradient(160deg, #0c1624 0%, #163047 100%);
  color: #e8eef5;
  border: none;
}

.panel-ink .muted,
.panel-ink .lede {
  color: rgba(232, 238, 245, 0.72);
}

.panel-ink a {
  color: #7ed4e0;
}

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

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

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

@media (max-width: 900px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
  }

  .nav-links.open {
    display: flex;
  }
}

.stat {
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--steel-soft);
  border: 1px solid rgba(14, 107, 122, 0.12);
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
  color: var(--steel-deep);
}

.stat span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--amber-soft);
  color: #8a5600;
}

.chip-teal {
  background: var(--steel-soft);
  color: var(--steel-deep);
}

.chip-ok {
  background: #e4f6ec;
  color: var(--ok);
}

.chip-warn {
  background: #fdecea;
  color: var(--coral);
}

/*  Compare  */
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}

.compare-arrow {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--steel);
  font-size: 1.4rem;
}

@media (max-width: 800px) {
  .compare {
    grid-template-columns: 1fr;
  }

  .compare-arrow {
    transform: rotate(90deg);
  }
}

.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-clean li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.list-clean li:last-child {
  border-bottom: none;
}

.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--steel);
  opacity: 0.85;
}

.list-clean.bad li::before {
  background: var(--coral);
}

.list-clean.good li::before {
  background: var(--ok);
}

/*  Timeline / steps  */
.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--steel);
  letter-spacing: -0.04em;
}

.step h3 {
  margin-bottom: 4px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.flow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.flow-pill {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.flow-pill.accent {
  background: var(--steel);
  color: white;
  border-color: transparent;
}

.flow-join {
  color: var(--muted);
  font-weight: 700;
}

/*  Tables  */
.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

th {
  background: #eef3f7;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(14, 107, 122, 0.03);
}

/*  Architecture  */
.arch-layers {
  display: grid;
  gap: 12px;
}

.layer {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--white);
}

.layer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}

.layer-head h3 {
  margin: 0;
}

.layer code,
code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.86em;
  background: #eef2f6;
  padding: 2px 6px;
  border-radius: 6px;
}

.panel-ink code {
  background: rgba(255, 255, 255, 0.1);
  color: #b7ecf3;
}

.pr-card {
  border-left: 4px solid var(--steel);
  padding-left: 16px;
}

.pr-card .pr-id {
  font-weight: 800;
  color: var(--steel);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.toc {
  display: grid;
  gap: 8px;
}

.toc a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}

.toc a:hover {
  border-color: var(--steel);
  background: var(--steel-soft);
}

.toc a span {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}

/*  Presenter  */
.presenter-bar {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 60;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(12, 22, 36, 0.9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.presenter-bar button {
  border: none;
  background: transparent;
  color: white;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.presenter-bar button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.section.present-focus {
  outline: 2px solid rgba(14, 107, 122, 0.35);
  outline-offset: 8px;
  border-radius: 12px;
}

footer.site-footer {
  padding: 40px 0 80px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.callout {
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--amber-soft);
  border: 1px solid rgba(194, 120, 3, 0.25);
  font-size: 14px;
}

.callout strong {
  color: #8a5600;
}

.two-col-text {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 860px) {
  .two-col-text {
    grid-template-columns: 1fr;
  }
}

.kbd {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 6px;
  background: var(--white);
}
