:root {
  --void: #160905;
  --dune: #26100b;
  --ridge: #4a1c10;
  --terra: #8e3a1f;
  --ember: #c24e28;
  --dust: #d36b3d;
  --solar: #ff8c42;
  --sand: #f0c48a;
  --cream: #f6e4c4;
  --foam: #fff6e8;
  --ink: #2a120c;
  --line: rgba(246, 228, 196, 0.16);
  --glass: rgba(38, 16, 11, 0.72);
  --display: "Lilita One", "Trebuchet MS", sans-serif;
  --ui: "Fredoka", "Nunito", sans-serif;
  --body: "Nunito", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--void);
  color: var(--cream);
  font-family: var(--body);
}

body {
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
}

.skip:focus {
  top: 1rem;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 520px at 50% 118%, rgba(194, 78, 40, 0.42), transparent 58%),
    radial-gradient(700px 360px at 82% 8%, rgba(240, 196, 138, 0.14), transparent 52%),
    linear-gradient(180deg, #1c0b07 0%, #2a110c 46%, #3d1a10 100%);
}

.sky-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(211, 107, 61, 0.28), transparent 46%),
    linear-gradient(180deg, transparent 0%, rgba(22, 9, 5, 0.18) 100%);
}

.sky-sun {
  position: absolute;
  width: 18rem;
  height: 18rem;
  right: 8%;
  top: 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, #fff3d4 0%, #f0c48a 18%, #ff8c42 42%, rgba(142, 58, 31, 0.2) 68%, transparent 74%);
  filter: blur(2px);
  animation: sunPulse 8s ease-in-out infinite;
}

.sky-planet {
  position: absolute;
  width: 9rem;
  height: 9rem;
  right: 11%;
  top: 9%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 34%, #fff8ea 0%, #d7c4a4 36%, #8a6d52 70%, #3d2a1d 100%);
  box-shadow: 0 0 40px rgba(246, 228, 196, 0.18);
  opacity: 0.55;
  animation: planetDrift 18s ease-in-out infinite;
}

.sky-ridges {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -2%;
  height: 28vh;
  background:
    radial-gradient(120% 90% at 12% 100%, #4a1c10 0 42%, transparent 43%),
    radial-gradient(90% 80% at 38% 110%, #6b2414 0 46%, transparent 47%),
    radial-gradient(110% 100% at 68% 120%, #3d160e 0 50%, transparent 51%),
    radial-gradient(80% 70% at 92% 110%, #8e3a1f 0 40%, transparent 41%);
  opacity: 0.55;
}

.sky-haze {
  position: absolute;
  inset: auto 0 8% 0;
  height: 22vh;
  background: linear-gradient(180deg, transparent, rgba(211, 107, 61, 0.22), transparent);
  filter: blur(18px);
  animation: hazeSlide 14s ease-in-out infinite;
}

.sky-grain,
.sky-grain::after {
  position: absolute;
  inset: 0;
}

.sky-grain {
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

#starField,
#dustField {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  background: radial-gradient(circle at 50% 40%, #3d1a10, #160905 68%);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.boot img {
  width: 9rem;
  height: 9rem;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(240, 196, 138, 0.2), 0 20px 40px rgba(0, 0, 0, 0.45);
  animation: rise 1.1s ease both;
}

.boot p,
.kicker,
.eyebrow,
.ca-label,
.facts span {
  margin: 0;
  font-family: var(--ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--sand);
}

.boot i {
  width: 8rem;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(246, 228, 196, 0.16);
}

.boot i::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, var(--solar), var(--sand));
  animation: load 1.15s ease forwards;
}

.boot.is-gone {
  opacity: 0;
  visibility: hidden;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 12;
  padding: 0.85rem 4vw;
  backdrop-filter: blur(16px);
  background: rgba(22, 9, 5, 0.58);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.mast.is-thin {
  background: rgba(22, 9, 5, 0.82);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.mast-inner,
.hero,
.about,
.howto,
.chart,
.foot,
.section-head {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.mast-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(240, 196, 138, 0.22);
}

.brand b,
.wordmark,
h2,
.ticker {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.brand b {
  display: block;
  font-size: 1.15rem;
  background: linear-gradient(180deg, #fff3d6 0%, #f0c48a 58%, #e09a58 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand small,
.lede,
.lore p,
.step p,
.foot p,
.console-hold p,
.join-copy p {
  color: rgba(246, 228, 196, 0.82);
}

.nav {
  display: flex;
  gap: 1.3rem;
  margin-left: auto;
  font-family: var(--ui);
  font-weight: 600;
}

.nav a {
  position: relative;
  padding: 0.2rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: var(--solar);
  transition: width 0.25s ease;
}

.nav a:hover::after {
  width: 100%;
}

.mast-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.ico,
.buy,
.btn,
.ca-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.ico {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(246, 228, 196, 0.08);
  border-color: var(--line);
}

.ico img,
.buy img,
.btn img {
  width: 1.05rem;
  height: 1.05rem;
  object-fit: contain;
}

.ico img {
  filter: brightness(0) invert(1);
}

.ico:hover,
.buy:hover,
.btn:hover,
.step:hover,
.lore:hover {
  transform: translateY(-3px);
}

.buy,
.btn-solar {
  padding: 0.62rem 1rem;
  border-radius: 999px;
  color: var(--ink);
  background: linear-gradient(180deg, #ffe7bf 0%, #f0c48a 46%, #ff8c42 100%);
  box-shadow: 0 8px 0 #6b2414, 0 14px 24px rgba(0, 0, 0, 0.28);
  font-family: var(--ui);
  font-weight: 700;
}

.buy:hover,
.btn-solar:hover {
  box-shadow: 0 10px 0 #4a1c10, 0 18px 28px rgba(0, 0, 0, 0.32);
}

.menu {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu i {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--cream);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  min-height: calc(100vh - 5.4rem);
  padding: 3.5rem 4vw 5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 228, 196, 0.06);
}

.eyebrow img {
  width: 4.4rem;
  height: auto;
}

.wordmark {
  margin: 0.7rem 0 0.4rem;
  font-size: clamp(4.1rem, 9vw, 7.4rem);
  line-height: 0.86;
}

.wordmark span {
  display: block;
  background: linear-gradient(180deg, #fff8e6 0%, #f3d5a8 42%, #e2a86a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter:
    drop-shadow(2px 2px 0 #8e3a1f)
    drop-shadow(4px 4px 0 #6b2414)
    drop-shadow(6px 7px 0 #4a1c10)
    drop-shadow(8px 12px 16px rgba(0, 0, 0, 0.35));
  animation: titleSettle 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wordmark span:last-child {
  animation-delay: 0.12s;
}

.lede {
  max-width: 28rem;
  font-size: 1.18rem;
  line-height: 1.55;
}

.ticker {
  display: inline-block;
  margin: 0.4rem 0 1.2rem;
  font-size: 1.7rem;
  color: var(--solar);
}

.ca-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(100%, 34rem);
  padding: 0.7rem 0.75rem 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(10px);
}

.ca-bar code {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
  color: var(--foam);
}

.ca-bar button,
.btn-ghost {
  border-radius: 999px;
  border-color: var(--line);
  background: rgba(246, 228, 196, 0.08);
  color: var(--cream);
}

.ca-bar button {
  padding: 0.5rem 0.95rem;
  font-family: var(--ui);
  font-weight: 700;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  font-family: var(--ui);
  font-weight: 700;
}

.btn-ghost {
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero-stage {
  position: relative;
  min-height: 34rem;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(240, 196, 138, 0.28);
}

.orbit-a {
  width: 86%;
  aspect-ratio: 1;
  animation: spin 28s linear infinite;
}

.orbit-b {
  width: 70%;
  aspect-ratio: 1;
  border-style: dotted;
  animation: spin 18s linear infinite reverse;
}

.orbit-c {
  width: 54%;
  aspect-ratio: 1;
  border-color: rgba(255, 140, 66, 0.35);
  animation: spin 12s linear infinite;
}

.portrait {
  position: relative;
  z-index: 2;
  width: min(26rem, 86%);
  aspect-ratio: 1;
  padding: 0.7rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 140, 66, 0.25), transparent 58%),
    rgba(22, 9, 5, 0.35);
  box-shadow:
    0 0 0 8px rgba(240, 196, 138, 0.1),
    0 24px 50px rgba(0, 0, 0, 0.4);
  transform: translate3d(var(--tilt-x, 0px), var(--tilt-y, 0px), 0);
  transition: transform 0.2s ease-out;
}

.portrait img {
  animation: float 5.5s ease-in-out infinite;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-video-shell {
  position: absolute;
  right: 4%;
  bottom: 8%;
  z-index: 3;
  width: 11rem;
  overflow: hidden;
  border-radius: 1.4rem;
  border: 2px solid rgba(240, 196, 138, 0.35);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}

.hero-video-shell video {
  width: 100%;
  height: 8.5rem;
  object-fit: cover;
}

.paw-mark {
  position: absolute;
  left: 8%;
  bottom: 10%;
  width: 3.2rem;
  fill: rgba(240, 196, 138, 0.55);
  animation: pawPulse 3.4s ease-in-out infinite;
}

.about,
.howto,
.chart {
  padding: 5.5rem 4vw;
}

.section-head {
  text-align: center;
  max-width: 42rem;
  margin-bottom: 2.6rem;
}

.kicker {
  margin-bottom: 0.45rem;
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  background: linear-gradient(180deg, #fff3d6, #f0c48a 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(2px 3px 0 #6b2414);
}

.section-head p:last-child {
  margin: 0;
  line-height: 1.65;
}

.lore-grid,
.trail,
.facts {
  display: grid;
  gap: 1.1rem;
}

.lore-grid {
  grid-template-columns: repeat(3, 1fr);
}

.lore,
.step,
.facts li,
.console {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(246, 228, 196, 0.06), rgba(22, 9, 5, 0.2)),
    rgba(38, 16, 11, 0.55);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.lore,
.step {
  padding: 1.5rem 1.4rem 1.55rem;
  border-radius: 1.6rem;
}

.lore h3,
.step h3 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: 1.55rem;
  color: var(--sand);
}

.facts {
  grid-template-columns: repeat(3, 1fr);
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 1.15rem 1.2rem;
  border-radius: 1.3rem;
}

.facts strong {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-family: var(--display);
  font-size: 1.45rem;
}

.facts img {
  width: 4.2rem;
}

.trail {
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.trail::before {
  content: "";
  position: absolute;
  top: 2.15rem;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(240, 196, 138, 0.45), transparent);
}

.crater {
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe7bf, #d36b3d 58%, #6b2414);
  color: var(--ink);
  font-family: var(--display);
  box-shadow: inset 0 -6px 0 rgba(74, 28, 16, 0.35);
}

.step-logo {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.8rem;
  object-fit: contain;
}

.step-logo.sol {
  width: 5.4rem;
  height: auto;
}

.text-link {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--sand);
  font-family: var(--ui);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

.console {
  border-radius: 1.6rem;
  overflow: hidden;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  font-family: var(--ui);
  font-size: 0.9rem;
}

.console-bar a {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.console-bar img {
  width: 1rem;
  height: 1rem;
}

.led {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #8a5a3a;
  box-shadow: 0 0 0 4px rgba(138, 90, 58, 0.18);
}

.led.live {
  background: #5fcb88;
  box-shadow: 0 0 0 4px rgba(95, 203, 136, 0.18);
  animation: ledBlink 1.6s ease-in-out infinite;
}

.console-view {
  position: relative;
  height: min(70vh, 620px);
  background: #0d0806;
}

.console-view iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.console-hold {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  background:
    radial-gradient(circle at 50% 40%, rgba(211, 107, 61, 0.2), transparent 50%),
    #160905;
}

.console.is-live .console-hold {
  display: none;
}

.console-hold img {
  width: 6.5rem;
  height: 6.5rem;
  object-fit: cover;
  border-radius: 50%;
}

.join {
  padding: 0 4vw 5.5rem;
}

.join-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  min-height: 38rem;
  border-radius: 2rem;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.join-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: bannerKen 22s ease-in-out infinite alternate;
}

.join-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 9, 5, 0.08) 0%, rgba(22, 9, 5, 0.12) 46%, rgba(22, 9, 5, 0.82) 100%);
}

.join-copy {
  position: relative;
  z-index: 1;
  width: min(40rem, 100%);
  padding: 2.4rem 2.4rem 2.6rem;
}

.join-copy h2 {
  color: #fff3d6;
  filter:
    drop-shadow(2px 3px 0 #4a1c10)
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.join-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.foot {
  display: grid;
  gap: 0.9rem;
  padding: 2.4rem 4vw 3rem;
  border-top: 1px solid var(--line);
}

.foot .copy {
  opacity: 0.7;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: reveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-play-state: paused;
}

.reveal.is-in {
  animation-play-state: running;
}

@keyframes sunPulse {
  50% { transform: scale(1.06); opacity: 0.9; }
}

@keyframes planetDrift {
  50% { transform: translate(-10px, 8px); }
}

@keyframes hazeSlide {
  50% { transform: translateX(4%); opacity: 0.75; }
}

@keyframes load {
  to { width: 100%; }
}

@keyframes rise {
  from { transform: translateY(18px) scale(0.92); opacity: 0; }
}

@keyframes titleSettle {
  from { transform: translateY(24px) rotate(-2deg); opacity: 0; }
}

@keyframes float {
  50% { transform: translateY(-12px); }
}

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

@keyframes pawPulse {
  50% { transform: scale(1.12) rotate(-8deg); opacity: 0.9; }
}

@keyframes ledBlink {
  50% { opacity: 0.45; }
}

@keyframes bannerKen {
  to { transform: scale(1.08) translate(-1.5%, -1%); }
}

@keyframes reveal {
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.6rem 4vw 1rem;
    background: rgba(22, 9, 5, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0;
  }

  .mast {
    position: sticky;
  }

  .mast-inner {
    position: relative;
  }

  .menu {
    display: block;
    margin-left: auto;
  }

  .mast-tools .buy span {
    display: none;
  }

  .hero,
  .lore-grid,
  .trail,
  .facts {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
    min-height: auto;
  }

  .hero-stage {
    min-height: 26rem;
    order: -1;
  }

  .trail::before {
    display: none;
  }

  .join-copy {
    padding: 3rem 1.4rem;
  }
}

@media (max-width: 640px) {
  .wordmark {
    font-size: 3.4rem;
  }

  .ca-bar {
    flex-wrap: wrap;
    border-radius: 1.2rem;
  }

  .hero-video-shell {
    width: 8.5rem;
  }
}
