:root {
  --primary: #7828c8;
  --primary-hover: #8b3fd4;
  --primary-contrast: #ffffff;
  --radius: 14px;
  --radius-lg: 18px;
  --space-lg: 2.25rem;
  --content-width: 1000px;
  --content-narrow: 720px;
}

.theme-light {
  --bg: #ffffff;
  --bg-secondary: #f6f6f9;
  --foreground: #11181c;
  --foreground-soft: #687076;
  --card-bg: #ffffff;
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --border: rgba(17, 24, 28, 0.1);
  --accent-soft: rgba(120, 40, 200, 0.08);
}

.theme-dark {
  --bg: #16181d;
  --bg-secondary: #1b1e24;
  --foreground: #ecedee;
  --foreground-soft: #9ba1a6;
  --card-bg: #1e2128;
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --border: rgba(236, 237, 238, 0.12);
  --accent-soft: rgba(120, 40, 200, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--foreground);
  line-height: 1.5;
  transition: background 0.2s ease, color 0.2s ease;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--content-narrow);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  font-size: 1rem;
}

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

.lang {
  font-size: 0.875rem;
  color: var(--foreground-soft);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 4px 14px;
  background: var(--accent-soft);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
}

.theme-light .theme-toggle .icon-sun { display: block; }
.theme-light .theme-toggle .icon-moon { display: none; }
.theme-dark .theme-toggle .icon-sun { display: none; }
.theme-dark .theme-toggle .icon-moon { display: block; }

.hero {
  padding: 5rem 0 2.5rem;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--foreground-soft);
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-contrast);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-xl {
  padding: 1.1rem 2rem;
  font-size: 1.1rem;
}

.btn:active {
  transform: scale(0.98);
}

.section {
  padding: 2.5rem 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  text-align: center;
}

.stats {
  padding: 1.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
}

.stat-card {
  text-align: center;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0;
}

.stat-label {
  color: var(--foreground-soft);
  margin: 0.25rem 0 0;
}

.carousel {
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.slide {
  flex: 0 0 100%;
  display: block;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-thumbs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.thumb {
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.thumb:hover {
  opacity: 1;
}

.thumb.is-selected {
  border-color: var(--primary);
  opacity: 1;
}

.thumb img {
  display: block;
  width: 140px;
  height: auto;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 0.25rem;
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.accordion-title {
  flex: 1;
}

.os-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.accordion-chevron {
  transition: transform 0.25s ease;
  color: var(--foreground-soft);
}

.accordion-item.open .accordion-chevron {
  transform: rotate(-90deg);
}

.accordion-body {
  display: none;
  padding: 0 0.25rem 1.5rem;
  color: var(--foreground-soft);
}

.accordion-item.open .accordion-body {
  display: block;
}

.steps {
  margin: 0;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.steps p {
  margin: 0 0 0.75rem;
}

.downloads .btn {
  margin-top: 0.5rem;
}

.faq .accordion-title {
  font-weight: 500;
  font-size: 1rem;
}

.faq .accordion-body b {
  color: var(--foreground);
}

.support-note {
  text-align: center;
  margin-bottom: 1.5rem;
}

.support-note p {
  margin: 0.25rem 0;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  justify-items: center;
}

.support-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  width: 100%;
  max-width: 260px;
  color: var(--foreground);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.support-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.support-card h4 {
  margin: 0;
}

.support-card svg {
  color: var(--primary);
}

footer {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 2rem 0 3rem;
  margin-top: 2rem;
}

footer .container {
  max-width: 720px;
}

footer p {
  color: var(--foreground-soft);
  font-size: 0.85rem;
  margin: 0.5rem 0;
}

@media (max-width: 640px) {
  .hero-title { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .brand-name { display: none; }
  .thumb img { width: 90px; }
}
