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

:root {
  --bg:         #f8f5f1;
  --bg2:        #f0ebe3;
  --surface:    #ffffff;
  --border:     rgba(0,0,0,0.08);
  --border-hi:  rgba(0,0,0,0.13);
  --text:       #1a1209;
  --text-2:     #6b5540;
  --text-3:     #9e8068;
  --amber:      #ea6c0a;
  --amber-glow: rgba(249,115,22,0.10);
  --green:      #16a34a;
  --green-glow: rgba(22,163,74,0.10);
  --red:        #dc2626;
  --red-glow:   rgba(220,38,38,0.08);
  --r:          14px;
  --r-lg:       20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Work Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04; pointer-events: none; z-index: 1000;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0;
  z-index: 100;
  padding: 0 32px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(248,245,241,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 17px;
}
.nav-logo img { width: 26px; height: 26px; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #eab308);
  color: #ffffff; font-family: 'Outfit', sans-serif;
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.88; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  padding: 6px 14px; border-radius: 8px;
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--text-2); text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover {
  color: var(--text);
  background: var(--bg2);
}

/* Hamburger button */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  border: none; background: transparent; cursor: pointer;
  border-radius: 8px;
  padding: 6px;
  transition: background 0.15s;
}
.nav-burger:hover { background: var(--bg2); }
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed; top: 60px; left: 0; right: 0;
  background: rgba(248,245,241,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px 20px;
  z-index: 99;
  flex-direction: column; gap: 4px;
}
.nav-drawer.open { display: flex; }
.nav-drawer .nav-link {
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 10px;
}
.nav-drawer .nav-cta {
  margin-top: 8px;
  justify-content: center;
}

/* Burger animation when open */
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 560px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-burger { display: flex; }
}

/* ── ARTICLE LAYOUT ── */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

/* ── BLOG INDEX LAYOUT ── */
.blog-index-main {
  max-width: 960px;
}

.blog-index-header {
  margin-bottom: 56px;
}

.blog-index-header h1 {
  margin-bottom: 16px;
}

.blog-index-lead {
  font-size: 17px;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 0;
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Blog card */
.blog-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  /* shadow preset — animate only transform+opacity for GPU perf */
  box-shadow: 0 0 0 rgba(234,107,10,0);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover {
  border-color: var(--amber);
  box-shadow: 0 4px 24px rgba(234,107,10,0.10);
  transform: translateY(-2px);
}
.blog-card:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.blog-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px;
}

.blog-card-tag {
  display: inline-block;
  padding: 3px 10px; border-radius: 999px;
  background: var(--amber-glow); color: var(--amber);
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase;
}

.blog-card-date {
  font-size: 12px; color: var(--text-3);
}

.blog-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px; font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  /* clamp to 3 lines so all cards stay uniform height */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}
.blog-card:hover .blog-card-title {
  color: var(--amber);
}

.blog-card-excerpt {
  font-size: 14px; color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
  /* clamp to 3 lines to keep cards uniform */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}

.blog-card-read {
  font-size: 12px; color: var(--text-3);
}

.blog-card-arrow {
  font-size: 16px; color: var(--amber);
  transition: transform 0.2s;
}
.blog-card:hover .blog-card-arrow {
  transform: translateX(4px);
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-3);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb-sep { color: var(--border-hi); }

/* Badge */
.badge {
  display: inline-block;
  padding: 4px 12px; border-radius: 999px;
  background: var(--amber-glow); color: var(--amber);
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 20px;
}

/* Title block */
h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
h1 em { font-style: normal; color: var(--amber); }

.article-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 13px; color: var(--text-3);
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.article-meta span { display: flex; align-items: center; gap: 5px; }

/* Article body */
.article-body { font-size: 16px; line-height: 1.8; color: var(--text-2); }

.article-body p { margin-bottom: 20px; }

.article-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px; font-weight: 700;
  color: var(--text);
  margin: 40px 0 16px;
  letter-spacing: -0.02em;
}

.article-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px; font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
}

.article-body ul, .article-body ol {
  padding-left: 22px;
  margin-bottom: 20px;
  display: flex; flex-direction: column; gap: 8px;
}

.article-body li { color: var(--text-2); }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--amber); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }

/* Code inline */
.article-body code {
  font-family: 'Outfit', monospace;
  font-size: 14px;
  background: var(--bg2);
  border: 1px solid var(--border-hi);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text);
}

/* Code block */
.code-block {
  background: #1a1209;
  border-radius: var(--r);
  padding: 24px;
  margin-bottom: 24px;
  overflow-x: auto;
  position: relative;
}
.code-block pre {
  font-family: 'Outfit', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #f0ebe3;
  white-space: pre;
}
.code-block .code-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: rgba(240,235,227,0.4);
  margin-bottom: 12px;
}
.copy-code-btn {
  position: absolute; top: 16px; right: 16px;
  padding: 5px 12px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent; color: rgba(240,235,227,0.5);
  font-family: 'Work Sans', sans-serif; font-size: 12px;
  cursor: pointer; transition: all 0.2s;
}
.copy-code-btn:hover { border-color: rgba(255,255,255,0.3); color: rgba(240,235,227,0.8); }
.copy-code-btn.copied { border-color: #16a34a; color: #4ade80; }

/* Callout boxes */
.callout {
  border-radius: var(--r);
  padding: 20px 24px;
  margin-bottom: 24px;
  border-left: 3px solid;
}
.callout.warning {
  background: rgba(234,108,10,0.07);
  border-color: var(--amber);
}
.callout.success {
  background: var(--green-glow);
  border-color: var(--green);
}
.callout.danger {
  background: var(--red-glow);
  border-color: var(--red);
}
.callout-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: 14px;
  margin-bottom: 6px;
}
.callout.warning .callout-title { color: var(--amber); }
.callout.success .callout-title { color: var(--green); }
.callout.danger  .callout-title { color: var(--red); }
.callout p { color: var(--text-2); font-size: 14px; line-height: 1.65; margin-bottom: 0; }

/* Comparison table */
.compare-table {
  width: 100%; border-collapse: collapse;
  margin-bottom: 28px; font-size: 14px;
}
.compare-table th {
  background: var(--bg2);
  padding: 10px 14px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: 13px;
  text-align: left; color: var(--text);
  border-bottom: 2px solid var(--border-hi);
}
.compare-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
}
.compare-table tr:last-child td { border-bottom: none; }
.tag-yes   { color: var(--green); font-weight: 600; }
.tag-no    { color: var(--red);   font-weight: 600; }
.tag-maybe { color: var(--amber); font-weight: 600; }

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* Inline CTA (mid-article) */
.inline-cta {
  display: flex; gap: 16px; align-items: flex-start;
  background: linear-gradient(135deg, rgba(249,115,22,0.07), rgba(201,143,0,0.04));
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: var(--r);
  padding: 20px 24px;
  margin: 28px 0 32px;
}
.inline-cta-icon {
  flex-shrink: 0;
  color: var(--amber); font-size: 18px;
  margin-top: 2px;
}
.inline-cta-body {
  font-size: 15px; color: var(--text-2); line-height: 1.65;
}
.inline-cta-body strong { color: var(--text); }
.inline-cta-body code {
  font-family: 'Outfit', monospace; font-size: 13px;
  background: rgba(0,0,0,0.06); border: 1px solid var(--border-hi);
  border-radius: 4px; padding: 1px 5px; color: var(--text);
}
.inline-cta-body a {
  display: inline-block;
  margin-top: 10px;
  color: var(--amber); font-weight: 600; text-decoration: none;
  font-family: 'Outfit', sans-serif; font-size: 14px;
}
.inline-cta-body a:hover { text-decoration: underline; }

/* CTA block (end of article) */
.cta-block {
  text-align: center;
  background: linear-gradient(135deg, rgba(249,115,22,0.07), rgba(201,143,0,0.05));
  border: 1px solid var(--border-hi);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  margin-top: 48px;
}
.cta-block h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px; font-weight: 800;
  margin-bottom: 10px; color: var(--text);
}
.cta-block p {
  color: var(--text-2); font-size: 15px; margin-bottom: 24px;
}

/* CTA buttons — white text everywhere */
.btn-cta-big,
.nav-cta {
  color: #ffffff;
}
.btn-cta-big {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #eab308);
  font-family: 'Outfit', sans-serif;
  font-size: 16px; font-weight: 800; text-decoration: none;
  transition: opacity 0.2s;
}
.btn-cta-big:hover { opacity: 0.88; }

/* FAQ list */
.faq-list {
  margin: 24px 0 32px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
}
.faq-item {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-q {
  font-family: 'Outfit', sans-serif;
  font-size: 15px; font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.faq-a {
  font-size: 14px; color: var(--text-2); line-height: 1.7;
}
.faq-a code {
  font-family: 'Outfit', monospace; font-size: 13px;
  background: rgba(0,0,0,0.06); border: 1px solid var(--border-hi);
  border-radius: 4px; padding: 1px 5px; color: var(--text);
}

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 32px 40px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: start;
}

/* Brand column */
.footer-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 18px;
  color: #fff;
  margin-bottom: 16px;
}
.footer-logo img { width: 28px; height: 28px; filter: brightness(0) invert(1); }
.footer-tagline {
  font-size: 13px; line-height: 1.65;
  color: rgba(255,255,255,0.45);
  max-width: 260px;
  margin: 0;
}

/* Nav columns */
.footer-cols {
  display: flex; gap: 48px;
}
.footer-col {
  display: flex; flex-direction: column; gap: 10px;
}
.footer-col-title {
  font-family: 'Outfit', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}
.footer-col a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }

/* CTA column */
.footer-cta-col {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 14px;
}
.footer-cta-col p {
  font-size: 13px; color: rgba(255,255,255,0.5);
  line-height: 1.6; margin: 0;
}
.footer-cta-btn {
  display: inline-flex; align-items: center;
  padding: 9px 20px; border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #eab308);
  color: #fff; font-family: 'Outfit', sans-serif;
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.footer-cta-btn:hover { opacity: 0.88; }

/* Bottom bar */
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 24px 32px;
  }
  .footer-bottom { padding: 16px 24px; }
}

@media (max-width: 480px) {
  .footer-cols { gap: 32px; }
}
