:root {
  color-scheme: dark;
  --bg: #0a090d;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f7f4fb;
  --muted: rgba(218, 212, 232, 0.72);
  --soft: rgba(190, 184, 208, 0.58);
  --violet: #8b7bf0;
  --violet-deep: #6c5ce7;
  --terra: #00c9a7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 123, 240, 0.11), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(calc(-100% - 24px));
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 14px max(20px, env(safe-area-inset-left)) 14px max(20px, env(safe-area-inset-right));
  background: linear-gradient(180deg, rgba(10, 9, 13, 0.94), rgba(10, 9, 13, 0.58));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 850;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.72), transparent 18%),
    linear-gradient(135deg, #8b7bf0, #00c9a7);
  box-shadow: 0 0 24px rgba(139, 123, 240, 0.34);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.nav-links .nav-cta,
.button {
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
}

.nav-links .nav-cta {
  padding: 0 16px;
  background: var(--text);
  color: var(--bg);
}

.motion-toggle {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--soft);
  padding: 0 13px;
  cursor: pointer;
}

.motion-toggle[aria-pressed="true"] {
  border-color: rgba(139, 123, 240, 0.55);
  color: var(--text);
  background: rgba(139, 123, 240, 0.12);
}

.section {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0;
}

.hero {
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: 28px;
  padding-bottom: 28px;
}

.starfield {
  position: absolute;
  inset: -72px 0 auto;
  height: 520px;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.54) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(139, 123, 240, 0.34) 0 1px, transparent 1.5px);
  background-position: 0 0, 36px 54px;
  background-size: 118px 118px, 154px 154px;
  mask-image: linear-gradient(to bottom, black 42%, transparent 100%);
  opacity: 0.5;
  animation: starTwinkle 5.4s ease-in-out infinite;
}

.hero-creature-wrap {
  position: relative;
  width: 276px;
  height: 276px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.hero-creature,
.promise-creature img {
  position: relative;
  z-index: 4;
  width: 198px;
  height: 198px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.38));
}

.hero-creature {
  animation: creatureBob 4.6s ease-in-out infinite;
}

.aura-bloom,
.aura-core,
.aura-ring,
.aura-mote,
.promise-glow {
  position: absolute;
  pointer-events: none;
}

.aura-bloom,
.aura-core,
.promise-glow {
  border-radius: 999px;
}

.aura-bloom-a {
  inset: 18%;
  transform: translate(-32px, 12px);
  background: radial-gradient(circle, rgba(255, 107, 107, 0.22), transparent 68%);
  animation: auraPulse 5s ease-in-out infinite;
}

.aura-bloom-b {
  inset: 24%;
  transform: translate(34px, 20px);
  background: radial-gradient(circle, rgba(139, 123, 240, 0.14), transparent 68%);
  animation: auraPulse 6.4s ease-in-out 0.4s infinite;
}

.aura-core {
  inset: 10%;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.18), transparent 64%);
  animation: auraBreathe 4.2s ease-in-out infinite;
}

.aura-ring {
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 107, 0.25);
}

.aura-ring-a {
  inset: 9%;
  border-top-color: rgba(255, 107, 107, 0.7);
  border-left-color: rgba(139, 123, 240, 0.45);
  animation: auraOrbit 25s linear infinite;
}

.aura-ring-b {
  inset: 22%;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.17);
  animation: auraOrbitReverse 34s linear infinite;
}

.aura-mote {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 107, 107, 0.88);
  box-shadow: 0 0 12px rgba(255, 107, 107, 0.7);
}

.mote-a { left: 18%; top: 28%; animation: moteDriftA 5.8s ease-in-out infinite; }
.mote-b { right: 18%; top: 31%; animation: moteDriftB 6.2s ease-in-out 0.3s infinite; }
.mote-c { left: 29%; bottom: 23%; animation: moteDriftC 5.4s ease-in-out 0.6s infinite; }
.mote-d { right: 27%; bottom: 21%; animation: moteDriftD 6.8s ease-in-out 0.9s infinite; }

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 720px;
}

.eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid rgba(139, 123, 240, 0.26);
  border-radius: 999px;
  background: rgba(139, 123, 240, 0.1);
  color: rgba(215, 207, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: var(--text);
  font-size: 52px;
  line-height: 1.06;
  font-weight: 880;
}

h2 {
  margin-bottom: 0;
  color: var(--text);
  font-size: 38px;
  line-height: 1.16;
  font-weight: 850;
}

h3 {
  margin-bottom: 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.22;
  font-weight: 820;
}

.hero-subtitle,
.section-heading p,
.narrow-copy p,
.promise-copy p,
.join-panel p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.hero-subtitle {
  max-width: 620px;
  margin-bottom: 0;
}

.hero-actions,
.platform-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button,
.platform-button,
.discord-link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  font-weight: 820;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: white;
  box-shadow: 0 14px 36px rgba(108, 92, 231, 0.36);
}

.button-quiet {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.microcopy {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
}

.problem-section {
  padding-top: 34px;
}

.narrow-copy,
.section-heading {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.narrow-copy,
.section-heading,
.promise-copy,
.join-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.narrow-copy p,
.section-heading p,
.promise-copy p,
.join-panel p {
  margin-bottom: 0;
}

.strong-line {
  color: var(--text) !important;
  font-weight: 780;
}

.loop-grid,
.creature-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

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

.loop-card,
.creature-card,
.join-panel,
.promise-layout,
.guide-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.loop-card {
  min-height: 210px;
  padding: 24px;
}

.step-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 18px;
  color: rgba(215, 207, 255, 0.78);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.loop-card p,
.creature-card p,
.guide-block p {
  margin-bottom: 0;
  color: rgba(216, 210, 232, 0.68);
}

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

.creature-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 20px;
}

.creature-card::before {
  content: "";
  position: absolute;
  inset: -24px -24px auto;
  height: 190px;
  background: radial-gradient(circle at 50% 34%, var(--accent), transparent 62%);
  opacity: 0.12;
}

.creature-card img {
  position: relative;
  z-index: 1;
  width: min(220px, 78%);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 10px;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.32));
}

.creature-card h3,
.creature-card .domain,
.creature-card p {
  position: relative;
  z-index: 1;
}

.creature-card h3 {
  color: var(--accent);
}

.creature-card .domain {
  margin: 4px 0 12px;
  color: rgba(248, 244, 255, 0.88);
  font-size: 14px;
  font-weight: 780;
}

.promise-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 38px;
  background: linear-gradient(145deg, rgba(0, 201, 167, 0.06), rgba(139, 123, 240, 0.05));
}

.promise-creature {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
}

.promise-creature img {
  opacity: 0.88;
}

.promise-glow {
  inset: 18%;
  background: radial-gradient(circle, rgba(0, 201, 167, 0.18), transparent 64%);
  animation: auraBreathe 5.8s ease-in-out infinite;
}

.resting-chip {
  position: absolute;
  right: 22px;
  bottom: 26px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(180, 214, 224, 0.26);
  border-radius: 999px;
  background: rgba(10, 9, 13, 0.78);
  color: rgba(211, 225, 230, 0.86);
  font-size: 12px;
  font-weight: 780;
}

.join-section {
  padding-bottom: 58px;
}

.join-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 123, 240, 0.18), transparent 62%),
    var(--panel);
}

.join-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 6px;
}

.join-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 16px;
  outline: none;
}

.join-form input:focus {
  border-color: rgba(139, 123, 240, 0.78);
  box-shadow: 0 0 0 3px rgba(139, 123, 240, 0.16);
}

.join-form input::placeholder {
  color: rgba(210, 204, 226, 0.44);
}

.form-error {
  min-height: 24px;
  color: #ff9da2 !important;
  font-size: 14px !important;
}

.confirmed-state {
  text-align: left;
}

.confirmed-state h2,
.confirmed-state .eyebrow,
.confirmed-intro {
  align-self: center;
  text-align: center;
}

.platform-buttons {
  margin: 8px 0 6px;
}

.platform-button,
.discord-link {
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}

.platform-button:nth-child(2) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.guide-block {
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.guide-block + .guide-block {
  margin-top: 10px;
}

.guide-block h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.guide-block a {
  color: rgba(215, 207, 255, 0.95);
  font-weight: 780;
}

.discord-link {
  margin: 18px auto 0;
}

.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--soft);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--soft);
  text-decoration: none;
  font-weight: 680;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
}

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

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 230ms; }

@keyframes auraPulse {
  0%, 100% { opacity: 0.54; transform: translate(-32px, 12px) scale(1); }
  50% { opacity: 0.9; transform: translate(-32px, 12px) scale(1.06); }
}

@keyframes auraBreathe {
  0%, 100% { opacity: 0.58; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

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

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

@keyframes creatureBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.38; }
  50% { opacity: 0.66; }
}

@keyframes moteDriftA {
  0%, 100% { transform: translate(0, 0); opacity: 0.28; }
  50% { transform: translate(24px, -18px); opacity: 0.9; }
}

@keyframes moteDriftB {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  50% { transform: translate(-22px, 14px); opacity: 0.82; }
}

@keyframes moteDriftC {
  0%, 100% { transform: translate(0, 0); opacity: 0.24; }
  50% { transform: translate(18px, -22px); opacity: 0.78; }
}

@keyframes moteDriftD {
  0%, 100% { transform: translate(0, 0); opacity: 0.24; }
  50% { transform: translate(-24px, -10px); opacity: 0.78; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 780px) {
  .site-nav {
    gap: 10px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .motion-toggle {
    width: 44px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
    color: transparent;
    position: relative;
  }

  .motion-toggle[aria-pressed="true"] {
    color: transparent;
  }

  .motion-toggle::after {
    content: "M";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--soft);
    font-size: 14px;
    font-weight: 850;
  }

  .section {
    width: min(calc(100% - 32px), 520px);
    padding: 56px 0;
  }

  .hero {
    padding-top: 18px;
    padding-bottom: 28px;
  }

  .hero-creature-wrap {
    width: 210px;
    height: 210px;
    margin-bottom: 6px;
  }

  .hero-creature,
  .promise-creature img {
    width: 158px;
    height: 158px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-subtitle,
  .section-heading p,
  .narrow-copy p,
  .promise-copy p,
  .join-panel p {
    font-size: 16px;
  }

  .hero-actions,
  .platform-buttons {
    width: 100%;
    flex-direction: column;
  }

  .problem-section {
    padding-top: 32px;
  }

  .button,
  .platform-button,
  .discord-link {
    width: 100%;
  }

  .loop-grid,
  .creature-grid {
    grid-template-columns: 1fr;
  }

  .loop-card {
    min-height: auto;
  }

  .promise-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 20px;
    text-align: center;
  }

  .promise-creature {
    min-height: 210px;
  }

  .join-panel {
    padding: 26px 18px;
  }

  .join-form {
    grid-template-columns: 1fr;
  }

  .confirmed-state {
    text-align: center;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    padding-bottom: 34px;
  }
}

@media (min-width: 781px) {
  .creature-card:nth-child(3n + 2) {
    transform: translateY(18px);
  }

  .creature-card:nth-child(3n) {
    transform: translateY(7px);
  }
}

/* Inside the beta: real app screens───────────────────────────────── */

.shots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  max-width: 1060px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.shot-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.shot-frame {
  position: relative;
  width: min(100%, 300px);
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 46px color-mix(in srgb, var(--accent, #8b7bf0) 14%, transparent);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.shot-card:hover .shot-frame {
  transform: translateY(-6px);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    0 0 62px color-mix(in srgb, var(--accent, #8b7bf0) 22%, transparent);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.shot-card figcaption {
  margin-top: 16px;
  max-width: 300px;
}

.shot-card figcaption h3 {
  margin: 0 0 6px;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.shot-card figcaption p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

@media (min-width: 781px) {
  .shot-card:nth-child(2) {
    transform: translateY(20px);
  }
}

@media (max-width: 780px) {
  .shots-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    max-width: 360px;
  }
}
