/* ==========================================================================
   MetricSafe — static site styles
   ========================================================================== */

:root {
  --navy-900: #0f2c42;
  --navy-800: #15374f;
  --navy-700: #1a4360;
  --navy-600: #205174;
  --blue-500: #4b8bcf;
  --blue-400: #6aa5df;
  --blue-300: #8fc1ef;
  --blue-100: #e8f2fc;
  --bg: #f6f9fc;
  --surface: #ffffff;
  --text-900: #10233a;
  --text-700: #33455a;
  --text-500: #5c7186;
  --border: #e2e9f1;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(15, 44, 66, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 44, 66, 0.10);
  --shadow-lg: 0 20px 45px rgba(15, 44, 66, 0.14);
  --container: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-700);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

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

section { padding: 96px 0; }

.section-tight { padding: 72px 0; }

h1, h2, h3, h4 {
  color: var(--text-900);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-500);
  background: var(--blue-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-500);
  font-size: 17px;
  margin: 0;
}

.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--blue-500);
  color: #fff;
  box-shadow: 0 10px 24px rgba(75, 139, 207, 0.35);
}

.btn-primary:hover { background: var(--navy-700); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

.btn-outline {
  background: transparent;
  color: var(--navy-700);
  border-color: var(--border);
}

.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-500); }

/* Header ------------------------------------------------------------------ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 12px rgba(15, 44, 66, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand img { height: 68px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-700);
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.main-nav a:hover { color: var(--blue-500); background: var(--blue-100); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-500);
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
}

.lang-btn .flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  flex: none;
  box-shadow: 0 0 0 1px rgba(15, 44, 66, 0.12);
}

.lang-btn.is-active {
  background: var(--navy-700);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-900);
  border-radius: 2px;
}

/* Hero ---------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 168px 0 120px;
  background: radial-gradient(1100px 520px at 85% -10%, rgba(107, 165, 223, 0.35), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%);
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .eyebrow {
  background: rgba(143, 193, 239, 0.16);
  color: var(--blue-300);
}

.hero h1 {
  color: #fff;
  font-size: clamp(29px, 3.75vw, 44px);
  line-height: 1.14;
  margin-bottom: 22px;
}

.hero p.lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
  max-width: 560px;
}

.hero-stat {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 14px;
}

.hero-stat strong {
  display: block;
  font-size: 26px;
  color: #fff;
}

.hero-stat span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(8px);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.hero-card-header .dots { display: flex; gap: 6px; }
.hero-card-header .dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}
.hero-card-header .live {
  font-size: 12px;
  color: var(--blue-300);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hero-card-header .live::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.2);
}

.metric-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 130px;
  margin-bottom: 18px;
}

.metric-row .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--blue-300), var(--blue-500));
  border-radius: 6px 6px 2px 2px;
  opacity: 0.9;
}

.metric-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-meta div {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.metric-meta strong { display: block; font-size: 19px; color: #fff; }
.metric-meta span { font-size: 11.5px; color: rgba(255, 255, 255, 0.6); }

/* Logos strip --------------------------------------------------------------- */

.sector-strip {
  padding: 40px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.sector-strip-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.sector-strip-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-500);
}

.sector-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--navy-700);
  font-weight: 600;
  font-size: 14px;
}

/* About ----------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-copy p { font-size: 16.5px; color: var(--text-700); margin: 0 0 18px; }

.about-list { display: grid; gap: 14px; margin-top: 28px; }

.about-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-700);
}

.check {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  margin-top: 1px;
}

.about-panel {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-600));
  border-radius: 20px;
  padding: 36px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.about-panel h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.about-panel .sub { color: var(--blue-300); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 22px; display:block; }

.org-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.org-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
}

.org-chip small {
  display: block;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11.5px;
  margin-top: 2px;
}

.team-certs {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.cert-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.cert-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.cert-list li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-300);
  margin-top: 6px;
}

/* Cards grid -------------------------------------------------------------- */

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-300);
}

.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-500);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { margin: 0; font-size: 14.5px; color: var(--text-500); }

.card ul { margin-top: 14px; display: grid; gap: 8px; }
.card ul li {
  font-size: 13.5px;
  color: var(--text-500);
  padding-left: 18px;
  position: relative;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-400);
}

/* Tech / competencies ------------------------------------------------------ */

.tech-block { margin-bottom: 36px; }
.tech-block:last-child { margin-bottom: 0; }

.tech-block h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-700);
  margin-bottom: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-700);
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
}

.redhat-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 44px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.redhat-banner .rh-copy { max-width: 620px; }
.redhat-banner h3 { font-size: 17px; margin-bottom: 6px; }
.redhat-banner p { margin: 0; color: var(--text-500); font-size: 14.5px; }

.rh-roles { display: flex; gap: 10px; flex-wrap: wrap; }
.rh-role {
  background: var(--navy-700);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
}

/* Training ------------------------------------------------------------------ */

.training-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.training-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.training-card h3 {
  font-size: 17px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.training-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}

.training-item:last-child { border-bottom: none; }

.training-item .name { color: var(--text-700); font-weight: 500; }
.training-item .days {
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue-500);
  background: var(--blue-100);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* References / stats -------------------------------------------------------- */

.ref-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 34px;
  color: var(--navy-800);
  margin-bottom: 6px;
}

.stat-card span { font-size: 13.5px; color: var(--text-500); }

.ref-sectors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.ref-sector {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.ref-sector .tag-mini {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 8px;
  display: block;
}

.ref-sector h4 { font-size: 16px; margin-bottom: 8px; }
.ref-sector p { margin: 0; font-size: 13.5px; color: var(--text-500); }

/* Contact --------------------------------------------------------------- */

.contact-wrap {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  border-radius: 24px;
  padding: 64px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact-wrap h2 { color: #fff; font-size: 30px; margin-bottom: 14px; }
.contact-wrap p.lead { color: rgba(255, 255, 255, 0.75); font-size: 16px; margin-bottom: 0; }

.contact-list { display: grid; gap: 18px; }

.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-row .ic {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.contact-row strong { display: block; font-size: 13px; color: var(--blue-300); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
.contact-row span, .contact-row a { color: rgba(255, 255, 255, 0.85); font-size: 15px; }
.contact-row a:hover { color: #fff; text-decoration: underline; }

/* Footer ------------------------------------------------------------------ */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.65);
  padding: 56px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.footer-brand { max-width: 340px; }
.footer-brand .brand {
  margin-bottom: 18px;
  background: #fff;
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 12px;
}
.footer-brand .brand img { height: 58px; }
.footer-brand p { font-size: 14px; color: rgba(255, 255, 255, 0.55); margin: 0; }

.footer-cols { display: flex; gap: 64px; }
.footer-col h5 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
  gap: 10px;
}

/* Utility ------------------------------------------------------------------ */

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

/* Responsive ----------------------------------------------------------------- */

@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .about-grid { grid-template-columns: 1fr; }
  .training-groups { grid-template-columns: 1fr 1fr; }
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .ref-sectors { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; padding: 44px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.is-open {
    display: flex;
    position: absolute;
    top: 104px;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open a { padding: 12px 8px; }
}

@media (max-width: 700px) {
  section { padding: 64px 0; }
  .grid-3, .grid-2, .training-groups, .ref-grid, .ref-sectors { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 80px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .redhat-banner { flex-direction: column; align-items: flex-start; }
  .sector-strip-inner { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .header-inner { height: 86px; }
  .brand img { height: 56px; }
  .header-actions { gap: 10px; }
  .header-actions .btn-outline { display: none; }
  .lang-btn { padding: 6px 9px; font-size: 12px; }
  .main-nav.is-open { top: 86px; }
}

@media (max-width: 400px) {
  .header-actions { gap: 6px; }
  .lang-switch { padding: 2px; }
  .lang-btn { padding: 5px 7px; gap: 4px; }
}
