:root{
  --bg:#07090f;
  --panel: rgba(255,255,255,0.06);
  --stroke: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --blue:#2f7bff;
  --blue2:#00b7ff;
  --radius:18px;
  --shadow: 0 18px 60px rgba(0,0,0,0.45);
  --ease: cubic-bezier(.2,.8,.2,1);
  --max: 1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: var(--bg);
  overflow-x:hidden;
}

/* Background (dark theme only) */
.bg-gradient{
  position:fixed; inset:0;
  background:
    radial-gradient(1200px 700px at 75% 20%, rgba(47,123,255,0.28), transparent 60%),
    radial-gradient(900px 600px at 15% 70%, rgba(0,183,255,0.18), transparent 60%),
    linear-gradient(135deg, #05060b 0%, #060813 40%, #040616 70%, #040415 100%);
  z-index:-3;
}
.bg-glow{
  position:fixed; inset:-20%;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(47,123,255,0.18), transparent 70%),
    radial-gradient(700px 380px at 30% 90%, rgba(0,183,255,0.10), transparent 70%);
  filter: blur(22px);
  z-index:-2;
}
.bg-noise{
  position:fixed; inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  opacity:.25;
  mix-blend-mode:overlay;
  z-index:-1;
}

/* Header (default dark) */
.header{
  position:sticky; top:0;
  z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  backdrop-filter: blur(14px);
  background: rgba(5,7,12,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand{ display:flex; align-items:center; gap:10px; color:var(--text); text-decoration:none; }
.brand-dot{ width:10px; height:10px; border-radius:999px; background: linear-gradient(90deg, var(--blue), var(--blue2)); box-shadow: 0 0 18px rgba(47,123,255,0.6); }
.brand-text{font-weight:900; letter-spacing:.2px}

.nav{ display:flex; gap:14px; align-items:center; }
.nav-link, .muted-link{
  color:var(--muted);
  text-decoration:none;
  font-weight:800;
  padding:10px 12px;
  border-radius:999px;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.nav-link:hover, .muted-link:hover{ background: rgba(255,255,255,0.06); color: var(--text); transform: translateY(-1px); }
.nav-cta{
  text-decoration:none; color: var(--text); font-weight:900;
  padding:10px 14px; border-radius:999px;
  background: linear-gradient(90deg, rgba(47,123,255,0.9), rgba(0,183,255,0.85));
  box-shadow: 0 10px 28px rgba(47,123,255,0.25);
  transition: transform .18s var(--ease), filter .18s var(--ease);
}
.nav-cta:hover{ transform: translateY(-1px); filter: brightness(1.08); }

.nav-toggle{ display:none; background:transparent; border:0; width:44px; height:44px; border-radius:12px; align-items:center; justify-content:center; gap:5px; flex-direction:column; }
.nav-toggle span{ display:block; width:20px; height:2px; background: rgba(255,255,255,0.85); border-radius:2px; }

/* Mobile menu */
.mobile-menu{
  display:none;
  position:fixed; top:64px; left:16px; right:16px;
  background: rgba(10,12,18,0.92);
  border:1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding:14px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  z-index:60;
}
.mobile-menu a{ display:block; padding:12px 12px; border-radius:14px; color: var(--text); text-decoration:none; font-weight:900; }
.mobile-menu a:hover{ background: rgba(255,255,255,0.06); }
.mobile-cta{ margin-top:8px; background: linear-gradient(90deg, rgba(47,123,255,0.9), rgba(0,183,255,0.85)); }

/* Layout */
.main{ padding: 18px 16px 60px; }
.page{ max-width: var(--max); margin: 0 auto; }

.hero{ padding: 26px 0 12px; }
.kicker{
  display:inline-flex; gap:8px; align-items:center;
  padding:8px 12px; border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  border-radius:999px; color: var(--muted); font-weight:800;
}
.kicker .spark{ width:8px; height:8px; border-radius:999px; background: linear-gradient(90deg, var(--blue), var(--blue2)); box-shadow: 0 0 16px rgba(47,123,255,0.55); }
.h1{ margin:14px 0 10px; font-size: clamp(34px, 6vw, 64px); line-height:1.05; letter-spacing: -0.8px; }
.subhead{ max-width: 760px; color: var(--muted); font-size: 16.5px; line-height:1.7; }

.actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top: 18px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text); text-decoration:none; font-weight:900;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.18); }
.btn.primary{
  border:0;
  background: linear-gradient(90deg, rgba(47,123,255,0.92), rgba(0,183,255,0.88));
  box-shadow: 0 14px 34px rgba(47,123,255,0.22);
}
.btn.primary:hover{ filter: brightness(1.08); }

.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.card{ border:1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.05); border-radius: var(--radius); padding: 16px; box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
.card h3{ margin:0 0 8px; font-size: 16px; letter-spacing: -0.2px; }
.card p{ margin:0; color: var(--muted); line-height:1.6; font-size: 14.8px; }

.section{ margin-top: 22px; }
.section-title{ font-size: 20px; margin:0 0 10px; letter-spacing: -0.3px; }
.section-desc{ color: var(--muted); margin:0 0 14px; line-height:1.7; }

/* Rotating band (no gray container) */
.band-wrap{ margin-top: 18px; overflow:hidden; border:0; background:transparent; width:100vw; margin-left: calc(50% - 50vw); }
.band-shell{ background: transparent; padding:0; margin:0; }
.band{ display:flex; gap:14px; padding: 14px 16px; width:max-content; animation: marquee 26s linear infinite; }
.band:hover{ animation-play-state: paused; }
@keyframes marquee{ from{transform:translateX(0)} to{transform:translateX(-50%)} }

.service{
  background: rgba(10,12,18,0.92);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 16px 16px;
  min-width: 270px;
  min-height: 92px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  box-shadow: 0 12px 32px rgba(0,0,0,0.24);
}
.service strong{ display:block; color: rgba(255,255,255,0.92); font-size: 14.8px; margin-bottom: 4px; }
.service span{ color: rgba(255,255,255,0.70); font-size: 13.8px; line-height: 1.45; }

/* Blog list (dark default) */
.blog-list{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.blog-card h3{ font-size: 17px; line-height: 1.25; }
.blog-meta{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.pill{ display:inline-flex; align-items:center; justify-content:center; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.78); font-weight: 900; font-size: 12.5px; }
.blog-card .excerpt{ margin-top: 10px; font-size: 14.8px; line-height: 1.6; }

/* Footer */
.footer{
  padding: 26px 16px 34px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(5,7,12,0.35);
  backdrop-filter: blur(14px);
}
.footer-inner{ max-width: var(--max); margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.brand-mini{font-weight:900; margin-right:10px}
.muted{color:var(--muted); font-weight:850}
.footer-right{display:flex; gap:10px}

/* Light theme for Blog + Articles */
body.theme-light{
  background: #ffffff;
  color: #0b1020;
}
body.theme-light .bg-gradient,
body.theme-light .bg-noise,
body.theme-light .bg-glow{ display:none; }

body.theme-light .header{
  background: rgba(0,0,0,0.96);
  border-bottom: 1px solid rgba(0,0,0,0.25);
  backdrop-filter: none;
}
body.theme-light .brand-text{ color:#ffffff; }
body.theme-light .nav-link, body.theme-light .muted-link{ color: rgba(255,255,255,0.86); }
body.theme-light .nav-link:hover, body.theme-light .muted-link:hover{ background: rgba(255,255,255,0.10); color:#ffffff; }
body.theme-light .nav-toggle span{ background:#fff; }
body.theme-light .mobile-menu{ background: rgba(0,0,0,0.96); border-color: rgba(255,255,255,0.10); }
body.theme-light .main{
  background:
    radial-gradient(900px 500px at 70% 10%, rgba(0,0,0,0.045), transparent 55%),
    radial-gradient(700px 420px at 20% 60%, rgba(0,0,0,0.03), transparent 60%),
    #ffffff;
}
body.theme-light .kicker{
  border-color: rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.03);
  color: rgba(11,16,32,0.70);
}
body.theme-light .subhead{ color: rgba(11,16,32,0.72); }
body.theme-light .card{
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 18px 60px rgba(0,0,0,0.08);
}
body.theme-light .card p{ color: rgba(11,16,32,0.72); }

/* Full-screen white article */
.article-shell{
  background: #ffffff;
  color: #0b1020;
  border-radius: 0;
  padding: 22px 0;
  box-shadow: none;
  border: 0;
}
.article-inner{
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
}
.article-title{
  margin: 0;
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: -0.6px;
  line-height: 1.1;
}
.article-meta{
  margin-top: 12px;
  color: rgba(11,16,32,0.65);
  font-weight: 800;
  font-size: 13.5px;
  display:flex; gap:10px; flex-wrap:wrap;
}
.article-meta .chip{
  background: rgba(10,16,32,0.04);
  border: 1px solid rgba(10,16,32,0.08);
  padding: 6px 10px;
  border-radius: 999px;
}
.article-lede{
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(11,16,32,0.86);
}
.article-inner h2{ margin: 22px 0 8px; font-size: 18px; letter-spacing: -0.2px; }
.article-inner p, .article-inner li{ font-size: 16.5px; line-height: 1.9; color: rgba(11,16,32,0.84); }
.article-inner ul{ margin: 10px 0 0 20px; }
.article-inner a{ color: #145bff; text-decoration:none; font-weight: 900; }
.article-inner a:hover{ text-decoration: underline; }

.article-cta{
  margin-top: 26px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0,0,0,0.03), rgba(0,0,0,0.02));
  border: 1px solid rgba(0,0,0,0.08);
}
.article-cta h3{ margin: 0 0 8px; font-size: 18px; letter-spacing: -0.2px; }
.article-cta p{ margin: 0 0 12px; color: rgba(11,16,32,0.76); }
.article-cta .cta-row{ display:flex; flex-wrap:wrap; gap:10px; }
.article-cta .cta-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 16px; border-radius: 999px;
  border: 0;
  background: #0b1020;
  color: #fff;
  font-weight: 900;
  text-decoration:none;
}
.article-cta .cta-btn.secondary{
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.10);
  color: #0b1020;
}

/* Responsive */
@media (max-width: 980px){
  .grid-3{ grid-template-columns: 1fr; }
  .blog-list{ grid-template-columns: 1fr; }
}
@media (max-width: 760px){
  .nav{ display:none; }
  .nav-toggle{ display:flex; }
  .main{ padding-top: 10px; }
  .btn{ padding: 13px 16px; }
  .article-shell{ padding: 18px 0; }
}

.input{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  margin-bottom:10px;
  outline:none;
}
textarea.input{ min-height: 120px; resize: vertical; }

body.theme-light .input{
  border-color: rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.03);
  color: #0b1020;
}
/* Blog hero image */
.article-hero{
  max-width: 820px;
  margin: 0 auto 18px;
  padding: 0 16px;
}
.article-hero img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.18);
}

/* Split section (text + image) */
.split{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}
.split .split-text{
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.split .split-text h2{
  margin:0 0 10px;
  font-size: 22px;
  letter-spacing: -0.3px;
}
.split .split-text p{
  margin:0;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  font-size: 15.5px;
}
.split .split-media{
  border-radius: 22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 60px rgba(0,0,0,0.32);
  background: rgba(255,255,255,0.04);
}
.split .split-media img{
  width:100%;
  height:100%;
  display:block;
  object-fit: cover;
  min-height: 240px;
}
@media (max-width: 980px){
  .split{ grid-template-columns: 1fr; }
  .split .split-media img{ min-height: 220px; }
}

body.theme-light .split .split-text{
  border-color: rgba(0,0,0,0.08);
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(0,0,0,0.08);
}
body.theme-light .split .split-text p{ color: rgba(11,16,32,0.72); }
body.theme-light .split .split-media{
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 18px 60px rgba(0,0,0,0.10);
}

/* Anchor cards */
a.card{ color: inherit; text-decoration:none; display:block; }
a.card:hover{ transform: translateY(-1px); }

.container{max-width:1120px;margin:0 auto;padding:0 18px;}

main.container{width:100%;}

/* Case study result icons */
.result-card{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.result-icon{
  width:38px;
  height:38px;
}

/* Rotating hero cards sizing */
.band .card,
.band .service-card,
.band .pill,
.band .tile{
  min-height: 86px;
}

.band .card{
  padding-top: 16px;
  padding-bottom: 16px;
}

.band .card h3{
  margin-top: 0;
  margin-bottom: 6px;
}

.band .card p{
  margin: 0;
  line-height: 1.45;
}

/* Mini icons used across the site */
.icon-row{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top: 10px;
  opacity: 0.95;
}
.mini-icon{
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 10px rgba(59,130,246,0.25));
}
/* Cards with mini icons */
.card .mini-icon{
  width: 32px;
  height: 32px;
  margin-bottom: 6px;
}

/* Break section between hero band and content */
.section-break{
  margin-top: 10px;
}
.section-break .break-inner{
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.28);
}
@media (max-width: 720px){
  .section-break .break-inner{ padding: 16px; border-radius: 22px; }
}

/* Homepage What We Do block under rotating band */
.what-we-do-block{
  margin-top: 18px;
}
.what-we-do-block .grid-3{
  margin-top: 14px;
}

/* Divider under rotating band */
.hero-fade-divider{
  height: 132px;
  width: 100%;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0) 0%,
    rgba(59,130,246,0.22) 45%,
    rgba(0,0,0,0) 100%
  );
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin: 18px 0 28px;
}

@media (max-width: 768px){
  .hero-fade-divider{
    height: 92px;
    margin: 12px 0 18px;
  }
}

.what-we-do-block{ padding-top: 10px; }

/* Strong section break between hero (with rotating band) and content */
.hero-divider{
  height: 110px;
  width: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(59,130,246,0.20) 50%,
    rgba(0,0,0,0) 100%
  );
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin: 12px 0 18px;
}
.hero{
  position: relative;
  overflow: hidden;
}
.what-we-do-block{
  position: relative;
  z-index: 1;
}
@media (max-width: 768px){
  .hero-divider{ height: 86px; margin-bottom: 16px; }
}

@media (max-width: 768px){
  .hero-divider{ height: 84px; margin: 10px 0 14px; }
  .service{ min-width: 230px; min-height: 86px; }
}



/* =========================
   MonstaMedia Site Patch
   (safe overrides / bug fixes)
   ========================= */

/* Prevent horizontal scroll from full-bleed sections */
html, body { overflow-x: hidden; }

/* Full-bleed breakout for marquee bands (works inside padded containers) */
.band-wrap{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Ensure marquee isn't clipped by any parent stacking contexts */
.testimonial-band{ overflow: visible; position: relative; }
.band-wrap, .band-shell, .band { overflow: visible; }

/* Slightly reduce chance of huge empty space from accidental dividers */
.hero-divider{ display:none; }


/* =========================
   Case Studies List (clean rows)
   ========================= */
.case-list{
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.case-row{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 6px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  transition: background .18s ease, transform .18s ease;
}
.case-row-left{ display:flex; flex-direction:column; gap:6px; }
.case-title{
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.case-sub{
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  max-width: 68ch;
}
.case-row-right{
  color: rgba(255,255,255,0.55);
  font-size: 18px;
  padding-top: 2px;
}
.case-row:hover{
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}
.case-row:focus{
  outline: 2px solid rgba(80,160,255,0.55);
  outline-offset: 4px;
}


/* =========================
   Case Study Redesign (clean, less bubbly)
   ========================= */
.cs-shell{ padding-top: 10px; }
.cs-hero{ padding: 26px 0 18px; }
.cs-kicker{
  display:inline-flex; align-items:center; gap:10px;
  color: rgba(255,255,255,0.70);
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.cs-title{ margin-top: 10px; font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.03em; }
.cs-sub{ margin-top: 10px; color: rgba(255,255,255,0.72); max-width: 70ch; line-height: 1.65; }

.cs-media{
  margin-top: 18px;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 14px; /* less bubbly than cards */
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.cs-media img{ width:100%; height:100%; object-fit: cover; display:block; }

.cs-metrics{
  margin-top: 16px;
  display:flex; flex-wrap:wrap; gap:14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.cs-metric{
  flex: 1 1 220px;
  padding: 10px 6px;
}
.cs-metric .label{ color: rgba(255,255,255,0.60); font-size: 12.5px; letter-spacing:.04em; text-transform: uppercase; }
.cs-metric .value{ margin-top: 6px; font-size: 22px; font-weight: 800; color: rgba(255,255,255,0.92); }
.cs-metric .note{ margin-top: 6px; color: rgba(255,255,255,0.62); line-height: 1.55; }

.cs-grid{
  margin-top: 20px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media(min-width: 980px){
  .cs-grid{ grid-template-columns: 1fr 1fr; gap: 18px; }
}
.cs-block{
  padding: 18px 16px;
  border-radius: 14px; /* slightly rounded, not bubbly */
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.cs-block h2{ margin: 0 0 10px; font-size: 16px; letter-spacing:-0.01em; }
.cs-block ul{ margin: 0; padding-left: 18px; color: rgba(255,255,255,0.70); line-height: 1.7; }
.cs-block p{ margin: 0; color: rgba(255,255,255,0.70); line-height: 1.7; }

.cs-cta{
  margin-top: 22px;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  display:flex; align-items:center; justify-content:space-between; gap: 14px; flex-wrap:wrap;
}
.cs-cta h3{ margin:0; font-size: 16px; }
.cs-cta p{ margin:6px 0 0; color: rgba(255,255,255,0.68); max-width: 70ch; }


/* =========================
   Case Study Brief (source + what tested)
   ========================= */
.cs-brief-inner{
  padding: 16px 0 6px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.cs-brief-inner h2{
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.cs-brief-inner p{
  margin: 0 0 10px;
  color: rgba(255,255,255,0.70);
  line-height: 1.75;
  max-width: 78ch;
}
.cs-brief-inner .muted{
  color: rgba(255,255,255,0.58);
  font-size: 13px;
}


/* =========================
   Blog Hero Image
   ========================= */
.article-hero-img{
  width: 100%;
  height: auto;
  display: block;
  margin: 14px 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  object-fit: cover;
}
.theme-light .article-hero-img{
  border-color: rgba(0,0,0,0.10);
}


/* ===== V11 polish: reduce hero clutter + add thumbnails ===== */
.hero{ padding: 34px 0 18px; }
.actions{ align-items:flex-start; }
.hero-links{
  display:flex; flex-wrap:wrap; gap:10px; align-items:center;
  margin-top: 10px;
}
.hero-links .dot{ opacity:.55; }
.link{
  color: rgba(255,255,255,.84);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.18);
  padding-bottom: 2px;
}
.link:hover{ border-bottom-color: rgba(255,255,255,.45); }
.hero-trust{
  margin: 12px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Make sections breathe */
.section{ margin-top: 30px; }
.section-title{ margin-bottom: 10px; }
.section-desc{ margin-bottom: 18px; }

/* Blog thumbnails */
.blog-grid{ gap:14px; }
.blog-card{ position:relative; overflow:hidden; }
.blog-card .thumb{
  width:100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  margin-bottom: 12px;
  background:
    radial-gradient(1200px 340px at 10% 10%, rgba(64,140,255,.32), rgba(0,0,0,0)),
    radial-gradient(900px 300px at 85% 0%, rgba(0,216,255,.20), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,0));
  border: 1px solid rgba(255,255,255,0.10);
}
.blog-card::after{
  content: attr(data-topic);
  position:absolute;
  top: 12px; left: 12px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.86);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Case studies hub upgrades */
.case-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.case-row{
  display:grid;
  grid-template-columns: 110px 1fr auto;
  gap: 12px;
  align-items:center;
  padding: 14px;
}
.case-thumb{
  width:110px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background:
    radial-gradient(900px 360px at 20% 20%, rgba(64,140,255,.26), rgba(0,0,0,0)),
    radial-gradient(900px 360px at 90% 20%, rgba(0,216,255,.16), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,0));
  border: 1px solid rgba(255,255,255,0.10);
}
.case-chips{ margin-top: 10px; display:flex; flex-wrap:wrap; gap:8px; }

@media (min-width: 860px){
  .hero{ padding: 54px 0 24px; }
  .case-row{ grid-template-columns: 140px 1fr auto; padding: 18px; }
  .case-thumb{ width:140px; }
  .case-grid{ grid-template-columns: 1fr 1fr; }
}



.case-row{
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
}
.case-row:hover{ background: rgba(255,255,255,0.05); }
.case-list{ border-top: 0; gap: 12px; }


/* === Legacy-style hero (top of landing page) === */
.hero-legacy{
  padding: clamp(72px, 12vh, 120px) 0 28px;
}
.hero-legacy-inner{
  max-width: 980px;
}
.hero-legacy h1{
  margin: 0 0 18px;
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: left;
}
.hero-legacy .hero-lead{
  margin: 0 0 14px;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.92;
  text-align: left;
}
.hero-legacy .hero-sub{
  margin: 0 0 26px;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
  text-align: left;
}
.hero-legacy-cta{
  display:flex;
  gap: 18px;
  align-items:center;
  flex-wrap: wrap;
}
.hero-legacy-cta .btn.primary{
  padding: 14px 22px;
  border-radius: 999px;
}
.hero-legacy-cta .btn.ghost{
  padding: 12px 2px;
  border-radius: 999px;
  background: transparent !important;
  border: 1px solid transparent;
  color: rgba(255,255,255,0.92);
  opacity: 0.95;
}
.hero-legacy-cta .btn.ghost:hover{
  opacity: 1;
  text-decoration: underline;
}
@media (max-width: 700px){
  .hero-legacy{ padding-top: 64px; }
  .hero-legacy h1{ font-size: 40px; }
}
