:root {
  --bg: #0a0a0c;
  --bg-card: #141418;
  --bg-nav: rgba(10, 10, 12, 0.92);
  --text: #e8e8ec;
  --text-muted: #8a8a96;
  --accent: #6e8cff;
  --accent-hover: #8da4ff;
  --gradient-start: #6e8cff;
  --gradient-end: #c084fc;
  --border: #1e1e24;
  --radius: 12px;
  --max-width: 1100px;
}

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

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;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
}
.nav-logo img { border-radius: 8px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 160px 24px 100px;
  text-align: center;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-logo {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  margin-bottom: 32px;
  filter: drop-shadow(0 0 60px rgba(110, 140, 255, 0.15));
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.hero-tagline {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  color: var(--text);
  border-color: #2a2a34;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Features */
.features { padding: 80px 24px; }
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.features h2, .cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s;
}
.feature-card:hover {
  border-color: #2a2a34;
}
.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* CTA */
.cta-section {
  padding: 80px 24px;
  text-align: center;
}
.cta-section p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* Page header */
.page-header {
  padding: 120px 24px 40px;
  text-align: center;
}
.page-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-header time {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Content */
.content-section {
  padding: 24px 24px 80px;
}
.content-body {
  max-width: 720px;
  margin: 0 auto;
}
.content-body h2 { font-size: 1.5rem; margin: 40px 0 16px; }
.content-body h3 { font-size: 1.2rem; margin: 32px 0 12px; }
.content-body p { color: var(--text-muted); margin-bottom: 16px; }
.content-body a { color: var(--accent); }
.content-body a:hover { color: var(--accent-hover); }
.content-body img { max-width: 100%; border-radius: var(--radius); margin: 24px 0; }
.content-body code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}
.content-body pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}
.content-body pre code { background: none; padding: 0; }
.content-body ul, .content-body ol {
  color: var(--text-muted);
  margin: 0 0 16px 24px;
}

/* Post list */
.post-list { max-width: 720px; margin: 0 auto; }
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
}
.post-card h2 { font-size: 1.3rem; margin-bottom: 6px; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }
.post-card time { color: var(--text-muted); font-size: 0.85rem; }
.post-card p { color: var(--text-muted); margin: 12px 0; font-size: 0.92rem; }
.read-more {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 600;
}
.footer-subscribe {
  margin-bottom: 28px;
}
.footer-subscribe-label {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.footer-subscribe .subscribe-form {
  max-width: 400px;
}
.footer-brand img { border-radius: 6px; }
.footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-copy, .footer-contact {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 4px 0;
}

/* Subscribe form */
.subscribe-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 440px;
  margin: 0 auto;
}
.subscribe-form input[type="email"] {
  flex: 1;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.subscribe-form input[type="email"]:focus {
  border-color: var(--accent);
}
.subscribe-form input[type="email"]::placeholder {
  color: var(--text-muted);
}
.subscribe-form button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.subscribe-form button:disabled {
  opacity: 0.6;
  cursor: default;
}
.subscribe-msg {
  font-size: 0.9rem;
  margin-top: 12px;
  min-height: 1.4em;
}
.post-subscribe {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.post-subscribe h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text);
}
.post-subscribe p {
  color: var(--text-muted);
  margin-bottom: 16px;
}
.post-subscribe .subscribe-form {
  justify-content: flex-start;
  margin: 0;
}

/* Screenshots */
.screenshot {
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
  max-width: 100%;
}
.screenshot:hover { border-color: #2a2a34; }
.screenshot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.screenshot-row img { width: 100%; height: auto; }
.screenshot-caption {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  margin-top: 6px;
}
/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 640px) {
  .hero h1 { font-size: 2.4rem; }
  .hero-tagline { font-size: 1.15rem; }
  .hero-logo { width: 100px; height: 100px; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.82rem; }
}
