:root {
  color-scheme: dark;
  --bg: #030711;
  --bg-soft: #07101d;
  --ink: #f7f1e6;
  --muted: #b9b2bf;
  --dim: #7f7888;
  --gold: #ffc84a;
  --ember: #ff9559;
  --violet: #b45cff;
  --green: #83df79;
  --rose: #ff6b8e;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(10, 15, 28, 0.74);
  --panel-strong: rgba(9, 13, 24, 0.92);
  --shadow: rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(3, 7, 17, 0.88), rgba(3, 7, 17, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 200, 74, 0.34);
  border-radius: 8px;
  background: rgba(255, 200, 74, 0.08);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(247, 241, 230, 0.76);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--gold);
}

.header-cta {
  border: 1px solid rgba(255, 200, 74, 0.28);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 200, 74, 0.1);
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    url("./assets/scene-quest-portal.png") center/cover no-repeat,
    var(--bg);
  filter: saturate(1.08);
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 72% 40%, rgba(180, 92, 255, 0.16), transparent 34%),
    linear-gradient(90deg, rgba(3, 7, 17, 0.92), rgba(3, 7, 17, 0.62) 48%, rgba(3, 7, 17, 0.35)),
    linear-gradient(180deg, rgba(3, 7, 17, 0.28), rgba(3, 7, 17, 0.7) 74%, var(--bg));
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(30px, 7vw, 90px);
  width: min(1180px, calc(100% - 44px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 112px 0 72px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  color: #ffe28b;
  font-size: clamp(4.8rem, 13vw, 11rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.86;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.hero-subtitle {
  margin-bottom: 18px;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
}

.hero-body,
.section-heading p,
.panel-copy p,
.ritual-copy p,
.deep-card p,
.early-access p,
.site-footer p {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 950;
}

.button.primary {
  background: linear-gradient(135deg, #ffd95a, #f3a247);
  color: #17100a;
  box-shadow: 0 22px 70px rgba(255, 171, 64, 0.22);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.phone-stage {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: min(100%, 338px);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 38px;
  background: rgba(5, 8, 17, 0.74);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.58);
}

.phone-shell img {
  width: 100%;
  height: min(73svh, 640px);
  object-fit: cover;
  object-position: center top;
  border-radius: 30px;
}

.section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(60px, 8vw, 110px) 0;
}

.intro-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1.2fr);
  gap: 34px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.intro-strip p {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.45rem);
  line-height: 1.22;
}

.intro-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.intro-points span,
.ritual-steps span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(247, 241, 230, 0.84);
  font-weight: 800;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.narrow {
  max-width: 710px;
  margin-inline: auto;
  text-align: center;
}

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

.simple-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.simple-grid article {
  min-height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 26px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 200, 74, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.045);
}

.simple-grid h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.18;
}

.simple-grid p {
  color: var(--muted);
  line-height: 1.62;
}

h2 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  font-weight: 500;
  line-height: 1.05;
}

h3 {
  font-size: 1.22rem;
}

.loop-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.loop-line article {
  min-height: 250px;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.loop-line article:last-child {
  border-right: 0;
}

.loop-line span {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--gold);
  font-weight: 950;
}

.loop-line p {
  color: var(--muted);
  line-height: 1.6;
}

.feature-panel {
  position: relative;
  min-height: 620px;
  width: min(1180px, calc(100% - 44px));
  margin: 20px auto;
  overflow: hidden;
  border-radius: 8px;
  isolation: isolate;
}

.panel-bg,
.access-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-panel::after,
.early-access::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 76% 42%, rgba(255, 200, 74, 0.08), transparent 30%),
    linear-gradient(90deg, rgba(3, 7, 17, 0.92), rgba(3, 7, 17, 0.54) 58%, rgba(3, 7, 17, 0.28)),
    linear-gradient(180deg, rgba(3, 7, 17, 0.18), rgba(3, 7, 17, 0.88));
}

.panel-copy {
  max-width: 570px;
  padding: clamp(34px, 6vw, 72px);
}

.clean-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  padding-left: 22px;
  color: rgba(247, 241, 230, 0.88);
  font-weight: 800;
  position: relative;
}

.clean-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "+";
}

.ritual-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(32px, 7vw, 92px);
}

.ritual-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ritual-art {
  position: relative;
}

.ritual-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
}

.ritual-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: 280px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(4, 8, 18, 0.78);
  backdrop-filter: blur(14px);
}

.ritual-card p,
.ritual-card span {
  color: var(--muted);
}

.ritual-card h3 {
  margin-bottom: 6px;
}

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

.deep-card {
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: var(--panel);
}

.deep-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  opacity: 0.92;
}

.guild-card img {
  object-position: center 20%;
}

.deep-card div {
  padding: 30px;
}

.deep-card h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.arc-section {
  padding-top: 40px;
}

.arc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.arc-grid article {
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.arc-grid img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  object-position: center 22%;
}

.arc-grid h3,
.arc-grid p {
  padding-inline: 22px;
}

.arc-grid h3 {
  margin-top: 22px;
}

.arc-grid p {
  padding-bottom: 24px;
  color: var(--muted);
  line-height: 1.55;
}

.early-access {
  position: relative;
  width: min(1180px, calc(100% - 44px));
  min-height: 430px;
  margin: 36px auto 0;
  overflow: hidden;
  border-radius: 8px;
  isolation: isolate;
}

.access-copy {
  max-width: 600px;
  padding: clamp(34px, 6vw, 70px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 54px 0 38px;
  color: var(--muted);
}

.site-footer p {
  max-width: 470px;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.site-footer div {
  display: flex;
  gap: 18px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav-links,
  .header-cta {
    display: none;
  }

  .hero-bg {
    background-image: url("./assets/home-hero.png");
    background-position: center top;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(3, 7, 17, 0.3), rgba(3, 7, 17, 0.54) 46%, var(--bg) 92%),
      linear-gradient(90deg, rgba(3, 7, 17, 0.68), rgba(3, 7, 17, 0.2));
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: end;
    min-height: 100svh;
    padding-top: 96px;
  }

  .phone-stage {
    display: none;
  }

  .hero-copy {
    align-self: end;
    padding-bottom: 34px;
  }

  h1 {
    font-size: clamp(4rem, 21vw, 7rem);
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .intro-strip,
  .ritual-section,
  .split-section,
  .arc-grid,
  .simple-grid {
    grid-template-columns: 1fr;
  }

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

  .loop-line article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .loop-line span {
    margin-bottom: 22px;
  }

  .feature-panel {
    min-height: 600px;
  }

  .feature-panel::after,
  .early-access::after {
    background:
      linear-gradient(180deg, rgba(3, 7, 17, 0.7), rgba(3, 7, 17, 0.92)),
      radial-gradient(circle at 70% 12%, rgba(180, 92, 255, 0.16), transparent 34%);
  }

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

  .deep-card img {
    height: 300px;
  }

  .arc-grid img {
    height: 360px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .section,
  .feature-panel,
  .early-access,
  .site-footer,
  .hero-content {
    width: min(100% - 28px, 1180px);
  }

  .hero-content {
    padding-bottom: 28px;
  }

  .hero-body {
    font-size: 1rem;
  }

  .intro-points span,
  .ritual-steps span {
    width: 100%;
  }

  .panel-copy,
  .access-copy,
  .deep-card div {
    padding: 24px;
  }

  .ritual-card {
    position: static;
    margin-top: 14px;
  }

  .site-footer div {
    flex-wrap: wrap;
  }
}
