/* ==========================================================================
   FLARA — static build
   Design tokens first, then layout, then components, then the shared page
   sections. Pink is reserved for accents, CTAs and focus rings; body copy
   stays white so it holds 4.5:1 against the near-black base.
   ========================================================================== */

:root {
  --bg: #050505;
  --fg: #f4f4f6;
  --muted: #9d9daa;

  --pink: #ff2d78;
  --pink-soft: #ffd3e3;
  --pink-dim: rgba(255, 45, 120, 0.14);

  --border: rgba(255, 255, 255, 0.1);
  --surface: rgba(255, 255, 255, 0.04);
  --sunken: rgba(0, 0, 0, 0.3);

  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --container: 1152px;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas,
    monospace;
}

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

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

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Background shader ---------------------------------------------------- */

/* Fixed so every section shares one continuous wave instead of restarting. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
}

.backdrop canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Scrim: without it the crest of the wave eats the contrast of white text. */
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.backdrop--legal::after {
  background: rgba(0, 0, 0, 0.65);
}

/* --- Primitives ----------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.glass {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
  flex-shrink: 0;
}

.text-pink {
  color: var(--pink);
  text-shadow: 0 0 24px rgba(255, 45, 120, 0.45);
}

.caret {
  margin-left: 4px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 45, 120, 0.3);
  background: var(--pink-dim);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--pink-soft);
}

.badge .pulse {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--pink);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 32px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--pink);
  color: #14000a;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background: #e62a6c;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.btn--sm {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.section {
  padding-bottom: 80px;
}

.section-head {
  max-width: 576px;
}

.section-head h2 {
  margin-top: 12px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.link-pink {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-pink:hover {
  color: var(--pink-soft);
}

/* --- Header --------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--fg);
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  padding: 64px 0 80px;
}

.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin-top: 24px;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* Reserve the tallest line so the typewriter never reflows the page. */
.hero h1 .typed-line {
  display: block;
  min-height: 1.15em;
}

.hero__lede {
  margin-top: 20px;
  max-width: 448px;
  color: var(--muted);
  font-size: 17px;
}

.hero__points {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
}

.hero__points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.hero__points svg {
  width: 16px;
  height: 16px;
  color: var(--pink);
}

.countdown-wrap {
  margin-top: 40px;
  max-width: 448px;
}

.countdown-wrap > p {
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.countdown__cell {
  border-radius: var(--radius-xl);
  padding: 12px 8px;
  text-align: center;
}

.countdown__value {
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Swap card ------------------------------------------------------------ */

.swap {
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.swap__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.swap__head h2 {
  font-size: 14px;
  font-weight: 500;
}

.swap__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.swap__status .dot {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 8px var(--pink);
}

.swap__field {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--sunken);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.swap__field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}

.swap__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.swap__amount,
.swap__result {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.swap__amount::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.swap__result {
  display: flex;
  align-items: center;
  color: var(--pink);
  text-shadow: 0 0 24px rgba(255, 45, 120, 0.45);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.swap__hint {
  margin-top: 6px;
  min-height: 16px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.swap__token {
  flex-shrink: 0;
  width: 116px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d9daa' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  padding-right: 28px;
}

.swap__token option {
  background: #0b0207;
  color: var(--fg);
}

/* Sits in the seam between the two fields without adding vertical space. */
.swap__flip-rail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0;
}

.swap__flip {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.swap__flip:hover {
  color: var(--pink);
  border-color: rgba(255, 45, 120, 0.5);
}

.swap__flip svg {
  width: 16px;
  height: 16px;
}

.swap__cta {
  margin-top: 16px;
  width: 100%;
}

.swap__note {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* --- Bonus band ----------------------------------------------------------- */

.bonus {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 40px 24px;
}

.bonus::before {
  content: "";
  position: absolute;
  top: -96px;
  right: -64px;
  width: 288px;
  height: 288px;
  border-radius: 999px;
  background: rgba(255, 45, 120, 0.2);
  filter: blur(64px);
  pointer-events: none;
}

.bonus__line {
  position: relative;
  margin-top: 20px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.bonus__note {
  position: relative;
  margin-top: 20px;
  max-width: 512px;
  font-size: 14px;
  color: var(--muted);
}

/* --- Roadmap -------------------------------------------------------------- */

.roadmap {
  margin-top: 48px;
  display: grid;
  gap: 16px;
  list-style: none;
}

.phase {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  padding: 24px;
}

.phase--active {
  border-color: rgba(255, 45, 120, 0.4);
  box-shadow:
    0 0 0 1px rgba(255, 45, 120, 0.35),
    0 8px 40px -8px rgba(255, 45, 120, 0.55);
}

.phase__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phase__num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}

.phase__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.phase__status svg {
  width: 12px;
  height: 12px;
}

.phase--active .phase__status {
  border-color: rgba(255, 45, 120, 0.4);
  background: var(--pink-dim);
  color: var(--pink-soft);
}

.phase--active .phase__status svg {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.phase__period {
  margin-top: 24px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.phase h3 {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.phase ul {
  margin-top: 20px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phase li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.phase li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.phase--done li::before,
.phase--active li::before {
  background: var(--pink);
}

/* --- Testimonials (3D marquee) -------------------------------------------- */

.reviews {
  position: relative;
  margin-top: 48px;
  height: 420px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 300px;
}

.reviews__tilt {
  display: flex;
  gap: 16px;
  align-items: center;
  transform: translateX(-40px) translateZ(-100px) rotateX(20deg)
    rotateY(-10deg) rotateZ(20deg);
}

.lane {
  height: 900px;
  overflow: hidden;
  flex-shrink: 0;
}

.lane__track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: marquee-vertical 44s linear infinite;
}

/* The second copy is what makes the loop seamless — the first scrolls out
   exactly as the second reaches its starting position. */
.lane__track + .lane__track {
  margin-top: 16px;
}

.lane--reverse .lane__track {
  animation-direction: reverse;
}

.lane:hover .lane__track {
  animation-play-state: paused;
}

@keyframes marquee-vertical {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(calc(-100% - 16px));
  }
}

.review {
  width: 224px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

.review__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review__avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--pink-dim);
}

.review__name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
}

.review__country {
  font-size: 12px;
}

.review__handle {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.review__body {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(244, 244, 246, 0.8);
}

/* Feather the edges so lanes fade into the shader instead of hard-clipping. */
.reviews__fade {
  position: absolute;
  pointer-events: none;
}

.reviews__fade--t {
  inset: 0 0 auto 0;
  height: 25%;
  background: linear-gradient(to bottom, var(--bg), transparent);
}
.reviews__fade--b {
  inset: auto 0 0 0;
  height: 25%;
  background: linear-gradient(to top, var(--bg), transparent);
}
.reviews__fade--l {
  inset: 0 auto 0 0;
  width: 25%;
  background: linear-gradient(to right, var(--bg), transparent);
}
.reviews__fade--r {
  inset: 0 0 0 auto;
  width: 25%;
  background: linear-gradient(to left, var(--bg), transparent);
}

/* --- FAQ ------------------------------------------------------------------ */

.faq__grid {
  margin-top: 48px;
  display: grid;
  gap: 16px;
  list-style: none;
}

.faq__item {
  border-radius: var(--radius-xl);
  padding: 24px;
}

.faq__item dt {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq__item dd {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.faq__legal {
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
}

/* --- CTA ------------------------------------------------------------------ */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 56px 24px;
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  bottom: -128px;
  left: 50%;
  transform: translateX(-50%);
  width: 384px;
  height: 384px;
  border-radius: 999px;
  background: rgba(255, 45, 120, 0.2);
  filter: blur(64px);
  pointer-events: none;
}

.cta h2,
.cta p,
.cta a {
  position: relative;
}

.cta h2 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cta p {
  margin: 16px auto 0;
  max-width: 448px;
  color: var(--muted);
}

.cta .btn {
  margin-top: 32px;
}

/* --- Footer --------------------------------------------------------------- */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-top: 80px;
}

.footer__grid {
  display: grid;
  gap: 48px;
}

.footer__about p {
  margin-top: 16px;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.footer__col span {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.footer__col ul {
  margin-top: 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.footer__col a:hover {
  color: var(--pink);
}

.footer__disclaimer {
  margin-top: 48px;
  max-width: 768px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.footer__bottom {
  margin-top: 32px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.footer__copy {
  font-size: 14px;
  color: var(--muted);
}

.footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__socials a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.footer__socials a:hover {
  color: var(--pink);
}

.footer__socials svg {
  width: 20px;
  height: 20px;
}

/* --- Legal pages ---------------------------------------------------------- */

.legal {
  max-width: 768px;
  margin: 0 auto;
  padding: 64px 16px 96px;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.legal__back:hover {
  color: var(--pink);
}

.legal__back svg {
  width: 16px;
  height: 16px;
}

.legal h1 {
  margin-top: 32px;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.legal__date {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.legal__intro {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}

.legal section {
  margin-top: 40px;
  scroll-margin-top: 96px;
}

.legal h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal p {
  margin-top: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.legal ul {
  margin-top: 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal ul li {
  display: flex;
  gap: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.legal ul li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--pink);
}

/* --- Responsive ----------------------------------------------------------- */

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }
  .section {
    padding-bottom: 112px;
  }
  .hero {
    padding: 96px 0 112px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero__lede {
    font-size: 18px;
  }
  .section-head h2,
  .cta h2 {
    font-size: 36px;
  }
  .countdown {
    gap: 12px;
  }
  .countdown__cell {
    padding: 16px;
  }
  .countdown__value {
    font-size: 30px;
  }
  .swap {
    padding: 24px;
  }
  .bonus {
    padding: 56px 48px;
  }
  .bonus__line {
    font-size: 36px;
  }
  .bonus__note {
    font-size: 16px;
  }
  .cta {
    padding: 80px 48px;
  }
  .reviews {
    height: 520px;
  }
  .faq__grid,
  .roadmap {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__cols {
    grid-template-columns: repeat(4, 1fr);
  }
  .legal {
    padding: 96px 24px 96px;
  }
  .legal h1 {
    font-size: 48px;
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  .footer__grid {
    grid-template-columns: 2fr 3fr;
  }
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
  .hero h1 {
    font-size: 60px;
  }
  .bonus__line {
    font-size: 48px;
  }
}

@media (min-width: 1280px) {
  .roadmap {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
