/* ═══════════════════════════════════════════════════════════
   Bossert Dental — design tokens
   ═══════════════════════════════════════════════════════════ */
:root {
  --bd-bg:        #171717;
  --bd-deeper:    #0d0d0d;
  --bd-green:     hsl(119, 99%, 46%);
  --bd-glow:      hsla(119, 99%, 46%, 0.24);
  --bd-text:      #f4f4f4;
  --bd-muted:     rgba(244, 244, 244, 0.55);
  --bd-faint:     rgba(244, 244, 244, 0.32);
  --bd-ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════════
   Reset & base
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Sora', system-ui, sans-serif;
  background: var(--bd-deeper);
  color: var(--bd-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ═══════════════════════════════════════════════════════════
   Liquid glass utility
   ═══════════════════════════════════════════════════════════ */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.10);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0.00) 40%,
    rgba(255, 255, 255, 0.00) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   Blur-fade-up entrance animations — gated on no reduced motion
   ═══════════════════════════════════════════════════════════ */
@keyframes bd-blurFadeUp {
  from { opacity: 0; filter: blur(20px); transform: translateY(40px); }
  to   { opacity: 1; filter: blur(0px);  transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .bd-badge   { animation: bd-blurFadeUp 1s ease-out 0.10s both; }
  .bd-heading { animation: bd-blurFadeUp 1s ease-out 0.25s both; }
  .bd-sub     { animation: bd-blurFadeUp 1s ease-out 0.40s both; }
  .bd-desc    { animation: bd-blurFadeUp 1s ease-out 0.55s both; }
  .bd-ctas    { animation: bd-blurFadeUp 1s ease-out 0.70s both; }
  .bd-trust   { animation: bd-blurFadeUp 1s ease-out 0.85s both; }
}

/* ═══════════════════════════════════════════════════════════
   Navbar — fixed, transparent, floats above canvas
   ═══════════════════════════════════════════════════════════ */
.bd-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
}

.bd-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 40px;
}

@media (max-width: 768px) {
  .bd-nav-inner { padding: 20px 24px; }
}

.bd-logo {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bd-text);
}

.bd-nav-center {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  padding: 8px 16px;
}

@media (max-width: 820px) { .bd-nav-center { display: none; } }

.bd-nav-link {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bd-muted);
  transition: color 0.22s ease;
}
.bd-nav-link:hover { color: var(--bd-text); }

.bd-nav-cta {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bd-text);
  padding: 10px 22px;
  border-radius: 9999px;
  transition: opacity 0.22s ease, transform 0.18s ease;
}
.bd-nav-cta:hover  { opacity: 0.8; }
.bd-nav-cta:active { transform: scale(0.97); }

@media (max-width: 820px) { .bd-nav-cta { display: none; } }

/* ═══════════════════════════════════════════════════════════
   Hero — full screen, content at bottom-left
   ═══════════════════════════════════════════════════════════ */
.bd-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: var(--bd-bg);
  overflow: hidden;
}

.bd-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.bd-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transform-origin: center;
  will-change: transform;
}

.bd-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  -webkit-mask-image: linear-gradient(to top, black 0%, transparent 45%);
  mask-image: linear-gradient(to top, black 0%, transparent 45%);
  z-index: 1;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   Content block
   ═══════════════════════════════════════════════════════════ */
.bd-content {
  position: relative;
  z-index: 10;
  max-width: 660px;
  padding: 0 40px 52px;
  pointer-events: none;
}

@media (max-width: 640px) {
  .bd-content { padding: 0 24px 40px; max-width: 100%; }
}

.bd-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bd-green);
  margin-bottom: 20px;
}

.bd-heading {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--bd-text);
  margin-bottom: 18px;
}

.bd-accent { color: var(--bd-green); }

.bd-sub {
  font-size: clamp(1.125rem, 2.5vw, 1.875rem);
  font-weight: 300;
  color: rgba(244, 244, 244, 0.82);
  margin-bottom: 16px;
}

.bd-desc {
  font-size: clamp(0.875rem, 1.4vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.72;
  color: var(--bd-muted);
  max-width: 520px;
  margin-bottom: 32px;
}

/* ═══════════════════════════════════════════════════════════
   CTA buttons
   ═══════════════════════════════════════════════════════════ */
.bd-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  pointer-events: auto;
}

.bd-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bd-green);
  color: #050505;
  font-family: 'Sora', sans-serif;
  font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
  font-weight: 700;
  padding: 15px 26px;
  border-radius: 4px;
  pointer-events: auto;
  transition: filter 0.2s ease, transform 0.18s ease;
  box-shadow: 0 4px 28px var(--bd-glow);
}
.bd-btn-primary:hover  { filter: brightness(1.08); }
.bd-btn-primary:active { transform: scale(0.97); }

.bd-btn-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--bd-text);
  font-family: 'Sora', sans-serif;
  font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
  font-weight: 600;
  padding: 15px 26px;
  border-radius: 4px;
  pointer-events: auto;
  transition: background 0.2s ease, transform 0.18s ease;
}
.bd-btn-secondary:hover  { background: rgba(255, 255, 255, 0.12); }
.bd-btn-secondary:active { transform: scale(0.97); }

/* ═══════════════════════════════════════════════════════════
   Trust line
   ═══════════════════════════════════════════════════════════ */
.bd-trust {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--bd-faint);
  letter-spacing: 0.04em;
}

/* ── Mobile nav hamburger + sheet ─────────────────── */
.bd-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 60;
}
.bd-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bd-text);
  border-radius: 2px;
  transition: transform 0.3s var(--bd-ease), opacity 0.3s ease;
}
.bd-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bd-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.bd-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.bd-desktop-cta { display: flex; }

@media (max-width: 820px) {
  .bd-hamburger { display: flex; }
  .bd-nav-center { display: none; }
  .bd-nav-cta.bd-desktop-cta { display: none; }
}

/* Sheet backdrop */
.bd-sheet-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 70;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bd-sheet-backdrop.open {
  display: block;
  opacity: 1;
}

/* Sheet panel */
.bd-sheet {
  position: fixed;
  top: 0;
  right: 0;
  width: min(88vw, 360px);
  height: 100dvh;
  background: var(--bd-bg);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.4);
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.bd-sheet.open {
  transform: translateX(0);
}

.bd-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}
.bd-sheet-logo {
  font-family: 'Sora', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--bd-text);
}
.bd-sheet-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: none;
  cursor: pointer;
  color: var(--bd-text);
  transition: background 0.2s ease;
}
.bd-sheet-close:hover { background: rgba(255,255,255,0.12); }

.bd-sheet-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0 24px;
}

.bd-sheet-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  flex: 1;
}
.bd-sheet-link {
  font-family: 'Sora', sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--bd-text);
  text-decoration: none;
  padding: 14px 24px;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.28s ease, transform 0.28s ease, color 0.2s ease;
}
.bd-sheet-link:hover { color: var(--bd-green); }
.bd-sheet.open .bd-sheet-link { opacity: 1; transform: translateX(0); }

.bd-sheet-ctas {
  padding: 16px 24px 32px;
}
.bd-sheet-cta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border-radius: 4px;
  font-family: 'Sora', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
}
