/* ===== Design tokens ===== */
:root {
  --bg: #0d0f14;
  --bg-soft: #141821;
  --bg-card: #171c27;
  --border: #232a38;
  --text: #e7ecf3;
  --text-dim: #97a1b3;
  --accent: #38d16a;
  --accent-soft: rgba(56, 209, 106, 0.14);
  --accent-glow: rgba(56, 209, 106, 0.35);
  --radius: 16px;
  --max: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* subtle top gradient */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 520px;
  background: radial-gradient(80% 100% at 70% 0%, rgba(56, 209, 106, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ===== Header ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand em { color: var(--text-dim); font-style: normal; font-weight: 500; }
.brand img { border-radius: 8px; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav-link { color: var(--text-dim); font-size: 0.95rem; transition: color 0.15s; }
.nav-link:hover { color: var(--text); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ===== Hero ===== */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 72px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(56, 209, 106, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.lead {
  font-size: 1.12rem;
  color: var(--text-dim);
  margin: 0 0 28px;
  max-width: 46ch;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 12px;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #06210f;
  box-shadow: 0 10px 30px -8px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 14px 38px -8px var(--accent-glow); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.btn-ghost:hover { border-color: var(--text-dim); }

.hero-meta { font-size: 0.86rem; color: var(--text-dim); margin: 0; }

/* ===== Hero mockup ===== */
.hero-visual { display: flex; justify-content: center; }
.mock-desktop {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, #1b2233, #0e1119);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.mock-glow {
  position: absolute;
  width: 260px; height: 260px;
  top: -60px; right: -40px;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  filter: blur(10px);
}
.mock-overlay {
  position: absolute;
  left: 50%;
  bottom: 46px;
  transform: translateX(-50%);
  width: 82%;
  text-align: center;
  padding: 14px 18px;
  background: rgba(8, 10, 15, 0.55);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.mock-line { margin: 0; }
.mock-original {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
}
.mock-fill {
  color: #fff;
  background: linear-gradient(90deg, var(--accent), #7dffb0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mock-translation {
  font-size: 0.92rem;
  color: var(--accent);
  margin-top: 4px;
}
.mock-taskbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Sections ===== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  margin: 0 auto 40px;
  max-width: 54ch;
}

/* ===== Feature grid ===== */
.feature-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform 0.15s, border-color 0.15s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(56, 209, 106, 0.35); }
.card-icon {
  font-size: 1.5rem;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border-radius: 12px;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.02rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.card p { font-size: 0.9rem; color: var(--text-dim); margin: 0; }

/* ===== Demo ===== */
.demo { text-align: center; }
.demo-figure {
  margin: 0 auto;
  max-width: 760px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6);
}
.demo-figure img { width: 100%; }

/* ===== Download ===== */
.download { text-align: center; }
.download-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 26px;
}
.download-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 260px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: left;
  transition: transform 0.14s, border-color 0.15s, box-shadow 0.15s;
}
.download-card:hover { transform: translateY(-3px); border-color: var(--text-dim); }
.download-card.primary {
  border-color: var(--accent);
  box-shadow: 0 16px 40px -18px var(--accent-glow);
}
.download-title { font-weight: 700; font-size: 1.08rem; }
.download-card.primary .download-title { color: var(--accent); }
.download-desc { font-size: 0.85rem; color: var(--text-dim); }
.download-req { font-size: 0.85rem; color: var(--text-dim); max-width: 52ch; margin: 0 auto; }
.download-all { margin: 14px 0 0; font-size: 0.9rem; }
.download-all a { color: var(--accent); }
.download-all a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px;
  text-align: center;
}
.footer-built { color: var(--text-dim); margin: 0 0 8px; font-size: 0.92rem; }
.footer-links { font-size: 0.88rem; color: var(--text-dim); margin: 0; }
.footer-links a { color: var(--text); }
.footer-links a:hover { color: var(--accent); }
.footer-links .dot { margin: 0 10px; opacity: 0.5; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-visual { order: -1; }
  .mock-desktop { max-width: 360px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .nav { gap: 14px; }
  .nav-link[href="#features"] { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .btn { flex: 1; justify-content: center; }
  .download-card { min-width: 0; width: 100%; }
}
