:root {
  --color-accent: #7b61ff;
  --color-accent-hover: #6346f5;
  --color-bg-dark: #1a1a2e;
  --color-bg-dark-elevated: #22223a;
  --color-text-on-dark: #ffffff;
  --color-text-muted-dark: rgba(255, 255, 255, 0.72);
  --color-body: #4a4a5c;
  --color-heading: #1a1a2e;
  --color-surface: #ffffff;
  --color-surface-alt: #f5f5f8;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-card: 0 4px 24px rgba(26, 26, 46, 0.08);
  --header-height: 72px;
  --font: "Montserrat", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-body);
  background: var(--color-surface);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-dark);
  border-bottom: 1px solid rgba(123, 97, 255, 0.15);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
  min-height: var(--header-height);
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.brand-logo {
  width: auto;
  max-height: 44px;
  object-fit: contain;
}

.main-nav {
  display: none;
  justify-content: center;
  gap: 2rem;
}

.main-nav a {
  color: var(--color-text-on-dark);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.header-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(123, 97, 255, 0.55);
  border-radius: var(--radius-sm);
  color: var(--color-text-on-dark);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.header-cta:hover {
  background: rgba(123, 97, 255, 0.15);
  border-color: var(--color-accent);
  text-decoration: none;
}

.header-cta-icon {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  justify-self: end;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-on-dark);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--color-bg-dark-elevated);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav a {
  color: var(--color-text-on-dark);
  font-weight: 500;
  text-decoration: none;
  padding: 0.35rem 0;
}

.mobile-nav a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

@media (min-width: 900px) {
  .main-nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

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

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

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
  color: #fff;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(123, 97, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(123, 97, 255, 0.12), transparent 50%),
    linear-gradient(180deg, #151525 0%, var(--color-bg-dark) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  color: var(--color-text-muted-dark);
  line-height: 1.65;
}

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

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--color-surface-alt);
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-heading);
}

.section-header p {
  margin: 0;
  color: var(--color-body);
  font-size: 1.0625rem;
}

/* Downloads */
.downloads-section .container {
  width: min(1240px, 100% - 2rem);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

@media (min-width: 1000px) {
  .download-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(26, 26, 46, 0.06);
  text-decoration: none;
  color: var(--color-heading);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.download-card:hover {
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(123, 97, 255, 0.18);
  border-color: rgba(123, 97, 255, 0.35);
  transform: translateY(-2px);
}

.download-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(123, 97, 255, 0.12);
  color: var(--color-accent);
}

.download-icon svg {
  width: 32px;
  height: 32px;
}

.download-label {
  font-weight: 700;
  font-size: 1.0625rem;
}

.download-ext {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(26, 26, 46, 0.06);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(123, 97, 255, 0.1);
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.feature-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-heading);
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Footer */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-muted-dark);
}

.footer-top {
  padding: 4rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
  }
}

.footer-brand {
  max-width: 280px;
}

.footer-logo-link:hover {
  text-decoration: none;
  opacity: 0.9;
}

.footer-logo {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.05);
}

.footer-tagline {
  margin: 1rem 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.social-row {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(123, 97, 255, 0.35);
  color: var(--color-accent);
  transition: background 0.2s, color 0.2s;
}

.social-link:hover {
  background: rgba(123, 97, 255, 0.15);
  color: #fff;
  text-decoration: none;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-heading {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-on-dark);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--color-text-muted-dark);
  font-size: 0.9375rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}

.footer-privacy-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.footer-privacy-link:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-bottom-inner p {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}
