:root {
  --color-text: #eef3ff;
  --color-subtle: rgba(238, 243, 255, 0.78);
  --accent-pink: #ff68f2;
  --accent-violet: #a37dff;
  --accent-purple: #9c78ff;
  --accent-cyan: #6bf4ff;
  --accent-blue: #4ea0ff;
  --glass-bg: rgba(24, 18, 55, 0.62);
  --glass-border: rgba(143, 112, 255, 0.45);
  --glass-highlight: rgba(255, 255, 255, 0.24);
  --shadow-soft: 0 50px 90px rgba(13, 4, 36, 0.7);
  --button-gradient: linear-gradient(115deg, rgba(111, 255, 244, 0.95), rgba(255, 115, 246, 0.9));
  --button-sheen: rgba(255, 255, 255, 0.3);
  font-size: 16px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  height: 100svh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--color-text);
  background: #040214;
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
}

html { background: #040214; }

.body-overlay {
  display: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../assets/background.png") center center / cover no-repeat; /* immagine full-screen */
  z-index: 0; /* sotto ai glow e ai contenuti */
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(85% 70% at 38% 10%, rgba(255, 80, 215, 0.36), transparent 60%),
    radial-gradient(60% 50% at 82% 70%, rgba(55, 255, 214, 0.26), transparent 78%);
  mix-blend-mode: screen;
  z-index: 1; /* sopra l'immagine, sotto i contenuti */
  pointer-events: none;
}

.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;
}

.page-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.8rem clamp(1.4rem, 4vw, 2.6rem) 1.8rem;
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.page-wrap::before {
  content: none;
  display: none;
}

.page-wrap > * {
  position: relative;
  z-index: 3;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
  position: relative;
}

.header .nav {
  margin: 0 auto;
}

.logo {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.28em;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: rgba(210, 230, 255, 0.9);
  text-shadow: 0 0 22px rgba(138, 118, 255, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.logo-accent {
  background: linear-gradient(120deg, var(--accent-pink), var(--accent-cyan));
  -webkit-background-clip: text;
  color: transparent;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(51, 246, 255, 0.35);
  background: rgba(10, 8, 26, 0.55);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 255, 255, 0.2);
  border-color: rgba(255, 47, 191, 0.4);
}

.menu-toggle .menu-bar {
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
  display: block;
  border-radius: 4px;
  position: relative;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.menu-toggle .menu-bar + .menu-bar {
  margin-top: 5px;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-of-type(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-of-type(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-of-type(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.95rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-link {
  color: rgba(235, 240, 255, 0.85);
  text-decoration: none;
  position: relative;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(106, 255, 240, 0.35);
}

.nav-link:hover::after,
.nav-link:focus::after {
  transform: scaleX(1);
}

.nav--visible {
  display: flex;
}

.nav--open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav--animated .nav-link,
.nav--animated .button-wallet {
  opacity: 0;
  transform: translateY(-12px);
  animation: navDrop 0.4s forwards ease;
}

.nav--animated .nav-link:nth-of-type(1) {
  animation-delay: 0.05s;
}

.nav--animated .nav-link:nth-of-type(2) {
  animation-delay: 0.12s;
}

.nav--animated .nav-link:nth-of-type(3) {
  animation-delay: 0.19s;
}

.nav--animated .nav-link:nth-of-type(4) {
  animation-delay: 0.26s;
}

.nav--animated .nav-link:nth-of-type(5) {
  animation-delay: 0.33s;
}

.nav--animated .button-wallet {
  animation-delay: 0.4s;
}

.button-wallet {
  display: inline-flex;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: linear-gradient(120deg, rgba(8, 3, 32, 0.95), rgba(8, 3, 40, 0.82)) padding-box,
    linear-gradient(135deg, rgba(111, 255, 244, 0.8), rgba(180, 132, 255, 0.9)) border-box;
  box-shadow: 0 18px 38px rgba(80, 184, 255, 0.25);
  color: var(--color-text);
}

.button-wallet:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 48px rgba(144, 132, 255, 0.35);
  background: linear-gradient(120deg, rgba(14, 6, 52, 0.96), rgba(11, 4, 40, 0.9)) padding-box,
    linear-gradient(135deg, rgba(255, 136, 249, 0.9), rgba(95, 255, 242, 0.85)) border-box;
}

.button {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.8rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  outline: none;
}

.button:focus-visible {
  box-shadow: 0 0 0 3px rgba(51, 246, 255, 0.4);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  color: #fff;
  box-shadow: 0 20px 40px rgba(255, 47, 191, 0.35);
}

.button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 50px rgba(140, 82, 255, 0.45);
}

.button-outline {
  position: relative;
  color: var(--color-text);
  background: linear-gradient(120deg, rgba(8, 2, 28, 0.92), rgba(8, 2, 40, 0.78)) padding-box,
    var(--button-gradient) border-box;
  border: 2px solid transparent;
  box-shadow: 0 20px 44px rgba(111, 255, 244, 0.22);
  text-decoration: none;
}

.button-outline:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 52px rgba(180, 132, 255, 0.35);
  background: linear-gradient(120deg, rgba(12, 2, 46, 0.98), rgba(9, 0, 38, 0.9)) padding-box,
    var(--button-gradient) border-box;
}

.button-ghost {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  text-decoration: none;
}

.button-ghost span {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.button-ghost:hover span {
  transform: translateX(4px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2.1rem, 5vw, 4.4rem);
  min-height: 0;
  height: 100%;
  position: relative;
  isolation: isolate;
}
.hero { margin-top: 0.5rem; }

.hero::after {
  content: "";
  position: absolute;
  inset: -32% -12% 16% -10%;
  background: radial-gradient(120% 120% at 62% 20%, rgba(118, 92, 255, 0.45), rgba(118, 92, 255, 0) 70%);
  filter: blur(22px);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.9rem;
  justify-content: center;
  position: relative;
  z-index: 2;
  text-align: left;
  align-items: flex-start;
  padding-left: 6vw;
}

.eyebrow {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: rgba(235, 244, 255, 0.7);
  text-shadow: 0 0 18px rgba(13, 6, 40, 0.6);
}

.hero-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  margin: 0 0 1.1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.38em;
  background: linear-gradient(120deg, #00d1ff, #a37dff);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(111, 255, 244, 0.5);
}

.hero-copy {
  max-width: 42ch;
  color: rgba(232, 239, 255, 0.82);
  line-height: 1.75;
  font-size: 1.1rem;
  text-shadow: 0 0 24px rgba(8, 4, 28, 0.5);
}

.hero-actions {
  display: flex;
  gap: clamp(1rem, 2.4vw, 1.8rem);
  align-items: center;
}

.hero-footer {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.2rem, 3.2vw, 2.6rem);
  margin-top: 1.8rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.glass-card {
  background: linear-gradient(155deg, rgba(32, 20, 74, 0.78), rgba(14, 8, 40, 0.62));
  border: 1px solid var(--glass-border);
  border-radius: 1.6rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: -30% 10% 20% -20%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.78;
}

.glass-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}

.glass-card-body {
  position: relative;
  z-index: 1;
}

.bid-card {
  width: clamp(240px, 32vw, 320px);
  flex: 0 1 clamp(240px, 32vw, 320px);
  background: linear-gradient(160deg, rgba(28, 18, 60, 0.85), rgba(12, 6, 42, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: -32px;
  margin-left: 0;
  margin-right: auto;
}

.token-info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.token-icon {
  height: 56px;
  width: 56px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(76, 255, 226, 0.85), rgba(149, 95, 255, 0.55));
  display: grid;
  place-items: center;
  font-family: "Orbitron", sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 16px 32px rgba(90, 255, 242, 0.25);
}

.token-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.62);
}

.token-value {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.25rem;
}

.countdown {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;
  flex: 1 1 clamp(220px, 40vw, 360px);
}

.countdown-item {
  display: grid;
  justify-items: center;
  gap: 0.28rem;
  padding: 0.9rem 1.1rem;
  min-width: 86px;
  border-radius: 1.1rem;
  background: linear-gradient(160deg, rgba(24, 12, 60, 0.78), rgba(12, 6, 38, 0.66));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 32px rgba(22, 5, 60, 0.45);
  backdrop-filter: blur(18px);
}

.countdown .value {
  font-family: "Orbitron", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
}

.countdown .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.58);
}

/* Bottom overlay countdown (static, no JS) */
.countdown--overlay {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translate(-50%, 0);
  z-index: 3;
}
.countdown--overlay .countdown-item {
  min-width: 92px;
  border-radius: 1rem;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(22px) saturate(125%);
  box-shadow: 0 30px 55px rgba(20, 10, 60, 0.5);
}
.countdown--overlay .value { color: rgba(255, 255, 255, 0.9); }
.countdown--overlay .label { color: rgba(255, 255, 255, 0.82); }
.countdown--overlay .value { font-size: 1.1rem; }
.countdown--overlay .label { font-size: 0.68rem; }

#cd-day {
  font-size: 0.9rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: visible;
  z-index: 1;
  padding-right: 0;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-visual::before {
  inset: -14% 20% 24% 30%;
  background: radial-gradient(ellipse at 38% 34%, rgba(255, 136, 248, 0.32), transparent 68%);
  filter: blur(95px);
}


.hero-visual::after {
  inset: 34% 12% -18% 46%;
  background: radial-gradient(ellipse at 60% 64%, rgba(0, 255, 255, 0.3), transparent 80%);
  filter: blur(110px);
}

/* === Right-side animated XY stripes (Home) === */
.scan-stripes {
  position: fixed;
  right: 0;
  left: auto;
  top: 0;
  bottom: 0;
  width: clamp(140px, 16vw, 240px);
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
  mix-blend-mode: screen;
}

/* Base stripe: banda con testo XY ripetuto che scorre verticalmente */
.stripe {
  position: absolute;
  top: 0;
  height: 120%;
  width: 56px;
  background-repeat: repeat-y;
  background-size: 56px 360px;
  /* combine rotation + GPU hint in a single transform */
  transform: rotate(8deg) translateZ(0);
  opacity: 0.85;
  filter: blur(0.3px);
  /* animate both transform and background smoothly */
  will-change: background-position, transform;
}

/* Animazione: scorrimento verticale continuo del background */
@keyframes xyDown {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

/* Prima striscia (ciano) */
.stripe--one {
  left: 15%;
  animation: xyDown 10s linear infinite;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='360'><rect width='56' height='360' fill='transparent'/><text x='8' y='80' font-family='Orbitron, Arial, sans-serif' font-size='28' letter-spacing='4' fill='%236BF4FF' transform='rotate(90 28,180)'>XY XY XY XY XY </text></svg>");
}

/* Seconda striscia (magenta), sfalsata e più lenta */
.stripe--two {
  left: 55%;
  animation: xyDown 14s linear infinite;
  animation-delay: -4s;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='360'><rect width='56' height='360' fill='transparent'/><text x='8' y='80' font-family='Orbitron, Arial, sans-serif' font-size='28' letter-spacing='4' fill='%23FF73F6' transform='rotate(90 28,180)'>XY XY XY XY XY </text></svg>");
}

/* Glow morbido dietro le strisce per profondità */
.scan-stripes::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 100% at 70% 50%, rgba(0,255,255,0.18), transparent 70%);
  filter: blur(24px);
}

@media (max-width: 900px) {
  .scan-stripes { width: clamp(100px, 22vw, 160px); }
}

.character {
  position: relative;
  width: clamp(620px, 58vw, 880px);
  max-height: 110%;
  z-index: 3;
  margin-right: clamp(-6rem, -10vw, -9rem);
  margin-top: clamp(-6rem, -10vw, -9rem);
  pointer-events: none;
  transform: translateX(-8%);
  filter: drop-shadow(-18px 36px 120px rgba(10, 2, 35, 0.85)) drop-shadow(0 0 60px rgba(107, 244, 255, 0.25));
}

.character-img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 120px);
  display: block;
  filter: saturate(1.12) drop-shadow(-14px 32px 110px rgba(6, 0, 30, 0.88));
  transform-origin: center bottom;
}

.hero-card {
  position: absolute;
  padding: 0.9rem 1.4rem;
  border-radius: 1rem;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08));
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(22px);
  box-shadow: 0 30px 55px rgba(20, 10, 60, 0.5);
  z-index: 3;
  transition: transform .35s ease;
  will-change: transform;
  transform: translate3d(0,0,0);
}

/* These positions apply only to the homepage */
.hero-card--auth {
  top: 18%;
  right: 0%;
  animation-delay: 0.2s;
  animation: bob1 6s ease-in-out infinite alternate;
}
.hero-card--creators {
  top: 30%;
  right: clamp(70%, 64vw, 80%);
  font-size: 0.85rem;
  padding: 0.9rem 1.4rem;
  animation-delay: 1.1s;
  animation: bob2 7s ease-in-out infinite alternate;
}
.hero-card--stored {
  bottom: 44%;
  right: -1.2%;
  animation-delay: 1.9s;
  animation: bob3 5.5s ease-in-out infinite alternate;
}
@media (min-width: 1101px) {
  .page-wrap { padding-bottom: 1.8rem; }
}

.header > .button-outline.hidden {
  display: none;
}

@keyframes navDrop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



@keyframes neonPulse {
  0%,
  100% {
    text-shadow: 0 0 16px rgba(0, 255, 255, 0.45);
    filter: drop-shadow(0 0 6px rgba(255, 47, 191, 0.3));
  }
  50% {
    text-shadow: 0 0 28px rgba(255, 47, 191, 0.65);
    filter: drop-shadow(0 0 12px rgba(51, 246, 255, 0.45));
  }
}

@keyframes orbPulse {
  0% {
    transform: scale(0.98);
    filter: blur(0) brightness(1);
  }
  50% {
    transform: scale(1.03);
    filter: blur(2px) brightness(1.1);
  }
  100% {
    transform: scale(1.05);
    filter: blur(1px) brightness(1.08);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-12px) translateX(6px);
  }
}

@keyframes bob1 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(18px, -26px, 0); }
}
@keyframes bob2 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-26px, -28px, 0); }
}
@keyframes bob3 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(22px, 16px, 0); }
}


@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-content {
    align-items: flex-start;
  }
  .hero-visual {
    min-height: 440px;
    justify-content: center;
    margin-top: 3rem;
  }
  .hero-footer {
    justify-content: flex-start;
  }
  .countdown {
    justify-content: center;
    flex-wrap: wrap;
  }
  .character {
    position: relative;
    bottom: auto;
    right: auto;
    width: clamp(260px, 60vw, 420px);
    margin-top: -1rem;
    margin-right: 0;
  }
  .countdown--overlay {
    bottom: 4%;
  }
}

@media (max-width: 900px) {
  body {
    height: auto;
  }
  .header {
    flex-wrap: nowrap;
  }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    padding: 6.5rem 1.8rem 3rem;
    background: linear-gradient(160deg, rgba(9, 5, 25, 0.95), rgba(25, 8, 54, 0.92));
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 70px rgba(10, 0, 35, 0.65);
    transform: translateY(-24px);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .nav-link {
    font-size: 1.25rem;
    letter-spacing: 0.18em;
  }
  .button-wallet {
    display: inline-flex;
  }
  .hero {
    margin-top: 2rem;
  }
  .page-wrap {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .header {
    flex-wrap: wrap;
  }
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  .hero-title {
    letter-spacing: 0.32em;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .countdown {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .countdown-item {
    flex: 1 1 calc(50% - 0.6rem);
  }
  .hero-visual {
    flex-direction: column;
    padding-right: 0;
  }
  .orb {
    position: relative;
    top: auto;
    right: auto;
    width: clamp(240px, 65vw, 360px);
    margin-bottom: 1.5rem;
  }
  .hero-visual::before,
  .hero-visual::after {
    display: none;
  }
  .character {
    margin: 0;
    width: clamp(240px, 70vw, 360px);
  }
  .hero-card {
    position: relative;
    inset: auto;
    margin-top: 1rem;
  }
}

@media (max-width: 540px) {
  .page-wrap {
    padding: 2rem 1.2rem 3rem;
  }
  .hero-title {
    letter-spacing: 0.28em;
  }
  .hero-card {
    font-size: 0.8rem;
  }
  .hero-card--auth {
    top: 8%;
    right: 6%;
  }
  .hero-card--creators {
    bottom: 42%;
  }
  .hero-card--stored {
    bottom: 8%;
    right: 6%;
  }
  .countdown {
    gap: 0.6rem;
  }
  .countdown-item {
    flex: 1 1 100%;
  }
}


/* === Safari Performance Optimizations === */
@supports (-webkit-touch-callout: none) {
  body {
    background-attachment: scroll;
  }
  .glass-card, .hero-card {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.08);
  }
}

/* GPU hint only on animated/effects, not global (fixes Safari edge clipping) */
.hero-card, .character, .orb, .glass-card {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* --- Safari Left Edge Fix --- */
@supports (-webkit-touch-callout: none) {
  html, body {
    overflow-x: hidden;
    margin-left: 0;
    padding-left: 0;
  }

  body {
    position: relative;
    left: 0;
    width: 100%;
    clip-path: inset(0 0 0 0);
  }

  .page-wrap {
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Ensure no underline for button links */
a.button,
a.button-ghost,
a.button-outline {
  text-decoration: none !important;
}