@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700&display=swap");

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

html,
body {
  height: 100%;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
  color: #eaeaec;
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  letter-spacing: -0.005em;
  background: #08080e;
  overflow: hidden;
  position: relative;
}

/* ── Blurred backdrop — the same orb loop promethist-site's homepage feeds
   its WebGL backdrop shader (frontend/public/assets/videos/orb-hero-1280.mp4),
   reproduced here as a plain blurred + desaturated <video> since this page
   has no shader stage, plus a smaller warm CSS accent for brand depth. ─── */
.bg-orb-video {
  position: fixed;
  z-index: -2;
  top: 50%;
  left: 50%;
  width: min(115vw, 1400px);
  height: min(115vw, 1400px);
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.7;
  filter: blur(90px) saturate(0.75) contrast(1.05);
  transform: translate3d(-50%, -50%, 0);
  animation: orb-drift-a 30s ease-in-out infinite alternate;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  z-index: -2;
  right: -15%;
  bottom: -20%;
  width: min(70vw, 800px);
  height: min(70vw, 800px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 110, 80, 0.4) 0%,
    rgba(145, 56, 18, 0.22) 45%,
    transparent 72%
  );
  filter: blur(110px);
  animation: orb-drift-b 34s ease-in-out infinite alternate;
}

/* Slow, organic drift + breathing scale so the glow reads as alive
   without ever looking like it is repeating on a fixed loop. */
@keyframes orb-drift-a {
  0%   { transform: translate3d(-50%, -50%, 0) scale(1); }
  50%  { transform: translate3d(-42%, -56%, 0) scale(1.12); }
  100% { transform: translate3d(-56%, -46%, 0) scale(0.96); }
}
@keyframes orb-drift-b {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-6%, -5%, 0) scale(1.1); }
  100% { transform: translate3d(4%, 5%, 0) scale(0.94); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-orb-video,
  body::after {
    animation: none;
  }
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    70% 60% at 50% 45%,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.2) 60%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

/* ── Liquid glass card — the promethist-site hero card's own recipe
   (features/landing/components/glass-gpu/glass-surface.tsx), carried over
   as its plain-CSS fallback: a "material" wash (barely-there white
   gradients, no dark fill) so the backdrop reads through almost
   untouched, a 1px rim gradient standing in for the shader's refraction
   highlight, and its exact backdrop-filter fallback recipe. ──────────── */
.content-container {
  position: relative;
  isolation: isolate;
  width: 440px;
  max-width: 100%;
  padding: 44px 36px 36px;
  border-radius: 32px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.025) 55%, rgba(255, 255, 255, 0.05) 100%),
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 55%);
  backdrop-filter: blur(14px) saturate(1.6) brightness(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.6) brightness(1.05);
  box-shadow:
    inset 0 16px 32px -28px rgba(255, 255, 255, 0.22),
    0 30px 60px -30px rgba(0, 0, 0, 0.65);
}

.content-container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.18) 25%,
    rgba(255, 255, 255, 0.1) 55%,
    rgba(255, 255, 255, 0.16) 85%,
    rgba(255, 255, 255, 0.32) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.logo {
  width: 30px;
  height: auto;
  opacity: 0.95;
}

.logo-wordmark {
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.9);
}

h1 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem);
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}

.text-content,
.text-content-p {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: 10px;
}

p {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

p strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

#reason-text {
  color: rgba(255, 255, 255, 0.85);
}

/* Both CTAs mirror the landing site's <ButtonLanding> variants
   (components/ui/button-landing.tsx): "primary" (solid white, coral on
   hover) for the one main action, "glass" (frosted, low-emphasis pill)
   for the parallel/secondary one — same pairing as the site's own
   two-CTA rows. */
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.open-client-btn,
.read-doc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-height: 48px;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: color 300ms ease-out, background-color 300ms ease-out,
    border-color 300ms ease-out, box-shadow 300ms ease-out;
}

.open-client-btn {
  background: #fff;
  color: #1a1a2e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.open-client-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.open-client-btn:hover {
  color: #ff6a57;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.open-client-btn:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 2px;
}

.read-doc-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 24px -16px rgba(0, 0, 0, 0.6);
}

.read-doc-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.read-doc-btn:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .content-container {
    width: 100%;
    padding: 34px 24px 28px;
    border-radius: 24px;
  }

  .btn-row {
    flex-direction: column;
    gap: 10px;
  }

  .open-client-btn,
  .read-doc-btn {
    min-height: 54px;
    padding: 15px 20px;
  }
}
