/* ==========================================================================
   Vibe Flick — Cash Reels–inspired dark gamified landing
   Layout: side rail nav + banner hero + 3-screen showcase
   ========================================================================== */

:root {
  --vf-bg: #0c0e14;
  --vf-surface: #141820;
  --vf-card: #1a1f2b;
  --vf-purple: #2d1b4e;
  --vf-purple-deep: #1e1238;
  --vf-blue: #2b7fff;
  --vf-blue-bright: #38bdf8;
  --vf-green: #22c55e;
  --vf-green-dark: #16a34a;
  --vf-pink: #ff4d9d;
  --vf-gold: #fbbf24;
  --vf-orange: #ff6b35;
  --vf-orange-end: #fbbf24;
  --vf-text: #f8fafc;
  --vf-muted: #94a3b8;
  --vf-radius: 20px;
  --vf-radius-lg: 32px;
  --vf-radius-pill: 999px;
  --vf-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --vf-glow-blue: 0 0 80px rgba(43, 127, 255, 0.35);
  --vf-glow-green: 0 0 40px rgba(34, 197, 94, 0.4);
  --vf-font-display: "Righteous", system-ui, sans-serif;
  --vf-font-body: "Poppins", system-ui, sans-serif;
  --vf-rail-w: 88px;
  --vf-header-h: 64px;
  --vf-transition: 200ms ease;
  --vf-section-y: clamp(4.5rem, 10vw, 7rem);
  --vf-section-y-sm: clamp(3rem, 8vw, 5rem);
  --vf-inline-x: clamp(1.5rem, 4vw, 2.5rem);
  --vf-block-gap: clamp(2.5rem, 5vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: var(--vf-blue-bright);
  text-decoration: none;
  transition: color var(--vf-transition);
}

a:hover {
  color: var(--vf-green);
}

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

.vf-skip {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--vf-green);
  color: #052e16;
  border-radius: 8px;
  font-weight: 600;
}

.vf-skip:focus {
  top: 1rem;
}

.vf-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Ambient */
.vf-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.vf-ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.vf-ambient__orb--blue {
  width: 50vw;
  height: 50vw;
  top: -10%;
  right: -10%;
  background: var(--vf-blue);
}

.vf-ambient__orb--pink {
  width: 40vw;
  height: 40vw;
  bottom: 10%;
  left: -5%;
  background: var(--vf-pink);
  opacity: 0.2;
}

/* Header + side rail */
.vf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem 0.75rem calc(var(--vf-rail-w) + 0.5rem);
  min-height: var(--vf-header-h);
  background: rgba(12, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow var(--vf-transition), background var(--vf-transition);
}

.vf-header.is-scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  background: rgba(12, 14, 20, 0.95);
}

.vf-header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--vf-text);
  font-family: var(--vf-font-display);
  font-size: 1rem;
  flex-shrink: 0;
  transition: opacity var(--vf-transition);
}

.vf-header__brand:hover {
  opacity: 0.9;
  color: var(--vf-text);
}

.vf-header__logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
}

.vf-header__wallet {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem 0.35rem 0.5rem;
  background: var(--vf-card);
  border-radius: var(--vf-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
}

.vf-wallet-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vf-pink), #ff8fab);
  color: #fff;
}

.vf-wallet-pill {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--vf-radius-pill);
  background: rgba(43, 127, 255, 0.25);
  color: var(--vf-blue-bright);
}

.vf-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 110;
  width: var(--vf-rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem 0;
  background: linear-gradient(180deg, #0f1219 0%, #141820 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.vf-rail__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.65rem 0.35rem;
  width: 72px;
  border-radius: 14px;
  color: var(--vf-muted);
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
  transition: color var(--vf-transition), background var(--vf-transition);
  cursor: pointer;
}

.vf-rail__link:hover,
.vf-rail__link.is-active {
  color: var(--vf-text);
  background: rgba(43, 127, 255, 0.15);
}

.vf-rail__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: background var(--vf-transition), box-shadow var(--vf-transition);
}

.vf-rail__link.is-active .vf-rail__dot {
  background: var(--vf-green);
  box-shadow: var(--vf-glow-green);
}

.vf-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vf-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--vf-card);
  color: var(--vf-text);
}

/* Buttons */
.vf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: var(--vf-radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--vf-text);
  transition: transform var(--vf-transition), box-shadow var(--vf-transition), filter var(--vf-transition);
}

.vf-btn:hover {
  filter: brightness(1.08);
}

.vf-btn:focus-visible {
  outline: 2px solid var(--vf-blue-bright);
  outline-offset: 2px;
}

.vf-btn--green {
  background: linear-gradient(180deg, #4ade80 0%, var(--vf-green) 45%, var(--vf-green-dark) 100%);
  box-shadow: var(--vf-glow-green), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #052e16;
}

.vf-btn--blue {
  background: linear-gradient(180deg, #60a5fa 0%, var(--vf-blue) 100%);
  box-shadow: 0 8px 24px rgba(43, 127, 255, 0.35);
}

.vf-btn--store {
  background: linear-gradient(180deg, #4ade80 0%, var(--vf-green) 100%);
  color: #052e16;
  box-shadow: var(--vf-glow-green);
}

.vf-btn--outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.vf-btn--outline:hover {
  border-color: var(--vf-blue);
  background: rgba(43, 127, 255, 0.1);
}

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

.vf-btn--block {
  width: 100%;
}

.vf-header__cta .vf-icon {
  width: 1rem;
  height: 1rem;
}

/* Mobile nav */
.vf-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
}

.vf-mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(300px, 88vw);
  height: 100%;
  padding: 1.5rem;
  background: var(--vf-surface);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vf-mobile-nav__close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--vf-card);
  color: var(--vf-text);
}

.vf-mobile-nav__link {
  padding: 0.85rem 0;
  color: var(--vf-text);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Main layout */
.vf-main {
  position: relative;
  z-index: 1;
  padding-left: var(--vf-rail-w);
  padding-top: calc(var(--vf-header-h) + 2rem);
}

/* Hero */
.vf-hero {
  padding: var(--vf-section-y) var(--vf-inline-x);
  max-width: 1200px;
  margin: 0 auto;
}

.vf-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

.vf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--vf-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vf-eyebrow__spark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vf-green);
  box-shadow: var(--vf-glow-green);
}

.vf-hero__title {
  margin: 0 0 1.5rem;
  font-family: var(--vf-font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.2;
  font-weight: 400;
}

.vf-brand {
  background: linear-gradient(90deg, var(--vf-blue-bright), var(--vf-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vf-hero__lead {
  margin: 0 0 1.25rem;
  color: var(--vf-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 32rem;
}

.vf-hero__note {
  margin: 0 0 2.25rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.85);
  max-width: 28rem;
}

.vf-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.vf-hero__banner-wrap {
  position: relative;
  margin: 0;
  width: 100%;
}

.vf-hero__banner-glow {
  position: absolute;
  inset: -12% -8%;
  border-radius: var(--vf-radius-lg);
  background: radial-gradient(ellipse at center, rgba(43, 127, 255, 0.45) 0%, transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}

.vf-hero__banner {
  position: relative;
  width: 100%;
  border-radius: var(--vf-radius-lg);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--vf-shadow), var(--vf-glow-blue);
  object-fit: cover;
  aspect-ratio: 1024 / 500;
}

/* Sections */
.vf-screens,
.vf-features {
  padding: var(--vf-section-y) var(--vf-inline-x);
  max-width: 1200px;
  margin: 0 auto;
}

.vf-download {
  padding: var(--vf-section-y) var(--vf-inline-x) calc(var(--vf-section-y) + 1rem);
  max-width: 1200px;
  margin: 0 auto;
}

.vf-section-head {
  margin-bottom: var(--vf-block-gap);
}

.vf-section-title {
  margin: 0.75rem 0 1rem;
  font-family: var(--vf-font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  font-weight: 400;
}

.vf-section-lead {
  margin: 0;
  color: var(--vf-muted);
  line-height: 1.75;
  max-width: 36rem;
}

.vf-section-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vf-gold);
}

/* 3-screen showcase — one screenshot per card */
.vf-screen-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vf-screen-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 2.25rem;
  border-radius: var(--vf-radius-lg);
  background: linear-gradient(180deg, var(--vf-card) 0%, rgba(26, 31, 43, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  transition: border-color var(--vf-transition), box-shadow var(--vf-transition);
}

.vf-screen-card:hover {
  border-color: rgba(43, 127, 255, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.vf-screen-card__step {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--vf-font-display);
  font-size: 0.85rem;
  color: var(--vf-blue-bright);
  opacity: 0.9;
}

.vf-screen-phone {
  margin: 0 0 1.75rem;
  width: min(220px, 78%);
}

.vf-screen-phone__shell {
  padding: 0.5rem;
  border-radius: 28px;
  background: linear-gradient(160deg, #1a1f2b 0%, #0c0e14 100%);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.vf-screen-phone__shell img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.vf-screen-card__copy h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
}

.vf-screen-card__copy p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--vf-muted);
  line-height: 1.65;
}

/* Task cards */
.vf-task-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vf-task {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.75rem 2rem;
  border-radius: var(--vf-radius-lg);
  background: var(--vf-purple);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: default;
}

.vf-task--featured {
  background: linear-gradient(135deg, var(--vf-orange) 0%, var(--vf-orange-end) 100%);
  color: #1a0a00;
}

.vf-task--featured .vf-task__body p,
.vf-task--featured .vf-milestone__node {
  color: rgba(26, 10, 0, 0.75);
}

.vf-task--featured .vf-task__icon {
  background: rgba(255, 255, 255, 0.35);
  color: #1a0a00;
}

.vf-task__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--vf-gold);
}

.vf-task__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.vf-task__body p {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--vf-muted);
}

.vf-task--featured .vf-task__body p {
  color: rgba(26, 10, 0, 0.8);
}

.vf-milestone {
  display: flex;
  align-items: center;
  gap: 0;
}

.vf-milestone__node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.vf-milestone__node.is-done {
  background: var(--vf-green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.vf-task--featured .vf-milestone__node.is-done {
  background: #1a0a00;
  box-shadow: none;
}

.vf-milestone__line {
  flex: 1;
  height: 4px;
  min-width: 40px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.vf-milestone__line i {
  display: block;
  height: 100%;
  background: var(--vf-blue);
  border-radius: inherit;
}

.vf-task--featured .vf-milestone__line i {
  background: #1a0a00;
}

.vf-task__cta {
  padding: 0.5rem 1rem;
  border-radius: var(--vf-radius-pill);
  background: var(--vf-blue);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.vf-task--featured .vf-task__cta {
  background: rgba(26, 10, 0, 0.85);
  color: var(--vf-gold);
}

.vf-download__inner {
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--vf-radius-lg);
  background: linear-gradient(160deg, rgba(43, 127, 255, 0.2) 0%, var(--vf-purple-deep) 50%, var(--vf-bg) 100%);
  border: 1px solid rgba(43, 127, 255, 0.25);
  box-shadow: var(--vf-glow-blue);
}

.vf-download__title {
  margin: 0 0 0.5rem;
  font-family: var(--vf-font-display);
  font-size: 2rem;
}

.vf-download__text {
  margin: 0 0 2.25rem;
  color: var(--vf-muted);
  line-height: 1.75;
}

.vf-download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Footer */
.vf-footer {
  padding: var(--vf-section-y-sm) var(--vf-inline-x) var(--vf-section-y-sm) calc(var(--vf-rail-w) + var(--vf-inline-x));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  background: #080a0f;
}

.vf-footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.vf-footer__name {
  font-family: var(--vf-font-display);
  font-size: 1.25rem;
}

.vf-footer__copy {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: var(--vf-muted);
}

.vf-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.vf-footer__links a {
  font-size: 0.9rem;
}

.vf-footer__disclaimer {
  margin: 0;
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.7);
  max-width: 32rem;
  margin-inline: auto;
}

/* Modal */
.vf-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.vf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

.vf-modal__panel {
  position: relative;
  width: min(400px, 100%);
  padding: 2rem;
  border-radius: var(--vf-radius-lg);
  background: var(--vf-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--vf-shadow);
  text-align: center;
}

.vf-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--vf-card);
  color: var(--vf-text);
}

.vf-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background: rgba(34, 197, 94, 0.2);
  color: var(--vf-green);
}

.vf-modal__icon .vf-icon {
  width: 1.75rem;
  height: 1.75rem;
}

.vf-modal__title {
  margin: 0 0 0.5rem;
  font-family: var(--vf-font-display);
  font-size: 1.75rem;
}

.vf-modal__text {
  margin: 0 0 1.25rem;
  color: var(--vf-muted);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .vf-screen-row {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }

  .vf-screen-card {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.75rem 1.5rem;
  }

  .vf-screen-phone {
    width: 120px;
    margin: 0;
    flex-shrink: 0;
  }

  .vf-screen-card__copy {
    flex: 1;
    padding-top: 1.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --vf-rail-w: 0px;
  }

  .vf-rail {
    display: none;
  }

  .vf-header {
    padding-left: 1rem;
  }

  .vf-main,
  .vf-footer {
    padding-left: 0;
  }

  .vf-burger {
    display: flex;
  }

  .vf-header__cta,
  .vf-header__wallet {
    display: none;
  }

  .vf-header__brand {
    margin-right: auto;
  }

  .vf-main {
    padding-top: calc(var(--vf-header-h) + 1.25rem);
  }

  .vf-hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .vf-hero__banner-wrap {
    order: -1;
    margin-bottom: 0.5rem;
  }

  .vf-screen-row {
    max-width: none;
  }

  .vf-screen-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .vf-screen-phone {
    width: min(200px, 70%);
  }

  .vf-screen-card__copy {
    padding-top: 0;
  }

  .vf-task {
    grid-template-columns: auto 1fr;
  }

  .vf-task__cta {
    grid-column: 2;
    justify-self: start;
    margin-top: -0.25rem;
  }
}

@media (max-width: 480px) {
  .vf-hero,
  .vf-screens,
  .vf-features,
  .vf-download {
    padding-block: var(--vf-section-y-sm);
    padding-inline: 1.25rem;
  }

  .vf-section-head {
    margin-bottom: 2.5rem;
  }

  .vf-screen-row {
    gap: 1.75rem;
  }
}
