/* Main Forge AI — Blog styles (shared by /blog index + article pages).
   Generated pages link this file. Design tokens mirror the main site. */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
:root {
  --bg: #08131e;
  --ink: #f8fbff;
  --text: #dce8f4;
  --muted: #9eb3c8;
  --line: rgba(199, 224, 246, 0.18);
  --cyan: #39d9ff;
  --teal: #32f5c8;
  --orange: #ff8b45;
  --flare: #ffcf8a;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: min(1120px, calc(100vw - 40px));
  --read: min(720px, calc(100vw - 40px));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  min-height: 100dvh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 52% at 78% 4%, rgba(57, 217, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 55% 48% at 9% 12%, rgba(255, 139, 69, 0.16), transparent 58%),
    linear-gradient(150deg, #07111b 0%, #0f2133 48%, #07101a 100%);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--flare); outline-offset: 3px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(57, 217, 255, 0.42);
  box-shadow: 0 1px 0 rgba(57, 217, 255, 0.18), 0 4px 18px -6px rgba(57, 217, 255, 0.28);
  background: rgba(8, 19, 30, 0.88);
  backdrop-filter: blur(18px);
}
.nav-inner {
  width: var(--wrap); min-height: 72px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px; min-width: 0; color: var(--ink);
  font-family: var(--display); font-weight: 900; letter-spacing: -0.02em; font-size: 18px;
}
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 0 16px rgba(57, 217, 255, 0.22)); }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; padding: 0; font-size: 14px; font-weight: 750; }
.nav-links a { color: rgba(220, 232, 244, 0.86); transition: color 170ms var(--ease); }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-cta {
  display: inline-flex; align-items: center; min-height: 42px; padding: 10px 16px; border-radius: 10px;
  color: #061015; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, #ffe0aa 0%, var(--flare) 45%, #ffb347 100%);
  box-shadow: 0 8px 20px rgba(255,165,69,0.28);
}
.nav-cta:hover { text-decoration: none; transform: translateY(-1px); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* Shared layout */
.wrap { width: var(--wrap); margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -0.035em; text-wrap: balance; }

/* ---- Index page ---- */
.blog-hero { padding: clamp(48px, 7vw, 92px) 0 24px; }
.blog-hero .eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 207, 138, 0.34); color: #ffe0aa; background: rgba(255, 207, 138, 0.08);
  font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
}
.blog-hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.0; font-weight: 900; }
.blog-hero p { max-width: 60ch; margin-top: 16px; color: var(--text); font-size: clamp(17px, 2vw, 20px); }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 24px 0 90px; }
@media (max-width: 720px) { .post-grid { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { text-decoration: none; transform: translateY(-4px); border-color: rgba(57,217,255,0.32); box-shadow: 0 18px 40px rgba(0,0,0,0.34); }
.tag {
  align-self: flex-start; font-family: var(--mono); font-size: 10px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
}
.tag.mf { color: #06121d; background: linear-gradient(120deg, var(--cyan), var(--teal)); }
.tag.hosp { color: #06121d; background: linear-gradient(120deg, var(--flare), var(--orange)); }
.card h2 { font-size: 22px; line-height: 1.12; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.card .more { margin-top: auto; color: var(--cyan); font-weight: 800; font-size: 14px; }

/* ---- Article page ---- */
.article { width: var(--read); margin: 0 auto; padding: clamp(30px, 5vw, 56px) 0 40px; }
.crumb { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.crumb a { color: var(--muted); } .crumb a:hover { color: var(--cyan); }
.article h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.05; font-weight: 900; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; color: var(--muted); font-size: 13px; font-weight: 700; }
.article-body { margin-top: 30px; font-size: 18px; }
.article-body > p { margin-top: 20px; color: var(--text); }
.article-body h2 { margin-top: 40px; font-size: clamp(22px, 3vw, 28px); line-height: 1.15; }
.article-body h3 { margin-top: 30px; font-size: 20px; }
.article-body ul { margin-top: 18px; padding-left: 22px; display: grid; gap: 10px; }
.article-body li { color: var(--text); }
.article-body strong { color: #fff; font-weight: 800; }
.article-body a { text-decoration: underline; }

/* End-of-article CTA */
.cta-card {
  width: var(--read); margin: 20px auto 0; padding: clamp(24px, 4vw, 36px); border-radius: 18px;
  background: linear-gradient(120deg, rgba(57,217,255,0.10), rgba(255,139,69,0.09));
  border: 1px solid rgba(57,217,255,0.30); box-shadow: 0 0 30px rgba(57,217,255,0.06);
  text-align: center;
}
.cta-card h2 { font-size: clamp(22px, 3vw, 30px); line-height: 1.1; }
.cta-card p { max-width: 52ch; margin: 12px auto 0; color: var(--text); font-size: 16px; }
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 22px;
  padding: 15px 26px; border-radius: 12px; border: 0; cursor: pointer; font-family: var(--font);
  color: #061015; font-weight: 950; font-size: 16px;
  background: linear-gradient(135deg, #ff8b45, #ff6a2b); box-shadow: 0 10px 24px rgba(255,106,43,0.3);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.cta-btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 16px 36px rgba(255,106,43,0.42); }
.back-link { display: block; width: var(--read); margin: 34px auto 0; color: var(--cyan); font-weight: 800; }

/* Inline lead form (bottom-of-article CTA) */
.blog-form { display: grid; gap: 10px; max-width: 520px; margin: 20px auto 0; text-align: left; }
.blog-form[hidden] { display: none !important; }
.bf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .bf-row { grid-template-columns: 1fr; } }
.blog-form input, .blog-form textarea {
  width: 100%; min-height: 46px; padding: 11px 13px; border-radius: 10px;
  border: 1px solid rgba(199, 224, 246, 0.28); background: rgba(8, 16, 26, 0.72);
  color: var(--ink); font-family: var(--font); font-size: 15px;
}
.blog-form textarea { min-height: 64px; resize: vertical; }
.blog-form input::placeholder, .blog-form textarea::placeholder { color: #7f93a8; }
.blog-form input:focus, .blog-form textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: transparent; }
.bf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.blog-form .cta-btn { width: 100%; margin-top: 4px; }
.bf-error { display: none; padding: 9px 12px; border-radius: 9px; color: #ffd7dd; background: rgba(255,90,116,0.16); border: 1px solid rgba(255,90,116,0.4); font-size: 13px; font-weight: 700; }
.bf-error.visible { display: block; }
.bf-success { display: none; margin: 16px auto 0; max-width: 520px; padding: 16px; border-radius: 12px; color: #bdfbe9; background: rgba(50,245,200,0.12); border: 1px solid rgba(50,245,200,0.4); font-weight: 800; }
.bf-success.visible { display: block; }

/* Footer */
footer {
  position: relative; border-top: 1px solid rgba(57, 217, 255, 0.42);
  box-shadow: 0 -1px 0 rgba(57, 217, 255, 0.18); padding: 40px 0 34px; margin-top: 40px;
  color: var(--muted); font-size: 14px; background: linear-gradient(180deg, #0a1726 0%, #06101a 100%);
}
.footer-inner { width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; padding: 0; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.footer-links a { color: rgba(180, 208, 236, 0.72); } .footer-links a:hover { color: rgba(220, 238, 255, 0.96); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; } }
