:root {
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --dark: #1a1a1a;
  --body: #374151;
  --light-bg: #f9fafb;
  --border: #e5e7eb;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--body);
  line-height: 1.75;
  font-size: 17px;
  background: #fff;
}

h1, h2, h3, h4, h5, h6,
.title, .subtitle {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  font-weight: 700;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover {
  color: var(--accent-dark);
}

/* Navbar */
.navbar {
  box-shadow: 0 1px 0 var(--border);
  background: #fff;
}
.navbar-item.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.navbar-item.brand-name span {
  color: var(--accent);
}
.navbar-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--body);
}
.navbar-item:hover {
  color: var(--accent);
  background: transparent;
}

/* Hero */
.hero-section {
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0 4rem;
}
.hero-section h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  max-width: 680px;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}
.hero-section .subtitle {
  font-size: 1.15rem;
  color: var(--body);
  font-weight: 400;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero-section .button {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  height: auto;
  font-size: 0.95rem;
}

/* Section */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Cards */
.guide-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  height: 100%;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.guide-card:hover {
  box-shadow: var(--card-shadow);
  border-color: #d1d5db;
}
.guide-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.guide-card h3 a {
  color: var(--dark);
}
.guide-card h3 a:hover {
  color: var(--accent);
}
.guide-card p {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
}
.guide-card .card-meta {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Category badge */
.cat-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
  background: #eff6ff;
  color: var(--accent);
}
.cat-badge.seo { background: #f0fdf4; color: #166534; }
.cat-badge.service { background: #fef3c7; color: #92400e; }
.cat-badge.hosting { background: #fdf2f8; color: #9d174d; }
.cat-badge.resources { background: #f5f3ff; color: #5b21b6; }

/* Article / Guide pages */
.guide-content {
  max-width: 720px;
}
.guide-content h1 {
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.guide-content .guide-meta {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.guide-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.guide-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.guide-content p {
  margin-bottom: 1.25rem;
}
.guide-content ul, .guide-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.guide-content li {
  margin-bottom: 0.4rem;
}
.guide-content img {
  width: 100%;
  border-radius: 6px;
  margin: 1.5rem 0;
}
.guide-content .img-caption {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.guide-content a {
  text-decoration: underline;
  text-decoration-color: #93c5fd;
  text-underline-offset: 2px;
}
.guide-content a:hover {
  text-decoration-color: var(--accent);
}
.guide-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--light-bg);
  font-style: italic;
  color: #4b5563;
}

/* FAQ section */
.faq-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.faq-section h2 {
  margin-top: 0;
}
.faq-item {
  margin-bottom: 1.5rem;
}
.faq-item h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: var(--dark);
}
.faq-item p {
  margin-bottom: 0;
  color: #4b5563;
}

/* Sidebar */
.sidebar-card {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  color: var(--dark);
}
.sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-card li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.sidebar-card li:last-child {
  border-bottom: none;
}
.sidebar-card li a {
  color: var(--body);
}
.sidebar-card li a:hover {
  color: var(--accent);
}

/* Related guides */
.related-guides {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* Section divider on homepage */
.home-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}
.home-section:last-of-type {
  border-bottom: none;
}
.home-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.home-section .section-desc {
  color: #6b7280;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.site-footer a {
  color: rgba(255,255,255,0.7);
}
.site-footer a:hover {
  color: #fff;
}
.site-footer ul {
  list-style: none;
  padding: 0;
}
.site-footer li {
  padding: 0.25rem 0;
  font-size: 0.9rem;
}
.site-footer .footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.site-footer .footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

/* CTA box */
.cta-box {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}
.cta-box h3 {
  margin-bottom: 0.5rem;
}
.cta-box p {
  color: #6b7280;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }
  .hero-section {
    padding: 3rem 0 2.5rem;
  }
  .guide-content h1 {
    font-size: 1.6rem;
  }
}
