:root {
  --bg: #fafaf9;
  --fg: #1c1917;
  --muted: #78716c;
  --accent: #3b6fa0;
  --accent-light: #e0eaf4;
  --card-bg: #ffffff;
  --card-border: #e7e5e4;
  --hero-bg: linear-gradient(135deg, #3b6fa0 0%, #2c5282 50%, #1a365d 100%);
  --section-alt: #f5f3f0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.06), 0 12px 24px rgba(0,0,0,0.08);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(250,250,249,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 0 2rem;
}
nav .inner {
  max-width: 1100px; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
nav .brand {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1.1rem; color: var(--fg);
  text-decoration: none;
}
nav .brand img { width: 28px; height: 28px; border-radius: 6px; }
nav ul { list-style: none; display: flex; gap: 1.5rem; }
nav a { color: var(--muted); text-decoration: none; font-size: .9rem; transition: color .2s; }
nav a:hover { color: var(--fg); }
nav a.buy-button {
  color: #fff;
  background: var(--accent);
  padding: .35rem .8rem;
  border-radius: 999px;
  line-height: 1;
}
nav a.buy-button:hover {
  color: #fff;
  filter: brightness(1.05);
}
.language-menu {
  position: relative;
}
button.language-button {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.language-emoji {
  font-size: 1rem;
  line-height: 1;
}
.language-dropdown {
  position: absolute;
  top: calc(100% + .6rem);
  right: 0;
  min-width: 140px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: .4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 200;
}
.language-menu.open .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.language-dropdown a {
  display: block;
  padding: .35rem .55rem;
  border-radius: 8px;
  color: var(--fg);
  text-decoration: none;
  font-size: .9rem;
}
.language-dropdown a:hover {
  background: var(--accent-light);
  color: var(--fg);
}

/* ---- HERO ---- */
.hero {
  background: var(--hero-bg);
  color: #fff;
  padding: 8rem 2rem 5rem;
  text-align: center;
}
.hero h1 {
  font-size: 3.2rem; font-weight: 800; letter-spacing: -.02em;
  margin-bottom: .25rem;
}
.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
}
.hero-title img {
  width: 88px;
  height: 88px;
  border-radius: 10px;
}
.hero .subtitle {
  font-size: 1.15rem; opacity: .85; margin-bottom: 2rem;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero .badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: .35rem 1rem;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero .platforms {
  display: flex; justify-content: center; gap: 2rem;
  font-size: .85rem; opacity: .75; margin-top: 1.5rem;
}
.hero .platforms span::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  background: rgba(255,255,255,.6); border-radius: 50%;
  margin-right: .45rem; vertical-align: middle;
}

/* ---- SCREENSHOT SHOWCASE ---- */
.showcase {
  max-width: 1100px; margin: -3rem auto 0; padding: 0 2rem;
  position: relative; z-index: 10;
}
.showcase img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--card-border);
}

/* ---- SECTIONS ---- */
section { padding: 5rem 2rem; }
section.alt { background: var(--section-alt); }
.container { max-width: 1100px; margin: auto; }
.section-label {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent); font-weight: 700; margin-bottom: .5rem;
}
.section-title {
  font-size: 2rem; font-weight: 700; margin-bottom: .5rem;
}
.section-desc {
  color: var(--muted); max-width: 560px; margin-bottom: 2.5rem;
}

/* ---- FEATURES GRID ---- */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.feature-card .icon {
  width: 40px; height: 40px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.feature-card p { color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ---- SCREENSHOT ROWS ---- */
.screenshot-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; align-items: center; margin-bottom: 4rem;
}
.screenshot-row:last-child { margin-bottom: 0; }
.screenshot-row.reverse { direction: rtl; }
.screenshot-row.reverse > * { direction: ltr; }
.screenshot-row img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--card-border);
}
.screenshot-row .text h3 {
  font-size: 1.4rem; font-weight: 700; margin-bottom: .5rem;
}
.screenshot-row .text p {
  color: var(--muted); font-size: .95rem; line-height: 1.7;
}

/* ---- DOWNLOADS ---- */
.download-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
a.download-card {
  display: block; text-decoration: none; color: var(--fg);
}
.download-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.download-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-2px);
}
.download-card .os { font-size: 2rem; margin-bottom: .5rem; }
.download-card h3 { margin-bottom: .25rem; }
.download-card p { color: var(--muted); font-size: .85rem; margin-bottom: 1rem; }
.download-card .format {
  display: inline-block;
  background: var(--accent-light); color: var(--accent);
  padding: .25rem .75rem; border-radius: 6px;
  font-size: .8rem; font-weight: 600;
}

/* ---- LICENSE ---- */
.license-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  max-width: 800px;
  box-shadow: var(--shadow);
}
.license-box p {
  color: var(--muted); font-size: .92rem; line-height: 1.8;
  margin-bottom: 1rem;
}
.license-box p:first-child {
  color: var(--fg); font-weight: 600; font-size: 1rem;
}
.license-box p:last-child { margin-bottom: 0; }
.license-box a {
  color: inherit;
  text-decoration: none;
}

/* ---- FOOTER ---- */
footer {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--card-border);
  color: var(--muted);
  font-size: .85rem;
}
footer a { color: var(--accent); text-decoration: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-title img { width: 68px; height: 68px; }
  .screenshot-row { grid-template-columns: 1fr; }
  .screenshot-row.reverse { direction: ltr; }
  nav ul { display: none; }
}
