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

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

:root {
  --bg: #121221;
  --bg-panel: #1a1a2e;
  --accent: #FFCD30;
  --accent-glow: rgba(255, 205, 48, 0.3);
  --glass: rgba(26, 26, 46, 0.65);
  --glass-border: rgba(255, 255, 255, 0.05);
  --text-main: #e0e0e0;
  --text-muted: rgba(224, 224, 224, 0.6);
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 10% 20%, rgba(255, 205, 48, 0.05) 0%, transparent 45%),
              radial-gradient(circle at 90% 80%, rgba(26, 26, 46, 0.8) 0%, transparent 55%),
              radial-gradient(circle at 50% 50%, rgba(18, 18, 33, 1) 0%, transparent 100%),
              var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle dot grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px, 30px 30px;
  background-position: 0 0, 15px 15px;
  pointer-events: none;
  z-index: 0;
}

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

/* Hero top badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 205, 48, 0.1);
  border: 1px solid rgba(255, 205, 48, 0.25);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.welcome-content {
  text-align: center;
  padding: 48px 40px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 30px 80px rgba(0, 0, 0, 0.6);
}

/* Logo + badge header block */
.header-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.welcome-title {
  font-size: 2.3rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 1.5em var(--accent-glow);
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.instruction-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 20px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.instruction-text strong {
  font-weight: 700;
  color: var(--accent);
}

.screenshot-container {
  margin: 20px auto 36px;
  max-width: 760px;
  text-align: center;
}

.screenshot-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-image:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 205, 48, 0.3);
  box-shadow: 0 16px 48px rgba(255, 205, 48, 0.15);
}

/* CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ffcd30 0%, #ff9900 100%);
  color: #000 !important;
  text-decoration: none;
  padding: 20px 45px;
  font-weight: 900;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(255, 205, 48, 0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 8px;
}

.cta-button:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(255, 205, 48, 0.5);
}

.cta-button:active {
  transform: translateY(-2px) scale(0.98);
}

.cta-button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.disclaimer {
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .welcome-content {
    padding: 32px 20px;
  }

  .welcome-title {
    font-size: 1.8rem;
  }

  .instruction-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .welcome-title {
    font-size: 1.5rem;
  }

  .cta-button {
    font-size: 0.95rem;
    padding: 14px 32px;
  }
}

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

.dropdown .dropdown-trigger {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.dropdown .dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

.dropdown .dropdown-trigger .globe-icon {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  stroke: var(--accent);
}

.dropdown .dropdown-trigger .chevron-icon {
  width: 12px;
  height: 12px;
  opacity: 0.4;
  transition: transform 0.2s ease;
  stroke: currentColor;
}

.dropdown.open .dropdown-trigger .chevron-icon {
  transform: rotate(180deg);
}

.dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(18, 18, 33, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px;
  min-width: 140px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

.dropdown.open .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown .dropdown-item {
  display: block;
  padding: 8px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  border-radius: 4px;
  text-align: left;
  transition: all 0.2s ease;
  font-weight: 600;
  cursor: pointer;
}

.dropdown .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.dropdown .dropdown-item.active {
  color: var(--accent);
  background: rgba(255, 205, 48, 0.1);
  font-weight: 700;
  cursor: default;
  pointer-events: none;
}
