:root {
  --bg: #ffffff;
  --bg-subtle: #f8f9fa;
  --text: #1a1a2e;
  --text-secondary: #6b7280;
  --accent: #242428;
  --accent-hover: #1a1a1e;
  --link: #555;
  --border: #e5e7eb;
  --card-bg: #ffffff;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-lg: 20px;
}

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

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

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15em;
}

.logo img {
  border-radius: 6px;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
  transition: color 0.15s;
}

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

.btn-nav {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.15s;
}

.btn-nav:hover {
  background: var(--accent-hover) !important;
}

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

.hero-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3em;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.2em;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 32px;
}

.hero-install {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  display: inline-block;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  line-height: 2;
  color: var(--text);
}

.hero-install .comment {
  color: var(--text-secondary);
}

/* Features */
.features {
  padding: 60px 0;
}

.features h2 {
  text-align: center;
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

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

.feature-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: var(--card-shadow);
}

.feature-card .icon {
  font-size: 1.6em;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.88em;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Screenshots */
.screenshots {
  padding: 40px 0 60px;
  text-align: center;
}

.screenshots h2 {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.screenshots-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.screenshots-row img {
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  max-width: 220px;
  height: auto !important;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.screenshots-row img:hover {
  transform: scale(1.03);
}

.screenshots-row--lg img {
  max-width: 380px;
}

.screenshot-full {
  margin: 0 auto;
  max-width: 100%;
  height: auto !important;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.screenshot-full:hover {
  transform: scale(1.02);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  cursor: default;
}

.screenshot-label {
  margin-top: 16px;
  font-size: 0.9em;
  color: var(--text-secondary);
}

/* Content pages */
.page-content h1 {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 24px;
  padding-top: 40px;
  letter-spacing: -0.02em;
}

.page-content h2 {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
}

.page-content h3 {
  font-size: 1.15em;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
}

.page-content p {
  margin-bottom: 16px;
}

.page-content ul, .page-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.page-content li {
  margin-bottom: 6px;
}

.page-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.92em;
}

.page-content th, .page-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.page-content th {
  background: var(--bg-subtle);
  font-weight: 600;
}

.page-content pre {
  background: #1a1a2e;
  color: #e8e8e8;
  padding: 18px 22px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 16px 0 24px;
  font-size: 0.88em;
  line-height: 1.7;
}

.page-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
}

.page-content p code, .page-content li code, .page-content td code {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 5px;
}

.page-content pre code {
  background: none;
  border: none;
  padding: 0;
}

.page-content a {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
}

.page-content a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85em;
  color: var(--text-secondary);
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2em; }
  .features-grid { grid-template-columns: 1fr; }
  .screenshots-row img { max-width: 180px; }
  nav { gap: 16px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8em; }
  .hero-install { font-size: 0.8em; padding: 14px 18px; }
  header .container { height: 52px; }
}
