/* ==========================================================================
   UseGrid — main stylesheet
   Brand blue from logo (#0080C8) + deep steel blue from the original hero.
   ========================================================================== */

:root {
  --brand-50: #eaf5fc;
  --brand-100: #cfe8f7;
  --brand-300: #6dbde8;
  --brand-400: #2ea3dd;
  --brand: #0080c8;
  --brand-600: #006aa8;
  --brand-700: #0b5389;
  --navy-700: #16416f;
  --navy-800: #0f2d52;
  --navy-900: #0a1f3c;
  --navy-950: #061429;
  --signal: #2fd3a5;
  --signal-soft: #9ff0d6;

  --ink: #0e1b2c;
  --text: #33445a;
  --muted: #62748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f4f8fb;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(14, 27, 44, 0.06);
  --shadow: 0 1px 2px rgba(14, 27, 44, 0.05), 0 8px 24px -8px rgba(14, 27, 44, 0.12);
  --shadow-lg: 0 24px 60px -20px rgba(6, 20, 41, 0.45);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1200px;
  --header-h: 68px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; border-radius: 4px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.7em 1.25em; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover .icon { transform: translateX(2px); }
.btn-sm { padding: 0.5em 1em; font-size: 14px; }
.btn-lg { padding: 0.85em 1.6em; font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -6px rgba(0, 128, 200, 0.6); }
.btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--brand-50); color: var(--navy-900); transform: translateY(-1px); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.35); color: #fff; background: rgba(255, 255, 255, 0.04); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, 0.94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: 0.04em; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-sub { color: rgba(255, 255, 255, 0.55); }

.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: 999px; border: 0; background: none;
  color: var(--text); font-size: 15px; font-weight: 500;
}
.nav-link:hover, .nav-link.is-active { color: var(--brand); background: var(--brand-50); }
.nav-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.nav-cta { margin-left: 8px; }

.dropdown {
  list-style: none; position: absolute; top: calc(100% + 10px); left: 50%; min-width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 8px; opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto 0; height: 12px; }
.dropdown-link { display: block; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text); font-size: 15px; }
.dropdown-link:hover, .dropdown-link.is-active { background: var(--brand-50); color: var(--brand-700); }

@media (min-width: 961px) {
  .has-menu:hover .dropdown,
  .has-menu:focus-within .dropdown,
  .has-menu.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-menu:hover .nav-link .icon, .has-menu.is-open .nav-link .icon { transform: rotate(180deg); }
}

.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff; color: var(--ink);
  width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center;
}
.nav-toggle-close { display: none; }
.nav-open .nav-toggle-open { display: none; }
.nav-open .nav-toggle-close { display: inline-flex; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px 16px 20px; display: none;
  }
  .nav-open .site-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { width: 100%; justify-content: space-between; border-radius: var(--radius-sm); padding: 12px; font-size: 16px; }
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0;
    padding: 0 0 4px 12px; display: none; min-width: 0;
  }
  .has-menu.is-open .dropdown { display: block; }
  .has-menu.is-open .nav-link .icon { transform: rotate(180deg); }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Home hero ---------- */
.home-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(46, 163, 221, 0.28), transparent 60%),
    linear-gradient(120deg, rgba(10, 31, 60, 0.96) 0%, rgba(11, 83, 137, 0.88) 100%),
    url(../images/services-hero.jpg) center / cover no-repeat;
  margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h);
}
.home-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.is-home .site-header:not(.is-scrolled):not(.nav-open) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.is-home .site-header:not(.is-scrolled):not(.nav-open) .brand,
.is-home .site-header:not(.is-scrolled):not(.nav-open) .nav-link { color: #fff; }
.is-home .site-header:not(.is-scrolled):not(.nav-open) .brand-sub { color: rgba(255, 255, 255, 0.6); }
.is-home .site-header:not(.is-scrolled):not(.nav-open) .nav-link:hover,
.is-home .site-header:not(.is-scrolled):not(.nav-open) .nav-link.is-active { background: rgba(255, 255, 255, 0.12); color: #fff; }
.is-home .site-header:not(.is-scrolled):not(.nav-open) .nav-toggle { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }

.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding-top: 96px; padding-bottom: 112px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px; letter-spacing: 0.08em; color: var(--brand-100); margin-bottom: 24px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(47, 211, 165, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(47, 211, 165, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 211, 165, 0); } }
.hero-title { color: #fff; font-size: clamp(34px, 5vw, 56px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 24px; }
.text-gradient {
  background: linear-gradient(90deg, #7fd0ff 0%, #bfe7ff 45%, var(--signal-soft) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 17px; color: rgba(255, 255, 255, 0.78); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.terminal {
  border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(6, 20, 41, 0.82); border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.terminal-bar em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 12px; color: rgba(255, 255, 255, 0.4); }
.terminal-body { margin: 0; padding: 20px 22px 24px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.85; color: #d7e6f5; overflow-x: auto; white-space: pre; }
.terminal-body code { font-family: inherit; }
.t-line { opacity: 0; animation: t-in .35s ease forwards; }
.t-line:nth-child(1) { animation-delay: .2s; } .t-line:nth-child(2) { animation-delay: .6s; }
.t-line:nth-child(3) { animation-delay: 1.1s; } .t-line:nth-child(4) { animation-delay: 1.7s; }
.t-line:nth-child(5) { animation-delay: 2.1s; } .t-line:nth-child(6) { animation-delay: 2.4s; }
.t-line:nth-child(7) { animation-delay: 3.0s; } .t-line:nth-child(8) { animation-delay: 3.5s; }
.t-line:nth-child(9) { animation-delay: 3.9s; }
@keyframes t-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.t-prompt { color: var(--brand-300); margin-right: 6px; }
.t-ok { color: var(--signal); }
.t-dim { color: rgba(215, 230, 245, 0.45); }
.t-ai { color: #bfe7ff; }
.t-bar { display: inline-block; vertical-align: middle; width: 120px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); margin: 0 6px; overflow: hidden; }
.t-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-400), var(--signal)); }
.t-cursor { display: inline-block; width: 8px; height: 16px; margin-left: 4px; vertical-align: -3px; background: var(--brand-300); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(46, 163, 221, 0.3), transparent 65%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--brand-700) 100%);
  padding: 56px 0 64px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 90%);
  mask-image: linear-gradient(90deg, transparent 20%, #000 90%);
}
.page-hero .container { position: relative; }
.page-hero-full { min-height: 60vh; display: flex; align-items: center; }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.55); margin-bottom: 28px; }
.breadcrumb a { color: rgba(255, 255, 255, 0.75); }
.breadcrumb a:hover { color: #fff; }
.page-title { color: #fff; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.02em; margin-bottom: 12px; }
.page-summary { font-size: 20px; color: var(--brand-100); margin-bottom: 16px; }
.page-lead { max-width: 760px; color: rgba(255, 255, 255, 0.75); font-size: 16.5px; margin-bottom: 24px; }
.page-lead p { margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 40px 0; }
.section + .section-tight, .section-tight + .section { padding-top: 40px; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); color: rgba(255, 255, 255, 0.8); }
.section-dark h2 { color: #fff; }
.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); }
.section-head p:last-child { color: var(--muted); font-size: 17px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 12px;
}
.page-hero .eyebrow, .eyebrow-light { color: var(--brand-300); }
.muted-light { color: rgba(255, 255, 255, 0.7); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.split-center { align-items: center; }
.split h2 { font-size: clamp(24px, 2.6vw, 32px); }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  color: var(--text);
}
.card p { margin-bottom: 0; }
.card-muted { background: var(--bg-soft); box-shadow: none; }
.section-soft .card-muted { background: #fff; }
.card-title { font-size: 19px; margin-bottom: 10px; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 12px; color: var(--brand); background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
}
.card-icon .icon { width: 24px; height: 24px; }
.card-link { transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); color: var(--text); }
.card-link:hover .card-icon { background: var(--brand); color: #fff; }
.card-more { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--brand); }
.card-more .icon { width: 16px; height: 16px; transition: transform .2s; }
.card-link:hover .card-more .icon { transform: translateX(3px); }
.card .chips { margin-top: 14px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li {
  font-size: 13px; line-height: 1; padding: 7px 12px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100);
}
.chips-sm li { font-size: 12px; padding: 5px 10px; }
.chips-dark li { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: var(--brand-100); }

/* ---------- Checklists ---------- */
.checklist { list-style: none; display: grid; gap: 10px; margin: 18px 0 0; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--signal); stroke-width: 2.5; }
.checklist-lg { gap: 14px; font-size: 16.5px; margin-top: 24px; }
.split .checklist + .btn, .split p + .btn { margin-top: 28px; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.section-soft .step { background: #fff; }
.step::after {
  content: ""; position: absolute; top: 44px; right: -21px; width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--brand-100), transparent);
}
.step:last-child::after { display: none; }
.step-num { display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--brand); background: var(--brand-50); padding: 4px 10px; border-radius: 6px; margin-bottom: 16px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Metrics ---------- */
.metric-list { display: grid; gap: 12px; margin-top: 24px; }
.metric { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: baseline; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); border-left: 3px solid var(--brand); }
.metric-label { font-weight: 700; color: var(--ink); }
.metric-desc { color: var(--muted); font-size: 15px; }

.dora { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dora-item {
  display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
}
.dora-item .icon { width: 26px; height: 26px; color: var(--signal); margin-bottom: 8px; }
.dora-item strong { color: #fff; font-size: 18px; }
.dora-item span { color: rgba(255, 255, 255, 0.65); font-size: 14.5px; }

/* ---------- Home extras ---------- */
.trust { border-bottom: 1px solid var(--line); }
.pillars { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillars li { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink); font-weight: 600; }
.pillars .icon { color: var(--brand); width: 22px; height: 22px; }

.course-stack { display: grid; gap: 14px; }
.course-chip {
  display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; color: var(--ink);
}
.course-chip:nth-child(2) { margin-left: 32px; }
.course-chip:nth-child(3) { margin-left: 16px; }
.course-chip:nth-child(4) { margin-left: 48px; }
.course-chip .icon { color: var(--brand); width: 24px; height: 24px; }

.stack { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px 28px; border: 1px dashed var(--brand-100); border-radius: var(--radius); }
.stack-label { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 48px 56px; border-radius: var(--radius-lg); color: rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(47, 211, 165, 0.22), transparent 60%),
    linear-gradient(120deg, var(--brand-700), var(--brand));
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq-item summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--muted); transition: transform .2s; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item[open] { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.faq-body { padding: 0 22px 18px; color: var(--muted); }
.faq-body p:last-child { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.contact-cards { display: grid; gap: 24px; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0; padding: 12px 12px 12px 18px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--line); }
.copy-value { font-family: var(--font-mono); font-size: 16px; font-weight: 600; word-break: break-all; }
.copy-row .icon { width: 16px; height: 16px; }
.card > .btn { align-self: flex-start; }
.numbered { list-style: none; counter-reset: n; display: grid; gap: 16px; margin-top: 8px; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
.numbered li::before {
  content: counter(n); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  background: var(--brand); color: #fff;
}
.numbered strong { color: var(--ink); }
.numbered span { color: var(--muted); font-size: 15px; }

/* ---------- Prose (markdown pages) ---------- */
.prose { max-width: 780px; color: var(--text); font-size: 16.5px; }
.prose-wide { max-width: none; }
.prose h1 { font-size: 30px; margin-top: 0; }
.prose h2 { font-size: 24px; margin-top: 2em; }
.prose h3 { font-size: 19px; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin: 0.35em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand-100); }
.prose a:hover { text-decoration-color: var(--brand); }
.prose code { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; }
.prose blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 3px solid var(--brand); background: var(--brand-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); background: var(--bg-soft); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* ---------- Why DevOps ---------- */
.why-list { display: grid; gap: 20px; }
.why-row { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.why-num { font-family: var(--font-mono); font-size: 32px; font-weight: 700; color: var(--brand-100); line-height: 1; }
.why-row h3 { font-size: 21px; margin-bottom: 10px; }
.why-row p { color: var(--muted); margin: 0 0 0.5em; }
.statement { text-align: center; padding: 56px 24px; }
.statement h2 { font-size: clamp(24px, 3vw, 34px); }
.statement p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.62); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand p { margin: 18px 0; max-width: 360px; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.footer-mail:hover { color: var(--brand-300); }
.footer-mail .icon { width: 18px; height: 18px; color: var(--brand-300); }
.footer-title { color: #fff; font-size: 14px; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.62); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px;
}
.footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, 0.5); }
.footer-legal a:hover { color: #fff; }
.footer-legal img { width: 16px; height: 16px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 80px; }
  .step::after { display: none; }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillars li { justify-content: flex-start; }
  .cta-band { padding: 36px 28px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .dora { grid-template-columns: 1fr; }
  .metric { grid-template-columns: 1fr; gap: 4px; }
  .why-row { grid-template-columns: 1fr; gap: 8px; padding: 24px; }
  .course-chip:nth-child(n) { margin-left: 0; }
  .terminal-body { font-size: 12px; padding: 16px; }
  .t-bar { width: 72px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
}

/* ---------- Training ---------- */
.course-head { display: flex; justify-content: space-between; align-items: flex-start; }
.course-level { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 999px; background: var(--navy-900); color: #fff; }
.course-audience { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.course-audience .icon { width: 16px; height: 16px; color: var(--brand); }
.course .checklist { font-size: 15px; gap: 8px; margin-top: 16px; }
.stack .btn { margin-left: auto; }
.hero-grid > *, .split > *, .grid > * { min-width: 0; }
