/* ===== CSS Custom Properties ===== */
:root {
  --bg-primary: #0D0D1A;
  --bg-secondary: #161625;
  --bg-elevated: #1E1E32;
  --bg-card: #1A1A2E;

  --text-primary: #F0F0F5;
  --text-secondary: #B8B8C7;
  --text-muted: #6C7086;

  --accent-purple: #9B6DFF;
  --accent-purple-dim: rgba(155, 109, 255, 0.15);
  --accent-cyan: #00E5CC;
  --accent-cyan-dim: rgba(0, 229, 204, 0.1);
  --accent-indigo: #6366F1;

  --color-easy: #22C55E;
  --color-medium: #FACC15;
  --color-hard: #EF4444;

  --outline: #2A2A40;

  --gradient-primary: linear-gradient(135deg, #9B6DFF, #6366F1);
  --gradient-pro: linear-gradient(135deg, #FFD700, #FFA500);
  --gradient-streak: linear-gradient(135deg, #FF6B6B, #FF8E53);
  --gradient-hero: linear-gradient(160deg, #0D0D1A 0%, #1a1040 40%, #0D0D1A 100%);

  --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --max-width: 1120px;
  --header-height: 72px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--accent-cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-purple); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

/* ===== Utility ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}

/* ===== Header / Nav ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-height);
  background: rgba(13, 13, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--outline);
  transition: background 0.3s;
}

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

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem;
  color: var(--text-primary);
}

.nav-brand svg { width: 32px; height: 32px; }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #fff; font-weight: 600; font-size: 0.9rem;
  border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(155, 109, 255, 0.4);
  color: #fff;
}

.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 8px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-hero);
  padding: calc(var(--header-height) + 40px) 24px 80px;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 30% 20%, rgba(155, 109, 255, 0.08), transparent),
    radial-gradient(ellipse 500px 350px at 70% 70%, rgba(0, 229, 204, 0.06), transparent);
  pointer-events: none;
}

.hero-content { position: relative; max-width: 720px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--accent-purple-dim);
  color: var(--accent-purple); font-size: 0.85rem; font-weight: 600;
  margin-bottom: 24px; border: 1px solid rgba(155, 109, 255, 0.2);
}

.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 20px; letter-spacing: -0.02em; }
.hero h1 .highlight { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero-subtitle { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-secondary); max-width: 560px; margin: 0 auto 36px; }

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

.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 28px; border-radius: var(--radius-md);
  background: var(--bg-elevated); color: var(--text-primary);
  border: 1px solid var(--outline);
  font-size: 0.95rem; font-weight: 600; transition: all 0.2s;
}
.store-btn:hover {
  border-color: var(--accent-purple);
  background: var(--accent-purple-dim);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(155, 109, 255, 0.15);
}
.store-btn svg { width: 24px; height: 24px; }
.store-btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.store-btn-label { font-size: 0.7rem; font-weight: 400; color: var(--text-muted); }

.hero-stats {
  display: flex; gap: 40px; justify-content: center; margin-top: 56px;
  padding-top: 32px; border-top: 1px solid var(--outline);
}

.hero-stat { text-align: center; }
.hero-stat-value { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--accent-cyan); }
.hero-stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ===== Features ===== */
.features { padding: 100px 0; }

.section-header { text-align: center; max-width: 600px; margin: 0 auto 64px; }
.section-tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-cyan-dim); color: var(--accent-cyan);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 16px;
  border: 1px solid rgba(0, 229, 204, 0.15);
}
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
.section-header p { color: var(--text-secondary); font-size: 1.05rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: 0 12px 40px rgba(155, 109, 255, 0.1);
}

.feature-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-purple-dim);
  color: var(--accent-purple); font-size: 1.4rem;
  margin-bottom: 20px;
}

.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

/* ===== Languages ===== */
.languages { padding: 80px 0; }

.lang-grid {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  margin-top: 48px;
}

.lang-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: 999px;
  background: var(--bg-secondary);
  border: 1px solid var(--outline);
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.2s, border-color 0.2s;
}
.lang-chip:hover { transform: translateY(-2px); }

.lang-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ===== Pro Section ===== */
.pro-section { padding: 100px 0; }

.pro-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pro-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-pro);
}

.pro-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
  color: #FFD700; font-size: 0.85rem; font-weight: 700;
  margin-bottom: 24px; border: 1px solid rgba(255, 215, 0, 0.2);
}

.pro-card h2 { font-size: clamp(1.8rem, 3vw, 2.2rem); margin-bottom: 16px; }
.pro-card > p { color: var(--text-secondary); font-size: 1.05rem; max-width: 520px; margin: 0 auto 40px; }

.pro-features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; max-width: 680px; margin: 0 auto; text-align: left;
}

.pro-feature {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; border-radius: var(--radius-md);
  background: rgba(255, 215, 0, 0.04);
}
.pro-feature svg { width: 20px; height: 20px; color: #FFD700; flex-shrink: 0; margin-top: 2px; }
.pro-feature span { font-size: 0.95rem; color: var(--text-secondary); }

/* ===== CTA ===== */
.cta-section { padding: 100px 0; }

.cta-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1), transparent 60%);
  pointer-events: none;
}

.cta-card h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 16px; position: relative; }
.cta-card p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; max-width: 480px; margin: 0 auto 36px; position: relative; }

.cta-card .store-buttons { position: relative; }

.cta-card .store-btn {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.cta-card .store-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.cta-card .store-btn .store-btn-label { color: rgba(255, 255, 255, 0.7); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--outline);
  padding: 48px 0 32px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 12px; max-width: 320px; line-height: 1.7; }

.footer-heading {
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600;
  color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-cyan); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--outline);
  font-size: 0.85rem;
}

.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--text-muted); }
.footer-bottom-links a:hover { color: var(--text-secondary); }

/* ===== Legal Pages ===== */
.legal-page {
  padding: calc(var(--header-height) + 60px) 0 80px;
  min-height: 100vh;
}

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

.legal-content h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-muted); font-size: 0.9rem;
  margin-bottom: 40px; padding-bottom: 24px;
  border-bottom: 1px solid var(--outline);
}

.legal-content h2 {
  font-size: 1.3rem;
  margin: 40px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--outline);
}

.legal-content h2:first-of-type { border-top: none; padding-top: 0; }

.legal-content h3 {
  font-size: 1.1rem;
  margin: 24px 0 12px;
  color: var(--accent-purple);
}

.legal-content p { color: var(--text-secondary); margin-bottom: 16px; }

.legal-content ul {
  list-style: none; padding: 0; margin-bottom: 16px;
}

.legal-content ul li {
  position: relative; padding-left: 20px;
  color: var(--text-secondary); margin-bottom: 8px;
}

.legal-content ul li::before {
  content: '';
  position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-purple);
}

.legal-content .contact-box {
  background: var(--bg-secondary);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
}

.legal-content .contact-box p { margin-bottom: 6px; }
.legal-content .contact-box a { color: var(--accent-cyan); }

.legal-content .disclaimer {
  background: var(--accent-purple-dim);
  border-left: 3px solid var(--accent-purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 24px 0;
}

/* ===== Support / FAQ ===== */
.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--accent-purple); }

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.faq-item p { margin-bottom: 0; }

/* ===== 404 Page ===== */
.page-404 {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: var(--header-height) 24px;
  text-align: center;
}

.page-404 h1 {
  font-size: 6rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-404 p { color: var(--text-secondary); font-size: 1.15rem; margin: 16px 0 32px; }

.btn-home {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #fff; font-weight: 600; transition: transform 0.2s, box-shadow 0.2s;
}
.btn-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(155, 109, 255, 0.4);
  color: #fff;
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.2s; }
.animate-in:nth-child(3) { animation-delay: 0.3s; }
.animate-in:nth-child(4) { animation-delay: 0.4s; }
.animate-in:nth-child(5) { animation-delay: 0.5s; }
.animate-in:nth-child(6) { animation-delay: 0.6s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: var(--header-height); left: 0; right: 0;
    background: var(--bg-primary); border-bottom: 1px solid var(--outline);
    padding: 24px; gap: 20px;
  }
  .nav-toggle { display: block; }

  .hero { padding-top: calc(var(--header-height) + 24px); min-height: auto; padding-bottom: 60px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }

  .features-grid { grid-template-columns: 1fr; }

  .pro-card { padding: 40px 24px; }
  .pro-features { grid-template-columns: 1fr; }

  .cta-card { padding: 48px 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}

@media (max-width: 480px) {
  .store-buttons { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; max-width: 260px; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .lang-grid { gap: 12px; }
  .lang-chip { padding: 10px 18px; font-size: 0.85rem; }
}
