/* ==========================================================================
   Res — Landing page (logged-out visitors)
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Aeonik Fono';
  src: url('../fonts/AeonikFono-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aeonik Fono';
  src: url('../fonts/AeonikFono-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aeonik Fono';
  src: url('../fonts/AeonikFono-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --rl-black:       #100f0f;
  --rl-white:       #f7f8f6;
  --rl-bg-dark:     #100f0f;
  --rl-bg-light:    #f7f8f6;
  --rl-bg-soft:     #f0ebe6;
  --rl-orange:      #f37227;
  --rl-orange-dark: #c94a00;
  --rl-ff-display:  'Aeonik Fono', sans-serif;
  --rl-ff-body:     'Satoshi', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: none;
  }
}

body.res01-landing {
  --rl-ff-display: 'Aeonik Fono', sans-serif;
  --rl-ff-body:    'Satoshi', system-ui, -apple-system, sans-serif;
  font-family: var(--rl-ff-display);
  color: var(--rl-black);
  background: var(--rl-bg-dark);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body.res01-landing.admin-bar .rl-hero__logo {
  top: calc(clamp(20px, 3.5vw, 40px) + 32px);
}

@media screen and (max-width: 782px) {
  body.res01-landing.admin-bar .rl-hero__logo {
    top: calc(clamp(20px, 3.5vw, 40px) + 46px);
  }
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ==========================================================================
   PARALLAX — sticky image under whole page, scrolls slower via JS
   ========================================================================== */
.rl-wrap {
  position: relative;
}

.rl-parallax-bg {
  position: sticky;
  top: 0;
  height: 100svh;
  z-index: 0;
  overflow: hidden;
  background-color: var(--rl-bg-dark);
  pointer-events: none;
}

.rl-parallax-bg__media {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 140%;
  max-width: 100%;
  object-fit: cover;
  object-position: center top;
  will-change: transform;
}

.rl-parallax-bg__media--texture {
  opacity: 0.9;
}

/* Veil: transparent at top → 100% black after the second section (vision) */
.rl-page-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(16, 15, 15, 0) 0%,
    rgba(16, 15, 15, 1) var(--rl-gradient-end, 55%),
    rgba(16, 15, 15, 1) 100%
  );
}

/* Content sits over the sticky image + gradient for the full page */
.rl-page {
  position: relative;
  z-index: 2;
  margin-top: -100svh;
}

/* ==========================================================================
   1. HERO
   ========================================================================== */
.rl-hero {
  position: relative;
  justify-content: flex-start;
  padding: clamp(24px, 5vw, 56px);
  color: var(--rl-white);
  background: transparent;
}

.rl-hero__logo {
  position: absolute;
  top: clamp(20px, 3.5vw, 40px);
  left: clamp(20px, 4vw, 56px);
  z-index: 10;
  display: block;
}

.rl-hero__logo img {
  height: clamp(28px, 4vw, 44px);
  width: auto;
}

.rl-hero__content {
  position: relative;
  padding-top: 100px;
  left: 0;
  z-index: 5;
  max-width: 860px;
}

.rl-hero__headline {
  font-family: var(--rl-ff-display);
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--rl-white);
  margin-bottom: 0;
}

.rl-hero__cta {
  display: inline-block;
  margin-top: clamp(24px, 3vw, 32px);
  padding: 0.85rem 1.75rem;
  font-family: var(--rl-ff-body);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--rl-orange);
  background: var(--rl-black);
  border: 2px solid var(--rl-orange);
  border-radius: 50rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rl-hero__cta:hover {
  transform: translateY(-1px);
  background: var(--rl-orange);
  color: var(--rl-black);
  border-color: var(--rl-orange);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.rl-hero__br { display: none; }
@media (min-width: 768px) { .rl-hero__br { display: inline; } }

.rl-hero__scroll-hint {
  position: absolute;
  bottom: clamp(20px, 3vw, 36px);
  right: clamp(20px, 4vw, 56px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rl-hero__scroll-label {
  font-family: var(--rl-ff-display);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 248, 246, 0.45);
  writing-mode: vertical-rl;
}

.rl-hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(243, 114, 39, 0.6), transparent);
  animation: rl-scroll-pulse 2s ease-in-out infinite;
}

@keyframes rl-scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .rl-parallax-bg__media {
    will-change: auto;
    transform: none !important;
  }
}

.rl-vision,
.rl-map,
.rl-launch,
.rl-footer {
  position: relative;
  z-index: 2;
}

/* Full-viewport sections — one scroll reveals the next completely */
.rl-hero,
.rl-vision,
.rl-map,
.rl-launch {
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.rl-vision,
.rl-map,
.rl-launch {
  justify-content: center;
}

/* ==========================================================================
   2. VISION — pillars
   ========================================================================== */
.rl-vision {
  background: transparent;
  color: var(--rl-white);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 56px);
}

.rl-vision__inner {
  max-width: none;
  width: 100%;
  margin: 0;
}

.rl-vision__headline {
  font-family: var(--rl-ff-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: clamp(32px, 5vw, 56px);
  width: 100%;
  max-width: none;
  overflow-wrap: anywhere;
  text-align: justify;
  /* First line indented; following lines start further left */
  text-indent: clamp(4rem, 18vw, 14rem);
}

.rl-vision__headline .rl-word {
  opacity: 0;
  filter: blur(4px);
  transition: opacity 0.45s ease, filter 0.45s ease;
}

.rl-vision__headline.is-revealed .rl-word {
  opacity: 1;
  filter: blur(0);
}

.rl-vision__headline.h1 {
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
}

/* Pillars grid */
.rl-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  list-style: none;
}

@media (max-width: 767px) {
  .rl-pillars {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .rl-pillar__icon img {
    width: 32px;
    height: 32px;
  }
}

.rl-pillar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 248, 246, 0.15);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.rl-pillar.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .rl-vision__headline .rl-word,
  .rl-pillar {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

.rl-pillar__icon img {
  width: 48px;
  height: 48px;
}

.rl-pillar__name {
  font-family: var(--rl-ff-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--rl-orange);
}

.rl-pillar__desc {
  font-family: var(--rl-ff-body);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.65;
  color: var(--rl-white);
}

/* ==========================================================================
   3. VISUAL TEASER — map
   ========================================================================== */
.rl-map {
  background: var(--rl-bg-dark);
  color: var(--rl-white);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 56px);
  max-height: 100vh;
  max-height: 100svh;
  overflow: hidden;
}

.rl-map__inner {
  max-width: none;
  width: 100%;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.rl-map__headline {
  font-family: var(--rl-ff-display);
  font-size: clamp(1.75rem, 3.8vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: clamp(28px, 4vw, 48px);
  max-width: 520px;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.rl-map__stage {
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.rl-map__world {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  color: var(--rl-white);
}

.rl-map__link {
  fill: none;
  stroke: var(--rl-orange);
  stroke-width: 0.9;
  stroke-linecap: round;
  opacity: 0.35;
  vector-effect: non-scaling-stroke;
}

.rl-pin {
  opacity: 0;
}

.rl-map.is-active .rl-pin {
  opacity: 1;
  transition: opacity 0.45s ease;
}

.rl-pin__icon {
  pointer-events: none;
}

.rl-pin__pulse {
  fill: var(--rl-orange);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.rl-map.is-active .rl-pin__pulse {
  animation: rl-pin-pulse 2.6s ease-out infinite;
}

@keyframes rl-pin-pulse {
  0% {
    transform: scale(1);
    opacity: 0.35;
  }
  70%,
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .rl-map__stage {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rl-map .rl-pin {
    opacity: 1;
    transition: none;
  }

  .rl-map .rl-map__link {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }

  .rl-map .rl-pin__pulse {
    animation: none !important;
    opacity: 0;
  }
}

/* ==========================================================================
   4. LAUNCH / COUNTDOWN
   ========================================================================== */
.rl-launch {
  background: transparent;
  color: var(--rl-white);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 56px);
  text-align: center;
}

.rl-launch__inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 3.5vw, 40px);
}

.rl-launch__inner > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.rl-launch.is-revealed .rl-launch__inner > * {
  opacity: 1;
  transform: none;
}

.rl-launch.is-revealed .rl-launch__inner > *:nth-child(1) { transition-delay: 0.05s; }
.rl-launch.is-revealed .rl-launch__inner > *:nth-child(2) { transition-delay: 0.18s; }
.rl-launch.is-revealed .rl-launch__inner > *:nth-child(3) { transition-delay: 0.31s; }
.rl-launch.is-revealed .rl-launch__inner > *:nth-child(4) { transition-delay: 0.44s; }
.rl-launch.is-revealed .rl-launch__inner > *:nth-child(5) { transition-delay: 0.57s; }
.rl-launch.is-revealed .rl-launch__inner > *:nth-child(6) { transition-delay: 0.7s; }

@media (prefers-reduced-motion: reduce) {
  .rl-launch__inner > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.rl-launch__eyebrow {
  font-family: var(--rl-ff-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rl-orange);
}

.rl-launch__headline {
  font-family: var(--rl-ff-display);
  font-size: clamp(1.6rem, 3.5vw, 2.9rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 640px;
}

/* Countdown */
.rl-countdown {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 2.5vw, 28px);
}

.rl-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: clamp(56px, 10vw, 96px);
}

.rl-countdown__value {
  font-family: var(--rl-ff-display);
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--rl-orange);
  display: block;
}

.rl-countdown__label {
  font-family: var(--rl-ff-body);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 248, 246, 0.55);
}

.rl-countdown__sep {
  font-family: var(--rl-ff-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
  color: var(--rl-orange);
  opacity: 0.4;
  padding-top: 2px;
}

.rl-launch__note {
  font-family: var(--rl-ff-body);
  font-size: clamp(1.05rem, 1.8vw, 1.85rem);
  color: rgba(247, 248, 246, 0.7);
  letter-spacing: 0.04em;
}

.rl-launch__social {
  display: flex;
  gap: 20px;
  margin-top: clamp(8px, 2vw, 16px);
}

.rl-launch__social-link {
  color: rgba(247, 248, 246, 0.55);
  transition: color 0.2s ease;
  display: flex;
}

.rl-launch__social-link:hover {
  color: var(--rl-orange);
}

/* ==========================================================================
   4. FOOTER
   ========================================================================== */
.rl-footer {
  background: transparent;
  color: var(--rl-white);
  padding: clamp(32px, 4vw, 48px) clamp(24px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  scroll-snap-align: end;
  scroll-snap-stop: always;
}

.rl-footer__logo img {
  height: clamp(22px, 3vw, 32px);
  width: auto;
}

.rl-footer__copy {
  font-family: var(--rl-ff-body);
  font-size: 0.75rem;
  color: rgba(247, 248, 246, 0.28);
  letter-spacing: 0.04em;
}
