:root {
  --px: 50%; --py: 50%; --o: 0;
  --bg: #121417; --fg: #D9DCE1; --dim: #7d838c; --soft: #aab0b9;
  --font: Manrope, "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; overflow: hidden; overscroll-behavior: none; color-scheme: dark; }

body {
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

/* Background: live gradient glow (from your style.css, sped up) */
.glow { position: fixed; inset: 0; overflow: hidden; pointer-events: none; animation: fade 2.2s ease .1s backwards; }
.g { position: absolute; display: block; border-radius: 50%; will-change: transform;
  background: radial-gradient(closest-side, rgba(217,220,225,var(--a)) 0%, rgba(217,220,225,calc(var(--a)*.45)) 38%, rgba(217,220,225,0) 100%); }
.g1 { --a: .20; width: 90vmax; height: 90vmax; left: -30vmax; top: -45vmax; animation: d1 7s ease-in-out infinite alternate; }
.g2 { --a: .15; width: 80vmax; height: 80vmax; right: -35vmax; bottom: -40vmax; animation: d2 8.5s ease-in-out infinite alternate; }
.g3 { --a: .11; width: 60vmax; height: 60vmax; left: 30%; top: 25%; animation: d3 10s ease-in-out infinite alternate; }
.g4 { --a: .09; width: 50vmax; height: 50vmax; left: -15vmax; bottom: -20vmax; animation: d4 11.5s ease-in-out infinite alternate; }
@keyframes d1 { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(42vw,16vh,0) scale(1.15); } 100% { transform: translate3d(18vw,38vh,0) scale(.9); } }
@keyframes d2 { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-38vw,-14vh,0) scale(.88); } 100% { transform: translate3d(-12vw,-36vh,0) scale(1.12); } }
@keyframes d3 { 0% { transform: translate3d(-24vw,-14vh,0) scale(.9); } 50% { transform: translate3d(18vw,22vh,0) scale(1.2); } 100% { transform: translate3d(28vw,-18vh,0) scale(1); } }
@keyframes d4 { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(50vw,-26vh,0) scale(1.25); } }
@keyframes fade { from { opacity: 0; } }

/* Text selection matches the theme */
::selection { background: rgba(217, 220, 225, .9); color: #121417; -webkit-text-fill-color: #121417; }
::-moz-selection { background: rgba(217, 220, 225, .9); color: #121417; }

/* Silver grid: invisible until the cursor (or a touch) is near */
.grid {
  position: fixed; inset: 0; pointer-events: none;
  opacity: var(--o);
  background-image:
    linear-gradient(rgba(217, 220, 225, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 220, 225, .16) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle 260px at var(--px) var(--py), #000 0%, transparent 100%);
  mask-image: radial-gradient(circle 260px at var(--px) var(--py), #000 0%, transparent 100%);
}

.stage {
  position: relative; z-index: 2;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  gap: clamp(14px, 3.4vh, 32px);
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.wordmark { line-height: 1.1; }
.name {
  display: block;
  padding-bottom: .06em;
  font-size: clamp(2rem, min(11vw, 17vh), 8rem);
  font-weight: 600;
  letter-spacing: -.035em;
  white-space: nowrap;
  background: linear-gradient(180deg, #f4f6f9 0%, #D9DCE1 50%, #9aa1ab 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.sale {
  display: block;
  margin-top: .35em;
  font-size: clamp(1.15rem, min(4vw, 6.5vh), 2.4rem);
  font-weight: 300;
  letter-spacing: .06em;
  color: var(--fg);
}

.lede { max-width: 34ch; font-size: clamp(.95rem, 2vw, 1.15rem); line-height: 1.55; color: var(--soft); }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: min(100%, 680px); }

.btn, .combo { min-height: 58px; border-radius: 16px; }
.btn small, .combo small { display: block; font-size: .72rem; font-weight: 400; opacity: .8; }
.btn span, .combo span { font-weight: 600; font-size: 1rem; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: .7rem 1.4rem;
  color: var(--bg); background: var(--fg);
  text-decoration: none; text-align: left;
  transition: background .2s;
}
.btn:hover { background: #fff; }

/* Email + copy as one merged button */
.combo {
  display: flex; align-items: stretch; overflow: hidden;
  border: 1px solid rgba(217, 220, 225, .55);
  background: rgba(217, 220, 225, .06);
  color: var(--fg);
}
.combo-main {
  display: inline-flex; align-items: center; gap: 12px; flex: 1;
  padding: .7rem 1.2rem;
  color: inherit; text-decoration: none; text-align: left;
}
.combo-copy {
  display: grid; place-items: center; width: 58px;
  border: 0; border-left: 1px solid rgba(217, 220, 225, .35);
  background: transparent; color: inherit; cursor: pointer;
}
.combo-main, .combo-copy { transition: background .2s; }
.combo-main:hover, .combo-copy:hover { background: rgba(217, 220, 225, .14); }

.btn:focus-visible, .combo-main:focus-visible, .combo-copy:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.toast {
  position: fixed; z-index: 5; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 22px);
  transform: translate(-50%, 16px);
  padding: .7rem 1.2rem; border-radius: 12px;
  background: var(--fg); color: var(--bg); font-weight: 600; font-size: .95rem;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: flex-start; }
}
@media (max-height: 520px) {
  .lede { display: none; }
  .stage { gap: 10px; }
  .actions { flex-wrap: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
