:root {
  color-scheme: light;
  --sl-ink: #11131a;
  --sl-muted: #5e6472;
  --sl-blue: #0878ff;
  --sl-blue-deep: #0057c8;
  --sl-violet: #7657ff;
  --sl-cyan: #42c8ff;
  --sl-surface: rgba(255, 255, 255, .72);
  --sl-surface-strong: rgba(255, 255, 255, .9);
  --sl-border: rgba(255, 255, 255, .76);
  --sl-hairline: rgba(22, 34, 58, .1);
  --sl-shadow: 0 24px 70px rgba(28, 45, 78, .13);
  --sl-radius: 28px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 8%, rgba(105, 205, 255, .2), transparent 30rem),
    radial-gradient(circle at 90% 40%, rgba(155, 125, 255, .18), transparent 34rem),
    linear-gradient(145deg, #f9fbff 0%, #eef4ff 48%, #fbf8ff 100%);
  color: var(--sl-ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Background drift effects (safe) */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .22;
  pointer-events: none;
  animation: sl-drift 20s ease-in-out infinite alternate;
}

body::before { left: -14vw; top: 6vh; background: #70d7ff; }
body::after { right: -15vw; top: 36vh; background: #b49cff; animation-delay: -9s; }

/* Skip link */
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #111;
  text-decoration: none;
  box-shadow: var(--sl-shadow);
}
.skip-link:focus { top: 1rem; }

/* HEADER */
.sl-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding-top: 12px;
}

/* NAV SHELL */
.sl-nav {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 8px 10px 8px 18px;
  border: 1px solid var(--sl-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 12px 42px rgba(21, 38, 72, .1);
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
}

/* BRAND */
.sl-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111827 !important;
  text-decoration: none !important;
  font-weight: 850;
  letter-spacing: -.035em;
}

.sl-brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--sl-blue), var(--sl-violet));
  box-shadow: 0 8px 20px rgba(72, 84, 255, .25);
}

/* NAV LINKS (BASE) */
.sl-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  position: relative;
  z-index: 200;
}

.sl-nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #344054 !important;
  text-decoration: none !important;
  font-size: .86rem;
  font-weight: 720;
}

.sl-nav-links a:hover,
.sl-nav-links a:focus-visible {
  background: rgba(8, 120, 255, .09);
  color: #075bc9 !important;
}

/* CTA */
.sl-nav-links .sl-nav-cta {
  color: #fff !important;
  background: linear-gradient(135deg, var(--sl-blue), var(--sl-violet));
}

/* MOBILE MENU BUTTON */
.sl-menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 13px;
  background: #eef4ff;
  cursor: pointer;
}
.sl-menu-button::before { content: "☰"; font-size: 1.25rem; }

/* PAGE WRAPPER (CRITICAL FIX: remove cross-file override chaos) */
.page-wrapper {
  max-width: 1180px;
  margin: 24px auto 48px;
  padding: clamp(12px, 2.3vw, 28px);
  border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius);
  background: rgba(255, 255, 255, .55);
  box-shadow: var(--sl-shadow);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
}

/* HERO + SECTIONS */
.page-header.bt-hero-shell,
header.page-header {
  border-radius: 26px;
  background: linear-gradient(145deg, #10192c, #172849 60%, #111a31);
  box-shadow: 0 28px 70px rgba(13, 25, 49, .3);
}

.section-card,
.hero-contact,
.mini-card,
.owner-access-box {
  background: var(--sl-surface);
  border: 1px solid rgba(135, 153, 184, .25);
  box-shadow: 0 16px 45px rgba(24, 42, 76, .09);
  backdrop-filter: blur(18px);
}

/* MOBILE SAFE NAV BEHAVIOR */
@media (max-width: 760px) {
  .sl-menu-button { display: block; }

  .sl-nav-links {
    display: none;
    position: absolute;
    left: 8px;
    right: 8px;
    top: 78px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--sl-shadow);
    z-index: 999;
  }

  .sl-nav-links.is-open { display: flex; }

  .sl-nav-links a {
    text-align: center;
    padding: 12px;
  }

  .page-wrapper {
    margin: 14px 8px 32px;
    border-radius: 22px;
  }
}

/* MOTION SAFETY */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ANIMATION */
@keyframes sl-drift {
  to { transform: translate3d(6vw, 5vh, 0) scale(1.08); }
}
.page-wrapper {
  display: block !important;
  width: min(1180px, calc(100% - 24px)) !important;
  margin: 24px auto !important;
  float: none !important;
  position: relative !important;
}

body {
  display: block !important;
}

.hero-contact {
  position: relative !important;
  z-index: 1;
}

.hero-contact h1,
.hero-contact h2,
.hero-contact p {
  color: inherit !important;
}

.sl-site-header {
  z-index: 999 !important;
}