/* PF Live — Official Website */

:root {
  --bg: #120810;
  --bg-alt: #1a0c14;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(253, 45, 146, 0.12);
  --text: #fff8fc;
  --text-muted: #c9a8b8;
  --primary: #fd2d92;
  --primary-light: #ff5cad;
  --accent: #903cd2;
  --accent-2: #ff7551;
  --gold: #fbc046;
  --gradient: linear-gradient(135deg, #903cd2 0%, #fd2d92 55%, #ff7551 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --container: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn__icon {
  width: 1.25rem;
  height: 1.25rem;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 32px rgba(253, 45, 146, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 117, 81, 0.4);
}

.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  background: var(--surface-hover);
}

.btn--sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(18, 10, 16, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
}

.nav__logo,
.footer__logo {
  border-radius: 10px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a:not(.btn) {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:not(.btn):hover {
  color: var(--text);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-h);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(253, 45, 146, 0.16), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(255, 117, 81, 0.14), transparent),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(155, 60, 212, 0.1), transparent),
    var(--bg);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: 4rem;
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero__desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Phone mockup */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(253, 45, 146, 0.32), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  z-index: 0;
}

.phone-mockup {
  position: relative;
  z-index: 1;
  width: 280px;
  padding: 12px;
  border-radius: 36px;
  background: linear-gradient(145deg, #2d1a35, #1a1020);
  border: 2px solid rgba(253, 45, 146, 0.2);
  box-shadow: var(--shadow), 0 0 60px rgba(144, 60, 210, 0.15);
}

.phone-mockup__screen {
  border-radius: 26px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 16;
  min-height: 460px;
}

.phone-mockup__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

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

.section--alt {
  background: var(--bg-alt);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

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

.section__header h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section__header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(253, 45, 146, 0.35);
  background: var(--surface-hover);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(253, 45, 146, 0.12);
  color: var(--primary-light);
  margin-bottom: 1.25rem;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 1.25rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step__num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  flex-shrink: 0;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Community */
.community {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.community__content h2 {
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.community__content > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.community__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.community__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.community__visual {
  display: flex;
  justify-content: center;
}

.orbit {
  position: relative;
  width: 280px;
  height: 280px;
}

.orbit__ring {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(253, 45, 146, 0.25);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.orbit__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(253, 45, 146, 0.2);
}

.orbit__center img {
  border-radius: 12px;
}

.orbit__item {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow);
}

.orbit__item--1 { top: 0; left: 50%; transform: translateX(-50%); }
.orbit__item--2 { right: 0; top: 50%; transform: translateY(-50%); }
.orbit__item--3 { bottom: 0; left: 50%; transform: translateX(-50%); }
.orbit__item--4 { left: 0; top: 50%; transform: translateY(-50%); }

/* Download */
.download {
  padding: 5rem 0;
}

.download__inner {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: calc(var(--radius) * 1.5);
  background:
    radial-gradient(ellipse at center, rgba(253, 45, 146, 0.18), transparent 70%),
    var(--bg-alt);
  border: 1px solid var(--border);
}

.download__content h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.download__content > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.download__note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer__brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.footer__brand strong {
  display: block;
  font-size: 1rem;
}

.footer__brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer__copy {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Screenshots */
.screenshots {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.screenshots__main {
  border-radius: calc(var(--radius) * 1.25);
  overflow: hidden;
  border: 2px solid rgba(253, 45, 146, 0.2);
  box-shadow: var(--shadow), 0 0 80px rgba(144, 60, 210, 0.12);
  background: #000;
  max-width: 320px;
  margin: 0 auto;
}

.screenshots__main img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.screenshots__thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.screenshots__thumb {
  width: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.screenshots__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshots__thumb:hover {
  transform: scale(1.04);
}

.screenshots__thumb.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(253, 45, 146, 0.35);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */
@media (max-width: 960px) {
  .hero__inner,
  .community {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__desc {
    margin-inline: auto;
  }

  .hero__actions,
  .hero__stats {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .phone-mockup {
    width: 240px;
  }

  .phone-mockup__screen {
    min-height: 380px;
  }

  .features-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .screenshots {
    grid-template-columns: 1fr;
  }

  .screenshots__thumbs {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .screenshots__thumb {
    width: 64px;
  }

  .community__list {
    text-align: left;
    max-width: 400px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 6, 18, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links li {
    width: 100%;
  }

  .nav__links a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
  }

  .nav__links a:not(.btn):hover {
    background: var(--surface);
  }

  .nav__toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav__toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero__stats {
    gap: 1.5rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand {
    justify-content: center;
  }

  .footer__links {
    justify-content: center;
    flex-wrap: wrap;
  }
}
