/* Import Inter from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Lock viewport for hero-only pages */
.page-hero-only,
.page-hero-only body {
  overflow: hidden;
}

/* Background Video */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bottom Blur Overlay */
.blur-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  mask-image: linear-gradient(to top, black 0%, transparent 45%);
  -webkit-mask-image: linear-gradient(to top, black 0%, transparent 45%);
}

/* Liquid Glass Effect */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Blur Fade Up Animation */
@keyframes blurFadeUp {
  from {
    opacity: 0;
    filter: blur(20px);
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.animate-blur-fade-up {
  animation: blurFadeUp 1s ease-out forwards;
  opacity: 0;
}

/* Mobile menu slide in animation */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in {
  animation: slideInLeft 0.4s ease-out forwards;
  opacity: 0;
}

/* Main layout */
.page-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

/* Navbar */
.navbar {
  position: relative;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1rem;
}

@media (min-width: 640px) {
  .navbar {
    padding: 1rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .navbar {
    padding: 1.5rem 3rem;
  }
}

/* Logo */
.logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(1.15) contrast(1.1);
}

@media (min-width: 640px) {
  .logo-img {
    height: 38px;
  }
}

@media (min-width: 768px) {
  .logo-img {
    height: 44px;
  }
}

/* Desktop Nav */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
  cursor: pointer;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.95);
}

/* Right Nav Section */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s;
}

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

@media (min-width: 768px) {
  .search-btn {
    padding: 0.5rem 1.5rem;
  }
}

.search-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.profile-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s;
}

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

.profile-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Hamburger */
.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s;
}

@media (min-width: 1024px) {
  .hamburger-btn {
    display: none;
  }
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hamburger-icon {
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
  position: absolute;
}

.hamburger-icon.hidden-icon {
  transform: rotate(180deg) scale(0.5);
  opacity: 0;
}

.hamburger-icon.visible-icon {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

/* Mobile Menu */
.mobile-menu {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  padding: 0.5rem;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none;
  }
}

.mobile-menu.closed {
  transform: translateY(-1rem);
  opacity: 0;
  pointer-events: none;
}

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

.mobile-nav-link {
  display: block;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: background 0.3s;
  cursor: pointer;
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .mobile-actions {
    display: none;
  }
}

.mobile-search-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s;
}

.mobile-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s;
}

/* Hero Content Area */
.hero-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 1rem 2rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .hero-area {
    padding: 0 1.5rem 2rem;
  }
}

@media (min-width: 768px) {
  .hero-area {
    padding: 0 3rem 4rem;
  }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2rem;
}

@media (min-width: 768px) {
  .hero-inner {
    flex-direction: row;
    align-items: flex-end;
    gap: 2rem;
  }
}

/* Left Hero Content */
.hero-left {
  flex: 1;
  width: 100%;
}

/* Metadata Row */
.metadata-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .metadata-row {
    gap: 1.5rem;
    font-size: 0.875rem;
  }
}

@media (min-width: 768px) {
  .metadata-row {
    margin-bottom: 2rem;
  }
}

.metadata-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255, 255, 255, 0.6);
}

.metadata-item svg {
  flex-shrink: 0;
}

/* Headline */
.hero-headline {
  font-size: 1.875rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #fff;
}

@media (min-width: 640px) {
  .hero-headline {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .hero-headline {
    font-size: 3.75rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-headline {
    font-size: 4.5rem;
  }
}

/* Description */
.hero-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.5rem;
  max-width: 42rem;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .hero-description {
    font-size: 1.125rem;
  }
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
  }
}

/* CTA Buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cta-row {
    gap: 1rem;
  }
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #000;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.625rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
}

@media (min-width: 640px) {
  .cta-primary {
    padding: 0.75rem 2rem;
  }
}

.cta-primary:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.625rem 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
}

@media (min-width: 640px) {
  .cta-secondary {
    padding: 0.75rem 2rem;
  }
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

/* Right Hero Actions */
.hero-right {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hero-right {
    flex-direction: row;
    align-items: flex-end;
  }
}

.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.action-pill:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.95);
}

.action-pill svg {
  flex-shrink: 0;
}
