/* SurveyRank · shared nav layer (blog button, grouped menus, footer blog column) v1 */
@property --sr-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.nav-main { gap: 2px; }
.nav-main .nav-drop + .nav-drop { margin-left: 2px; }
.nav-drop__panel--sm { min-width: 320px; }
.nav-drop__item--compact { grid-template-columns: 32px 1fr auto; padding: 8px 10px; }
.nav-drop__item--compact .nav-drop__ico { width: 32px; height: 32px; }
.nav-main a[aria-current="page"], .nav-main .nav-drop.is-current .nav-drop__trigger { color: var(--text); }

/* ---------- ★ BLOG BUTTON ---------- */
.sr-blog {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 8px 0 14px; border-radius: 999px;
  color: #fff !important; font: 600 13px/1 var(--font-sans); letter-spacing: .02em; text-decoration: none;
  background: #050b22; transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .3s;
  box-shadow: 0 0 0 0 rgba(77,171,255,0), 0 8px 30px -12px rgba(29,89,245,.9);
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.sr-blog::before { /* running conic ring */
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--sr-a), #1D59F5, #4dabff 18%, #b48cff 34%, #ff7ab6 46%, #f5c04d 60%, #7cf29a 74%, #4dabff 88%, #1D59F5);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: sr-spin 3.2s linear infinite;
}
.sr-blog::after { /* outer glow */
  content: ''; position: absolute; inset: -6px; border-radius: inherit; z-index: -2; filter: blur(14px); opacity: .45;
  background: conic-gradient(from var(--sr-a), #1D59F5, #4dabff, #b48cff, #ff7ab6, #f5c04d, #7cf29a, #1D59F5);
  animation: sr-spin 3.2s linear infinite; transition: opacity .3s;
}
@keyframes sr-spin { to { --sr-a: 360deg; } }
.sr-blog__cv { position: absolute; inset: 1.5px; width: calc(100% - 3px); height: calc(100% - 3px); border-radius: inherit; z-index: -1; pointer-events: none; }
.sr-blog__holo { /* holographic sheen */
  position: absolute; inset: 1.5px; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .35s; pointer-events: none;
  background:
    radial-gradient(120px 60px at var(--mx) var(--my), rgba(255,255,255,.35), transparent 60%),
    linear-gradient(115deg, rgba(77,171,255,.55), rgba(180,140,255,.5) 30%, rgba(255,122,182,.45) 50%, rgba(245,192,77,.45) 70%, rgba(124,242,154,.5));
  background-size: 100% 100%, 220% 100%; background-position: 0 0, calc(var(--mx) * 1.2) 0; mix-blend-mode: screen;
}
.sr-blog__star { width: 14px; height: 14px; flex: none; filter: drop-shadow(0 0 6px rgba(126,200,255,.9)); animation: sr-twinkle 2.4s ease-in-out infinite; }
@keyframes sr-twinkle { 0%,100% { transform: rotate(0) scale(1); } 50% { transform: rotate(45deg) scale(.82); } }
.sr-blog__label { position: relative; text-shadow: 0 0 12px rgba(77,171,255,.6); }
.sr-blog__count {
  font: 700 11px/1 var(--font-mono); padding: 5px 7px; border-radius: 999px; color: #020715;
  background: linear-gradient(135deg, #7ee0ff, #b48cff 55%, #ffd27a); box-shadow: 0 0 12px rgba(126,224,255,.45);
}
.sr-blog:hover { box-shadow: 0 0 0 4px rgba(77,171,255,.12), 0 14px 40px -12px rgba(77,171,255,.9); }
.sr-blog:hover::after { opacity: .85; }
.sr-blog:hover .sr-blog__holo { opacity: .55; }
.sr-blog:active { transform: translate3d(var(--tx,0), var(--ty,0), 0) scale(.96); }
.sr-blog[aria-current="page"] .sr-blog__holo { opacity: .3; }
.sr-blog:focus-visible { outline: 2px solid #7ee0ff; outline-offset: 3px; }
.sr-blog--mobile { display: none; height: 36px; padding: 0 6px 0 11px; gap: 7px; font-size: 12.5px; }
.sr-blog--mobile .sr-blog__count { padding: 4px 6px; font-size: 10px; }

@media (max-width: 1180px) { .header-cta .header-date { display: none !important; } }
@media (max-width: 1040px) { .header-cta .header-btn-desktop.btn-primary { display: none !important; } }
@media (max-width: 900px) {
  .header-cta .sr-blog--desk { display: none; }
  .sr-blog--mobile { display: inline-flex; }
}
@media (max-width: 340px) { .sr-blog--mobile .sr-blog__count { display: none; } }

/* ---------- Mobile nav: blog plaque ---------- */
.mobile-nav a.sr-mblog {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px;
  padding: 18px 18px 16px; margin: 0 0 18px; border: 0; border-radius: 18px; overflow: hidden; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, rgba(29,89,245,.45), transparent 60%), radial-gradient(120% 140% at 100% 100%, rgba(180,140,255,.35), transparent 60%), #071030;
}
.mobile-nav a.sr-mblog::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--sr-a), #1D59F5, #4dabff, #b48cff, #ff7ab6, #f5c04d, #7cf29a, #1D59F5);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: sr-spin 3.2s linear infinite;
}
.sr-mblog__eyebrow { grid-column: 1 / -1; font: 600 10px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: #7ee0ff; }
.sr-mblog__title { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.sr-mblog__sub { grid-column: 1 / 2; font-size: 13px; color: rgba(255,255,255,.7); font-weight: 400; letter-spacing: 0; }
.sr-mblog__go { grid-row: 2 / 4; grid-column: 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #020715; font-size: 20px; }
.sr-mblog .sr-blog__cv { inset: 0; width: 100%; height: 100%; opacity: .9; }

/* ---------- Footer: blog column ---------- */
.footer-grid.footer-grid--5 { grid-template-columns: 1.7fr repeat(4, 1fr); gap: 48px; }
.footer-col--blog h5 { display: flex; align-items: center; gap: 8px; }
.footer-col--blog h5::after { content: 'NEW'; font: 700 9px/1 var(--font-mono); letter-spacing: .1em; color: #020715; background: linear-gradient(135deg, #7ee0ff, #b48cff); padding: 3px 5px; border-radius: 4px; }
.footer-col--blog a.footer-blog-all { color: #7ee0ff; font-weight: 500; }
@media (max-width: 1100px) { .footer-grid.footer-grid--5 { grid-template-columns: 1fr 1fr 1fr; gap: 36px; } .footer-grid--5 .footer-brand { grid-column: 1 / -1; max-width: none; } }
@media (max-width: 900px) { .footer-grid.footer-grid--5 { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid.footer-grid--5 { grid-template-columns: 1fr; } }

/* ---------- Home: blog bento ---------- */
.home-blog__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 40px; }
.home-blog__head .section-subtitle { margin-bottom: 0; }
.home-blog__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 14px; }
.home-blog__grid .bc:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.home-blog__grid .bc:nth-child(6), .home-blog__grid .bc:nth-child(10) { grid-column: span 2; }
.home-blog__more { display: flex; justify-content: center; margin-top: 36px; }
@media (max-width: 1100px) { .home-blog__grid { grid-template-columns: repeat(2, 1fr); } .home-blog__grid .bc:nth-child(1) { grid-row: span 1; grid-auto-rows: 280px; } .home-blog__grid .bc:nth-child(6), .home-blog__grid .bc:nth-child(10) { grid-column: span 1; } .home-blog__grid .bc:nth-child(1) { grid-column: span 2; } }
@media (max-width: 640px) { .home-blog__grid { grid-template-columns: 1fr; grid-auto-rows: 300px; } .home-blog__grid .bc:nth-child(1) { grid-column: span 1; } }

/* ---------- Shared: blog card + fx container ---------- */
.fx { position: relative; overflow: hidden; background: #040a1f; }
.fx > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(.7) contrast(1.05); }
.fx.fx--img > img { opacity: 1; filter: none; }
.fx__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fx::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(2,7,21,0) 55%, rgba(2,7,21,.55)); }

.bc { position: relative; display: grid; grid-template-rows: 1fr auto; border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); border: 1px solid var(--card-border);
  transition: transform .45s cubic-bezier(.22,1,.36,1), border-color .3s, box-shadow .45s; transform: translateZ(0); }
.bc:hover { color: var(--text); border-color: color-mix(in oklab, var(--c, #4dabff) 55%, transparent); transform: translateY(-4px); box-shadow: 0 30px 60px -30px color-mix(in oklab, var(--c, #4dabff) 60%, transparent); }
.bc .fx { min-height: 0; }
.bc__body { position: relative; padding: 16px 18px 18px; display: grid; gap: 8px; background: linear-gradient(180deg, rgba(4,10,31,.6), #040a1f); }
.bc__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 500 10.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bc__chip { color: var(--c, #4dabff); display: inline-flex; align-items: center; gap: 6px; }
.bc__chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.bc__title { font-size: 16px; font-weight: 600; letter-spacing: -.012em; line-height: 1.28; text-wrap: balance; color: #fff; margin: 0; }
.bc__lead { font-size: 13.5px; color: var(--text-3); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bc--xl .bc__title { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.025em; }
.bc--xl .bc__body { padding: 22px 24px 24px; }
.bc__arrow { position: absolute; right: 16px; top: -20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #020715; font-size: 18px; transform: scale(.6); opacity: 0; transition: .35s cubic-bezier(.22,1,.36,1); z-index: 2; }
.bc:hover .bc__arrow { transform: scale(1); opacity: 1; }
.bc__flag { position: absolute; top: 12px; left: 12px; z-index: 2; font: 700 9.5px/1 var(--font-mono); letter-spacing: .12em; padding: 6px 8px; border-radius: 6px; background: rgba(2,7,21,.7); border: 1px solid rgba(255,255,255,.18); color: #ffd27a; backdrop-filter: blur(8px); }

@media (prefers-reduced-motion: reduce) { .sr-blog::before, .sr-blog::after, .mobile-nav a.sr-mblog::before, .sr-blog__star { animation: none; } }
.home-blog { overflow: visible; }
