:root {
  --bg: #000;
  --text: #f9fafb;
  --muted: #9ca3af;
  --border: rgba(31, 41, 55, 0.9);
  --card-bg: rgba(17, 24, 39, 0.6);
  --accent: #a855f7;
  --accent-teal: #2dd4bf;
  --max: 1120px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:
    radial-gradient(900px 480px at 50% -8%, rgba(168, 85, 247, 0.22), transparent 55%),
    radial-gradient(700px 400px at 82% 8%, rgba(45, 212, 191, 0.10), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-teal); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.75);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon { border-radius: 8px; }
.brand img { width: 36px; height: 36px; }
.brand strong { font-size: 1rem; }
.nav { display: flex; gap: 18px; font-size: 0.9rem; color: var(--muted); }

.hero { padding: 72px 0 40px; text-align: center; position: relative; }
.hero--drop {
  padding: 64px 0 36px;
  max-width: 720px;
  margin: 0 auto;
}
.hero-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
}
.hero-glow--purple {
  inset: -60px 10% auto;
  width: 72%;
  height: 220px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22), transparent 70%);
}
.hero-glow--teal {
  inset: 40px -10% auto auto;
  width: 48%;
  height: 160px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.12), transparent 70%);
}
.hero-eyebrow {
  position: relative;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
  color: #5eead4;
  margin: 0 0 16px;
}
.hero-live-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.1);
  color: #e9d5ff;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.hero-live-pill.is-live {
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.1);
  color: #bbf7d0;
}
.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.55);
}
.hero-live-pill.is-live .hero-live-dot {
  background: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.7);
  animation: hero-pulse 2s ease-in-out infinite;
}
@keyframes hero-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.92); }
}
.hero-lead {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  line-height: 1.65;
  color: #cbd5e1;
}
.hero-countdown {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.1);
  color: #e9d5ff;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 18px;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.hero-facts li {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  color: #d1d5db;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-claim-hint {
  margin: 18px auto 0;
  max-width: 480px;
  color: #6b7280;
  font-size: 0.84rem;
  line-height: 1.5;
}
.hero-claim-hint strong {
  color: #d1d5db;
  font-weight: 600;
}
.store-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.store-card-link:hover {
  color: inherit;
}
.hero-status-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero h1 {
  position: relative;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-weight: 800;
}
.gradient-text {
  background: linear-gradient(90deg, #2dd4bf, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 12px;
  font-size: 1.05rem;
}
#vibekey-store-status {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 28px 0 20px;
}

.vault-search-wrap {
  margin: 0 0 1.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.vault-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.12);
  cursor: text;
}
.vault-search:focus-within {
  border-color: rgba(45, 212, 191, 0.55);
  background: rgba(45, 212, 191, 0.08);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}
.vault-search-icon {
  flex-shrink: 0;
  color: #d8b4fe;
}
.vault-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  outline: none;
}
.vault-search-input::placeholder {
  color: #c4b5fd;
  opacity: 0.85;
}
.vault-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  background: linear-gradient(45deg, transparent 46%, #9ca3af 46%, #9ca3af 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, #9ca3af 46%, #9ca3af 54%, transparent 54%);
  cursor: pointer;
}
.vault-search-empty {
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.vault-section--trending {
  padding-bottom: 0.5rem;
}
.vault-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 0 0 28px;
}
.vault-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.vault-tab[aria-selected="true"] {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.55);
  color: #f9fafb;
}

.vault-scroll-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 4px 24px;
  margin: 0 -4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.45) transparent;
}
.vault-scroll-strip::-webkit-scrollbar { height: 6px; }
.vault-scroll-strip::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.45);
  border-radius: 999px;
}

/* NFT-style cards */
.store-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.store-card--card {
  flex-basis: clamp(248px, 62vw, 316px);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.55), rgba(45, 212, 191, 0.35));
  padding: 2px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.store-card--theme {
  flex-basis: clamp(288px, 76vw, 384px);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.35), rgba(59, 130, 246, 0.25));
  padding: 2px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(168, 85, 247, 0.18);
}
.store-card-inner {
  background: linear-gradient(165deg, rgba(12, 16, 28, 0.98), rgba(17, 24, 39, 0.92));
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
}

.store-card-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a0f;
}
.store-card-preview--art {
  aspect-ratio: 778 / 1024;
  width: 100%;
  height: auto;
  background: radial-gradient(circle at 30% 10%, rgba(168, 85, 247, 0.12), transparent 55%), #050508;
}
.store-card-preview--art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
}
.store-card-preview--keyboard {
  aspect-ratio: 512 / 376;
  width: 100%;
  height: auto;
  padding: 0;
  background: #0a0a0f;
}
.store-card-preview--keyboard.store-card-preview--device {
  aspect-ratio: 1440 / 980;
}
.vault-keyboard-canvas,
.vault-keyboard-mockup {
  width: 100%;
  height: 100%;
  display: block;
}
.store-card-preview--canvas .vault-keyboard-canvas {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center top;
}
.store-card-preview--device .vault-theme-preview-img,
.store-card-preview--device .vault-theme-preview-anim {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.store-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}
.store-card-likes-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #fda4af;
}
.store-card-title {
  margin: 14px 16px 4px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-card-meta {
  margin: 0 16px 14px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.vault-section { margin: 2rem 0 2.5rem; }
.vault-section--live {
  margin-top: 0.5rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(168, 85, 247, 0.22);
  background: rgba(10, 12, 20, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 64px -24px rgba(168, 85, 247, 0.35);
}
.drop-pack-head { margin-bottom: 1.25rem; }
.drop-pack-eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #99f6e4;
}
.drop-pack {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.drop-pack-theme .store-card,
.drop-pack-cards .store-card {
  flex-basis: auto;
  width: 100%;
}
.drop-pack-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.vault-section--live .store-card--theme,
.vault-section--live .store-card--card {
  padding: 1px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.vault-scroll-wrap {
  position: relative;
}
.vault-scroll-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 24px;
  width: 48px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.65));
  pointer-events: none;
}
.vault-section h2 {
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}
.vault-section--live h2 { font-size: 1.5rem; }
.vault-section--catalog {
  padding-top: 0.25rem;
}
.vault-section--catalog h2 {
  font-size: 1.45rem;
}
.vault-section--catalog + .vault-section--catalog {
  margin-top: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.store-card-avail {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.store-card-avail--free {
  background: rgba(34, 197, 94, 0.22);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #bbf7d0;
}
.store-card-avail--video {
  background: rgba(168, 85, 247, 0.22);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: #e9d5ff;
}
.vault-section-sub { color: var(--muted); margin: 0 0 1rem; font-size: 0.95rem; line-height: 1.45; }
.vault-section-cta {
  margin: 0.75rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 8px;
}
.play-store-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(168, 85, 247, 0.5);
  background: linear-gradient(90deg, #7c3aed, #0d9488);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
}
.play-store-cta:hover {
  color: #fff;
  filter: brightness(1.08);
}
.vault-share-row {
  display: flex;
  justify-content: center;
  margin: 0 0 1rem;
}
.vault-share-btn {
  appearance: none;
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.12);
  color: #99f6e4;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.vault-share-btn:hover {
  background: rgba(45, 212, 191, 0.22);
  border-color: rgba(45, 212, 191, 0.75);
  color: #fff;
}

.store-empty { color: var(--muted); text-align: center; padding: 40px 0 72px; }
.store-deeplink-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  background: rgba(66, 165, 245, 0.12);
  border: 1px solid rgba(66, 165, 245, 0.35);
  color: var(--text);
  font-size: 0.95rem;
}
.store-deeplink-preview {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0a0a0f;
}
.store-deeplink-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.store-deeplink-copy {
  flex: 1;
  min-width: 180px;
}
.store-deeplink-copy h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.store-deeplink-copy p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.store-deeplink-claims {
  color: #fda4af !important;
  font-weight: 600;
  margin-bottom: 4px !important;
}
.store-deeplink-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Legacy SVG motion fallback */
.store-card-preview--motion:not(.store-card-preview--device) .vault-keyboard-mockup {
  animation: vk-preview-drift 8s ease-in-out infinite;
}
.store-card-preview--motion:not(.store-card-preview--device)[data-bg-effect="mesh"] .vault-keyboard-mockup,
.store-card-preview--motion:not(.store-card-preview--device)[data-bg-effect="soft_blobs"] .vault-keyboard-mockup {
  animation: vk-mesh-drift 6s ease-in-out infinite;
}
.store-card-preview--motion:not(.store-card-preview--device)[data-space-anim="shimmer"] .vault-keyboard-mockup {
  animation: vk-space-shimmer 2.8s ease-in-out infinite;
}
.store-card-preview--motion:not(.store-card-preview--device)[data-glow-pulse="1"] .vault-keyboard-mockup {
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.35));
  animation: vk-glow-pulse 2.4s ease-in-out infinite;
}
@keyframes vk-mesh-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-1%, -0.5%) scale(1.01); }
}
@keyframes vk-preview-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}
@keyframes vk-glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.25)); }
  50% { filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.55)); }
}
@keyframes vk-space-shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.88; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .store-card:hover { transform: none; }
  .store-card-preview--motion .vault-keyboard-mockup,
  .vault-theme-preview-anim {
    animation: none !important;
  }
  .vault-theme-preview-anim { display: none !important; }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

@media (max-width: 800px) {
  .drop-pack { grid-template-columns: 1fr; }
  .drop-pack-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nav { gap: 12px; font-size: 0.82rem; }
  .store-card--card { flex-basis: clamp(234px, 78vw, 288px); }
  .store-card--theme { flex-basis: clamp(272px, 84vw, 348px); }
  .vault-section--live { padding: 1rem; }
}
