* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #0d0d1a;
  color: #e0e0e8;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

main {
  max-width: 720px;
  width: 100%;
  padding: 80px 24px 48px;
}

.hero {
  text-align: center;
  margin-bottom: 64px;
}

.app-icon {
  border-radius: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(120, 80, 220, 0.3);
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #a78bfa, #818cf8, #6dd5ed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.tagline {
  font-size: 1.25rem;
  color: #b0b0c0;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 1rem;
  color: #808090;
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.download-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #fff;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
}

.download-btn .version {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.8;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 64px;
}

.feature {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.9rem;
  color: #909098;
  line-height: 1.5;
}

.feature.highlight {
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.2);
}

.feature.full-width {
  grid-column: 1 / -1;
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.2);
}

.feature.full-width h3 {
  font-size: 1.15rem;
}

.feature.full-width p {
  font-size: 0.95rem;
  max-width: 560px;
}

/* Feature section headers */
.features-section-label {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #707078;
  margin-top: 8px;
  margin-bottom: -8px;
}

/* Compact feature tiles */
.features-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  grid-column: 1 / -1;
}

.features-compact .feature {
  padding: 18px 20px;
}

.features-compact .feature h3 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.features-compact .feature p {
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Changelog */
.changelog {
  margin-bottom: 64px;
}

.changelog h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 24px;
  text-align: center;
}

.changelog-entry {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 12px;
}

.changelog-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.changelog-version {
  font-size: 0.95rem;
  font-weight: 600;
  color: #c4b5fd;
}

.changelog-build {
  font-size: 0.75rem;
  font-weight: 500;
  color: #909098;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 8px;
}

.changelog-date {
  font-size: 0.8rem;
  color: #707078;
  margin-left: auto;
}

.changelog-entry ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.changelog-entry li {
  font-size: 0.9rem;
  color: #909098;
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}

.changelog-entry li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: #818cf8;
  border-radius: 50%;
}

.changelog-entry li:last-child {
  margin-bottom: 0;
}

/* FAQ */
.faq {
  margin-bottom: 64px;
}

.faq h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 24px;
  text-align: center;
}

details {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.15s ease;
}

details[open] {
  background: rgba(255, 255, 255, 0.04);
}

summary {
  padding: 16px 20px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #d0d0d8;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.2rem;
  color: #707078;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

details[open] summary::after {
  content: "-";
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: #909098;
  line-height: 1.6;
}

.faq-answer p {
  margin-bottom: 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ol,
.faq-answer ul {
  margin: 8px 0;
  padding-left: 20px;
}

.faq-answer li {
  margin-bottom: 6px;
}

.faq-answer code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.faq-answer a {
  color: #818cf8;
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

.faq-answer strong {
  color: #c0c0c8;
}

.contact {
  text-align: center;
  padding: 36px 24px;
  margin-bottom: 48px;
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 12px;
}

.contact h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 12px;
}

.contact p {
  font-size: 0.95rem;
  color: #a0a0a8;
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto 22px;
}

.contact-btn {
  display: inline-block;
  background: rgba(167, 139, 250, 0.16);
  border: 1px solid rgba(167, 139, 250, 0.32);
  color: #c4b5fd;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s ease;
}

.contact-btn:hover {
  background: rgba(167, 139, 250, 0.24);
}

footer {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-links {
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.footer-links a {
  color: #818cf8;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-sep {
  color: #505058;
  margin: 0 8px;
}

.built-with {
  font-size: 0.9rem;
  color: #707078;
  margin-bottom: 4px;
}

.built-with a {
  color: #a78bfa;
  text-decoration: none;
}

.built-with a:hover {
  text-decoration: underline;
}

.author {
  font-size: 0.85rem;
  color: #606068;
}

.author a {
  color: #818cf8;
  text-decoration: none;
}

.author a:hover {
  text-decoration: underline;
}

/* Changelog link on main page */
.changelog-link {
  text-align: center;
  margin-top: 16px;
}

.changelog-link a {
  color: #818cf8;
  text-decoration: none;
  font-size: 0.9rem;
}

.changelog-link a:hover {
  text-decoration: underline;
}

/* Changelog dedicated page */
.changelog-page {
  padding-top: 48px;
}

.back-link {
  display: inline-block;
  color: #818cf8;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.back-link:hover {
  text-decoration: underline;
}

.changelog-page-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 8px;
}

.changelog-page-subtitle {
  font-size: 1rem;
  color: #808090;
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.5;
}

.changelog-page .changelog-entry {
  margin-bottom: 24px;
}

.changelog-story {
  font-size: 0.9rem;
  color: #b0b0c0;
  line-height: 1.6;
  margin-bottom: 12px;
}

.changelog-entry-highlight {
  background: rgba(167, 139, 250, 0.05);
  border-color: rgba(167, 139, 250, 0.15);
}

.engineering-note {
  margin-top: 12px;
  padding: 14px 16px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 8px;
  font-size: 0.85rem;
  color: #a0a0b0;
  line-height: 1.6;
}

.engineering-note strong {
  color: #c4b5fd;
}

.engineering-note code {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.82rem;
}

.engineering-note a {
  color: #818cf8;
  text-decoration: none;
}

.engineering-note a:hover {
  text-decoration: underline;
}

.changelog-page footer {
  margin-top: 48px;
}

/* Resources page */
.resources-page {
  padding-top: 48px;
}

.resources-page-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 8px;
}

.resources-page-subtitle {
  font-size: 1rem;
  color: #808090;
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.5;
}

.resources-section {
  margin-bottom: 40px;
}

.resources-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 16px;
}

.resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.resource-card {
  display: block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px 18px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.resource-card:hover {
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.2);
}

.resource-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #d0d0d8;
  margin-bottom: 2px;
}

.resource-card p {
  font-size: 0.8rem;
  color: #707078;
  line-height: 1.4;
  margin: 0;
}

.resources-page footer {
  margin-top: 48px;
}

@media (max-width: 520px) {
  main {
    padding: 48px 16px 32px;
  }
  h1 {
    font-size: 2.2rem;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .features-compact {
    grid-template-columns: 1fr;
  }
  .resources-grid {
    grid-template-columns: 1fr;
  }
}
