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

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #1e1e1e;
  --text: #f0f0f0;
  --text-muted: #888888;
  --green: #16a34a;
  --blue: #2563eb;
  --max-width: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}

.nav-logo {
  flex-shrink: 0;
  display: block;
  line-height: 0;
  text-decoration: none;
}

.nav-logo svg {
  display: block;
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 150ms;
}

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

.github-link {
  display: flex;
  align-items: center;
  gap: 6px;
}

.star-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 12px;
}

/* Hero */
.hero {
  padding: 80px 0 64px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.download-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 150ms, border-color 150ms;
}

.download-btn:hover { background: #1a1a1a; border-color: #2a2a2a; }

.version-badge {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.hero-screenshot {
  max-width: 1000px;
  margin: 0 auto;
}

.hero-screenshot img {
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Sections */
section { padding: 80px 0; }

section h2 {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}

/* Problem */
.problem { background: var(--surface); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cards-grid.three { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.card p {
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
}

/* Features */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.feature-icon { font-size: 28px; margin-bottom: 12px; }

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* How it works */
.how-it-works { background: var(--surface); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step { text-align: center; }

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 16px;
}

.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p { font-size: 14px; color: var(--text-muted); }

/* Download */
.platform-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.platform-icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.platform-icon svg {
  width: 36px;
  height: 36px;
  display: block;
}

.platform-card .download-btn { margin-top: auto; }

.platform-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.platform-file {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.download-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.download-warning{
  max-width: 80ch;
  margin: 16px auto;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(234, 179, 8, 0.08);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.download-warning strong { color: var(--text); }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #a3a3a3;
}

.footer-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}

.footer-links {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

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

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

.footer-credit {
  font-size: 13px;
  color: #a3a3a3;
}

.footer-credit a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.footer-credit a:hover {
  color: var(--green);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .cards-grid,
  .cards-grid.three,
  .steps,
  .platform-cards {
    grid-template-columns: 1fr;
  }

  .nav-links { gap: 16px; }
  .hero { padding: 48px 0 32px; }
  .hero-screenshot { max-width: 100%; }
  section { padding: 48px 0; }
}
