/* ========== Reset & Base ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-family: 'Inter', sans-serif; background: #0a0a0a; color: #e5e5e5; }
::selection { background: rgba(255,255,255,0.15); color: #fff; }

/* Subtle grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ========== Animations ========== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.img-reveal {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.img-reveal.visible {
  opacity: 1;
  transform: scale(1);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  animation: marquee 30s linear infinite;
}

/* ========== Card Effects ========== */
.card-glow {
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card-glow:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 60px rgba(255,255,255,0.04);
}

/* ========== Divider ========== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

/* ========== Navigation ========== */
nav {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* ========== Buttons ========== */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover::after {
  opacity: 1;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(255,255,255,0.08);
}

/* ========== Hero ========== */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

/* ========== Language Switcher ========== */
.lang-switcher {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9999px;
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.lang-trigger:hover {
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
}

.lang-trigger .lang-icon {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.lang-trigger .lang-chevron {
  width: 12px;
  height: 12px;
  opacity: 0.35;
  transition: transform 0.25s ease;
}

.lang-switcher.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  padding: 4px;
  background: #161616;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 0.8125rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.lang-option:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
}

.lang-option.active {
  color: white;
  background: rgba(255,255,255,0.08);
}

.lang-option .lang-check {
  width: 14px;
  height: 14px;
  opacity: 0;
  margin-left: auto;
  flex-shrink: 0;
}

.lang-option.active .lang-check {
  opacity: 0.6;
}

/* ========== Screenshot Placeholders ========== */
.screenshot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111111, #1a1a1a);
  color: rgba(255,255,255,0.15);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}
