/* ChatL — shared stylesheet */

:root {
  --accent:       #4CC300;
  --accent-alt:   #58DA01;
  --accent-grad:  linear-gradient(135deg, #38A800 0%, #58DA01 100%);
  --accent-light: rgba(88, 218, 1, 0.1);
  --bg:           #ffffff;
  --bg2:          #F9FAFB;
  --fg:           #111827;
  --fg2:          #374151;
  --muted:        #6B7280;
  --card-bg:      #F9FAFB;
  --card-border:  #E5E7EB;
  --header-bg:    rgba(255,255,255,0.92);
  --shadow:       0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.1);
  --radius:       12px;
  --radius-sm:    8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #0D0D14;
    --bg2:         #13131E;
    --fg:          #F9FAFB;
    --fg2:         #D1D5DB;
    --muted:       #9CA3AF;
    --card-bg:     #1A1A2A;
    --card-border: #2D2D42;
    --header-bg:   rgba(13,13,20,0.92);
    --shadow:      0 1px 3px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.2);
    --shadow-lg:   0 8px 32px rgba(0,0,0,0.4);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ──────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 0 5%;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  display: flex; align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo img { height: 28px; width: auto; display: block; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-btn {
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 5px 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}
.lang-btn:hover, .lang-btn.active { color: var(--fg); border-color: var(--accent); }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: all 0.2s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--accent-grad); color: #fff; }
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(88,218,1,0.35);
  text-decoration: none;
}
.btn-outline {
  background: transparent; color: var(--fg);
  border: 1px solid var(--card-border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 10px; }

/* ── Nav ─────────────────────────────────────────── */
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--fg2); font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.site-nav a:hover { color: var(--accent); }

/* ── Hero ────────────────────────────────────────── */
.hero-logo {
  display: block;
  width: clamp(300px, 20vw, 500px);
  height: auto;
  margin: 0 auto 24px;
}
.hero {
  padding: 80px 5% 72px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(88,218,1,0.07) 0%, transparent 70%);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ── Download buttons ────────────────────────────── */
.download-grid {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 12px; margin-top: 8px;
}
.dl-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--fg);
  text-decoration: none;
  transition: all 0.2s;
  min-width: 170px;
}
.dl-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--accent); text-decoration: none; }
.dl-btn.disabled { opacity: 0.55; cursor: default; pointer-events: none; }
.dl-btn-icon { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.dl-btn-icon img { width: 24px; height: 24px; object-fit: contain; }
.dl-btn-icon svg { width: 24px; height: 24px; }
.dl-btn-text small { display: block; font-size: 0.7rem; color: var(--muted); line-height: 1; }
.dl-btn-text strong { display: block; font-size: 0.95rem; font-weight: 700; line-height: 1.3; }

/* ── Sections ────────────────────────────────────── */
.section { padding: 72px 5%; }
.section-alt { background: var(--bg2); }
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-subtitle { text-align: center; color: var(--muted); max-width: 540px; margin: 0 auto 48px; }

/* ── Feature grid ────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; max-width: 1100px; margin: 0 auto;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* ── Steps ───────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; max-width: 900px; margin: 0 auto;
}
.step { text-align: center; padding: 24px 16px; }
.step-number {
  width: 44px; height: 44px;
  background: var(--accent-grad);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; font-weight: 800;
  margin: 0 auto 14px;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.88rem; }

/* ── CTA ─────────────────────────────────────────── */
.cta-section {
  background: var(--accent-grad);
  color: #fff; text-align: center; padding: 80px 5%;
}
.cta-section h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 14px; }
.cta-section p { font-size: 1.1rem; opacity: 0.85; max-width: 560px; margin: 0 auto 36px; }
.cta-section .dl-btn { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); color: #fff; }
.cta-section .dl-btn:hover { background: rgba(255,255,255,0.25); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--card-border);
  padding: 56px 5% 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; max-width: 1100px; margin: 0 auto 40px;
}
.footer-col h4 {
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--fg2); font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); text-decoration: none; }
.footer-col p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding-top: 24px; border-top: 1px solid var(--card-border);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 0.85rem;
  flex-wrap: wrap; gap: 12px;
}

/* ── Inner page hero ─────────────────────────────── */
.page-hero {
  padding: 60px 5% 48px; text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(88,218,1,0.06) 0%, transparent 70%);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.page-hero p { color: var(--muted); }

/* ── Legal ───────────────────────────────────────── */
.legal-content { max-width: 780px; margin: 0 auto; padding: 0 5% 80px; }
.legal-content h2 { font-size: 1.25rem; font-weight: 700; margin: 36px 0 12px; }
.legal-content h3 { font-size: 1rem; font-weight: 700; margin: 24px 0 8px; color: var(--fg2); }
.legal-content p, .legal-content li { color: var(--muted); font-size: 0.95rem; line-height: 1.75; margin-bottom: 10px; }
.legal-content ul { padding-left: 20px; margin-bottom: 14px; }
.legal-content li { margin-bottom: 6px; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .site-header { padding: 0 4%; }
  .hero { padding: 56px 4% 48px; }
  .section { padding: 48px 4%; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Utility ─────────────────────────────────────── */
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* ── i18n ────────────────────────────────────────── */
[data-lang] { display: none; }
[data-lang].lang-active { display: block; }
