/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a2e;
  background-color: #fafafa;
  line-height: 1.8;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Layout ===== */
.page-wrapper {
  max-width: 720px;
  width: 65%;
  margin: 0 auto;
  padding: 4rem 0 6rem;
  overflow: hidden;
}

/* ===== Header / Hero ===== */
.blog-header {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.blog-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6366f1;
  background: #eef2ff;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.blog-header h1 {
  font-size: 2.25rem;
  font-weight: 750;
  line-height: 1.2;
  color: #0f0f1a;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.blog-header .subtitle {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  max-width: 600px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #888;
}

.blog-meta .author {
  font-weight: 600;
  color: #333;
}

.blog-meta .separator {
  color: #ccc;
}

/* ===== TLDR Box ===== */
.tldr {
  background: #f0f4ff;
  border-left: 3px solid #6366f1;
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.92rem;
  color: #333;
  line-height: 1.75;
}

.tldr strong {
  color: #6366f1;
  font-weight: 700;
}

/* ===== Section Headings ===== */
h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f0f1a;
  margin-top: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 650;
  color: #1a1a2e;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

/* ===== Paragraphs ===== */
p {
  margin-bottom: 1.25rem;
  color: #2d2d3a;
  font-size: 0.95rem;
}

/* ===== Feature Cards ===== */
.features-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.feature-card {
  background: #fff;
  border: 1px solid #e8e8ec;
  border-radius: 10px;
  padding: 1.5rem;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: #c7c7d1;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.feature-card .card-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6366f1;
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin-bottom: 0;
  color: #555;
  font-size: 0.88rem;
  line-height: 1.7;
}

.feature-card .card-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e8e8ec;
  margin-top: 1rem;
  margin-bottom: 0;
  display: block;
}

/* ===== Standalone Screenshot ===== */
.screenshot-showcase {
  margin: 2rem 0;
}

.screenshot-showcase img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e0e0e5;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  display: block;
}

.screenshot-showcase .caption {
  text-align: center;
  font-size: 0.78rem;
  color: #999;
  margin-top: 0.6rem;
  font-style: italic;
}

/* ===== Why Powerful Section ===== */
.why-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-list li {
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid #e8e8ec;
  border-radius: 10px;
  font-size: 0.92rem;
  color: #2d2d3a;
  line-height: 1.7;
}

.why-list li strong {
  display: block;
  color: #0f0f1a;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

/* ===== How It Works ===== */
.how-it-works p {
  color: #444;
}

.roles-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.roles-list li {
  padding: 0.6rem 1rem;
  background: #f7f7fa;
  border-radius: 6px;
  font-size: 0.88rem;
  color: #333;
  line-height: 1.6;
}

.roles-list li strong {
  color: #0f0f1a;
}

/* ===== Challenges Section ===== */
.challenge-block {
  margin-bottom: 2rem;
}

.challenge-block h3 {
  font-size: 1.1rem;
  color: #0f0f1a;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #efefef;
}

.challenge-block p {
  color: #444;
  font-size: 0.92rem;
}

/* ===== Conclusion ===== */
.conclusion {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
  border-radius: 12px;
  border: 1px solid #e0e4f5;
}

.conclusion h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.conclusion p {
  color: #333;
  font-size: 0.93rem;
}

.conclusion p:last-child {
  margin-bottom: 0;
}

/* ===== Footer ===== */
.blog-footer {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6366f1;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid #e0e4f5;
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover {
  background: #f0f4ff;
  border-color: #c7c7d1;
}

.footer-links a svg {
  width: 16px;
  height: 16px;
}

.blog-footer .copyright {
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 0.75rem;
}

/* ===== Blockquotes (for emphasis) ===== */
blockquote {
  border-left: 3px solid #d4d4dc;
  padding: 0.5rem 1rem;
  margin: 1rem 0 1.5rem;
  background: #fafafa;
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
}

/* ===== Inline Code ===== */
code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.82rem;
  background: #f0f0f5;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: #6366f1;
}

/* ===== Divider ===== */
.section-divider {
  border: none;
  border-top: 1px solid #e8e8ec;
  margin: 2.5rem 0;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .page-wrapper {
    width: 75%;
  }
}

@media (max-width: 768px) {
  .page-wrapper {
    width: 100%;
    padding: 2rem 1.25rem 4rem;
  }

  html {
    font-size: 16px;
  }

  .blog-header h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .blog-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .page-wrapper {
    padding: 1.5rem 1rem 3rem;
  }

  .blog-header h1 {
    font-size: 1.5rem;
  }

  .feature-card {
    padding: 1.2rem;
  }

  .conclusion {
    padding: 1.5rem;
  }
}
