/* PATCH START: V10.4 sardev.io homepage background video visibility fix
   REASON: The subdomains now display correctly; this restores the same local video-background layering and translucent content treatment to the sardev.io homepage without changing homepage content. */
:root {
  --gold: #d8b45b;
  --text: #f5f7fb;
  --muted: #b8c0d4;
  --panel: rgba(7,12,24,.68);
  --line: rgba(255,255,255,.14);
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  min-height: 100%;
  background: #02040a;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: transparent;
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

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

.bg-video,
.site-bg-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
  display: block;
  filter: saturate(1.08) contrast(1.08) brightness(.64);
  transform: scale(1.01);
  pointer-events: none;
  background: #02040a;
}

.bg-overlay,
.site-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(216,180,91,.18), transparent 34%),
    linear-gradient(120deg, rgba(1,4,12,.78), rgba(4,8,18,.46), rgba(1,4,12,.82));
}

.wrap {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.site-header,
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(2,4,10,.58);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 15px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}

.nav-links,
.navlinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a,
.navlinks a {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.nav-links a:hover,
.navlinks a:hover,
.nav-links a.active,
.navlinks a.active,
.nav-links a[aria-current="page"],
.navlinks a[aria-current="page"] {
  color: #fff;
  border-color: rgba(216,180,91,.4);
  background: rgba(216,180,91,.08);
}

main,
.lab-main {
  position: relative;
  z-index: 2;
}

.hero {
  padding: 86px 0 54px;
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 86px);
  line-height: .95;
  margin: 18px 0 20px;
  letter-spacing: -.06em;
  text-shadow: 0 18px 70px rgba(0,0,0,.55);
}

.hero p {
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
  color: #d9deeb;
  max-width: 850px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  border: 1px solid rgba(216,180,91,.5);
  background: linear-gradient(135deg, rgba(216,180,91,.22), rgba(255,255,255,.04));
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 800;
}

.btn.secondary {
  border-color: var(--line);
  background: rgba(255,255,255,.04);
  color: #dce4f8;
}

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

.card,
.lab-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,.30);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card h2,
.card h3,
.lab-card h2,
.lab-card h3 {
  margin: 0 0 12px;
  letter-spacing: -.03em;
}

.card p,
.lab-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 16px;
}

.pill {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.site-footer,
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(2,4,10,.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 28px 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer .wrap,
.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

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

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links,
  .navlinks {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 56px;
  }

  .hero h1 {
    font-size: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-video,
  .site-bg-video {
    display: none;
  }
}
/* PATCH END */
