/* hero-lab shared tokens + components — mirrors the Creyaa design system.
   Button depth recipes are verbatim from the app UI / waitlist page. */

/* Self-hosted Inter (CSP blocks fonts.googleapis.com) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-var.woff2") format("woff2");
}

:root {
  --bg: #0a0a0b;
  --raised: #141416;
  --panel: #0f0f0f;
  --ember: #ff6a1a;
  --ember-deep: #ec7200;
  --t-92: rgba(255, 255, 255, 0.92);
  --t-80: rgba(255, 255, 255, 0.8);
  --t-60: rgba(255, 255, 255, 0.6);
  --t-40: rgba(255, 255, 255, 0.4);
  --t-24: rgba(255, 255, 255, 0.24);
  --hairline: rgba(255, 255, 255, 0.08);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--t-92);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- nav link (waitlist NavPillLink behavior) ---------- */
.navlink {
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: var(--t-60);
  transition: color 180ms ease;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .navlink:hover { color: rgba(255, 255, 255, 0.95); }
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 11px;
  height: 42px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 180ms ease,
    color 180ms ease, border-color 180ms ease;
  will-change: transform;
}
.btn:active { transform: scale(0.98); }

/* Primary ember — waitlist depth recipe (top light, bottom shade) */
.btn-ember {
  background: var(--ember);
  color: #ffffff;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.3),
    inset 0 -2px 3px rgba(0, 0, 0, 0.47), 0 2px 6px rgba(0, 0, 0, 0.35);
}
@media (hover: hover) and (pointer: fine) {
  .btn-ember:hover { background: #ff7a2e; }
}

/* Tile-arrow CTA — waitlist JoinWaitlistButton, tile sits 2px off the
   top/bottom/right edges. Hover: the tile sweeps left and fills the
   button (inset white state), label flips to black under it. */
.btn-arrow {
  height: 42px;
  padding: 0 51px 0 15px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 500;
  background: var(--ember-deep);
  color: #ffffff;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.3),
    inset 0 -2px 3px rgba(0, 0, 0, 0.47);
}
.btn-arrow .btn-label {
  position: relative;
  z-index: 1;
  transition: color 220ms var(--ease-out);
}
.btn-arrow .btn-tile {
  position: absolute;
  top: 2px;
  bottom: 2px;
  right: 2px;
  width: 38px;
  height: auto;
  border-radius: 9px;
  justify-content: flex-end;
  padding-right: 10.5px;
  transition: width 260ms var(--ease-out);
  will-change: width;
}
@media (hover: hover) and (pointer: fine) {
  .btn-arrow:hover .btn-tile { width: calc(100% - 4px); }
  .btn-arrow:hover .btn-label { color: #000000; transition-delay: 50ms; }
}

/* Dark chip — app-UI chip recipe */
.btn-chip {
  background: #171717;
  color: #b4b4b4;
  box-shadow: rgba(255, 255, 255, 0.2) 0 2px 3px -2px inset,
    rgba(0, 0, 0, 0.9) 0 -2px 3px -1px inset;
}
@media (hover: hover) and (pointer: fine) {
  .btn-chip:hover { background: #1c1c1e; color: rgba(255, 255, 255, 0.92); }
}

/* Ghost — billing ActionButton recipe */
.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
  }
}

/* White arrow tile inside a button (waitlist JoinWaitlistButton motif) */
.btn-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 -1px 1px rgba(0, 0, 0, 0.75), 0 2px 3px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}
.btn-tile .lucide { flex-shrink: 0; }

/* ---------- page background (BG image 2 — starfield + lit horizon) ---------- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("/hero-bg-2.png") center bottom / cover no-repeat;
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.5) 0%, rgba(10, 10, 11, 0.08) 55%, rgba(10, 10, 11, 0) 100%);
}

/* ---------- floating nav (refined waitlist pill) ---------- */
.fnav {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 50;
  pointer-events: none;
}
/* Exact Paper export 22Q0-0 (waitlist pill): 460×50, rounded-14,
   blur(4px), bg #FFFFFF14; mark 40px at 5,5; links at 65,15 gap 16;
   right cluster Login + 138×40 Join waitlist. */
.fnav-pill {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 460px;
  height: 50px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.fnav-pill .mark {
  position: absolute;
  left: 5px;
  top: 5px;
  width: 40px;
  height: 40px;
  border-radius: 8px; /* Paper 272F-0 rounded-lg */
  object-fit: contain;
  display: block;
}
.fnav-pill .links {
  position: absolute;
  left: 65px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}
.fnav-pill .navlink { font-size: 14px; line-height: 18px; }
.fnav-pill .nav-spacer { width: 120px; height: 18px; flex-shrink: 0; }
.fnav-pill .right { display: flex; align-items: center; gap: 5px; }
.fnav-pill .login { padding: 0 12px; }

/* the pill's Join waitlist — exact export dims + the inset-fill hover */
.nav-join {
  position: relative;
  display: block;
  width: 138px;
  height: 40px;
  border-radius: 10px;
  background: var(--ember-deep);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.3),
    inset 0 -2px 3px rgba(0, 0, 0, 0.47);
  flex-shrink: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out);
}
.nav-join:active { transform: scale(0.98); }
.nav-join .btn-label {
  position: absolute;
  left: 11px;
  top: 11px;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: #ffffff;
  z-index: 1;
  pointer-events: none;
  transition: color 220ms var(--ease-out), transform 260ms var(--ease-out);
}
.nav-join .btn-tile {
  position: absolute;
  top: 2px;
  bottom: 2px;
  right: 2px;
  width: 36px;
  height: auto;
  border-radius: 9px;
  justify-content: flex-end;
  padding-right: 9px;
  transition: width 260ms var(--ease-out);
  will-change: width;
}
.nav-join .btn-tile .lucide {
  transition: transform 260ms var(--ease-out);
}
/* Filled state: label and arrow settle toward each other into one
   centered lockup — same duration/ease as the fill, one gesture */
@media (hover: hover) and (pointer: fine) {
  .nav-join:hover .btn-tile { width: calc(100% - 4px); }
  .nav-join:hover .btn-label {
    color: #000000;
    transform: translateX(4px);
    transition-delay: 50ms, 0ms;
  }
  .nav-join:hover .btn-tile .lucide { transform: translateX(-4px); }
}

/* Hero CTA — same family as the nav tile button, different shape:
   fully-rounded app-ember pill, deeper rest shadow, arrow nudges on
   hover, ground shadow deepens */
.btn-hero {
  height: 46px;
  padding: 0 24px;
  gap: 10px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  background: var(--ember);
  color: #ffffff;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.3),
    inset 0 -2px 3px rgba(0, 0, 0, 0.47), 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 160ms var(--ease-out), background-color 200ms ease,
    box-shadow 200ms ease;
}
.btn-hero .lucide { transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-hero:hover {
    background: #ff7a2e;
    box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.3),
      inset 0 -2px 3px rgba(0, 0, 0, 0.47), 0 8px 20px -8px rgba(0, 0, 0, 0.65);
  }
  .btn-hero:hover .lucide { transform: translateX(3px); }
}

/* Hero CTA row — exact Paper 22SU-0: white primary + quiet text link */
.cta-row2 {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 38px;
}
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 42px;
  padding: 0 22px;
  border-radius: 12px;
  background: #ffffff;
  color: #000000;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: rgba(255, 255, 255, 0.45) 0 1px 2px inset,
    rgba(0, 0, 0, 0.8) 0 -1px 2px inset;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
  will-change: transform;
}
.btn-white:active { transform: scale(0.98); }
.btn-white .lucide { flex-shrink: 0; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-white:hover { background: #f1f1f2; }
  .btn-white:hover .lucide { transform: translateX(2px); }
}
.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 6px;
  font-size: 15px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: color 180ms ease;
}
.link-quiet .lucide {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.55);
  transition: transform 200ms var(--ease-out), color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .link-quiet:hover { color: #ffffff; }
  .link-quiet:hover .lucide { transform: translateX(2px); color: rgba(255, 255, 255, 0.8); }
}

/* ---------- announcement chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: rgba(255, 255, 255, 0.14) 0 1px 2px -1px inset,
    rgba(0, 0, 0, 0.7) 0 -1px 2px -1px inset;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--t-60);
  transition: color 180ms ease, background-color 180ms ease;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .chip:hover { color: var(--t-80); background: rgba(255, 255, 255, 0.08); }
}
.chip .lucide { width: 13px; height: 13px; flex-shrink: 0; }

/* inline Lucide svgs inherit color */
svg.lucide { display: block; }

/* ---------- eyebrow (mono register = Inter + tabular-nums) ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--t-40);
}

/* ---------- screenshot framing ---------- */
.shot {
  display: block;
  width: 100%;
  aspect-ratio: 1920 / 899;
  object-fit: cover;
  border-radius: 16px;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
}

/* ---------- entrance reveal (one-shot page load, staggered) ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.rv { opacity: 0; animation: rise 700ms var(--ease-out) forwards; }
.rv.d1 { animation-delay: 60ms; }
.rv.d2 { animation-delay: 150ms; }
.rv.d3 { animation-delay: 240ms; }
.rv.d4 { animation-delay: 330ms; }
.rv.d5 { animation-delay: 420ms; }
.rv.d6 { animation-delay: 520ms; }

@media (prefers-reduced-motion: reduce) {
  .rv { animation: none; opacity: 1; }
  .btn, .btn-tile, .navlink, .chip { transition: none; }
}

