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

:root {
  --bg-color: #02040E;
  --card-bg: #161821;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: #FF7499;
  --primary-gradient: linear-gradient(90deg, #E13160 0%, #B5153F 100%);
  --primary-glow: rgba(225, 49, 96, 0.4);
  --accent: #FF7499;
  --accent-dim: rgba(225, 49, 96, 0.24);
  --text-primary: #EEEFF6;
  --text-secondary: #A5A6A9;
  --text-muted: #6C6E79;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Background Ambient Lighting */
.bg-glow-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at top, rgba(225, 49, 96, 0.18) 0%, rgba(2, 4, 14, 0) 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(80px);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Nav */
header {
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 4, 14, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

/* Custom Glassmorphism Language Selector Dropdown */
.lang-dropdown-container {
  position: relative;
  display: inline-block;
}

.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 24, 33, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 8px 16px;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lang-dropdown-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(255, 116, 153, 0.25);
  transform: translateY(-1px);
}

.globe-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.chevron-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.lang-dropdown-btn:hover .chevron-icon {
  color: var(--text-primary);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(22, 24, 33, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 116, 153, 0.3);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(225, 49, 96, 0.2);
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
  z-index: 250;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-dropdown-menu.show {
  display: flex;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lang-option-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.lang-option-btn:hover {
  background: rgba(225, 49, 96, 0.18);
  color: var(--accent);
}

.lang-option-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #FFFFFF;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px var(--primary-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(225, 49, 96, 0.5);
}

/* Centered Hero Section (Full Viewport Height & Extra Top Margin) */
.hero {
  padding: 96px 0 140px 0;
  min-height: calc(85vh - 70px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-content-center {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 116, 153, 0.25);
}

.hero-title {
  font-size: 58px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.8px;
  margin-bottom: 22px;
  color: #FFFFFF;
}

.hero-title span {
  color: var(--accent);
  background: linear-gradient(135deg, #FFFFFF 20%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 19px;
  color: var(--text-secondary);
  margin-bottom: 44px;
  max-width: 640px;
  line-height: 1.6;
}

.download-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s ease;
}

.store-btn:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(225, 49, 96, 0.2);
}

.store-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.store-btn-main {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}

/* Legal Pages Styling */
.legal-content {
  padding: 50px 0 100px 0;
  max-width: 860px;
  margin: 0 auto;
}

.legal-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  padding: 48px;
  border-radius: var(--radius-lg);
}

.legal-card h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.legal-card .updated-date {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 36px;
  display: block;
}

.legal-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 14px 0;
  color: #FFFFFF;
}

.legal-card p, .legal-card ul {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-card ul {
  padding-left: 24px;
}

.legal-card li {
  margin-bottom: 8px;
}

/* Footer */
footer {
  border-top: 1px solid var(--card-border);
  padding: 50px 0 40px 0;
  background: #010207;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}

.footer-logo-img {
  height: 36px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title {
    font-size: 42px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 76px 0 140px 0;
    min-height: calc(100vh - 65px);
  }

  .logo-img {
    height: 36px; /* 20% larger on mobile */
  }

  .hero-title {
    font-size: 32px;
    letter-spacing: -1px;
    margin-bottom: 18px;
  }

  .hero-desc {
    font-size: 16px;
    margin-bottom: 36px;
  }

  .badge {
    font-size: 12px;
    padding: 8px 18px;
    margin-bottom: 20px;
  }
  
  /* Hide navbar CTA button on mobile to prevent clutter */
  header .btn-primary {
    display: none;
  }

  .download-badges {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    justify-content: center;
  }

  .store-btn {
    flex: 1;
    padding: 14px 12px;
    justify-content: center;
    gap: 8px;
  }

  .store-btn svg {
    width: 20px;
    height: 20px;
  }

  .store-btn-main {
    font-size: 14px;
  }
  
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
  
  .header-right {
    gap: 8px;
  }
  
  .lang-dropdown-btn {
    padding: 6px 12px;
  }
}
