/* ==========================================================================
   REXE.io — premium domain sale landing page
   Single viewport, video background, minimal chrome.
   ========================================================================== */

@font-face {
  font-family: 'GeistPixel-Circle';
  src: url('fonts/GeistPixel-Circle.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #9a9a9a;
  --muted-dim: #6e6e6e;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.16);
  --header-h: 76px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Chakra Petch', 'BubbledotICG-FinePos', 'GeistPixel-Circle', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--fg);
  position: relative;
}

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

button {
  font-family: inherit;
}

/* ---------- backgrounds ---------- */

.bg-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 24%, #1c1c1c 0%, #050505 55%, #000000 100%);
}

.bg-video {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bg-video.is-hidden {
  display: none;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.58) 0%,
      rgba(0, 0, 0, 0.22) 32%,
      rgba(0, 0, 0, 0.32) 62%,
      rgba(0, 0, 0, 0.68) 100%);
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  opacity: 0;
  transform: translateY(-14px);
  animation: header-in 0.7s var(--ease) forwards;
  animation-delay: 0.05s;
}

.logo-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38), 0 2px 8px rgba(0, 0, 0, 0.22);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.logo-btn:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42), 0 3px 10px rgba(0, 0, 0, 0.26);
}

.logo-btn img {
  width: 22px;
  height: 22px;
  display: block;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease);
}

.nav-desktop a:hover {
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 16px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-mobile {
  position: fixed;
  top: calc(var(--header-h) - 6px);
  right: clamp(16px, 4vw, 40px);
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  min-width: 160px;
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-mobile[data-open="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mobile a {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  border-radius: 10px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-mobile a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 5;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 12px) 24px 96px;
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in 0.85s var(--ease) forwards;
  animation-delay: 0.22s;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: #ffffff;
  font-size: clamp(56px, 13vw, 158px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.headline-tld {
  color: rgba(255, 255, 255, 0.72);
}

.concept {
  margin-top: clamp(18px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.concept-formula {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.concept-word {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 600;
  color: #ffffff;
}

.lede {
  margin: clamp(20px, 3.4vw, 30px) 0 0;
  max-width: 560px;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.lede-sub {
  margin: 8px 0 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.cta-row {
  margin-top: clamp(28px, 4vw, 38px);
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 10px 26px rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: var(--glass-bg);
  color: #ffffff;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.valuation {
  margin: clamp(26px, 4vw, 34px) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.valuation-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.valuation-amount {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}

.meta-line {
  font-family: var(--font-mono);
  margin: 18px 0 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted-dim);
}

/* ---------- footer ---------- */

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 4vw, 48px);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-contact {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.25s var(--ease);
}

.footer-contact:hover {
  color: #ffffff;
}

/* ---------- animations ---------- */

@keyframes header-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .hero {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .btn:hover,
  .logo-btn:hover {
    transform: none !important;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .cta-row {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .btn {
    width: 100%;
  }

  .site-footer {
    font-size: 11px;
    padding: 14px 18px;
  }
}

@media (max-height: 640px) {
  :root {
    --header-h: 64px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 4px);
    padding-bottom: 72px;
  }

  .lede-sub {
    display: none;
  }
}
