/* Market Guard Escrow: coming soon page. Colors follow the landing design system (dark). */

/* Inter (SIL Open Font License, see /fonts/OFL.txt), self-hosted latin subset, variable weight */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}
:root {
  --bg:    #000000;
  --blue:  #0d6fff;
  --text:  #ffffff;
  --muted: #87878c;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* ── Backdrop: faint grid + blue glow ── */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.backdrop-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 15%, transparent 72%);
          mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 15%, transparent 72%);
}
.backdrop-glow {
  position: absolute;
  left: 50%;
  top: 45%;
  width: min(1100px, 170vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(13, 111, 255, 0.14), rgba(0, 216, 192, 0.04) 55%, transparent 75%);
}

/* ── Layout: phones and portrait screens stack the lock above the text ── */
.stage {
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vh, 44px);
  padding: 32px 16px;
  text-align: center;
  overflow: hidden; /* keeps the glow and rings from creating scrollbars */
  overflow: clip;
}
.copy {
  position: relative;
  z-index: 1; /* text stays above the lock rings */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(14px, 2.4vh, 22px);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.logo-mark { width: 44px; height: 44px; flex-shrink: 0; margin-right: 2px; }
.logo-main { font-weight: 800; }
.logo-sub  { font-weight: 400; color: var(--muted); margin-left: 0.4em; }

h1 {
  font-size: clamp(46px, 13vw, 88px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}
.accent {
  background: linear-gradient(100deg, #0d6fff 0%, #00a3ff 32%, #00d8c0 68%, #2dd158 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  padding-right: 0.04em;
}

/* ── Lock ── */
.lock {
  position: relative;
  flex-shrink: 0;
  width: min(46vw, 30vh, 220px);
  aspect-ratio: 1;
}
.lock-svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 8px 44px rgba(13, 111, 255, 0.32)) drop-shadow(0 0 70px rgba(0, 200, 168, 0.14));
  animation: float 7s ease-in-out infinite;
  will-change: transform;
}
.lock-halo {
  position: absolute;
  inset: -45%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 56%, rgba(13, 111, 255, 0.30), rgba(0, 216, 192, 0.10) 38%, transparent 62%);
  animation: halo 7s ease-in-out infinite;
}
.lock-wave {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(13, 111, 255, 0.5);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  animation: wave 6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.lock-wave-2 { border-color: rgba(0, 216, 192, 0.45); animation-delay: 2s; }
.lock-wave-3 { border-color: rgba(48, 209, 88, 0.4);  animation-delay: 4s; }

/* light sweeping across the lock body */
.lock-shine {
  transform-box: view-box;
  transform-origin: 0 0;
  transform: translateX(0) skewX(-18deg);
  animation: shine 6s ease-in-out 1.4s infinite;
}

/* ── Wide screens: text on the left, lock on the side ── */
@media (min-width: 600px) {
  .stage {
    flex-direction: row;
    gap: clamp(40px, 9vw, 150px);
    text-align: left;
  }
  .copy { align-items: flex-start; }
  .logo { font-size: clamp(13px, 1.3vw, 18px); margin-bottom: clamp(14px, 3vh, 32px); }
  .logo-mark { width: clamp(44px, 4.5vw, 66px); height: clamp(44px, 4.5vw, 66px); }
  h1 { font-size: clamp(56px, min(10vw, 19vh), 144px); line-height: 0.95; }
  .h1-word { display: block; }
  .lock { width: clamp(150px, min(25vw, 46vh), 320px); }
}

/* ── Entrance ── */
.lock { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.logo { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s both; }
h1    { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }

@keyframes rise  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes halo  { 0%, 100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes wave {
  0%   { opacity: 0;   transform: translate(-50%, -50%) scale(0.6); }
  15%  { opacity: 0.9; }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(2.4); }
}
@keyframes shine {
  0%        { transform: translateX(0) skewX(-18deg); }
  35%, 100% { transform: translateX(420px) skewX(-18deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .lock-wave { display: none; }
}
