/* Gamma blog — mirrors the Next.js site's look (app/globals.css + Tailwind classes). */
:root {
  --electric: #2563ff;
  --electric-d: #1a4fd6;
  --sky: #38bdf8;
  --cyan: #06d6f5;
  --emerald: #10b981;
  --amber: #fbbf24;
  --violet: #a78bfa;
  --navy: #0a1326;
  --text: #f0f5ff;
  --muted: rgba(210, 228, 255, 0.7);
  --faint: rgba(185, 210, 255, 0.5);
  --line: rgba(99, 140, 255, 0.14);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--navy); color: var(--text);
  font-family: 'Inter', 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap, .wrap-narrow { padding: 0 24px; } }
@media (min-width: 1024px) { .wrap { padding: 0 32px; } }

/* ── shared bits ─────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, #60c3ff 0%, var(--electric) 40%, var(--cyan) 70%, #a78bfa 100%);
  background-size: 300% 300%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.glass { background: rgba(255,255,255,0.03); backdrop-filter: blur(12px); border: 1px solid rgba(99,140,255,0.12); }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(37,99,255,.12); border: 1px solid rgba(37,99,255,.25); color: var(--sky);
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 8px;
  font-weight: 600; color: #fff; background: var(--electric); box-shadow: 0 0 20px rgba(37,99,255,.4);
  transition: all .2s; font-size: 14px; border: 0; cursor: pointer;
}
.btn-primary:hover { background: var(--electric-d); box-shadow: 0 0 32px rgba(37,99,255,.6); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 8px;
  font-weight: 600; font-size: 14px; border: 1px solid rgba(99,140,255,.3); color: rgba(210,228,255,.9); transition: all .2s;
}
.btn-outline:hover { border-color: rgba(99,140,255,.6); background: rgba(37,99,255,.08); }
.meta { color: var(--faint); font-size: 13px; margin: 0; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin: 0 0 8px; }
.read-more { color: var(--sky); font-weight: 600; font-size: 14px; }
.read-more:hover { color: #fff; }

/* category chips: colours match the Resources industry cards */
.chip {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid; margin-bottom: 12px;
}
.chip.cat-technology   { color: #60c3ff; border-color: rgba(96,195,255,.35); background: rgba(37,99,255,.12); }
.chip.cat-use-cases    { color: #34d399; border-color: rgba(52,211,153,.35); background: rgba(16,185,129,.10); }
.chip.cat-partnerships { color: #c4b5fd; border-color: rgba(167,139,250,.35); background: rgba(124,58,237,.12); }
.chip.cat-company-news { color: #fcd34d; border-color: rgba(251,191,36,.35); background: rgba(245,158,11,.10); }

/* ── header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(4,9,26,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo img { filter: drop-shadow(0 0 8px rgba(96,195,255,.3)); }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; align-items: center; }
.nav-links a, .nav-dd > button {
  display: flex; align-items: center; gap: 4px; padding: 8px 12px; font-size: 14px; font-weight: 500;
  color: rgba(210,228,255,.75); border-radius: 6px; background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav-links a:hover, .nav-dd > button:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.05); }
.nav-dd { position: relative; }
.nav-dd svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.nav-dd-menu {
  display: none; position: absolute; left: 0; top: 100%; width: 240px; list-style: none; margin: 0; padding: 8px 0;
  background: rgba(7,15,35,.97); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { display: block; }
.nav-dd-menu a { border-radius: 0; padding: 10px 16px; }
.nav-cta { display: none; }
.nav-mobile summary { list-style: none; cursor: pointer; padding: 8px; color: rgba(255,255,255,.7); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; display: block; }
.nav-mobile-panel {
  position: absolute; left: 0; right: 0; top: 64px; background: rgba(4,9,26,.98); border-top: 1px solid rgba(255,255,255,.05);
  padding: 12px 16px 16px; display: flex; flex-direction: column; max-height: calc(100vh - 64px); overflow-y: auto;
}
.nav-mobile-panel a { padding: 9px 12px; font-size: 14px; color: rgba(210,228,255,.8); border-radius: 6px; }
.nav-mobile-panel a:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-mobile-panel .btn-primary { justify-content: center; margin-top: 8px; color: #fff; }
.nav-mobile-panel hr { border: 0; border-top: 1px solid rgba(255,255,255,.06); width: 100%; margin: 6px 0; }
.nav-mobile-label { margin: 6px 12px 2px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(185,210,255,.45); }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; padding: 10px 20px; }
  .nav-mobile { display: none; }
}

.preview-bar {
  background: #f59e0b; color: #1f1300; text-align: center; font-size: 13px; padding: 8px 16px; font-weight: 500;
}
.preview-bar a { text-decoration: underline; margin-left: 12px; font-weight: 700; }

/* ── listing ─────────────────────────────────────────────────── */
.blog-hero {
  padding: 72px 0 40px; text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(37,99,255,.18), transparent 70%);
}
.blog-hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; margin: 20px 0 16px; }
.blog-hero .lead { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 17px; }
.blog-hero .btn-primary { margin-top: 24px; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.pill {
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255,255,255,.02); transition: all .15s;
}
.pill span { color: var(--faint); margin-left: 4px; font-size: 12px; }
.pill:hover { color: #fff; border-color: rgba(99,140,255,.4); }
.pill.active { color: #fff; background: rgba(37,99,255,.18); border-color: rgba(37,99,255,.5); }

.blog-list { padding-bottom: 32px; }
.empty { text-align: center; padding: 64px 16px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); }
.empty h2 { color: var(--text); margin: 0 0 8px; }

.featured {
  display: grid; gap: 0; border-radius: 20px; overflow: hidden; margin-bottom: 40px;
  border: 1px solid var(--line); background: rgba(255,255,255,.025);
}
.featured-media { display: block; aspect-ratio: 16/9; overflow: hidden; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.featured:hover .featured-media img { transform: scale(1.03); }
.featured-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.featured-body h2 { font-size: clamp(22px, 3vw, 32px); line-height: 1.2; margin: 0 0 12px; font-weight: 700; letter-spacing: -.01em; }
.featured-body h2 a:hover { color: var(--sky); }
.featured-body p { color: var(--muted); margin: 0 0 16px; }
.featured-body .meta { margin-bottom: 16px; }
@media (min-width: 900px) { .featured { grid-template-columns: 1.15fr 1fr; } .featured-body { padding: 40px; } .featured-media { aspect-ratio: auto; min-height: 340px; } }

.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: rgba(255,255,255,.025); transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(99,140,255,.35); transform: translateY(-2px); }
.card-media { display: block; aspect-ratio: 16/9; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.card-title { font-size: 18px; line-height: 1.35; margin: 0 0 8px; font-weight: 700; }
.card-title a:hover { color: var(--sky); }
.card-excerpt { color: var(--muted); font-size: 14px; margin: 0 0 16px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.card-placeholder { display: flex; width: 100%; height: 100%; min-height: 100%; align-items: flex-end; padding: 20px; position: relative; overflow: hidden; }
.card-placeholder::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(to top, transparent, #000);
  -webkit-mask-image: linear-gradient(to top, transparent, #000);
}
.card-placeholder span { position: relative; z-index: 1; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.card-placeholder.cat-technology   { background: linear-gradient(135deg, #0b2a6b, #2563ff 60%, #06d6f5); }
.card-placeholder.cat-use-cases    { background: linear-gradient(135deg, #053b2e, #10b981 65%, #6ee7b7); }
.card-placeholder.cat-partnerships { background: linear-gradient(135deg, #2a1366, #7c3aed 60%, #c4b5fd); }
.card-placeholder.cat-company-news { background: linear-gradient(135deg, #4a2a05, #f59e0b 65%, #fde68a); }

.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 40px; color: var(--faint); font-size: 14px; }

.cta {
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start; justify-content: space-between;
  margin: 56px 0 80px; padding: 32px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(37,99,255,.16), rgba(6,214,245,.06));
}
.cta h2 { margin: 0 0 6px; font-size: 24px; }
.cta p { margin: 0; color: var(--muted); }
@media (min-width: 768px) { .cta { flex-direction: row; align-items: center; padding: 40px 48px; } }

/* ── post ────────────────────────────────────────────────────── */
.post-head { padding-top: 48px; }
.crumbs { font-size: 13px; color: var(--faint); margin-bottom: 24px; }
.crumbs a:hover { color: #fff; }
.post-head h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 16px; }
.post-head .lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; line-height: 1.55; }
.byline { display: flex; align-items: center; gap: 14px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.byline-name { margin: 0; font-weight: 600; font-size: 15px; }
.byline-name span { color: var(--faint); font-weight: 400; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-initials { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
  background: linear-gradient(135deg, var(--electric), var(--cyan)); color: #fff; }
.avatar-lg.avatar-initials { font-size: 20px; }
.post-cover { margin: 40px auto 0; max-width: 1040px; }
.post-cover img { width: 100%; border-radius: 16px; border: 1px solid var(--line); }

.prose { padding-top: 40px; font-size: 17.5px; line-height: 1.78; color: rgba(225,235,255,.88); overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.3em; }
.prose h2 { font-size: 1.55em; line-height: 1.25; margin: 1.9em 0 .6em; color: #fff; letter-spacing: -.01em; }
.prose h3 { font-size: 1.25em; line-height: 1.3; margin: 1.6em 0 .5em; color: #fff; }
.prose h4 { font-size: 1.05em; margin: 1.4em 0 .4em; color: #fff; }
.prose a { color: var(--sky); text-decoration: underline; text-decoration-color: rgba(56,189,248,.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--sky); }
.prose strong, .prose b { color: #fff; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--sky); }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--electric);
  color: #fff; font-size: 1.08em; font-style: italic;
}
.prose img { border-radius: 12px; margin: 1.6em auto; border: 1px solid var(--line); height: auto; }
.prose pre {
  background: #050b1a; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; overflow-x: auto;
  font-size: 14px; line-height: 1.6; margin: 0 0 1.4em; white-space: pre;
}
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
.prose :not(pre) > code { background: rgba(37,99,255,.14); padding: 2px 6px; border-radius: 5px; color: #bfdbfe; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose .video-embed { position: relative; aspect-ratio: 16/9; margin: 1.6em 0; }
.prose .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }

.post-foot { padding-top: 16px; }
.tags { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; color: var(--muted); padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share span { color: var(--faint); font-size: 13px; margin-right: 6px; }
.share a { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.share a:hover { color: #fff; border-color: rgba(99,140,255,.4); }
.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 32px; padding: 24px; border-radius: 16px; }
.author-bio { color: var(--muted); font-size: 14px; margin: 6px 0 8px; }

.related { padding-top: 64px; }
.related h2 { font-size: 24px; margin: 0 0 24px; }

/* ── footer ──────────────────────────────────────────────────── */
.site-footer { background: #030810; border-top: 1px solid rgba(255,255,255,.05); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-brand { grid-column: span 2; }
.footer-brand img { filter: drop-shadow(0 0 6px rgba(96,195,255,.3)); margin-bottom: 16px; }
.footer-brand p { font-size: 12px; color: rgba(185,210,255,.55); line-height: 1.7; max-width: 320px; margin: 0 0 24px; }
.site-footer h3 { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(185,210,255,.5); margin: 0 0 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 12px; }
.site-footer nav a { font-size: 14px; color: rgba(210,228,255,.65); }
.site-footer nav a:hover { color: #fff; }
.footer-bottom { display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: space-between;
  margin-top: 56px; padding-top: 32px; padding-bottom: 32px; border-top: 1px solid rgba(255,255,255,.05); }
.footer-bottom p { margin: 0; font-size: 12px; color: rgba(185,210,255,.4); }
.footer-bottom a:hover { color: #fff; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: row; }
}
