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

:root {
  --navy: #07144a;
  --navy-2: #0c1f72;
  --blue: #1638c8;
  --lime: #c6ea1c;
  --lime-2: #e8ff4a;
  --yellow: #ffe44a;
  --white: #ffffff;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

html, body {
  min-height: 100%;
}

body.home {
  font-family: Montserrat, 'Segoe UI', system-ui, sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

.home-scale {
  position: relative;
  z-index: 1;
  width: 100%;
  transform-origin: top center;
}

/* ── Background motion ── */
.home-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 50% -10%, #1b3ad0 0%, transparent 55%),
    linear-gradient(180deg, #0a1a66 0%, #07144a 45%, #040d33 100%);
}

.home-fx__streaks {
  position: absolute;
  inset: -20%;
  background:
    repeating-linear-gradient(
      -28deg,
      transparent 0 46px,
      rgba(255, 255, 255, 0.035) 46px 48px,
      transparent 48px 90px
    );
  animation: streak-shift 14s linear infinite;
}

.home-fx__glow {
  position: absolute;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: glow-drift 8s ease-in-out infinite alternate;
}

.home-fx__glow--a {
  top: -10%;
  left: -15%;
  background: radial-gradient(circle, #2a4cff 0%, transparent 70%);
}

.home-fx__glow--b {
  right: -20%;
  bottom: 10%;
  background: radial-gradient(circle, #b6ff1a 0%, transparent 70%);
  animation-delay: -3s;
  opacity: 0.25;
}

.home-fx__burst {
  position: absolute;
  top: 0;
  width: 140px;
  height: 140px;
  background: repeating-conic-gradient(from 0deg, transparent 0 12deg, rgba(198, 234, 28, 0.55) 12deg 13deg);
  mask-image: radial-gradient(circle, transparent 28%, #000 29%, #000 48%, transparent 49%);
  -webkit-mask-image: radial-gradient(circle, transparent 28%, #000 29%, #000 48%, transparent 49%);
  animation: burst-spin 12s linear infinite, burst-pulse 2.4s ease-in-out infinite;
}

.home-fx__burst--left { left: -40px; }
.home-fx__burst--right { right: -40px; animation-direction: reverse, alternate; }

.home-fx__sparkles span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255, 228, 74, 0.85);
  animation: twinkle 2.2s ease-in-out infinite;
}

.home-hero,
.home-skins,
.home-footer {
  position: relative;
  z-index: 1;
}

/* ── Hero ── */
.home-hero {
  text-align: center;
  padding: calc(1.1rem + var(--safe-top)) 1rem 0.4rem;
}

.home-kicker {
  font-family: Oswald, Montserrat, sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 8vw, 2.6rem);
  letter-spacing: 0.06em;
  color: #fff;
  -webkit-text-stroke: 3px var(--lime);
  paint-order: stroke fill;
  text-shadow: 0 0 18px rgba(198, 234, 28, 0.45);
  animation: kicker-glow 2.8s ease-in-out infinite;
}

.home-title {
  margin: 0.15rem 0 0.55rem;
  font-size: clamp(1.35rem, 6.2vw, 2.15rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.01em;
  transform: rotate(-2.5deg);
  color: var(--yellow);
  -webkit-text-stroke: 2px #111;
  paint-order: stroke fill;
  animation: title-shift 3.5s linear infinite;
}

.home-sub {
  font-size: clamp(0.72rem, 3.1vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-sub span {
  color: var(--lime);
  animation: color-flick 2s ease-in-out infinite;
}

.home-cta {
  margin-top: 0.7rem;
  font-size: clamp(0.78rem, 3.3vw, 1rem);
  font-weight: 800;
}

.home-cta strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.05em;
  color: var(--lime);
  text-shadow: 0 0 14px rgba(198, 234, 28, 0.7);
  animation: cta-pulse 1.6s ease-in-out infinite;
}

/* ── Skin cards ── */
.home-skins {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.85rem 0.85rem 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.skin-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  padding: 0.55rem 0.4rem 0.7rem;
  border-radius: 18px;
  border: 3px solid var(--lime);
  background: linear-gradient(180deg, rgba(8, 22, 90, 0.65), rgba(4, 12, 48, 0.85));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 18px rgba(198, 234, 28, 0.35);
  animation: card-glow 2.8s ease-in-out infinite;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, filter 0.22s ease;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  width: 100%;
}

.skin-card__arrow {
  color: var(--yellow);
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 2px 0 #111);
  animation: arrow-bounce 1.1s ease-in-out infinite;
}

.skin-card__title {
  font-size: clamp(0.95rem, 3.6vw, 1.25rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 0.1rem 0 0.25rem;
  text-align: center;
}

.skin-card__apps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.app-logos {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.7rem;
}

.app-logos__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
}

.app-logos__icon small {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.app-logo {
  display: block;
  border-radius: 22%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.app-logos__caption {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.9;
  text-align: center;
}

.home-social .app-logo {
  width: 22px;
  height: 22px;
}

.skin-card__preview {
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, #3a4a6a 0%, #151b2c 70%);
}

.skin-card__preview img {
  display: block;
  width: 100%;
  height: auto;
}

.skin-card__preview-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  flex: 1;
}

.skin-choice {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  text-decoration: none;
  color: inherit;
  border-radius: 50%;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.skin-card--split {
  cursor: default;
}

.skin-card__preview--round {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  max-width: 210px;
}

.skin-card__preview-stack .skin-card__preview--round {
  max-width: min(142px, 86%);
  margin-inline: auto;
}

.skin-card__preview--round img {
  height: 100%;
  object-fit: cover;
}

.skin-card__preview--story {
  aspect-ratio: 9 / 16;
  max-width: 170px;
}

.skin-card__preview--story img {
  height: 100%;
  object-fit: cover;
}

.skin-card--wide {
  grid-column: 1 / -1;
}

.skin-card:active {
  transform: scale(0.97);
}

.skin-card--split:active {
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .skin-card:hover {
    transform: translateY(-8px) scale(1.035);
    border-color: var(--yellow);
    box-shadow:
      0 0 0 2px var(--lime-2),
      0 16px 36px rgba(0, 0, 0, 0.35),
      0 0 28px rgba(255, 228, 74, 0.55);
    filter: saturate(1.15) brightness(1.06);
  }

  .skin-card:hover .skin-card__arrow {
    color: var(--lime-2);
  }

  .skin-card:hover .skin-card__title {
    color: var(--yellow);
  }

  .skin-choice:hover {
    transform: scale(1.06);
    filter: saturate(1.12) brightness(1.06);
  }
}

.skin-choice:active {
  transform: scale(0.97);
}

/* ── Footer ── */
.home-footer {
  padding: 0.4rem 0.75rem calc(0.9rem + var(--safe-bottom));
  text-align: center;
}

.home-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.home-brand__name {
  font-weight: 900;
  font-size: clamp(0.95rem, 4vw, 1.35rem);
  color: #7ea2ff;
  letter-spacing: 0.02em;
}

.home-brand__number {
  font-weight: 900;
  font-size: clamp(2rem, 9vw, 3.2rem);
  line-height: 0.9;
  color: #fff;
  text-shadow:
    0 0 12px rgba(255, 228, 74, 0.85),
    0 2px 0 #c6ea1c;
  animation: number-shine 2.2s ease-in-out infinite;
}

.home-slogan {
  margin: 0.65rem auto 0.7rem;
  max-width: 640px;
  background: var(--yellow);
  color: #102070;
  font-weight: 800;
  font-size: clamp(0.58rem, 2.5vw, 0.78rem);
  letter-spacing: 0.02em;
  padding: 0.45rem 0.6rem;
  border-radius: 4px;
}

.home-values {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  background: #0a1a5c;
  padding: 0.55rem 0.5rem;
  font-size: clamp(0.48rem, 2.2vw, 0.68rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.home-values li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.home-values span {
  font-size: 1.05rem;
}

.home-social {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.82rem;
}

.home-count {
  opacity: 0.75;
  font-weight: 700;
  font-size: 0.72rem;
}

.app-icon {
  display: inline-flex;
  color: #fff;
}

.app-logo {
  display: block;
  flex-shrink: 0;
}

@keyframes streak-shift {
  from { transform: translateX(0) translateY(0); }
  to { transform: translateX(-80px) translateY(40px); }
}

@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, 24px) scale(1.12); }
}

@keyframes burst-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes burst-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1.3); }
}

@keyframes kicker-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(198, 234, 28, 0.2)); }
  50% { filter: drop-shadow(0 0 12px rgba(198, 234, 28, 0.9)); }
}

@keyframes title-shift {
  0% { color: #ffe44a; }
  35% { color: #fff176; }
  65% { color: #c6ea1c; }
  100% { color: #ffe44a; }
}

@keyframes color-flick {
  0%, 100% { color: var(--lime); }
  50% { color: var(--yellow); }
}

@keyframes cta-pulse {
  0%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(198, 234, 28, 0.5); }
  50% { opacity: 0.85; text-shadow: 0 0 22px rgba(255, 228, 74, 1); }
}

@keyframes card-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 0 14px rgba(198, 234, 28, 0.28); }
  50% { box-shadow: 0 0 0 1px rgba(255,255,255,0.14) inset, 0 0 26px rgba(255, 228, 74, 0.55); }
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes number-shine {
  0%, 100% { color: #fff; filter: drop-shadow(0 0 6px rgba(255, 228, 74, 0.5)); }
  50% { color: #fffde8; filter: drop-shadow(0 0 16px rgba(255, 228, 74, 1)); }
}

@media (min-width: 720px) {
  .home-skins {
    gap: 1.4rem;
    padding: 1.2rem 1.5rem 1.4rem;
  }

  .skin-card {
    padding: 0.9rem 0.8rem 1rem;
  }
}

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