/* ============================================================
   Fairnovo — pre-launch page
   Palette
     bg        #0b0d14   deep blue-black
     ink       #eef0f6   headings
     muted     #98a0b3   body text
     teal      #2dd4bf   accent gradient start
     sky       #38bdf8   accent gradient end
     amber     #fbbf24   live dot + stars only
   Type
     Display   Space Grotesk
     Body      Instrument Sans
     Data      IBM Plex Mono (offer chips)
   ============================================================ */

:root {
  --bg: #0b0d14;
  --ink: #eef0f6;
  --muted: #98a0b3;
  --teal: #2dd4bf;
  --sky: #38bdf8;
  --amber: #fbbf24;
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.04);
  --grad: linear-gradient(92deg, var(--teal), var(--sky));
  --display: "Space Grotesk", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

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

html { color-scheme: dark; }

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- ambient background ---------- */

.bg { position: fixed; inset: 0; z-index: -2; pointer-events: none; }

.aurora {
  position: absolute;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
}
.aurora-a {
  top: -25vmax; right: -18vmax;
  background: radial-gradient(circle at 40% 40%, var(--teal), transparent 62%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.aurora-b {
  bottom: -30vmax; left: -20vmax;
  background: radial-gradient(circle at 60% 60%, #2f4fd8, transparent 60%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(-6vmax, 5vmax) scale(1.08); } }
@keyframes drift-b { to { transform: translate(5vmax, -4vmax) scale(0.94); } }

/* faint film grain via inline SVG turbulence */
.grain {
  position: absolute; inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- floating sample offers (signature element) ---------- */

.offers { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.offer {
  position: absolute;
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: chip-in 0.9s ease forwards, float 7s ease-in-out infinite;
  transition: transform 0.25s ease-out;
}
.offer-label {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.offer-task { color: var(--ink); font-weight: 500; font-size: 0.9rem; }
.offer-meta { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.offer-meta b { color: var(--ink); font-weight: 500; }
.star { color: var(--amber); font-style: normal; }

.offer-1 { top: 16%; right: 7%;  animation-delay: 1.1s, 1.1s; }
.offer-2 { bottom: 20%; left: 5%; animation-delay: 1.35s, 1.35s; animation-duration: 0.9s, 8.5s; }
.offer-3 { bottom: 11%; right: 12%; animation-delay: 1.6s, 1.6s; animation-duration: 0.9s, 7.6s; }

@keyframes chip-in { to { opacity: 1; } }
@keyframes float {
  0%, 100% { margin-top: 0; }
  50%      { margin-top: -14px; }
}

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

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 48px);
}
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark .dot { color: var(--teal); }
.locale {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px 56px;
  max-width: 760px;
  margin-inline: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  animation: rise 0.7s ease both;
}
.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

.title {
  margin-top: 26px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7.5vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.title .line { display: block; animation: rise 0.7s ease both; }
.title .line:nth-child(2) { animation-delay: 0.12s; }
.title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  margin-top: 20px;
  max-width: 34em;
  animation: rise 0.7s ease 0.24s both;
}

/* ---------- waitlist form ---------- */

.waitlist {
  display: flex;
  gap: 10px;
  margin-top: 34px;
  width: min(100%, 470px);
  animation: rise 0.7s ease 0.36s both;
}
.waitlist input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s;
}
.waitlist input::placeholder { color: rgba(152, 160, 179, 0.7); }
.waitlist input:focus { outline: none; border-color: var(--teal); }

.waitlist button {
  padding: 14px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--grad);
  color: #06231f;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s;
}
.waitlist button:hover  { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(45, 212, 191, 0.28); }
.waitlist button:active { transform: translateY(0); }
.waitlist button:disabled { opacity: 0.6; cursor: wait; }

:is(a, button, input):focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.consent {
  margin-top: 12px;
  font-size: 0.8rem;
  opacity: 0.75;
  animation: rise 0.7s ease 0.44s both;
}

.form-msg { margin-top: 10px; font-size: 0.9rem; min-height: 1.4em; }
.form-msg.ok  { color: var(--teal); }
.form-msg.err { color: #f87171; }

/* ---------- steps strip ---------- */

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 0;
  margin-top: 48px;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: rise 0.7s ease 0.52s both;
}
.steps li { display: flex; align-items: center; }
.steps li + li::before {
  content: "\2192"; /* → */
  margin: 0 14px;
  color: var(--teal);
}

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

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.foot-links { display: flex; gap: 22px; }
.foot a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.foot a:hover { color: var(--ink); }

/* ---------- shared entrance ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 760px) {
  .offer-1 { top: 9%; right: 4%; transform: scale(0.9); }
  .offer-2 { display: none; }
  .offer-3 { bottom: 6%; right: 6%; transform: scale(0.9); }
  .steps { font-size: 0.68rem; }
  .steps li + li::before { margin: 0 9px; }
}
@media (max-width: 480px) {
  .waitlist { flex-direction: column; }
  .waitlist button { width: 100%; }
  .locale { display: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .aurora, .offer, .pulse { animation: none !important; }
  .offer { opacity: 1; }
  .badge, .title .line, .sub, .waitlist, .consent, .steps {
    animation: none !important; opacity: 1; transform: none;
  }
}
