/* Shared blog styles — reuses the EORIL design system. */
:root {
  --bg: #FFFFFF; --bg-2: #F5F7FB; --surface: #FFFFFF; --surface-2: #F8FAFD;
  --border: #E5EAF1; --border-strong: #D1D9E5;
  --text: #0E0F14; --text-2: #4B5668; --text-3: #94A0B5;
  --blue: #1F47E0; --blue-deep: #1535B0; --blue-bright: #4170F5;
  --blue-light: #87A8FF; --blue-pale: #DCE5FF; --blue-soft: #ECF0FF; --blue-mist: #F6F8FF;
  --shadow-sm: 0 1px 2px rgba(14,15,20,0.04), 0 2px 8px rgba(14,15,20,0.04);
  --shadow-md: 0 10px 30px rgba(14,15,20,0.08);
  --shadow-blue: 0 12px 32px rgba(31,71,224,0.18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; line-height: 1.55; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--blue); color: #fff; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--blue); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; }
.brand img { height: 52px; width: auto; display: block; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { font-size: 14px; color: var(--text-2); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: inline-flex; align-items: center; gap: 12px; }
.nav-login { font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong); transition: border-color .15s, color .15s; }
.nav-login:hover { color: var(--blue); border-color: var(--blue); text-decoration: none; }
.nav-cta { background: var(--blue); color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-blue); transition: background .15s; }
.nav-cta:hover { background: var(--blue-deep); text-decoration: none; }

/* blog index */
.blog-hero { padding: 80px 0 40px; }
.blog-hero .pill { display: inline-block; padding: 5px 11px; border: 1px solid var(--border-strong); border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-2); background: var(--surface); margin-bottom: 22px; }
.blog-hero h1 { font-size: 52px; line-height: 1.04; letter-spacing: -0.04em; font-weight: 800; margin-bottom: 16px; max-width: 720px; }
.blog-hero p { font-size: 18px; color: var(--text-2); max-width: 640px; }

.posts { padding: 24px 0 96px; display: grid; gap: 20px; }
.post-card { display: grid; grid-template-columns: 140px 1fr; gap: 28px; padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); transition: border-color .2s, transform .2s, box-shadow .2s; text-decoration: none; color: inherit; }
.post-card:hover { border-color: var(--blue-light); transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.post-meta { font-size: 12px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.post-card h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 10px; color: var(--text); }
.post-card p { font-size: 15px; color: var(--text-2); line-height: 1.55; }
.post-card .tag { display: inline-block; padding: 4px 10px; background: var(--blue-soft); color: var(--blue-deep); border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }

/* article (single post) */
.article-hero { padding: 64px 0 32px; }
.article-hero .crumbs { font-size: 13px; color: var(--text-3); margin-bottom: 22px; }
.article-hero .crumbs a { color: var(--text-2); }
.article-hero .pill { display: inline-block; padding: 4px 10px; background: var(--blue-soft); color: var(--blue-deep); border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.article-hero h1 { font-size: 46px; line-height: 1.06; letter-spacing: -0.04em; font-weight: 800; max-width: 800px; margin-bottom: 18px; }
.article-hero .lead { font-size: 19px; color: var(--text-2); max-width: 720px; line-height: 1.55; }
.article-hero .meta { display: flex; gap: 20px; margin-top: 24px; font-size: 13px; color: var(--text-3); flex-wrap: wrap; }
.article-hero .meta strong { color: var(--text); }

.article-body { max-width: 760px; margin: 0 auto; padding: 32px 32px 80px; }
.article-body p { font-size: 17px; color: var(--text-2); margin-bottom: 18px; line-height: 1.65; }
.article-body p strong { color: var(--text); font-weight: 600; }
.article-body h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin: 40px 0 14px; color: var(--text); scroll-margin-top: 80px; }
.article-body h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; margin: 28px 0 10px; color: var(--text); }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; color: var(--text-2); }
.article-body li { margin-bottom: 8px; font-size: 17px; line-height: 1.6; }
.article-body li strong { color: var(--text); font-weight: 600; }
.article-body table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 14.5px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.article-body th, .article-body td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.article-body th { background: var(--surface-2); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
.article-body tr:last-child td { border-bottom: 0; }
.callout { padding: 20px 24px; background: var(--blue-soft); border: 1px solid var(--blue-pale); border-radius: 14px; margin: 22px 0; font-size: 15.5px; color: var(--text); line-height: 1.6; }
.callout strong { color: var(--blue-deep); }
.callout a { color: var(--blue-deep); font-weight: 600; }

.cta-panel { margin-top: 40px; padding: 28px; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; border-radius: 20px; }
.cta-panel h3 { color: #fff; font-size: 22px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.cta-panel p { color: rgba(255,255,255,0.85); font-size: 15px; margin-bottom: 18px; line-height: 1.55; }
.cta-panel .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-panel a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600; text-decoration: none; transition: all .2s; }
.cta-panel a.primary { background: #fff; color: var(--blue-deep); }
.cta-panel a.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.cta-panel a.ghost:hover { background: rgba(255,255,255,0.1); }
.cta-panel svg { width: 16px; height: 16px; }

/* footer */
footer { padding: 32px 0; border-top: 1px solid var(--border); background: var(--surface-2); }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-3); }
footer a { color: var(--text-2); }
.foot-contact-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.foot-contact-row a { display: inline-flex; align-items: center; gap: 6px; }
.foot-contact-row svg { width: 14px; height: 14px; color: var(--blue); }

/* floating WhatsApp */
.wa-fab { position: fixed; bottom: 22px; right: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37,211,102,0.42), 0 2px 6px rgba(14,15,20,0.15); z-index: 90; transition: transform .2s; }
.wa-fab:hover { transform: scale(1.07); }
.wa-fab svg { width: 28px; height: 28px; }

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .blog-hero h1 { font-size: 36px; }
  .article-hero h1 { font-size: 32px; }
  .post-card { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .nav-links { display: none; }
  .article-body { padding: 24px 20px 56px; }
}
