  :root {
  --bg: #0b0d10;
  --panel: #12161b;
  --ink: #e7eef7;
  --muted: #9fb1c7;
  --brand: #68b5ff;
  --brand-ink: #041a2e;
  --ok: #2ecc71;
  --warn: #f1c40f;
  --err: #e74c3c;
  --ring: 0 0 0 3px rgba(104,181,255,0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);   /* solid dark background only */
  line-height: 1.55;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1100px, 92vw); margin: 0 auto; }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(11,13,16,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.2px; }
.brand .logo {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--brand), #2c7dcc);
  color: #fff; border-radius: 10px;
  box-shadow: 0 10px 24px rgba(104,181,255,0.25), inset 0 0 0 1px rgba(255,255,255,0.2);
  font-weight: 900;
}
/* Header nav links */
.nav a {
  margin-left: 40px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  transition: color .2s ease;
}

.nav a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* Special style for the last call-to-action link */
.nav a.highlight {
  color: var(--brand);
  font-weight: 700;
}



/* On mobile, left-align so it doesn’t look squished */
@media (max-width: 720px) {
  .contact-info {
    align-items: flex-start;
    margin-left: 0;
    margin-top: 8px;
  }
}


/* On small screens, stack under nav */
@media (max-width: 720px) {
  .contact-info {
    align-items: flex-start;
    margin-left: 0;
    margin-top: 8px;
  }
}



/* Hero */
.hero { padding: clamp(48px, 10vw, 80px) 0 20px; }
.hero h1 { font-size: clamp(28px, 6vw, 56px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -0.5px; }
.hero p { font-size: clamp(16px, 2.4vw, 20px); color: var(--muted); margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, #18202a, #12161b);
  color: var(--ink); font-weight: 700;
}
.btn.primary { background: var(--brand); color: var(--brand-ink); border: none; box-shadow: 0 16px 32px rgba(104,181,255,0.28); }
.btn.primary:hover { filter: brightness(1.05); }

/* Pill stats */
.pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 18px; }
.pill { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 999px; padding: 10px 14px; color: var(--muted); font-size: 14px; }

/* Sections */
section { padding: 30px 0; }
section h2 { font-size: clamp(22px, 3.4vw, 32px); margin: 0 0 16px; }
section p.lead { color: var(--muted); margin: 0 0 26px; }

/* Services grid/cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(12, 1fr); }
.card { grid-column: span 12; background: var(--panel); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 18px; }
@media (min-width: 720px) { .card.sm-6 { grid-column: span 6; } .card.sm-4 { grid-column: span 4; } }

.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

/* Contact */
form { display: grid; gap: 12px; }
.row { display: grid; gap: 12px; }
@media (min-width: 720px) { .row { grid-template-columns: 1fr 1fr; } }
label { font-size: 14px; color: var(--muted); }
input, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12);
  background: #0e1217; color: var(--ink); outline: none;
}
input:focus, textarea:focus { box-shadow: var(--ring); border-color: var(--brand); }
textarea { min-height: 140px; resize: vertical; }

/* Footer */
footer { padding: 32px 0 48px; color: var(--muted); border-top: 1px solid rgba(255,255,255,0.06); }
.foot { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 720px) { .foot { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Subtle animations */
.fade { opacity: 0; transform: translateY(8px); animation: fadeIn 600ms ease forwards; }
.fade.d1 { animation-delay: 120ms; }
.fade.d2 { animation-delay: 240ms; }
.fade.d3 { animation-delay: 360ms; }
@keyframes fadeIn { to { opacity: 1; transform: none; } }

/* Trusted By — static logo grid */
.logo-grid {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  align-items: center;
  justify-items: center;
}

.logo-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  display: grid;
  place-items: center;

  /* Force square shape */
  aspect-ratio: 1 / 1;
  width: 100%;

  padding: 12px; /* spacing inside */
}

.logo-item img {
  max-width: 80%;   /* logo stays inside the square */
  max-height: 80%;
  height: auto;
  width: auto;
  display: block;
  filter: grayscale(1) contrast(1.05) opacity(.9);
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}

.logo-item img:hover {
  filter: none;
  opacity: 1;
  transform: translateY(-1px);
}

/* Special case for text-only item */
.logo-item.more {
  background: none;
  border: none;
  aspect-ratio: auto;   /* let it size naturally */
  padding: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  filter: none;
  transition: none;
}

/* --- Sticky header behavior + anchor offset --- */
:root { --header-h: 64px; } /* adjust if your header is taller/shorter */

header {
  position: fixed;          /* was sticky */
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;             /* ensure it stays above content */
}

/* Push page content below the fixed header */
main { padding-top: var(--header-h); }

/* When jumping to #services / #work / #contact, offset for the fixed header */
section { scroll-margin-top: calc(var(--header-h) + 8px); }

/* Keep the body gradient, but place the Trusted By content over a solid layer */
#work {
 
  position: relative;
  z-index: 1;
}
#work .container { background: var(--bg); }

.hero {
  position: relative;
  padding: clamp(48px, 10vw, 80px) 0 20px;
  color: var(--ink);
  overflow: hidden;
}

/* Full-bleed background video */
#heroVideo {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark overlay for readability */
.hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55); /* adjust transparency */
  z-index: 1;
}

/* Content sits above */
.hero .container {
  position: relative;
  z-index: 2;
}

/* ===== Mobile header layout ===== */
@media (max-width: 720px) {
  /* Stack brand over nav */
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;             /* space between brand and links */
    padding: 12px 0;
  }

  /* Smaller logo block so it doesn't crowd */
  .brand .logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 14px;
  }

  /* Nav links wrap nicely with even spacing */
  .nav nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;       /* row/column gaps between links */
  }

  /* Remove left margin from desktop */
  .nav a {
    margin-left: 0;
    padding: 6px 0;       /* bigger touch target without looking like buttons */
    font-size: 15px;
  }
}
.brand-logo {
  height: 40px;   /* match old TM box size */
  width: auto;
  display: block;
}

/* Footer structure */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.footer-contact {
  font-size: 13px;
  color: var(--muted);
}

.footer-contact a {
  color: var(--ink);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* On mobile: stack brand + links vertically */
@media (max-width: 720px) {
  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-links {
    align-items: flex-start;
  }
}

.footer-brand {
  display: inline-flex;       /* shrink to fit content */
  flex-direction: column;
  gap: 8px;
  margin: 0 auto;             /* center the whole block horizontally */
  text-align: left;           /* keep the text itself left-aligned */
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 2px;
}

.footer-copy {
  text-align: center;         /* copyright itself centered */
  font-size: 12px;
  color: var(--muted);
  padding: 8px 0;
  margin-top: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* --- Stats Section --- */
.stats .grid {
  text-align: center;
  gap: 1.5rem;
}

.stats .card {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stats .card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #00c4cc, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.stats .card p {
  font-size: 1rem;
  margin: 0;
  color: var(--muted);
}

/* --- Status Pills (Support page) --- */
.status-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2×2 grid */
  gap: 12px;
  margin: 12px 0 18px;
  width: 100%; /* occupy the full card width */
}

.status-pills .pill {
  display: flex;                 /* keeps text centered */
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  border-radius: 22px;           /* elongated capsule */
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  box-sizing: border-box;
}

/* States */
.status-pills .ok   { background: var(--ok); }
.status-pills .warn { background: var(--warn); color: #000; }
.status-pills .err  { background: var(--err); }

/* Ensure the blocks after pills always drop below (no side-by-side wrap) */
.support-contact,
.support-tips {
  display: block;
  width: 100%;
  margin-top: 10px;
}

/* Mobile: stack to 1 column */
@media (max-width: 600px) {
  .status-pills {
    grid-template-columns: 1fr;
  }
}


