/* ===== RESET & VARIABLES ===== */
* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --surface: #e2e8f0;
  --border: #cbd5e1;
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --yellow: #f59e0b;
  --yellow-hover: #d97706;
  --yellow-glow: rgba(245, 158, 11, 0.25);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 40px -12px rgba(0,0,0,0.1);
  --transition: 0.25s ease;
}
[data-theme="dark"] {
  --bg: #0b0e14;
  --bg-card: #141a24;
  --bg-card-hover: #1c2533;
  --surface: #1e293b;
  --border: #2d3a4f;
  --text: #e8edf5;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --shadow: 0 20px 40px -12px rgba(0,0,0,0.6);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
}
a { color: var(--yellow); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--yellow-hover); }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--yellow); border-radius: 10px; }

/* ===== HEADER ===== */
header {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background var(--transition), border var(--transition);
}
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.logo {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span {
  background: var(--yellow);
  color: #0b0e14;
  padding: 2px 12px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 14px;
  border-radius: 30px;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--surface);
}
.nav-download {
  background: var(--yellow) !important;
  color: #0b0e14 !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  border-radius: 30px !important;
}
.nav-download:hover {
  background: var(--yellow-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--yellow-glow);
}
.theme-toggle {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 30px;
  color: var(--text-muted);
  transition: all var(--transition);
}
.theme-toggle:hover {
  background: var(--surface);
  color: var(--text);
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 16px 0 8px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 16px; }
  .nav-download { text-align: center; }
}

/* ===== HERO ===== */
.hero { padding: 70px 0 50px; text-align: center; }
.hero-badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 6px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.hero-badge strong { color: var(--yellow); }
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-hover), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 32px;
}
.hero p strong { color: var(--text); }
.download-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--yellow);
  color: #0b0e14;
  padding: 14px 32px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px var(--yellow-glow);
}
.btn-primary:hover {
  background: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--yellow-glow);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.btn-secondary:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(245, 158, 11, 0.06);
}
.hero-meta {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.hero-meta a { color: var(--text-muted); }
.hero-meta a:hover { color: var(--yellow); }

/* ===== SECTION COMMON ===== */
section { padding: 60px 0; }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}
.section-title span { color: var(--yellow); }

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--yellow);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-card .icon { font-size: 2.2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== SUPPORTED OS ===== */
.os-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}
.os-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 8px 22px;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.os-chip:hover {
  border-color: var(--yellow);
  background: var(--bg-card-hover);
}

/* ===== SYSTEM REQS ===== */
.reqs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.req-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  text-align: center;
}
.req-item .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}
.req-item .value {
  font-weight: 600;
  font-size: 1rem;
  margin-top: 4px;
  color: var(--text);
}

/* ===== SCREENSHOTS ===== */
.screenshot-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--yellow) var(--bg-card);
}
.screenshot-scroll::-webkit-scrollbar { height: 6px; }
.screenshot-scroll::-webkit-scrollbar-thumb { background: var(--yellow); border-radius: 10px; }
.screenshot-scroll img {
  scroll-snap-align: start;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  max-height: 340px;
  width: auto;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.screenshot-scroll img:hover { transform: scale(1.02); }

/* ===== CHANGELOG ===== */
.changelog-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.changelog-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: all var(--transition);
}
.changelog-entry:hover { border-color: var(--yellow); }
.changelog-entry .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.changelog-entry .version { font-weight: 700; font-size: 1.2rem; }
.changelog-entry .date { color: var(--text-dim); font-size: 0.9rem; }
.changelog-entry ul { margin-top: 12px; padding-left: 22px; color: var(--text-muted); }
.changelog-entry ul li { margin-bottom: 4px; }

/* ===== BLOG LIST ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--yellow);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.blog-card .date {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.blog-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 8px 0 12px;
  line-height: 1.3;
}
.blog-card h3 a { color: var(--text); }
.blog-card h3 a:hover { color: var(--yellow); }
.blog-card p { color: var(--text-muted); font-size: 0.95rem; flex: 1; }
.blog-card .read-more { margin-top: 16px; font-weight: 600; color: var(--yellow); }
.blog-card .read-more:hover { color: var(--yellow-hover); }

/* ===== ABOUT / CONTENT PAGES ===== */
.about-content, .blog-post-content {
  max-width: 800px;
  margin: 0 auto;
}
.about-content h2, .blog-post-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 32px 0 16px;
}
.about-content h2:first-of-type, .blog-post-content h1:first-of-type { margin-top: 0; }
.about-content p, .blog-post-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.about-content .highlight {
  background: var(--bg-card);
  border-left: 4px solid var(--yellow);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}
.about-content .highlight p { margin-bottom: 0; color: var(--text); }
.blog-post-content .post-meta {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.blog-post-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 32px 0 16px;
}
.blog-post-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 24px 0 12px;
}
.blog-post-content ul, .blog-post-content ol {
  color: var(--text-muted);
  padding-left: 24px;
  margin-bottom: 16px;
}
.blog-post-content ul li, .blog-post-content ol li { margin-bottom: 6px; }
.blog-post-content blockquote {
  border-left: 4px solid var(--yellow);
  padding: 12px 24px;
  margin: 24px 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
}
.blog-post-content blockquote p { margin-bottom: 0; }
.blog-post-content .back-link {
  display: inline-block;
  margin-top: 32px;
  font-weight: 600;
}

/* ===== CONTACT ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}
.contact-info h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.contact-info p { color: var(--text-muted); margin-bottom: 20px; }
.contact-info .detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text);
}
.contact-info .detail .emoji { font-size: 1.3rem; width: 32px; }
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-form label { font-weight: 600; display: block; margin-bottom: 6px; font-size: 0.95rem; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px var(--yellow-glow);
}
.contact-form button {
  background: var(--yellow);
  color: #0b0e14;
  border: none;
  padding: 14px 32px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
}
.contact-form button:hover {
  background: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--yellow-glow);
}
@media (max-width: 720px) {
  .contact-wrapper { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== FOOTER ===== */
footer {
  margin-top: auto;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  transition: background var(--transition), border var(--transition);
}
footer p { color: var(--text-dim); font-size: 0.9rem; }
footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
}
footer .footer-links a { color: var(--text-muted); font-size: 0.9rem; }
footer .footer-links a:hover { color: var(--yellow); }

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .section-title { font-size: 1.6rem; }
  .changelog-entry .head { flex-direction: column; align-items: flex-start; }
  .screenshot-scroll img { max-height: 220px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 40px 0 30px; }
  .hero h1 { font-size: 1.8rem; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .download-group { flex-direction: column; align-items: center; }
}
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.flex-center { display: flex; align-items: center; justify-content: center; }