/* Ularo coming-soon page: one screen, one job (collect the email). */
/* Alexandria (SIL OFL 1.1), self-hosted so no request goes to Google. */
@font-face {
  font-family: "Alexandria"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("assets/fonts/alexandria-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alexandria"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("assets/fonts/alexandria-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #070806;
  --ink: #F4F2EA;
  --ink-2: rgba(244, 242, 234, .68);
  --ink-3: rgba(244, 242, 234, .44);
  --hair: rgba(244, 242, 234, .1);
  --glass: rgba(244, 242, 234, .045);
  --core: rgba(20, 24, 17, .72);
  --lime: #D9FA5C;
  --emerald: #1F6B4E;
  --danger: #FF9B84;
  --spring: cubic-bezier(.32, .72, 0, 1);
  --font: "Alexandria", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: 300; line-height: 1.7;
  overflow-x: hidden;
}
img, svg { display: block; }
button, input { font: inherit; color: inherit; }
p, h1 { margin: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Background: two still light sources + fine grain ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); }
.orb-a { width: 720px; height: 720px; inset-inline-end: -220px; top: -180px; background: radial-gradient(closest-side, rgba(31, 107, 78, .55), transparent); }
.orb-b { width: 520px; height: 520px; inset-inline-end: 12%; bottom: -260px; background: radial-gradient(closest-side, rgba(217, 250, 92, .16), transparent); }
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .05; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Floating nav pill ---------- */
.nav {
  position: relative; z-index: 2;
  margin: 22px auto 0; width: max-content;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--hair);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.brand span { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }

/* ---------- Hero ---------- */
.hero {
  flex: 1; width: 100%; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(40px, 6vw, 96px);
  padding: clamp(28px, 6vh, 80px) clamp(16px, 5vw, 64px) clamp(24px, 4vh, 56px);
}

/* "Launching soon": plain words with a hand-drawn underline */
.soon { position: relative; display: inline-block; padding-bottom: 10px; }
.soon-text { font-size: 1.05rem; font-weight: 500; color: var(--ink); letter-spacing: .005em; }
.scribble {
  position: absolute; left: -2px; right: -4px; bottom: 0; width: calc(100% + 6px); height: 12px; overflow: visible;
}
.scribble path {
  fill: none; stroke: var(--lime); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 320; stroke-dashoffset: 320;
  animation: draw 1.1s cubic-bezier(.65, 0, .35, 1) .9s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

h1 {
  margin-top: 26px;
  font-size: clamp(2.4rem, 4.6vw, 4.1rem);
  font-weight: 600; line-height: 1.22; letter-spacing: -0.02em;
  text-wrap: balance;
}
html[lang="en"] h1 { line-height: 1.06; letter-spacing: -0.04em; }
.lede { margin-top: 22px; max-width: 30em; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); }

/* ---------- Form (double bezel) ---------- */
.join { margin-top: 34px; max-width: 520px; }
.join-call { font-weight: 500; font-size: 1.02rem; margin-bottom: 14px; text-wrap: balance; }
.shell {
  padding: 6px; border-radius: 30px;
  background: var(--glass); border: 1px solid var(--hair);
}
.shell > .core {
  border-radius: 24px; background: var(--core);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .08);
}
.join .core {
  display: flex; align-items: center; gap: 6px; padding: 6px;
  transition: box-shadow .6s var(--spring);
}
/* Focus glow: an even halo on a separate layer, faded in with opacity so it stays smooth */
.join .shell { position: relative; transition: border-color .7s var(--spring); }
.join .shell::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 4px rgba(217, 250, 92, .09), 0 0 40px 4px rgba(217, 250, 92, .18);
  opacity: 0; transition: opacity .7s var(--spring);
}
.join .shell:focus-within { border-color: rgba(217, 250, 92, .5); }
.join .shell:focus-within::before { opacity: 1; }
.join input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  padding: 13px 16px; font-size: 1rem; font-weight: 400;
}
html[dir="rtl"] .join input:placeholder-shown { text-align: right; }
.join input::placeholder { color: var(--ink-3); }

.join button {
  display: inline-flex; align-items: center; gap: 12px;
  border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  padding: 7px 7px 7px 20px; background: var(--lime); color: #0B0E07;
  font-weight: 600; font-size: .98rem;
  transition: transform .5s var(--spring), box-shadow .5s var(--spring);
  box-shadow: 0 10px 30px -12px rgba(217, 250, 92, .7);
}
html[dir="rtl"] .join button { padding: 7px 20px 7px 7px; }
.btn-icon {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(11, 14, 7, .1); transition: transform .5s var(--spring);
}
.btn-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.join button:hover .btn-icon { transform: translateX(-3px) scale(1.06); }
html[dir="ltr"] .join button:hover .btn-icon { transform: translateX(3px) scale(1.06); }
.join button:active { transform: scale(.97); }
.join button[disabled] { opacity: .75; cursor: progress; }

.note { margin-top: 12px; font-size: .86rem; color: var(--ink-3); min-height: 1.7em; padding-inline: 8px; }
.note.error { color: var(--danger); }

.done .core {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  animation: settle .8s var(--spring);
}
.done-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.done-icon svg { width: 20px; height: 20px; fill: none; stroke: #0B0E07; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.done b { display: block; font-weight: 600; }
.done span { color: var(--ink-2); font-size: .92rem; }
@keyframes settle { from { opacity: 0; transform: translateY(8px) scale(.98); filter: blur(6px); } }

/* ---------- Perks ---------- */
.perks { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--ink-2); font-size: .92rem; }
.perks li { display: inline-flex; align-items: center; gap: 9px; }
.perks svg { width: 18px; height: 18px; fill: none; stroke: var(--lime); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Visual: founders badge + level + streak ---------- */
.visual { position: relative; height: 540px; }
.card { position: absolute; }
.card .core { padding: 22px; }
.c-label { font-size: .82rem; color: var(--ink-3); }
.c-title { font-weight: 500; font-size: 1rem; line-height: 1.4; }
.c-sub { font-size: .82rem; color: var(--ink-3); }
html[dir="rtl"] .c-sub[dir="ltr"] { text-align: right; }

.card-level { width: 300px; inset-inline-end: -4%; top: 334px; z-index: 1; }
.lvl-row { display: flex; align-items: center; gap: 14px; }
.lvl-badge {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
  background: var(--lime); color: #0B0E07; font-weight: 700; font-size: 1.3rem;
}
.bar { margin-top: 16px; height: 8px; border-radius: 99px; background: rgba(244, 242, 234, .08); overflow: hidden; }
.bar span {
  display: block; height: 100%; width: 96%; border-radius: inherit;
  background: linear-gradient(90deg, #9FD13A, var(--lime));
  transform-origin: left; transform: scaleX(0);
  animation: bar 1.4s var(--spring) 1.2s forwards;
}
html[dir="rtl"] .bar span { transform-origin: right; }
@keyframes bar { to { transform: scaleX(1); } }

.card-streak { width: 262px; inset-inline-start: 0; top: 452px; transform: rotate(2deg); }
html[dir="rtl"] .card-streak { transform: rotate(-2deg); }
.card-streak .core { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.flame { width: 34px; height: 34px; padding: 7px; border-radius: 12px; background: rgba(255, 196, 92, .14); fill: #FFC45C; flex: none; box-sizing: content-box; }


/* Founders badge: the reason to sign up now */
.card-founder { width: 300px; inset-inline-start: 8%; top: 0; transform: rotate(-3deg); }
html[dir="rtl"] .card-founder { transform: rotate(3deg); }
.card-founder .core { text-align: center; padding: 22px 22px 26px; }
.f-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; padding: 5px 13px 5px 10px; border-radius: 999px;
  color: #0B0E07; background: var(--lime);
  box-shadow: 0 6px 22px -6px rgba(217, 250, 92, .6);
}
.f-pill svg { width: 13px; height: 13px; fill: currentColor; }
.medal {
  position: relative; width: 132px; height: 132px; margin: 18px auto 0; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, rgba(217, 250, 92, .2), rgba(9, 12, 7, .95) 70%);
  box-shadow: 0 0 70px -12px rgba(217, 250, 92, .5), inset 0 1px 1px rgba(255, 255, 255, .12);
}
.medal-ring {
  position: absolute; inset: 0; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 200deg, var(--lime), var(--emerald), var(--lime), var(--emerald), var(--lime));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.medal img { width: 66px; height: 66px; filter: drop-shadow(0 0 14px rgba(217, 250, 92, .6)); }
.shine {
  position: absolute; inset: -10%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .32) 50%, transparent 62%);
  transform: translateX(-130%);
  animation: shine 1.5s var(--spring) 1.7s forwards;
}
@keyframes shine { to { transform: translateX(130%); } }
.f-title { margin-top: 16px; font-weight: 600; font-size: 1.22rem; line-height: 1.4; }
.f-sub { margin: 6px auto 0; max-width: 22em; color: var(--ink-2); font-size: .88rem; line-height: 1.6; }

/* ---------- Entrance: one orchestrated load sequence ---------- */
.reveal, .lift { opacity: 0; filter: blur(8px); }
.reveal { animation: rise 1s var(--spring) calc(.12s + var(--d) * .1s) forwards; }
.lift { animation: lift 1.2s var(--spring) calc(.3s + var(--d) * .14s) forwards; }
@keyframes rise { from { transform: translateY(18px); } to { opacity: 1; filter: none; transform: none; } }
@keyframes lift { from { translate: 0 40px; } to { opacity: 1; filter: none; translate: 0 0; } }

/* ---------- Footer ---------- */
.foot { text-align: center; padding: 0 16px 26px; color: var(--ink-3); font-size: .8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 44px; gap: 56px; }
  .lede, .join { margin-inline: auto; }
  .perks { justify-content: center; }
  .visual { height: auto; display: grid; gap: 14px; justify-items: center; max-width: 360px; width: 100%; margin: 0 auto; }
  .card { position: static; width: 100% !important; transform: none !important; }
  .card .core { text-align: start; }
  .card-founder .core { text-align: center; }
}
@media (max-width: 520px) {
  h1 { font-size: 2.35rem; }
  .join .core { flex-direction: column; align-items: stretch; padding: 8px; }
  .join input { text-align: center !important; padding: 14px; }
  .join button, html[dir="rtl"] .join button { justify-content: space-between; padding: 7px 20px 7px 7px; }
  html[dir="ltr"] .join button { padding: 7px 7px 7px 20px; }
  .join .shell { border-radius: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .lift { animation: none; opacity: 1; filter: none; }
  .bar span { animation: none; transform: none; }
  .shine { animation: none; display: none; }
  .scribble path { animation: none; stroke-dashoffset: 0; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Footer links ---------- */
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.foot-links a { color: var(--ink-2); text-decoration: none; transition: color .4s var(--spring); }
.foot-links a:hover { color: var(--ink); }
.note a { color: var(--ink-2); text-underline-offset: 3px; }
.note a:hover { color: var(--ink); }

/* ---------- Text pages (privacy, legal notice) ---------- */
.doc-page .foot { margin-top: 40px; }
.doc { width: 100%; max-width: 720px; margin: 0 auto; padding: 56px 20px 24px; flex: 1; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 0; }
.doc-date { margin-top: 10px; color: var(--ink-3); font-size: .9rem; }
.doc h2 { margin: 40px 0 10px; font-size: 1.2rem; font-weight: 600; line-height: 1.4; }
.doc h3 { margin: 22px 0 6px; font-size: 1rem; font-weight: 500; color: var(--ink); }
.doc p, .doc li, .doc address { color: var(--ink-2); font-size: 1rem; font-style: normal; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-inline-start: 20px; margin: 8px 0 0; display: grid; gap: 8px; }
.doc b { color: var(--ink); font-weight: 500; }
.doc a { color: var(--lime); text-underline-offset: 3px; }

/* Turnstile only shows itself when it needs the visitor to click */
.ts-box { margin-top: 10px; display: flex; justify-content: center; }
.ts-box:empty { display: none; }

/* Confirmation page */
.confirm { text-align: center; padding-top: 80px; }
.confirm-mark { margin: 0 auto 24px; filter: drop-shadow(0 0 30px rgba(217, 250, 92, .45)); }
.confirm p { margin-left: auto; margin-right: auto; max-width: 30em; }
.confirm-home { display: inline-block; margin-top: 18px; }
