:root,
:root[data-theme="dark"] {
  --home-bg: #05070b;
  --home-fg: #ffffff;
  --home-muted: rgba(255, 255, 255, 0.9);
  --glass: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.2);
  --glass-border: rgba(255, 255, 255, 0.22);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--home-bg);
  color: var(--home-fg);
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/BostonWinter.jpg') center center / cover no-repeat;
  z-index: -2;
  filter: saturate(1.05) contrast(1.02);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 11, 0.45);
  z-index: -1;
}

.PageShell,
.HomeMain {
  max-width: 1600px;
  width: 84vw;
  margin: 0 auto;
  padding: 120px 18px 88px;
}

.glassFrame,
.glass-frame,
.glass-block {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(165%);
  -webkit-backdrop-filter: blur(16px) saturate(165%);
  position: relative;
  overflow: hidden;
}

.glassFrame::after,
.glass-frame::after,
.glass-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}

.Btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  position: relative;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: #ffffff;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(165%);
  -webkit-backdrop-filter: blur(14px) saturate(165%);
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.Btn.primary {
  background: var(--glass-strong);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 700;
}

.Btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.32);
}

.Btn:active {
  transform: translateY(0);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.4);
}

body.loaded [data-animate] {
  opacity: 1;
  transform: translateY(0);
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
