/* Homepage redesign: a concise, product-first story. Legal and updates pages keep styles.css. */

.app-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.app-icon {
  display: block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  overflow: visible;
  fill: currentColor;
  shape-rendering: geometricPrecision;
}

.home-page {
  --home-bg: #100d1b;
  --home-bg-deep: #0b0912;
  --home-panel: #181426;
  --home-panel-soft: #201a31;
  --home-line: rgba(224, 216, 255, 0.12);
  --home-text: #f8f4ee;
  --home-muted: #aaa3bb;
  --home-violet: #8a62e8;
  --home-violet-soft: #b49af1;
  --home-gold: #e4b354;
  --home-shell: 1180px;
  min-width: 320px;
  background: var(--home-bg);
  color: var(--home-text);
  font-family: 'Sora', sans-serif;
  overflow-x: hidden;
}

.home-page::before {
  display: none;
}

.home-page a:focus-visible,
.home-page button:focus-visible {
  outline: 3px solid var(--home-gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--home-text);
  color: var(--home-bg-deep);
  font-weight: 700;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

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

.home-header.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  border: 0;
  background: linear-gradient(180deg, rgba(8, 7, 14, 0.72), transparent);
  backdrop-filter: none;
}

.home-header.site-header nav {
  max-width: var(--home-shell);
  min-height: 88px;
  padding: 18px 28px;
  flex-wrap: nowrap;
}

.home-header .brand,
.home-footer .brand {
  color: var(--home-text);
  font-size: 1.17rem;
  letter-spacing: 0.04em;
}

.home-header .brand:hover,
.home-footer .brand:hover {
  color: var(--home-text);
}

.home-header .links {
  gap: 30px;
  margin-left: auto;
  margin-right: 18px;
  font-size: 0.82rem;
  font-weight: 600;
}

.home-header .links a {
  position: relative;
  color: rgba(248, 244, 238, 0.68);
}

.home-header .links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--home-gold);
  transition: right 220ms var(--ease-out);
}

.home-header .links a:hover {
  color: var(--home-text);
}

.home-header .links a:hover::after {
  right: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid rgba(248, 244, 238, 0.28);
  border-radius: 10px;
  color: var(--home-text);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 220ms var(--ease-out);
}

.nav-cta:hover {
  border-color: rgba(248, 244, 238, 0.7);
  background: rgba(248, 244, 238, 0.07);
  color: var(--home-text);
  transform: translateY(-2px);
}

.nav-cta:active,
.primary-action:active {
  transform: translateY(1px) scale(0.98);
}

.home-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.home-shell {
  width: min(calc(100% - 56px), var(--home-shell));
  margin-inline: auto;
}

.home-hero {
  position: relative;
  min-height: 910px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(12, 10, 20, 0.9) 0%, rgba(16, 13, 27, 0.58) 51%, rgba(16, 13, 27, 0.35) 100%),
    linear-gradient(180deg, transparent 64%, var(--home-bg) 100%),
    url('/assets/ventemori-feature-graphic.jpg?v=3') center top / cover no-repeat;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(410px, 0.98fr);
  align-items: center;
  gap: 50px;
  min-height: 910px;
  padding-top: 104px;
  padding-bottom: 74px;
}

.hero-message {
  position: relative;
  z-index: 3;
  max-width: 680px;
  padding-bottom: 26px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--home-gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero-message h1 {
  margin: 0;
  color: var(--home-text);
  font-family: 'Cinzel', serif;
  font-size: clamp(3.7rem, 6vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-message h1 em {
  color: var(--home-gold);
  font-family: Georgia, serif;
  font-weight: 400;
}

.hero-lede {
  max-width: 570px;
  margin: 30px 0 0;
  color: rgba(248, 244, 238, 0.7);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 54px;
  padding: 0 20px 0 23px;
  border-radius: 10px;
  background: var(--home-violet);
  box-shadow: 0 18px 44px -22px rgba(116, 78, 210, 0.95);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, transform 240ms var(--ease-out), box-shadow 240ms ease;
}

.primary-action .app-icon {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

.primary-action:hover {
  background: #9871ee;
  box-shadow: 0 20px 48px -20px rgba(138, 98, 232, 0.95);
  color: #fff;
  transform: translateY(-3px);
}

.availability {
  color: rgba(248, 244, 238, 0.47);
  font-size: 0.72rem;
  letter-spacing: 0.035em;
}

.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  perspective: 1200px;
}

.hero-stage::before {
  content: '';
  position: absolute;
  width: 510px;
  height: 510px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 80, 226, 0.34), rgba(90, 52, 156, 0.08) 52%, transparent 70%);
  filter: blur(12px);
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(172, 142, 238, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  top: 176px;
  right: -170px;
  width: 650px;
  height: 650px;
}

.orbit-two {
  top: 264px;
  right: -46px;
  width: 410px;
  height: 410px;
}

.app-phone {
  position: relative;
  width: 348px;
  min-height: 692px;
  padding: 30px 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 46px;
  background: #0c0a13;
  box-shadow:
    0 60px 90px -40px rgba(0, 0, 0, 0.78),
    0 0 0 7px #211b2e,
    0 0 0 8px rgba(255, 255, 255, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.hero-phone {
  z-index: 2;
  transform: rotate(2.25deg) translateY(16px);
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: rotate(2.25deg) translateY(16px); }
  50% { transform: rotate(1.4deg) translateY(2px); }
}

.phone-speaker {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 72px;
  height: 18px;
  border-radius: 20px;
  background: #050408;
  transform: translateX(-50%);
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 8px 18px;
}

.app-topbar > div:first-child,
.recipient-row > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.micro-label,
.recipient-row small,
.composer-field small {
  color: #777087;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-topbar strong {
  color: #f3eefb;
  font-family: 'Cinzel', serif;
  font-size: 1.03rem;
}

.top-avatar,
.friend-stack i {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #302648;
}

.top-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid #8b6dd0;
  font-size: 1rem;
}

.feed-entry {
  margin-bottom: 12px;
  border: 1px solid rgba(213, 199, 239, 0.1);
  border-radius: 18px;
  background: #171320;
  overflow: hidden;
}

.featured-entry {
  box-shadow: 0 22px 44px -30px rgba(105, 71, 177, 0.88);
}

.entry-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 12px;
}

.entry-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
}

.entry-avatar.azure { background: linear-gradient(145deg, #365c8e, #704a93); }
.entry-avatar.ember { background: linear-gradient(145deg, #8b513e, #865177); }

.entry-meta > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.entry-meta strong {
  overflow: hidden;
  color: #e9e3f1;
  font-size: 0.61rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-meta small {
  color: #756e80;
  font-size: 0.53rem;
}

.entry-meta .feed-heart {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  color: #a297b0;
  font-size: 1.05rem;
}

.proof-scene {
  position: relative;
  height: 230px;
  margin: 0 7px;
  border-radius: 13px;
  overflow: hidden;
}

.proof-hike {
  background:
    linear-gradient(180deg, #c58b73 0%, #735b80 42%, #272338 100%);
}

.proof-hike::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 222, 172, 0.08), transparent 48%, rgba(11, 10, 18, 0.36));
}

.scene-sun {
  position: absolute;
  top: 48px;
  right: 72px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f5ce79;
  box-shadow: 0 0 40px 14px rgba(245, 188, 104, 0.28);
}

.scene-mountain {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -23%;
  height: 70%;
  background: #332d45;
  clip-path: polygon(0 66%, 18% 33%, 32% 54%, 51% 5%, 68% 54%, 78% 37%, 100% 70%, 100% 100%, 0 100%);
}

.mountain-back {
  bottom: 3%;
  background: #554761;
  opacity: 0.76;
}

.mountain-front {
  background: #201d2c;
}

.proof-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(16, 13, 27, 0.68);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.52rem;
  font-weight: 600;
}

.entry-copy {
  padding: 13px 13px 16px;
}

.quest-kind {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #9e96aa;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quest-kind .app-icon {
  width: 0.68rem;
  height: 0.68rem;
  font-size: 0.68rem;
}

.quest-kind.fast { color: #65d2c1; }
.quest-kind.long { color: #b58bed; }

.entry-copy h2 {
  margin: 4px 0;
  color: #f2edf7;
  font-family: 'Sora', sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.entry-copy p {
  margin: 0;
  color: #7f778b;
  font-size: 0.59rem;
}

.compact-entry {
  padding-bottom: 11px;
}

.compact-entry .entry-meta {
  padding-bottom: 7px;
}

.cheer-count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #c98ba5;
  font-size: 0.58rem;
  font-weight: 700;
}

.compact-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px;
  padding: 10px;
  border-radius: 10px;
  background: #1e192b;
  color: #c9c2d1;
  font-size: 0.61rem;
  font-weight: 600;
}

.phone-nav {
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  min-height: 61px;
  padding: 8px 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px 17px 30px 30px;
  background: rgba(20, 16, 29, 0.96);
  backdrop-filter: blur(12px);
}

.phone-nav span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #625b6c;
  font-size: 0.42rem;
  font-weight: 600;
}

.phone-nav b,
.phone-nav > span > .app-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 0.9rem;
  font-weight: 400;
}

.phone-nav .active {
  color: var(--home-violet-soft);
}

.brand-tab-icon {
  overflow: hidden;
}

.brand-tab-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(42%) sepia(7%) saturate(903%) hue-rotate(229deg) brightness(89%);
  transform: scale(1.8);
}

.stage-note {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(26, 21, 40, 0.78);
  box-shadow: 0 20px 44px -24px rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(15px);
  color: #aaa2b6;
  font-size: 0.55rem;
  line-height: 1.35;
}

.stage-note strong {
  display: block;
  color: #eee8f5;
  font-size: 0.62rem;
}

.note-left {
  left: -24px;
  top: 27%;
  transform: rotate(-4deg);
}

.note-right {
  right: -45px;
  bottom: 22%;
  transform: rotate(3deg);
}

.note-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(228, 179, 84, 0.13);
  color: var(--home-gold);
  font-size: 0.95rem;
}

.friend-stack {
  display: flex;
  padding-left: 8px;
}

.friend-stack i {
  width: 27px;
  height: 27px;
  margin-left: -8px;
  border: 2px solid #1b1628;
  font-size: 0.72rem;
  font-style: normal;
}

.home-section {
  position: relative;
  padding: 124px 0 148px;
}

.section-intro {
  max-width: 720px;
}

.section-intro h2,
.quest-world-copy h2,
.closing-copy h2 {
  margin: 0;
  color: var(--home-text);
  font-family: 'Cinzel', serif;
  font-size: clamp(2.45rem, 4.6vw, 4.3rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.03;
  text-wrap: balance;
}

.section-intro > p:last-child,
.quest-world-copy > p,
.closing-copy > p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.loop-section {
  background:
    radial-gradient(circle at 80% 12%, rgba(119, 78, 205, 0.11), transparent 28%),
    var(--home-bg);
}

.quest-loop {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 76px 0 0;
  padding: 0;
  list-style: none;
}

.quest-loop::before {
  content: '';
  position: absolute;
  top: 42px;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 154, 241, 0.42) 18%, rgba(180, 154, 241, 0.42) 82%, transparent);
}

.quest-loop li {
  position: relative;
  z-index: 1;
  min-height: 262px;
  margin: 0;
  padding: 0 54px 28px 0;
}

.quest-loop li + li {
  padding-left: 54px;
  border-left: 1px solid var(--home-line);
}

.loop-number {
  position: absolute;
  top: 28px;
  right: 24px;
  color: rgba(248, 244, 238, 0.12);
  font-family: 'Cinzel', serif;
  font-size: 2.4rem;
  font-variant-numeric: tabular-nums;
}

.loop-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(181, 154, 241, 0.23);
  border-radius: 50%;
  background: var(--home-bg);
  box-shadow: 0 0 0 9px var(--home-bg);
  color: var(--home-violet-soft);
  font-family: Georgia, serif;
  font-size: 1.75rem;
  transition: transform 280ms var(--ease-out), border-color 200ms ease, background-color 200ms ease;
}

.quest-loop li:hover .loop-icon {
  border-color: rgba(228, 179, 84, 0.58);
  background: #181326;
  color: var(--home-gold);
  transform: translateY(-5px) rotate(-4deg);
}

.quest-loop h3 {
  margin: 32px 0 10px;
  color: var(--home-text);
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.quest-loop p {
  max-width: 285px;
  margin: 0;
  color: var(--home-muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.quest-world {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16, 13, 27, 0.98) 0%, rgba(16, 13, 27, 0.83) 52%, rgba(16, 13, 27, 0.96) 100%),
    url('/assets/ventemori-feature-graphic.jpg?v=3') center / cover no-repeat;
}

.quest-world::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -120px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(182, 152, 245, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 74px rgba(182, 152, 245, 0.03), 0 0 0 148px rgba(182, 152, 245, 0.02);
  transform: translateY(-50%);
  pointer-events: none;
}

.quest-world-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: clamp(56px, 9vw, 126px);
}

.quest-world-copy > p {
  max-width: 480px;
}

.type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 450px;
  margin-top: 32px;
}

.type-list span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: rgba(31, 25, 47, 0.7);
  color: #c3bccd;
  font-size: 0.72rem;
  font-weight: 600;
}

.type-list .app-icon {
  width: 0.84rem;
  height: 0.84rem;
  color: var(--type);
  font-size: 0.84rem;
  text-shadow: 0 0 12px var(--type);
}

.quest-composer {
  position: relative;
  max-width: 510px;
  margin-left: auto;
  padding: 25px;
  border: 1px solid rgba(236, 225, 255, 0.15);
  border-radius: 30px;
  background: rgba(19, 15, 29, 0.92);
  box-shadow: 0 50px 90px -48px rgba(0, 0, 0, 0.9), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  transform: rotate(1deg);
}

.composer-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 25px;
}

.composer-head strong {
  color: #f4eff8;
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
}

.back-glyph {
  color: #aaa0b6;
  font-size: 1.7rem;
}

.draft-label {
  justify-self: end;
  color: #746b7e;
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recipient-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0 19px;
  border-bottom: 1px solid var(--home-line);
}

.recipient-row > span:nth-child(2) {
  flex: 1;
}

.recipient-row strong {
  color: #ded6e7;
  font-size: 0.72rem;
}

.change-link {
  color: var(--home-violet-soft);
  font-size: 0.61rem;
  font-weight: 600;
}

.composer-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 108px;
  padding: 22px 0;
}

.composer-field strong {
  max-width: 380px;
  color: #f5f0f8;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.45;
}

.difficulty-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.difficulty-picker > span {
  display: flex;
  min-height: 49px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  background: #1b1626;
  color: #7f7789;
  font: 600 0.64rem 'Sora', sans-serif;
}

.difficulty-picker > span.selected {
  border-color: rgba(132, 96, 215, 0.58);
  background: rgba(126, 85, 219, 0.16);
  color: #cdbaf7;
}

.difficulty-picker > span small {
  margin-top: 1px;
  color: #817398;
  font-size: 0.5rem;
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  color: #8e8599;
  font-size: 0.61rem;
}

.composer-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.composer-footer .app-icon {
  width: 0.82rem;
  height: 0.82rem;
  color: var(--home-gold);
}

.send-quest-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--home-violet);
  color: white;
  font: 700 0.72rem 'Sora', sans-serif;
}

.send-quest-button .app-icon {
  width: 1rem;
  height: 1rem;
}

.secret-card {
  position: absolute;
  right: -82px;
  bottom: -46px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  width: 330px;
  padding: 14px;
  border: 1px solid rgba(218, 203, 242, 0.14);
  border-radius: 15px;
  background: rgba(34, 27, 49, 0.96);
  box-shadow: 0 24px 54px -32px rgba(0, 0, 0, 0.9);
  transform: rotate(-2.5deg);
}

.secret-card > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.secret-card strong {
  color: #e9e2f0;
  font-size: 0.63rem;
}

.secret-card small {
  color: #7f7689;
  font-size: 0.52rem;
}

.secret-icon {
  width: 1.2rem;
  height: 1.2rem;
  color: #b787ed;
  font-size: 1.2rem;
}

.toggle {
  position: relative;
  width: 29px;
  height: 17px;
  border-radius: 20px;
  background: var(--home-violet);
}

.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: white;
}

.rewards-section {
  background:
    radial-gradient(circle at 8% 18%, rgba(228, 179, 84, 0.08), transparent 24%),
    var(--home-bg-deep);
}

.rewards-intro {
  max-width: 830px;
}

.reward-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 20px;
  margin-top: 72px;
}

.showcase-card {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(230, 220, 248, 0.1);
  overflow: hidden;
}

.gear-showcase {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px;
  border-radius: 26px 8px 26px 26px;
  background:
    radial-gradient(circle at 78% 85%, rgba(130, 86, 222, 0.24), transparent 36%),
    #171320;
}

.showcase-copy {
  position: relative;
  z-index: 2;
  max-width: 390px;
}

.card-kicker {
  color: var(--home-gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.showcase-copy h3 {
  margin: 8px 0 9px;
  color: var(--home-text);
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  letter-spacing: -0.035em;
}

.showcase-copy p {
  max-width: 340px;
  margin: 0;
  color: var(--home-muted);
  font-size: 0.83rem;
  line-height: 1.7;
}

.gear-shelf {
  display: grid;
  grid-template-columns: 1.28fr 1fr 1fr;
  align-items: end;
  gap: 11px;
  margin-top: 34px;
}

.gear-item {
  display: flex;
  min-height: 235px;
  padding: 20px 16px;
  border: 1px solid rgba(225, 214, 242, 0.1);
  border-radius: 14px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  background: rgba(33, 27, 47, 0.72);
  transition: transform 260ms var(--ease-out), border-color 180ms ease, background-color 180ms ease;
}

.gear-item:hover {
  border-color: rgba(180, 154, 241, 0.32);
  background: rgba(41, 33, 58, 0.9);
  transform: translateY(-6px);
}

.featured-gear {
  min-height: 280px;
  background: linear-gradient(180deg, rgba(73, 50, 116, 0.54), rgba(33, 27, 47, 0.78));
}

.gear-art {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: auto;
  border: 1px solid rgba(219, 202, 251, 0.17);
  border-radius: 14px;
  background: rgba(12, 10, 18, 0.48);
  color: #cbb4f5;
}

.gear-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightning-gear {
  width: 70px;
  height: 70px;
  border-radius: 18px 18px 7px 18px;
  box-shadow: inset 0 0 24px rgba(141, 96, 232, 0.16), 0 0 34px rgba(125, 78, 220, 0.13);
  color: #bfa1f3;
}

.gear-item strong {
  color: #eee8f3;
  font-size: 0.72rem;
}

.gear-item small {
  margin-top: 6px;
  color: #82798d;
  font-size: 0.57rem;
  line-height: 1.5;
}

.profile-showcase {
  display: flex;
  padding: 35px 35px 39px;
  border-radius: 8px 26px 26px 26px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background:
    radial-gradient(circle at 50% 22%, rgba(228, 179, 84, 0.11), transparent 31%),
    #171320;
}

.profile-preview {
  width: 100%;
  text-align: center;
}

.profile-level {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 5px 8px;
  border: 1px solid rgba(228, 179, 84, 0.24);
  border-radius: 5px;
  color: var(--home-gold);
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.avatar-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  margin: 0 auto 14px;
  border: 2px solid #e4b354;
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(228, 179, 84, 0.08), 0 0 32px rgba(228, 179, 84, 0.14);
}

.frame-glow {
  position: absolute;
  inset: -11px;
  border: 1px solid rgba(228, 179, 84, 0.26);
  border-radius: 50%;
  clip-path: polygon(0 0, 50% 0, 50% 20%, 100% 20%, 100% 100%, 40% 100%, 40% 78%, 0 78%);
  animation: frameTurn 12s linear infinite;
}

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

.avatar-face {
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2e2643, #171321);
  font-size: 3rem;
}

.badge-pin {
  position: absolute;
  right: -8px;
  bottom: 1px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.badge-pin img,
.mini-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-preview h3 {
  margin: 0;
  color: var(--home-text);
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
}

.profile-preview > p {
  margin: 2px 0 15px;
  color: #79717f;
  font-size: 0.64rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 280px;
  margin: 0 auto;
  padding: 12px 0;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.profile-stats span {
  display: flex;
  flex-direction: column;
}

.profile-stats strong {
  color: #ede7f2;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.profile-stats small {
  color: #756d7e;
  font-size: 0.5rem;
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.mini-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.7rem;
}

.mini-badge.asset-badge {
  border-color: transparent;
  background: transparent;
}

.mini-badge .app-icon {
  font-size: 0.86rem;
}

.mini-badge.green { color: #61b594; }
.mini-badge.blue { color: #668fca; }
.mini-badge.violet { color: #a079d5; }
.mini-badge.gold { color: #d8a952; }

.profile-copy {
  width: 100%;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--home-line);
}

.profile-copy h3 {
  font-size: 1.55rem;
}

.closing-section {
  position: relative;
  min-height: 610px;
  padding: 132px 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(13, 10, 21, 0.98) 0%, rgba(13, 10, 21, 0.9) 50%, rgba(13, 10, 21, 0.58) 100%),
    url('/assets/ventemori-feature-graphic.jpg?v=3') center / cover no-repeat;
}

.closing-copy {
  position: relative;
  z-index: 2;
}

.closing-copy > p {
  margin-bottom: 30px;
}

.closing-art {
  position: absolute;
  top: 50%;
  right: 8%;
  width: 430px;
  height: 430px;
  transform: translateY(-50%);
}

.closing-ring {
  position: absolute;
  border: 1px solid rgba(183, 151, 243, 0.2);
  border-radius: 50%;
}

.ring-a { inset: 0; }
.ring-b { inset: 74px; }

.closing-star {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--home-gold);
  font-size: 4rem;
  text-shadow: 0 0 42px rgba(228, 179, 84, 0.48);
  transform: translate(-50%, -50%);
}

.home-footer.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 38px;
  max-width: none;
  padding: 40px max(28px, calc((100vw - var(--home-shell)) / 2));
  border-top: 1px solid var(--home-line);
  background: var(--home-bg-deep);
  color: #686170;
  font-size: 0.67rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-brand .brand {
  font-size: 0.9rem;
}

.footer-brand .mark {
  width: 1.45rem;
  height: 1.45rem;
  flex-basis: 1.45rem;
}

.home-footer nav {
  display: flex;
  gap: 20px;
  margin: 0;
}

.home-footer nav a {
  color: #8c8495;
  font-size: 0.67rem;
}

.home-footer nav a:hover {
  color: var(--home-text);
}

.js-reveal .home-page [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.js-reveal .home-page [data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

.quest-loop li:nth-child(2) { transition-delay: 80ms; }
.quest-loop li:nth-child(3) { transition-delay: 160ms; }
.reward-showcase .showcase-card:nth-child(2) { transition-delay: 110ms; }

@media (max-width: 1080px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 20px;
  }

  .hero-message h1 {
    font-size: clamp(3.4rem, 6vw, 4.9rem);
  }

  .stage-note.note-left {
    left: -45px;
  }

  .stage-note.note-right {
    right: -22px;
  }

  .secret-card {
    right: -20px;
  }

  .home-footer.site-footer {
    grid-template-columns: 1fr auto;
  }

  .home-footer > span:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  .home-header .links {
    display: none;
  }

  .home-header .nav-cta {
    margin-left: auto;
  }

  .home-hero,
  .hero-layout {
    min-height: auto;
  }

  .home-hero {
    background:
      linear-gradient(180deg, rgba(12, 10, 20, 0.7) 0%, rgba(16, 13, 27, 0.62) 44%, var(--home-bg) 100%),
      url('/assets/ventemori-feature-graphic.jpg?v=3') 58% top / auto 720px no-repeat;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 168px;
    padding-bottom: 90px;
  }

  .hero-message {
    max-width: 720px;
    text-align: center;
  }

  .hero-message .eyebrow,
  .hero-actions {
    justify-content: center;
  }

  .hero-lede {
    margin-inline: auto;
  }

  .hero-stage {
    min-height: 740px;
  }

  .note-left {
    left: calc(50% - 245px) !important;
  }

  .note-right {
    right: calc(50% - 250px) !important;
  }

  .quest-loop li {
    padding-right: 28px;
  }

  .quest-loop li + li {
    padding-left: 28px;
  }

  .quest-world-grid {
    grid-template-columns: 1fr;
  }

  .quest-world-copy {
    max-width: 700px;
  }

  .quest-composer {
    width: min(100%, 560px);
    margin: 10px auto 30px;
  }

  .reward-showcase {
    grid-template-columns: 1fr;
  }

  .showcase-card {
    min-height: 520px;
  }

  .profile-showcase {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 36px;
  }

  .profile-copy {
    margin: 0;
    padding: 0 0 0 36px;
    border-top: 0;
    border-left: 1px solid var(--home-line);
  }

  .closing-art {
    right: -160px;
    opacity: 0.7;
  }
}

@media (max-width: 660px) {
  .home-shell {
    width: min(calc(100% - 36px), var(--home-shell));
  }

  .home-header.site-header nav {
    min-height: 74px;
    padding: 14px 18px;
  }

  .home-header .brand {
    font-size: 1rem;
  }

  .nav-cta {
    min-height: 36px;
    padding-inline: 13px;
    font-size: 0.7rem;
  }

  .hero-layout {
    padding-top: 132px;
    padding-bottom: 70px;
  }

  .hero-message h1 {
    font-size: clamp(2.75rem, 13vw, 4rem);
    line-height: 1.02;
  }

  .hero-lede {
    max-width: 480px;
    margin-top: 24px;
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .hero-actions {
    flex-direction: column;
    gap: 14px;
  }

  .hero-stage {
    min-height: 720px;
    margin-top: 8px;
    margin-bottom: -10px;
  }

  .app-phone {
    width: min(335px, calc(100vw - 44px));
  }

  .stage-note {
    display: none;
  }

  .home-section {
    padding: 92px 0 106px;
  }

  .section-intro h2,
  .quest-world-copy h2,
  .closing-copy h2 {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }

  .section-intro > p:last-child,
  .quest-world-copy > p,
  .closing-copy > p {
    font-size: 0.9rem;
    line-height: 1.72;
  }

  .quest-loop {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 52px;
  }

  .quest-loop::before {
    top: 40px;
    bottom: 44px;
    left: 39px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(180, 154, 241, 0.42) 14%, rgba(180, 154, 241, 0.42) 86%, transparent);
  }

  .quest-loop li,
  .quest-loop li + li {
    min-height: 170px;
    padding: 0 0 38px 108px;
    border-left: 0;
  }

  .loop-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 78px;
    height: 78px;
  }

  .loop-number {
    top: -5px;
    right: 0;
  }

  .quest-loop h3 {
    margin-top: 0;
    padding-top: 8px;
  }

  .quest-composer {
    padding: 20px;
    transform: none;
  }

  .secret-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% + 12px);
    margin: 13px -6px -30px;
    transform: rotate(-1deg);
  }

  .gear-showcase {
    padding: 30px 20px;
  }

  .gear-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-gear {
    grid-column: 1 / -1;
  }

  .gear-item,
  .featured-gear {
    min-height: 205px;
  }

  .featured-gear {
    min-height: 220px;
  }

  .profile-showcase {
    display: flex;
    padding: 32px 24px;
  }

  .profile-copy {
    margin-top: 28px;
    padding: 22px 0 0;
    border-top: 1px solid var(--home-line);
    border-left: 0;
  }

  .closing-section {
    min-height: 540px;
    padding: 104px 0;
  }

  .closing-art {
    right: -260px;
  }

  .home-footer.site-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 18px;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }

  .home-footer nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .home-footer > span:last-child {
    grid-column: auto;
  }

  .js-reveal .home-page [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 390px) {
  .home-header .nav-cta {
    display: none;
  }

  .difficulty-picker {
    gap: 5px;
  }

  .difficulty-picker > span {
    min-height: 40px;
  }
}

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