/* CSS Variables */
:root {
  --background: 260 87% 3%;
  --foreground: 40 6% 95%;
  --hero-sub: 40 6% 82%;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-amber: #fcd34d;
}

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Geist Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Liquid Glass Utility */
.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;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
}

/* Video Wrapper */
.video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

#hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* Blurred Overlay */
.blur-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 984px;
  height: 527px;
  opacity: 0.9;
  background: #0a0a0a;
  filter: blur(82px);
  pointer-events: none;
  z-index: 1;
}

/* Navbar */
.navbar {
  width: 100%;
  padding: 20px 32px;
  position: relative;
  z-index: 10;
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-left .logo {
  height: 32px;
  width: auto;
}

.logo-text {
  font-family: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: hsl(var(--foreground) / 0.9);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.nav-item:hover {
  opacity: 0.8;
}

.chevron {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.nav-right .btn-secondary {
  background: transparent;
  border: 1px solid hsl(var(--foreground) / 0.2);
  color: hsl(var(--foreground));
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-right .btn-secondary:hover {
  background: hsl(var(--foreground) / 0.1);
  border-color: hsl(var(--foreground) / 0.3);
}

/* Gradient Divider */
.nav-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, hsl(var(--foreground) / 0.2), transparent);
  margin-top: 3px;
  position: relative;
  z-index: 10;
}

/* Hero Content */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.hero-headline {
  font-family: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 220px;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.024em;
  color: hsl(var(--foreground));
  margin: 0;
}

.gradient-text {
  background: linear-gradient(to left, var(--accent-indigo), var(--accent-purple), var(--accent-amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: hsl(var(--hero-sub));
  font-size: 18px;
  line-height: 32px;
  max-width: 448px;
  margin-top: 9px;
  opacity: 0.8;
}

.btn-primary {
  background: linear-gradient(to left, var(--accent-indigo), var(--accent-purple), var(--accent-amber));
  border: none;
  border-radius: 9999px;
  color: hsl(var(--background));
  font-size: 16px;
  font-weight: 600;
  padding: 24px 29px;
  margin-top: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

/* Logo Marquee */
.logo-marquee {
  position: relative;
  z-index: 10;
  padding-bottom: 40px;
}

.marquee-container {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

.marquee-text {
  color: hsl(var(--foreground) / 0.5);
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee-track {
  flex: 1;
  overflow: hidden;
  mask: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  display: flex;
  gap: 64px;
  animation: marquee 20s linear infinite;
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.logo-item span {
  font-size: 16px;
  font-weight: 600;
  color: hsl(var(--foreground));
  white-space: nowrap;
}

@keyframes marquee {
  0% {
    transform: TranslateX(0);
  }
  100% {
    transform: TranslateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-headline {
    font-size: clamp(48px, 20vw, 80px);
  }
  
  .nav-center {
    display: none;
  }
  
  .marquee-container {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  
  .marquee-track {
    width: 100%;
  }
}