/* Homepage-only blue design system. Source wording stays in home.html/home-source.json. */
.landing {
  --home-bg: #fbfcff;
  --home-soft: #edf3fb;
  --home-card: #ffffff;
  --home-text: #172a46;
  --home-muted: #52657e;
  --home-line: #d7e2ef;
  --home-accent: #174ea6;
  --home-accent-hover: #103a7c;
  --home-tint: #e2edff;
  --home-shadow: 0 8px 32px rgb(23 42 70 / 6%);
  --home-radius: 16px;
  --home-control: 48px;
  --home-transition: 180ms ease;
  background: var(--home-bg);
  color: var(--home-text);
}
.dark .landing {
  --home-bg: #0e192b;
  --home-soft: #15253e;
  --home-card: #172a45;
  --home-text: #eff5ff;
  --home-muted: #b5c7df;
  --home-line: #354e70;
  --home-accent: #9ac5ff;
  --home-accent-hover: #c5ddff;
  --home-tint: #213d65;
  --home-shadow: 0 8px 32px rgb(0 0 0 / 12%);
}
.landing a { color: var(--home-accent); }
.landing a:hover { color: var(--home-accent-hover); }
.landing :focus-visible { outline: 3px solid var(--home-accent); outline-offset: 5px; }
.landing .container { max-width: 1200px; padding-inline: 32px; }
.landing .site-header { background: var(--home-bg); color: var(--home-text); border-bottom: 1px solid var(--home-line); padding: 16px max(32px, calc((100vw - 1136px) / 2)); gap: 24px; }
.landing .wordmark { font-size: 36px; letter-spacing: -.04em; color: var(--home-text); }
.landing .site-header nav { gap: 20px; }
.landing .site-header nav a { color: var(--home-muted); font-size: 14px; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.landing .site-header nav a:hover, .landing .site-header nav a[aria-current] { color: var(--home-accent); text-decoration: underline; }
.landing .site-header button { border-color: var(--home-line); color: var(--home-text); border-radius: 8px; min-height: var(--home-control); font-size: 14px; }
.landing .skip-link { background: var(--home-card); }
.landing h1, .landing h2, .landing h3, .landing p { margin-top: 0; }
.landing h2 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -.03em; font-weight: 800; margin-bottom: 24px; }
.landing h3 { font-size: 20px; letter-spacing: -.02em; }
.landing .home-hero { min-height: auto; background: var(--home-bg); color: var(--home-text); text-align: left; border-bottom: 1px solid var(--home-line); }
.landing .home-hero .hero-layout { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 64px; max-width: 1200px; padding-block: 64px; }
.landing .eyebrow { color: var(--home-accent); font-size: 12px; letter-spacing: .1em; font-weight: 800; margin-bottom: 24px; }
.landing .home-hero .hero-copy h1 { font-family: 'Nunito Sans', system-ui, sans-serif; font-size: clamp(40px, 4vw, 56px); line-height: 1.12; font-weight: 800; letter-spacing: -.045em; margin-bottom: 24px; }
.landing .hero-copy > p:not(.eyebrow) { color: var(--home-muted); font-size: 18px; line-height: 1.75; margin-bottom: 32px; }
.landing .actions { gap: 16px; }
.landing .button { min-height: var(--home-control); border-radius: 8px; padding: 12px 20px; background: var(--home-accent); color: var(--home-bg); border: 1px solid var(--home-accent); font-size: 14px; font-weight: 800; transition: background var(--home-transition), box-shadow var(--home-transition); }
.landing .button:hover { background: var(--home-accent-hover); color: var(--home-bg); box-shadow: var(--home-shadow); }
.landing .button.secondary { color: var(--home-text); background: var(--home-card); border-color: var(--home-line); }
.landing .button.secondary:hover { background: var(--home-tint); }
.landing .scroll-link { display: inline-flex; align-items: center; justify-content: center; width: var(--home-control); height: var(--home-control); grid-column: 1 / -1; justify-self: center; border: 1px solid var(--home-line); border-radius: 50%; text-decoration: none; }
.landing .hero-aside { padding: 16px; background: var(--home-soft); border: 1px solid var(--home-line); border-radius: 24px; box-shadow: var(--home-shadow); }
.landing .hero-image { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.landing .hero-facts { padding: 24px 8px 8px; display: grid; gap: 16px; }
.landing .hero-facts > div { display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--home-line); padding-bottom: 16px; }
.landing .hero-facts > div:last-child { border: 0; padding-bottom: 0; }
.landing .hero-facts p { margin: 0; font-size: 13px; color: var(--home-muted); }
.landing .hero-facts strong { color: var(--home-text); }
.landing .home-sections { padding-block: 0; }
.landing .home-section { padding-block: 64px; border-bottom: 1px solid var(--home-line); scroll-margin-top: 100px; }
.landing .home-section:last-child { border-bottom: 0; }
.landing .home-section-heading { display: flex; gap: 24px; align-items: start; margin-bottom: 32px; }
.landing .home-section-heading > span { font-size: 13px; font-weight: 800; color: var(--home-accent); background: var(--home-tint); flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; }
.landing .home-section-heading h2 { margin: 0; max-width: 760px; }
.landing .home-card-grid { gap: 24px; }
.landing #engineer-institution-services .home-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.landing .home-card-grid .card { display: flex; flex-direction: column; padding: 0; border-color: var(--home-line); background: var(--home-card); border-radius: var(--home-radius); box-shadow: var(--home-shadow); overflow: hidden; }
.landing .home-card-image { background: var(--home-soft); padding: 16px; }
.landing .home-card-image img { display: block; width: 100%; height: 200px; object-fit: contain; }
.landing .home-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.landing .home-card-body h3 { margin-bottom: 16px; }
.landing .home-card-body p { font-size: 14px; color: var(--home-muted); line-height: 1.8; margin-bottom: 0; }
.landing .home-card-body a { font-size: 14px; font-weight: 800; min-height: var(--home-control); display: inline-flex; align-items: center; margin-top: 16px; align-self: start; }
.landing .courses-section .home-card-image { padding: 32px; }
.landing .courses-section .home-card-image img { height: 120px; }
.dark .landing [data-course='Docker'] .home-card-image img { background: var(--home-logo-bg, #ffffff); border-radius: 12px; padding: 8px; }
.landing .courses-section .home-card-body a { margin-top: auto; padding-top: 16px; }
.landing .home-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.landing .home-story { border-color: var(--home-line); background: var(--home-soft); border-radius: var(--home-radius); padding: 32px; box-shadow: none; display: flex; flex-direction: column; }
.landing .quote-mark { font-size: 48px; color: var(--home-accent); line-height: 1; }
.landing .home-story blockquote { margin: 8px 0 24px; font-size: 16px; line-height: 1.8; }
.landing .home-story figcaption { margin-top: auto; border-top: 1px solid var(--home-line); padding-top: 16px; font-size: 13px; color: var(--home-muted); }
.landing .home-story cite { font-style: normal; }
.landing .home-story cite:first-child { font-weight: 800; color: var(--home-text); }
.landing .site-footer { margin-top: 0; background: var(--home-soft); color: var(--home-text); border-top: 1px solid var(--home-line); }
.landing .site-footer .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 48px; }
.landing .site-footer h2 { font: 800 14px 'Nunito Sans', system-ui, sans-serif; margin: 24px 0 16px; }
.landing .site-footer h2:first-child { margin-top: 0; }
.landing .site-footer a { color: var(--home-muted); font-size: 13px; overflow-wrap: anywhere; min-height: 44px; display: flex; align-items: center; }
.landing .site-footer a:hover { color: var(--home-accent); }
.landing .site-footer > p { border-color: var(--home-line); font-size: 12px; color: var(--home-muted); }
html:not(.js) .landing .site-header button { display: none; }
html:not(.js) .landing .site-header { position: static; }
@media (max-width: 1050px) {
  .landing .home-hero .hero-layout { gap: 32px; }
  .landing .site-header { flex-wrap: nowrap; gap: 16px; }
  .landing .site-header nav { gap: 12px; }
  .landing .home-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .landing .home-hero .hero-layout { grid-template-columns: 1fr; padding-block: 48px; gap: 40px; }
  .landing .hero-copy { max-width: 640px; }
  .landing .hero-aside { width: 100%; }
  .landing .site-header { flex-wrap: wrap; }
  .landing [data-menu] { display: block; margin-left: auto; }
  .landing .site-header nav { order: 4; flex-basis: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .js .landing .site-header nav:not(.open) { display: none; }
  .landing .home-section { padding-block: 48px; }
  .landing .site-footer .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .landing .container { padding-inline: 24px; }
  .landing .site-header { padding: 12px 24px; gap: 12px; }
  .landing .site-header nav { grid-template-columns: repeat(2, 1fr); }
  .landing .wordmark { font-size: 32px; }
  .landing .site-header button { padding-inline: 12px; }
  .landing .home-hero .hero-copy h1 { font-size: 40px; }
  .landing .hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .landing .actions { flex-direction: column; align-items: stretch; }
  .landing .hero-facts > div { flex-direction: column; gap: 4px; }
  .landing .home-card-grid, .landing .home-stories { grid-template-columns: 1fr; }
  .landing #engineer-institution-services .home-card-grid { grid-template-columns: 1fr; }
  .landing .services-section .home-card-image { padding: 8px; }
  .landing .services-section .home-card-image img { height: 176px; }
  .landing .home-section-heading { gap: 16px; }
  .landing .home-story { padding: 24px; }
  .landing .site-footer .grid { gap: 32px 16px; }
}
