/* ===== CSS Variables ===== */
:root {
  --bg-primary: #F6F5F2;
  --bg-secondary: #0E0E0E;
  --text-primary: #0E0E0E;
  --text-secondary: #F6F5F2;
  --text-muted: #888888;
  --accent: #FF3B30;
  --surface: #E8E8E8;
  --surface-dark: #1A1A1A;

  --space-section: 140px;
  --space-element: 40px;
  --space-card: 20px;
  --page-margin: 40px;

  --radius-pill: 9999px;
  --radius-card: 16px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== Utilities ===== */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.text-center {
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--page-margin);
}

.container-narrow {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--page-margin);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  padding: 16px var(--page-margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(246, 245, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14, 14, 14, 0.12);
}

.nav-logo {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.nav.scrolled .nav-logo {
  color: var(--text-primary);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--page-margin);
  max-width: 900px;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-wrap: balance;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(246, 245, 242, 0.7);
  margin-top: 20px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(246, 245, 242, 0.5);
  z-index: 2;
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(8px); }
  60% { transform: translateX(-50%) translateY(4px); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 400;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: rgba(246, 245, 242, 0.3);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.75rem;
}

.btn-full {
  width: 100%;
  margin-top: 16px;
}

/* ===== Sections ===== */
.section {
  padding: var(--space-section) 0;
}

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

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* ===== Video Reel ===== */
.reel {
  background: var(--bg-primary);
}

.categories {
  display: flex;
  gap: 8px;
  margin: 32px 0 32px var(--page-margin);
  overflow-x: auto;
}

.pill {
  background: var(--surface);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 400;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.pill.active,
.pill:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.video-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--page-margin) 8px;
}

/* ===== Video Card ===== */
.video-card {
  width: 260px;
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 9 / 16;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.video-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 40%);
  z-index: 1;
}

.video-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.video-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
}

.video-card-tag {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.video-card-views {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
}

/* ===== Trust Block ===== */
.trust {
  text-align: center;
}

.trust-text {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.trust-sub {
  font-size: 1rem;
  color: rgba(246, 245, 242, 0.5);
  margin-top: 24px;
}

/* ===== Support ===== */
.support {
  background: var(--bg-primary);
}

.support-intro {
  font-size: 0.9375rem;
  color: var(--text-primary);
  max-width: 560px;
  margin-top: 16px;
  margin-bottom: 48px;
  line-height: 1.6;
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.tier-card {
  background: var(--surface);
  color: var(--text-primary);
  border-radius: var(--radius-card);
  padding: 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.tier-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tier-price {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.tier-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.tier-card-dark {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.tier-card-dark .tier-label {
  color: rgba(246, 245, 242, 0.6);
}

/* ===== Social Proof / Stats ===== */
.stats-section {
  background: var(--bg-primary);
  padding: 80px var(--page-margin);
  border-top: 1px solid rgba(14, 14, 14, 0.12);
  border-bottom: 1px solid rgba(14, 14, 14, 0.12);
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ===== Telegram ===== */
.telegram {
  background: var(--bg-primary);
  text-align: center;
}

.tg-icon {
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

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

/* ===== Exclusive ===== */
.exclusive-grid {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
}

.exclusive-text {
  flex: 1;
  min-width: 0;
}

.exclusive-text .section-title {
  color: var(--text-secondary);
}

.exclusive-image-wrapper {
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.exclusive-image {
  width: 280px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius-card);
  display: block;
}

/* ===== About ===== */
.about {
  background: var(--bg-primary);
  padding: 100px 0 60px;
  text-align: center;
}

.about-text {
  font-size: 1.0625rem;
  color: var(--text-primary);
  line-height: 1.7;
  text-wrap: pretty;
}

.about-sig {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 20px;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-secondary);
  padding: 60px var(--page-margin) 40px;
  border-top: 1px solid rgba(246, 245, 242, 0.12);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8125rem;
  color: rgba(246, 245, 242, 0.6);
  transition: color 0.2s ease;
}

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

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(246, 245, 242, 0.4);
  margin-top: 40px;
  text-align: center;
}

/* ===== Video Modal ===== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal.active {
  display: flex;
}

.video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal.active .video-modal-overlay {
  opacity: 1;
}

.video-modal-content {
  position: relative;
  max-width: 400px;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-secondary);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.video-modal.active .video-modal-content {
  opacity: 1;
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  backdrop-filter: blur(4px);
  z-index: 3;
}

.video-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-modal-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  z-index: 2;
}

.video-modal-title {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 400;
}

.video-modal-views {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  margin-top: 4px;
}

/* ===== Scroll Reveal Animations ===== */
.reveal-up,
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
}

.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root {
    --space-section: 80px;
    --page-margin: 20px;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .categories {
    margin-left: var(--page-margin);
  }

  .video-card {
    width: 72vw;
  }

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

  .tier-card:last-child {
    grid-column: 1 / -1;
  }

  .stats-grid {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .exclusive-grid {
    flex-direction: column-reverse;
    gap: 32px;
    text-align: center;
  }

  .exclusive-image {
    width: 200px;
    margin: 0 auto;
  }

  .exclusive-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .nav {
    padding: 16px var(--page-margin);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .tiers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .tier-card:last-child {
    grid-column: auto;
  }
}
