:root {
  --bg: #0f1724;
  --bg-card: #1a2332;
  --text: #f5f7fa;
  --muted: #9aa8bc;
  --accent: #2dd4bf;
  --accent-2: #4f8cff;
  --border: rgba(45, 212, 191, 0.18);
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, #1e3a5f 0%, transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(45, 212, 191, 0.12) 0%, transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--max), 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 36, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-switch a {
  color: var(--muted);
}

.lang-switch a.active {
  color: var(--accent);
}

.lang-switch span {
  color: var(--muted);
  opacity: 0.5;
}

.nav-links a {
  color: var(--muted);
}

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

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 52ch;
}

.hero-visual {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  padding: 2.5rem 0;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  object-fit: cover;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.prose {
  color: var(--muted);
}

.prose h2,
.prose h3 {
  color: var(--text);
}

.prose h2 {
  margin-top: 2rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.page-banner {
  position: relative;
  display: grid;
  grid-template-rows: 1fr;
  width: 100%;
  min-height: clamp(120px, 20vw, 220px);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #060b14;
}

.page-banner > img {
  grid-area: 1 / 1;
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(120px, 20vw, 220px);
  margin: 0 auto;
  justify-self: center;
  align-self: center;
  opacity: 0.9;
}

.page-banner > .container {
  grid-area: 1 / 1;
  align-self: end;
  z-index: 1;
  margin-top: 0;
  padding-bottom: 1.25rem;
}

.page-banner h1 {
  margin: 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
}

.download-section {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
}

.download-section img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.92;
}

.download-copy {
  padding: 1.5rem 1.25rem 1.75rem;
}

.download-copy h2 {
  margin: 0 0 0.75rem;
}

.download-copy p {
  margin: 0;
  color: var(--muted);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #0b1220;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.25);
}

.btn-download:hover {
  text-decoration: none;
  filter: brightness(1.06);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  margin-top: 0.75rem;
  margin-left: 0.75rem;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.btn-secondary:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.download-meta {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.download-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.download-latest-card {
  margin: 1.5rem 0 2rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
}

.version-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}

.version-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.version-table th,
.version-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.version-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.version-table tr:last-child td {
  border-bottom: none;
}

.version-empty {
  color: var(--muted);
  text-align: center;
}

.btn-table {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

.btn-table:hover {
  text-decoration: none;
  border-color: var(--accent);
  background: rgba(45, 212, 191, 0.08);
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  background-image: linear-gradient(rgba(15, 23, 36, 0.92), rgba(15, 23, 36, 0.92)),
    url("www/footer-texture.jpg");
  background-size: cover;
  background-position: center;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.8rem;
  margin-right: 0.35rem;
}