:root {
  --header-p: 0;
  --bg: #f8fafc;
  --card: #ffffff;
  --card-border: #bae6fd;
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --kicker: #1e3a8a;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --menu-red: #eb5772;
  --menu-yellow: #facc15;
  --menu-blue: #38bdf8;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --radius: 20px;
  --radius-sm: 14px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --blue-soft: #dbeafe;
  --green-soft: #dcfce7;
  --amber-soft: #fef3c7;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a:hover {
  text-decoration: underline;
}

code {
  font-size: 0.9em;
  background: #eff6ff;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: float-orb 18s ease-in-out infinite;
}

.orb-a {
  width: 420px;
  height: 420px;
  background: #bfdbfe;
  top: -120px;
  right: -80px;
}

.orb-b {
  width: 360px;
  height: 360px;
  background: #fecdd3;
  bottom: 10%;
  left: -120px;
  animation-delay: -6s;
}

.orb-c {
  width: 280px;
  height: 280px;
  background: #fde68a;
  top: 40%;
  right: 20%;
  animation-delay: -12s;
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -24px) scale(1.05);
  }
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--kicker);
  font-family: var(--font-display);
}

.header-spacer {
  height: 4.25rem;
  pointer-events: none;
}

.header-anchor {
  position: fixed;
  top: calc(var(--header-p) * 0.85rem);
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-left: calc(var(--header-p) * 1.5rem);
  padding-right: calc(var(--header-p) * 1.5rem);
  pointer-events: none;
}

.site-header {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(1rem - var(--header-p) * 0.2rem);
  width: 100%;
  max-width: min(100%, calc(720px + (1 - var(--header-p)) * 30vw));
  padding:
    calc(1rem - var(--header-p) * 0.55rem)
    calc(clamp(1rem, 4vw, 3rem) - var(--header-p) * 0.6rem);
  background: rgba(255, 255, 255, calc(0.74 + var(--header-p) * 0.08));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(186, 230, 253, calc(0.15 + var(--header-p) * 0.55));
  border-radius: calc(var(--header-p) * 999px);
  box-shadow: 0 calc(var(--header-p) * 14px) calc(var(--header-p) * 42px)
    rgba(15, 23, 42, calc(var(--header-p) * 0.1));
}

.site-header .brand {
  gap: calc(0.65rem - var(--header-p) * 0.15rem);
}

.site-header .site-logo--md {
  width: calc(2.25rem - var(--header-p) * 0.4rem);
  height: calc(2.25rem - var(--header-p) * 0.4rem);
}

.site-header .brand-name {
  font-size: calc(1.2rem - var(--header-p) * 0.15rem);
}

.site-header .nav a {
  font-size: calc(1rem - var(--header-p) * 0.06rem);
}

.site-header .btn-sm {
  padding:
    calc(0.55rem - var(--header-p) * 0.07rem)
    calc(1rem - var(--header-p) * 0.1rem);
  font-size: calc(0.9rem - var(--header-p) * 0.06rem);
  box-shadow: 0 calc(12px - var(--header-p) * 4px) calc(28px - var(--header-p) * 8px)
    rgba(29, 78, 216, calc(0.28 - var(--header-p) * 0.06));
}


.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.site-logo {
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-logo--sm {
  width: 1.75rem;
  height: 1.75rem;
}

.site-logo--md {
  width: 2.25rem;
  height: 2.25rem;
}

.site-logo--lg {
  width: 3rem;
  height: 3rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.nav {
  display: none;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #1d4ed8);
}

.btn-ghost {
  position: relative;
  overflow: visible;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.88);
  color: var(--kicker);
  border: 1px solid rgba(186, 230, 253, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 10px 26px rgba(15, 23, 42, 0.09),
    0 14px 36px rgba(147, 197, 253, 0.38),
    0 4px 14px rgba(56, 189, 248, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 48%);
  pointer-events: none;
}

.btn-ghost::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 55%;
  width: 92%;
  height: 80%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(
    ellipse at center,
    rgba(147, 197, 253, 0.5) 0%,
    rgba(56, 189, 248, 0.18) 52%,
    transparent 78%
  );
  filter: blur(14px);
  pointer-events: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(147, 197, 253, 0.7);
  box-shadow:
    0 14px 32px rgba(15, 23, 42, 0.1),
    0 18px 44px rgba(147, 197, 253, 0.48),
    0 6px 18px rgba(56, 189, 248, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.08;
  color: #1f2937;
}

.lead {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 560px;
  padding: 0.5rem 0.75rem 2rem;
  overflow: visible;
}

/* ── iPhone 17 Pro — official Apple device frame (fastlane/frameit-frames) ── */
.iphone {
  position: relative;
  width: min(100%, 300px);
}

.iphone-17-pro::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -14px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.14), transparent 72%);
  filter: blur(4px);
  pointer-events: none;
}

.iphone-17-pro .iphone-device {
  filter: drop-shadow(0 40px 70px rgba(15, 23, 42, 0.22));
}

.iphone-device {
  position: relative;
  width: 100%;
  aspect-ratio: 1350 / 2760;
  animation: float-phone 6s ease-in-out infinite;
}

@keyframes float-phone {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Screen slot: iPhone 17 Pro offset +72+69, width 1206 (Apple frameit data) */
.iphone-screen {
  position: absolute;
  left: calc(100% * 72 / 1350);
  top: calc(100% * 69 / 2760);
  width: calc(100% * 1206 / 1350);
  height: calc(100% * 2622 / 2760);
  overflow: hidden;
  z-index: 1;
}

.iphone-screen-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.iphone-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* ── In-app mock (matches MasterDex home tab) ── */
.app-scroll {
  position: relative;
  z-index: 1;
  padding: 0 12px 88px;
  max-height: calc(100% - 40px);
  overflow: hidden;
}

.app-menu-wrap {
  margin-bottom: 10px;
}

.app-menu-glass {
  display: inline-flex;
  padding: 4px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.app-menu-shell {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 22px;
  background: #eb5772;
  border: 2px solid #111827;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.15);
}

.app-menu-lens {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7dd3fc;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(186, 230, 253, 0.55);
  animation: lens-pulse 2.8s ease-in-out infinite;
}

@keyframes lens-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(186, 230, 253, 0.45);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(186, 230, 253, 0.28);
  }
}

.app-menu-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #111827;
}

.app-menu-dot-red {
  background: #fb7185;
}
.app-menu-dot-yellow {
  background: #ffe066;
}
.app-menu-dot-green {
  background: #4ade80;
}

.app-kicker {
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--kicker);
}

.app-title {
  margin: 2px 0 4px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.1;
}

.app-subtitle {
  margin: 0 0 10px;
  font-size: 10px;
  line-height: 1.35;
  color: var(--text-secondary);
}

.app-card {
  background: #f8fbff;
  border: 1.5px solid #dbeafe;
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 8px;
}

.app-section-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.app-trending-set {
  width: 132px;
}

.app-trending-logo {
  height: 44px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
}

.app-trending-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.app-trending-name {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.app-trending-series {
  margin: 0 0 2px;
  font-size: 9px;
  font-weight: 600;
  color: #2563eb;
}

.app-trending-meta {
  margin: 0 0 6px;
  font-size: 9px;
  color: var(--text-muted);
}

.app-trending-track {
  height: 6px;
  border-radius: 999px;
  background: #dbeafe;
  overflow: hidden;
}

.app-trending-fill {
  height: 100%;
  border-radius: inherit;
  background: #38bdf8;
  animation: progress-pulse 3s ease-in-out infinite;
}

@keyframes progress-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.78;
  }
}

.app-mover {
  width: 96px;
}

.app-mover-img {
  height: 88px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.app-mover-img img {
  width: 72%;
  height: auto;
  object-fit: contain;
}

.app-mover-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-mover-set {
  margin: 1px 0 4px;
  font-size: 8px;
  color: #64748b;
}

.app-mover-price {
  margin: 0;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
}

.app-mover-badge {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 600;
}

.app-mover-badge.up {
  background: #dcfce7;
  color: #059669;
}

.app-rings {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.app-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}

.app-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  animation: ring-breathe 2.4s ease-in-out infinite;
}

.app-ring span {
  font-size: 9px;
  font-weight: 700;
  color: var(--text);
}

.app-ring-blue {
  border-color: #60a5fa;
}
.app-ring-amber {
  border-color: #f59e0b;
  animation-delay: -0.4s;
}
.app-ring-green {
  border-color: #22c55e;
  animation-delay: -0.8s;
}

@keyframes ring-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

.app-ring-label {
  font-size: 8px;
  color: var(--text-muted);
  font-weight: 500;
}

.app-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.app-progress-bar-fill {
  width: 67%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
}

.app-floating-nav {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 88%;
  z-index: 5;
}

.app-floating-nav-glass {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(14px);
}

.app-floating-nav-inner {
  position: relative;
  display: flex;
  padding: 4px 5px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.app-nav-highlight {
  position: absolute;
  top: 4px;
  left: 5px;
  width: calc(25% - 4px);
  height: calc(100% - 8px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.35);
}

.app-nav-item {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 2px;
  font-size: 7px;
  font-weight: 600;
  color: #94a3b8;
}

.app-nav-item.is-active {
  color: #475569;
}

.app-nav-glyph {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.16);
  margin-bottom: 1px;
  position: relative;
}

.app-nav-item.is-active .app-nav-glyph {
  background: rgba(71, 85, 105, 0.14);
}

.app-nav-glyph-sets::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  color: inherit;
}

.app-nav-glyph-search::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.app-nav-glyph-collection::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 5px;
  height: 3px;
  background: currentColor;
  border-radius: 1px;
}

.app-nav-glyph-catalog::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 6px;
  height: 1.5px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

/* Floating glass chips beside the phone */
.float-glass {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  z-index: 2;
}

.float-glass-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0) 42%,
    rgba(255, 255, 255, 0.22) 100%
  );
  pointer-events: none;
}

.float-glass-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.float-glass-icon-gold {
  color: #d97706;
  background: rgba(254, 243, 199, 0.55);
  border-color: rgba(251, 191, 36, 0.45);
}

.float-glass-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.float-glass-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kicker);
}

.float-glass-copy strong {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.float-glass-badge {
  align-self: flex-start;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.3;
}

.float-glass-badge-gold {
  color: #92400e;
  background: rgba(254, 243, 199, 0.7);
  border: 1px solid rgba(251, 191, 36, 0.5);
}

.float-glass-mastery {
  top: 10%;
  left: -6%;
  animation: float-glass-a 5.5s ease-in-out infinite;
  border-color: rgba(251, 191, 36, 0.28);
}

.float-glass-cardmarket {
  bottom: 16%;
  right: -8%;
  padding-right: 0.7rem;
  animation: float-glass-b 6.2s ease-in-out infinite;
  border-color: rgba(147, 197, 253, 0.45);
  box-shadow:
    0 16px 40px rgba(29, 78, 216, 0.1),
    0 16px 40px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.float-glass-arrow {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #012169;
  background: rgba(1, 33, 105, 0.08);
  border: 1px solid rgba(1, 33, 105, 0.14);
  line-height: 0;
}

.float-glass-arrow svg {
  display: block;
  width: 0.85rem;
  height: 0.85rem;
}

@keyframes float-glass-a {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-9px) rotate(0.5deg);
  }
}

@keyframes float-glass-b {
  0%,
  100% {
    transform: translateY(0) rotate(1deg);
  }
  50% {
    transform: translateY(-8px) rotate(-0.5deg);
  }
}

.section {
  padding: 2rem clamp(1rem, 4vw, 3rem) 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-head h2,
.about-card h2,
.cta-card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.section-lead {
  margin: 0;
  color: var(--text-secondary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1.5px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card[data-accent="blue"] {
  background: rgba(147, 197, 253, 0.5);
  border-color: rgba(56, 189, 248, 0.6);
}

.feature-card[data-accent="red"] {
  background: rgba(251, 113, 133, 0.5);
  border-color: rgba(235, 87, 114, 0.6);
}

.feature-card[data-accent="yellow"] {
  background: rgba(253, 224, 71, 0.5);
  border-color: rgba(250, 204, 21, 0.6);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
}

.feature-card[data-accent="blue"]:hover {
  border-color: rgba(29, 78, 216, 0.7);
}

.feature-card[data-accent="red"]:hover {
  border-color: rgba(225, 29, 72, 0.7);
}

.feature-card[data-accent="yellow"]:hover {
  border-color: rgba(234, 179, 8, 0.7);
}

.feature-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--kicker);
}

.feature-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  min-height: calc(1.25rem * 1.3 * 2);
}

.feature-card > p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  min-height: calc(0.95rem * 1.6 * 4);
}

/* Feature previews — mini app UI */
.feature-preview {
  flex: 0 0 12rem;
  height: 12rem;
  margin-top: 1rem;
  padding: 0.7rem;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feature-card[data-accent="blue"] .feature-preview {
  display: flex;
  flex-direction: column;
}

.feature-card[data-accent="blue"] .fp-tiles {
  margin-top: auto;
  padding-top: 0.4rem;
}

.fp-set-card {
  padding: 0.6rem;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid #dbeafe;
  margin-bottom: 0;
  flex-shrink: 0;
}

.fp-set-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.fp-set-logo {
  flex: 0 0 6.375rem;
  width: 6.375rem;
  height: 4.35rem;
  margin-bottom: 0;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.33rem 0.48rem;
}

.fp-set-logo img {
  max-height: 3.075rem;
  max-width: 100%;
  object-fit: contain;
}

.fp-set-copy {
  min-width: 0;
  flex: 1;
}

.fp-set-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

.fp-set-series {
  margin: 0.08rem 0 0;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.15;
  color: #2563eb;
}

.fp-set-meta {
  margin: 0.1rem 0 0;
  font-size: 0.66rem;
  line-height: 1.15;
  color: var(--text-muted);
}

.fp-set-track {
  height: 7px;
  border-radius: 999px;
  background: #dbeafe;
  overflow: hidden;
}

.fp-set-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #38bdf8;
}

.is-visible .fp-set-fill {
  animation: fp-set-grow 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fp-set-grow {
  to {
    width: 67%;
  }
}

.fp-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.3rem;
}

.fp-tile {
  aspect-ratio: 5 / 7;
  border-radius: 5px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
}

.fp-tile-card {
  padding: 0;
  overflow: hidden;
  border-color: #bfdbfe;
  background: #fff;
}

.fp-tile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fp-tile-add {
  display: grid;
  place-items: center;
  border-style: dashed;
  border-color: #93c5fd;
  background: rgba(248, 251, 255, 0.92);
  color: #2563eb;
}

.fp-tile-add span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.is-visible .fp-tile-card.is-owned {
  animation: fp-card-reveal 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.is-visible .fp-tile-add {
  animation: fp-add-pop 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.is-visible .fp-tile-card.is-owned:nth-child(1) { animation-delay: 0.45s; }
.is-visible .fp-tile-card.is-owned:nth-child(2) { animation-delay: 0.58s; }
.is-visible .fp-tile-card.is-owned:nth-child(3) { animation-delay: 0.71s; }
.is-visible .fp-tile-card.is-owned:nth-child(4) { animation-delay: 0.84s; }
.is-visible .fp-tile-add:nth-child(5) { animation-delay: 0.97s; }
.is-visible .fp-tile-add:nth-child(6) { animation-delay: 1.1s; }

@keyframes fp-card-reveal {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(4px);
    box-shadow: none;
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.12);
  }
}

@keyframes fp-add-pop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fp-value-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.15rem;
}

.fp-value-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--kicker);
}

.fp-value-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: #059669;
  background: #dcfce7;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.fp-value-amount {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.fp-chart {
  width: 100%;
  height: 2.5rem;
  margin-bottom: 0.6rem;
}

.fp-chart-line {
  fill: none;
  stroke: #1d4ed8;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
}

.is-visible .fp-chart-line {
  animation: fp-chart-draw 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fp-chart-area {
  fill: url(#fp-chart-fill);
  opacity: 0;
}

.is-visible .fp-chart-area {
  animation: fp-chart-fade 0.8s ease 0.5s forwards;
}

@keyframes fp-chart-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fp-chart-fade {
  to {
    opacity: 1;
  }
}

.fp-mover {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid #dbeafe;
}

.fp-mover-thumb {
  width: 2.2rem;
  height: 2.8rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.fp-mover-thumb img {
  width: 88%;
  object-fit: contain;
}

.fp-mover-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
}

.fp-mover-price {
  margin: 0.1rem 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
}

.fp-mover-badge {
  font-size: 0.6rem;
  font-weight: 700;
  color: #059669;
  background: #dcfce7;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  margin-left: 0.15rem;
}

.fp-mover-badge.is-down {
  color: #dc2626;
  background: #fee2e2;
}

.fp-search-bar {
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid #bfdbfe;
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 0.45rem;
}

.fp-chips {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.fp-chip {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--kicker);
  background: #fff;
  border: 1px solid #bfdbfe;
}

.fp-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.fp-result {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid #dbeafe;
}

.fp-result-thumb {
  width: 2.4rem;
  height: 3.2rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.fp-result-thumb img {
  width: 90%;
  object-fit: contain;
}

.fp-result-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
}

.fp-result-set {
  margin: 0.1rem 0 0;
  font-size: 0.6rem;
  color: var(--text-muted);
}

.fp-result-price {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
}

.fp-cm-pill {
  margin-left: auto;
  align-self: flex-start;
  font-size: 0.55rem;
  font-weight: 800;
  color: #fff;
  background: #012169;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

@media (prefers-reduced-motion: reduce) {
  .fp-set-fill {
    width: 67%;
    animation: none;
  }

  .fp-tile-card.is-owned,
  .fp-tile-add {
    animation: none !important;
  }

  .fp-chart-line {
    stroke-dashoffset: 0;
    animation: none;
  }

  .fp-chart-area {
    opacity: 1;
    animation: none;
  }
}

.section-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.section-brand .kicker {
  margin-bottom: 0.35rem;
}

.section-brand h2 {
  margin: 0;
}

.about-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  border-color: #bfdbfe;
}

.about-card p {
  color: var(--text-secondary);
}

.about-list {
  margin: 1.25rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
}

.about-list li + li {
  margin-top: 0.35rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border-radius: var(--radius-sm);
  padding: 0.25rem 1rem;
  border-color: #dbeafe;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.85rem 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.cta-band {
  padding-bottom: 5rem;
}

.cta-card {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius);
  border-color: #93c5fd;
}

.cta-card .btn {
  margin-top: 0.5rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid rgba(186, 230, 253, 0.6);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.store-modal[hidden] {
  display: none;
}

.store-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.store-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.store-modal-panel {
  position: relative;
  width: min(100%, 440px);
  padding: 2rem;
  border-radius: var(--radius);
  animation: modal-in 0.35s ease;
}

.store-modal-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.store-modal-brand .kicker {
  margin-bottom: 0.25rem;
}

.store-modal-brand h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.store-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.store-modal-lead {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.store-buttons {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.store-btn {
  display: block;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.store-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.store-btn span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
}

.store-btn strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.store-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 110;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .hero {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

@media (max-width: 899px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 599px) {
  .site-header .btn-sm {
    display: none;
  }

  .hero-visual {
    min-height: 480px;
  }

  .float-glass-mastery {
    left: -2%;
    top: 6%;
    max-width: 11.5rem;
  }

  .float-glass-cardmarket {
    right: -4%;
    bottom: 12%;
    max-width: 12.5rem;
  }

}
