:root {
  --bg: #05070b;
  --surface: #0b0f16;
  --surface-2: #101722;
  --gold: #efb43d;
  --gold-soft: #e9cd86;
  --gold-deep: #9c6f22;
  --text: #ffffff;
  --muted: #9eb0c8;
  --border: rgba(214, 159, 50, 0.28);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 20px;
  --font: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.home {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  padding: 36px 20px 48px;
}

.home__glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.home__glow--top {
  inset: -18% auto auto 50%;
  width: min(90vw, 720px);
  height: 46vh;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(239, 180, 61, 0.22),
    rgba(239, 180, 61, 0.06) 42%,
    transparent 72%
  );
  animation: glow-breathe 7s ease-in-out infinite;
}

.home__glow--side {
  top: 42%;
  right: -18%;
  width: 48vw;
  height: 48vw;
  max-width: 420px;
  max-height: 420px;
  background: radial-gradient(
    circle at center,
    rgba(156, 111, 34, 0.16),
    transparent 68%
  );
}

.home__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(233, 205, 134, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 205, 134, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 18%, #000 0%, transparent 70%);
  pointer-events: none;
}

.home__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* —— Hero: one composition —— */
.hero {
  text-align: center;
  padding-bottom: 8px;
}

.hero__mark {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto 22px;
}

.hero__orb {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(239, 180, 61, 0.35),
    transparent 68%
  );
  filter: blur(8px);
  animation: orb-pulse 4.5s ease-in-out infinite;
}

.hero__icon {
  position: relative;
  width: 112px;
  height: 112px;
  margin-top: 8px;
  border-radius: 28px;
  object-fit: contain;
  padding: 2px;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  border: 1px solid rgba(233, 205, 134, 0.42);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 36px rgba(239, 180, 61, 0.22);
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  background: #080a0e;
}

.hero__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 6vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hero__env {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(239, 180, 61, 0.12);
  color: var(--gold);
  border: 1px solid rgba(239, 180, 61, 0.28);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__env[hidden] {
  display: none !important;
}

.hero__tagline {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: clamp(1.05rem, 3.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.hero__lead {
  margin: 12px auto 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.05rem;
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.hero__cta {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.store-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  color: #1a1208;
  background: linear-gradient(135deg, #e9cd86, #c9a14b 45%, #9c6f22);
  border: 1px solid rgba(233, 205, 134, 0.35);
  box-shadow: 0 12px 32px rgba(216, 162, 74, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.store-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(216, 162, 74, 0.32);
}

.store-button:active {
  transform: translateY(0);
}

.store-button--secondary {
  color: var(--gold-soft);
  background: rgba(16, 23, 34, 0.92);
  border: 1px solid rgba(214, 159, 50, 0.38);
  box-shadow: none;
}

.store-button--secondary:hover {
  box-shadow: 0 0 0 1px rgba(239, 180, 61, 0.18);
}

.hero__vault {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  margin-top: 36px;
  animation: hero-rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
}

.hero__vault img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(239, 180, 61, 0.26));
  transition: transform 0.35s ease;
}

.hero__vault img:nth-child(1) {
  transform: rotate(-8deg) translateY(10px);
}

.hero__vault img:nth-child(2) {
  width: 148px;
  height: 148px;
  transform: translateY(10px);
  filter: drop-shadow(0 18px 32px rgba(239, 180, 61, 0.34));
}

.hero__vault img:nth-child(3) {
  transform: rotate(8deg) translateY(10px);
}

/* —— Pillars (one job each) —— */
.pillars {
  margin-top: 42px;
}

.pillars__title {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(233, 205, 134, 0.72);
  text-align: center;
}

.pillar {
  padding: 18px 18px 16px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 42%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.pillar + .pillar {
  margin-top: 12px;
}

.pillar.is-in {
  opacity: 1;
  transform: translateY(0);
}

.pillar__eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pillar__name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pillar__copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Footer —— */
.home-footer {
  margin-top: 40px;
  text-align: center;
}

.home-footer__note {
  margin: 0;
  color: rgba(158, 176, 200, 0.78);
  font-size: 0.86rem;
}

.home-footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: rgba(158, 176, 200, 0.55);
  font-size: 0.82rem;
}

.home-footer__links a {
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.home-footer__links a:hover {
  color: var(--gold);
  border-bottom-color: rgba(239, 180, 61, 0.45);
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow-breathe {
  0%,
  100% {
    opacity: 0.85;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.06);
  }
}

@keyframes orb-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

@media (min-width: 720px) {
  .home {
    padding-top: 56px;
  }

  .hero__vault img:nth-child(1):hover {
    transform: rotate(-8deg) translateY(4px) scale(1.05);
  }

  .hero__vault img:nth-child(2):hover {
    transform: translateY(4px) scale(1.05);
  }

  .hero__vault img:nth-child(3):hover {
    transform: rotate(8deg) translateY(4px) scale(1.05);
  }
}
