html {
  background: #0f0a1f;
}

:root {
  --primary-500: #4D2EE5;
  --primary-600: #4338ca;
  --accent-500: #FF006A;
  --accent-400: #ff5c8d;
  --accent-600: #db0052;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Commissioner', sans-serif;
  background: linear-gradient(135deg, var(--slate-900) 0%, #0f0a1f 100%);
  color: var(--slate-100);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.5; transform: scale(1.15) rotate(10deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 0;
  background: transparent;
  z-index: 10;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-500), var(--primary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links a {
  color: var(--slate-300);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(255, 0, 106, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 0, 106, 0.4);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  filter: blur(150px);
  animation: pulse-glow 6s ease-in-out infinite;
  will-change: transform, opacity;
}

.hero-glow-1 {
  top: -300px;
  right: -300px;
  background: radial-gradient(circle, var(--accent-500) 0%, transparent 70%);
  opacity: 0.4;
}

.hero-glow-2 {
  bottom: -300px;
  left: -300px;
  background: radial-gradient(circle, var(--primary-500) 0%, transparent 70%);
  opacity: 0.3;
  animation-delay: 3s;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 140px;
  height: 140px;
  margin-bottom: 48px;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(255, 0, 106, 0.4));
}

.hero-text {
  max-width: 700px;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-text h1 span {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--slate-400);
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Features Section */
.features {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--slate-400);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.3s;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 0, 106, 0.2);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon .superellipse {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.feature-icon .icon-inner {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  color: white;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--slate-400);
  line-height: 1.6;
}

/* Download Section */
.download {
  padding: 120px 0;
  text-align: center;
  position: relative;
}

.download-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 0, 106, 0.05), transparent);
  pointer-events: none;
}

.download h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.download p {
  font-size: 1.25rem;
  color: var(--slate-400);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: white;
  color: var(--slate-900);
  text-decoration: none;
  border-radius: 16px;
  transition: all 0.2s;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.store-button svg {
  width: 32px;
  height: 32px;
}

.store-button .store-info {
  text-align: left;
}

.store-button .store-label {
  font-size: 0.75rem;
  color: var(--slate-500);
}

.store-button .store-name {
  font-size: 1.125rem;
  font-weight: 600;
}

/* Footer */
footer {
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--slate-500);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.copyright {
  color: var(--slate-600);
  font-size: 0.875rem;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* Language Switcher (Hybrid App Style) */
.language-switcher {
  margin-top: -4px;
  position: relative;
  display: inline-block;
}

.language-switcher select {
  appearance: none;
  background-color: rgba(15, 23, 42, 0.5); /* dark:bg-slate-900/50 */
  backdrop-filter: blur(4px); /* backdrop-blur-sm */
  border: 1px solid var(--slate-700); /* dark:border-slate-700 */
  color: var(--slate-200); /* dark:text-slate-200 */
  padding: 10px 40px 10px 16px; /* py-2.5 pl-4 pr-10 */
  border-radius: 12px; /* rounded-xs approx */
  font-family: inherit;
  font-size: 0.875rem; /* sm:text-sm */
  font-weight: 500;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
}

.language-switcher select:hover {
  background-color: var(--slate-900); /* dark:hover:bg-slate-900 */
  border-color: var(--primary-500); /* hover:border-primary-500 */
}

.language-switcher select:focus {
  outline: none;
  background-color: var(--slate-900); /* focus:bg-slate-900 */
  border-color: var(--primary-500); /* focus:border-primary-500 */
  box-shadow: 0 0 10px rgba(77, 46, 229, 0.3); /* focus:shadow-glow-sm approx */
}

.language-switcher select option {
  background-color: var(--slate-800); /* dark:bg-slate-800 */
  color: var(--slate-200); /* dark:text-slate-200 */
}

/* Visually Hidden (for accessibility) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* FAQ Section */
.faq {
  padding: 120px 0;
  position: relative;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: rgba(255, 0, 106, 0.2);
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 0, 106, 0.3);
}

.faq-item summary {
  padding: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent-500);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.faq-item p {
  padding: 0 24px 24px;
  color: var(--slate-400);
  line-height: 1.7;
  margin: 0;
}

/* Highlight Box (for terms/privacy) */
.highlight-box {
  background: rgba(255, 0, 106, 0.1);
  border: 1px solid rgba(255, 0, 106, 0.2);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.highlight-box p {
  margin: 0;
  color: var(--slate-200);
}

.highlight-box strong {
  color: var(--accent-500);
}

/* Legal Pages */
.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-content .last-updated {
  color: var(--slate-500);
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-content p {
  color: var(--slate-300);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul {
  color: var(--slate-300);
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 24px;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-logo {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 32px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
  }
  
  .download h2 {
    font-size: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  
  .footer-right {
    align-items: center;
  }
  
  .legal-content h1 {
    font-size: 2rem;
  }
}
