:root {
  --bg: #0b0b10;
  --bg-soft: #10111a;
  --card: #141625;
  --text: #f5f7ff;
  --muted: #bfc6da;
  --primary: #351456;
  --secondary: #09243e;
  --accent: #8d5cff;
  --border: rgba(255,255,255,0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(141, 92, 255, 0.18), transparent 25%),
    radial-gradient(circle at top left, rgba(9, 36, 62, 0.30), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: #d6c8ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hero {
  padding: 24px 40px 60px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(141, 92, 255, 0.16);
  color: #efe8ff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.hero-text h1 {
  font-size: 3rem;
  margin: 0 0 12px;
}

.subtitle {
  color: var(--muted);
  max-width: 650px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: bold;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  text-decoration: none;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}

.btn.secondary {
  background: rgba(255,255,255,0.05);
  color: white;
  border: 1px solid var(--border);
}

.hero-image img {
  width: 100%;
  max-width: 460px;
  display: block;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 24px;
}

.section h2 {
  font-size: 2rem;
  margin-top: 0;
}

.alt {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.code-box,
.card,
.info-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  margin-top: 18px;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.copy-btn {
  background: var(--secondary);
  color: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
}

.copy-btn:hover {
  opacity: 0.9;
}

pre {
  margin: 0;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #e8ebff;
}

.features-grid,
.versions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.gallery img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.fingerprint {
  font-family: monospace;
  font-size: 1rem;
  color: #ddd3ff;
  word-break: break-word;
}

.footer {
  text-align: center;
  padding: 35px 20px 50px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .hero-content,
  .features-grid,
  .versions,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 2.3rem;
  }

  .hero {
    padding: 20px 20px 40px;
  }

  .gallery img {
    height: auto;
  }
}
