:root {
  --bg: #03090b;
  --bg-alt: #060f12;
  --text: #f4eeee;
  --text-muted: #b0a8a8;
  --accent: #7ed321;
  --accent-rgb: 126, 211, 33;
  --danger: #e85d5d;
  --border: rgba(244, 238, 238, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 60% 35%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 30% 70%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 45% 85%, rgba(255, 255, 255, 0.3), transparent);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--text);
}

a {
  color: inherit;
}

/* Header */

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

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

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

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-name {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

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

/* Hero */

.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 720px;
  margin: 0 auto 20px;
}

.hero-subtitle {
  max-width: 620px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  opacity: 0.9;
}

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

.btn-primary {
  background-color: var(--accent);
  color: #03090b;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-download {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
  width: 100%;
  margin: 12px 0 8px;
}

.btn-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  width: 100%;
  margin: 12px 0 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Sections */

.section {
  padding: 72px 0;
}

.section-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: 1.8rem;
  text-align: center;
  margin: 0 0 16px;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

/* Features */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background: rgba(244, 238, 238, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
  color: var(--accent);
}

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

/* Downloads */

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.download-card {
  background: rgba(244, 238, 238, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.download-card[data-platform].is-detected {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
}

.download-card h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

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

.download-hint {
  font-size: 0.75rem !important;
  opacity: 0.7;
}

.download-card-soon {
  opacity: 0.6;
}

/* Beta */

.beta-inner {
  text-align: center;
  max-width: 560px;
}

.beta-inner p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 16px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-brand .brand-logo {
  width: 22px;
  height: 22px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

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

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

.footer-copy {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  opacity: 0.6;
  margin: 0;
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }
}
