/* VibZ landing — charte alignée VibzColors (Flutter) */
:root {
  --vz-primary: #1db954;
  --vz-primary-dim: #169646;
  --vz-secondary: #e8750a;
  --vz-accent: #f5a623;
  --vz-bg-deep: #050810;
  --vz-bg: #0a0c12;
  --vz-surface: #12141c;
  --vz-surface-elevated: #1a1d28;
  --vz-border: #2a2e3a;
  --vz-text: #fafafa;
  --vz-text-secondary: #a3a3a3;
  --vz-text-muted: #737373;
  --vz-danger: #ef4444;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max: 72rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--vz-text);
  background: var(--vz-bg-deep);
  line-height: 1.55;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--vz-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #3ddc6e;
}

/* —— Atmosphere —— */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--vz-bg-deep);
}

.atmosphere__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 55% 45% at 18% 22%, rgba(29, 185, 84, 0.18), transparent 55%),
    radial-gradient(ellipse 40% 50% at 82% 18%, rgba(232, 117, 10, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 78%, rgba(29, 185, 84, 0.08), transparent 55%),
    radial-gradient(ellipse 35% 30% at 40% 60%, rgba(245, 166, 35, 0.05), transparent 50%),
    linear-gradient(165deg, #050810 0%, #0a1018 45%, #050810 100%);
  animation: mesh-drift 22s ease-in-out infinite alternate;
}

.atmosphere__noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

@keyframes mesh-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-2%, 1.5%) scale(1.04);
  }
}

/* —— Layout —— */
.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(5, 8, 16, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--vz-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--vz-text);
}

.brand:hover {
  color: var(--vz-text);
}

.brand__logo {
  display: block;
  height: 1.75rem;
  width: auto;
  animation: logo-breathe 4.5s ease-in-out infinite;
}

.brand__logo--footer {
  height: 1.5rem;
}

@keyframes logo-breathe {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 0 12px rgba(29, 185, 84, 0.35));
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--vz-text-secondary);
}

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

.nav__cta {
  display: none;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--vz-primary);
  color: #041208 !important;
  font-weight: 600;
  font-size: 0.85rem;
}

.nav__cta:hover {
  background: #3ddc6e;
  color: #041208 !important;
}

@media (min-width: 640px) {
  .nav__cta {
    display: inline-flex;
  }
}

/* —— Hero —— */
.hero {
  min-height: min(100dvh, 56rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 0 4.5rem;
  position: relative;
}

.hero__brand {
  display: flex;
  align-items: center;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: reveal-up 0.9s var(--ease-out) 0.1s forwards;
}

.hero__logo {
  display: block;
  height: clamp(2.75rem, 7vw, 4rem);
  width: auto;
  animation: logo-breathe 4.5s ease-in-out infinite;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 4.2vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
  margin-bottom: 1rem;
  opacity: 0;
  animation: reveal-up 0.9s var(--ease-out) 0.28s forwards;
}

.hero__support {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--vz-text-secondary);
  max-width: 36rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: reveal-up 0.9s var(--ease-out) 0.42s forwards;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  opacity: 0;
  animation: reveal-up 0.9s var(--ease-out) 0.56s forwards;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 0.5rem;
  transition:
    transform 0.25s var(--ease-out),
    filter 0.25s ease;
}

.store-badge:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.store-badge:focus-visible {
  outline: 2px solid var(--vz-primary);
  outline-offset: 3px;
}

.store-badge__img {
  display: block;
  height: 40px;
  width: auto;
}

/* Official Play badge PNG includes transparent padding — scale to match Apple */
.store-badge__img--google {
  height: 60px;
  margin: -10px -8px;
}

.hero__powered {
  margin-top: 2.5rem;
  opacity: 0;
  animation: reveal-up 0.9s var(--ease-out) 0.72s forwards;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere__mesh,
  .brand__logo,
  .hero__logo {
    animation: none;
  }

  .hero__brand,
  .hero__headline,
  .hero__support,
  .cta-group,
  .hero__powered,
  .reveal {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
}

/* —— Powered by —— */
.powered {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--vz-text-muted);
  font-size: 0.85rem;
}

.powered img {
  height: 1.15rem;
  width: auto;
  opacity: 0.9;
}

.powered span {
  opacity: 0.85;
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
}

.section--tight {
  padding: 3rem 0 4.5rem;
}

.section__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vz-primary);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  max-width: 22ch;
}

.section__lead {
  color: var(--vz-text-secondary);
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.features {
  display: grid;
  gap: 2rem 2.5rem;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  border-top: 1px solid var(--vz-border);
  padding-top: 1.25rem;
}

.feature h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.feature p {
  color: var(--vz-text-secondary);
  font-size: 0.95rem;
}

.download {
  border-radius: 1.25rem;
  background: linear-gradient(145deg, var(--vz-surface-elevated), var(--vz-surface));
  border: 1px solid var(--vz-border);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .download {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }
}

.download h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.download p {
  color: var(--vz-text-secondary);
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--vz-border);
  padding: 2.5rem 0 3rem;
  margin-top: 1rem;
}

.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.site-footer a {
  color: var(--vz-text-secondary);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--vz-text);
}

.site-footer__copy {
  margin-top: 1.75rem;
  font-size: 0.8rem;
  color: var(--vz-text-muted);
}

/* —— Legal pages —— */
.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-page__meta {
  font-size: 0.85rem;
  color: var(--vz-text-muted);
  margin-bottom: 1.5rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
  color: var(--vz-text);
}

.legal-page p,
.legal-page li {
  color: var(--vz-text-secondary);
  font-size: 0.98rem;
  margin-bottom: 0.9rem;
  max-width: 42rem;
}

.legal-page ul,
.legal-page ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-page li {
  margin-bottom: 0.45rem;
}

.legal-page strong {
  color: var(--vz-text);
  font-weight: 600;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--vz-border);
}

.legal-nav a {
  font-size: 0.875rem;
  color: var(--vz-text-secondary);
}

.support-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--vz-border);
  border-radius: 0.85rem;
  background: var(--vz-surface);
  max-width: 28rem;
}

.support-card a {
  font-weight: 600;
}
