/* ============================================================
   PROKITS HOMEPAGE — homepage.css
   Modern, editorial design with purple brand identity
   ============================================================ */

/* ── SHARED UTILITIES ────────────────────────────────────── */
.hm-wrap {
  max-width: var(--pk-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hm-section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  margin-bottom: 2.4rem;
}

.hm-section-title {
  font-family: var(--pk-font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--pk-gray-900);
  margin: 0;
  line-height: 1.2;
}

.hm-section-title--light { color: var(--pk-white); }

.hm-label {
  display: inline-block;
  font-family: var(--pk-font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pk-purple);
  background: var(--pk-purple-xlight);
  padding: .3rem .9rem;
  border-radius: var(--pk-radius-pill);
}

.hm-label--light {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
}

.hm-section-all {
  margin-left: auto;
  font-family: var(--pk-font-head);
  font-size: .88rem;
  font-weight: 600;
  color: var(--pk-purple);
  transition: gap .2s;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.hm-section-all:hover { color: var(--pk-purple-light); }

/* Tags */
.hm-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: var(--pk-radius-pill);
}

.hm-tag--purple {
  color: var(--pk-purple);
  background: var(--pk-purple-xlight);
}

/* Buttons */
.hm-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--pk-font-head);
  font-weight: 700;
  border-radius: var(--pk-radius-pill);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  cursor: pointer;
  white-space: nowrap;
}

.hm-btn--primary {
  background: var(--pk-purple);
  color: var(--pk-white) !important;
  padding: .85rem 2rem;
  font-size: .95rem;
  box-shadow: 0 4px 18px rgba(91,33,182,.35);
}

.hm-btn--primary:hover {
  background: var(--pk-purple-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(91,33,182,.45);
  color: var(--pk-white) !important;
}

.hm-btn--ghost {
  background: transparent;
  color: rgba(255,255,255,.85) !important;
  padding: .85rem 1.8rem;
  font-size: .95rem;
  border: 1.5px solid rgba(255,255,255,.3);
}

.hm-btn--ghost:hover {
  background: rgba(255,255,255,.1);
  color: var(--pk-white) !important;
  border-color: rgba(255,255,255,.5);
}

.hm-btn--sm {
  padding: .6rem 1.4rem;
  font-size: .86rem;
}

.hm-btn--white {
  background: var(--pk-white);
  color: var(--pk-purple) !important;
  padding: .85rem 2rem;
  font-size: .95rem;
  box-shadow: 0 4px 18px rgba(0,0,0,.15);
}

.hm-btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
  color: var(--pk-purple-dark) !important;
}

.hm-btn--outline-white {
  background: transparent;
  color: var(--pk-white) !important;
  padding: .85rem 2rem;
  font-size: .95rem;
  border: 2px solid rgba(255,255,255,.5);
}

.hm-btn--outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--pk-white);
  color: var(--pk-white) !important;
}

/* ── HERO ────────────────────────────────────────────────── */
.hm-hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--pk-gray-900);
}

/* Animated grid background */
.hm-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hm-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91,33,182,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,33,182,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Glowing orbs */
.hm-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: hm-float 8s ease-in-out infinite;
}

.hm-hero__orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(91,33,182,.5) 0%, transparent 70%);
  top: -15%; left: -10%;
  animation-delay: 0s;
}

.hm-hero__orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,.4) 0%, transparent 70%);
  bottom: -10%; right: -5%;
  animation-delay: -3s;
}

.hm-hero__orb--3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(245,158,11,.25) 0%, transparent 70%);
  top: 30%; right: 20%;
  animation-delay: -6s;
}

@keyframes hm-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* Hero content */
.hm-hero__inner {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
  width: 100%;
}

.hm-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--pk-font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  background: rgba(91,33,182,.4);
  border: 1px solid rgba(91,33,182,.6);
  padding: .4rem 1.1rem;
  border-radius: var(--pk-radius-pill);
  margin-bottom: 1.8rem;
  backdrop-filter: blur(8px);
}

.hm-hero__badge-dot {
  width: 7px; height: 7px;
  background: var(--pk-accent);
  border-radius: 50%;
  animation: hm-pulse 2s ease-in-out infinite;
}

@keyframes hm-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(.85); }
}

.hm-hero__title {
  font-family: var(--pk-font-head);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--pk-white);
  margin: 0 0 1.2rem;
  letter-spacing: -2px;
}

.hm-hero__title-grad {
  background: linear-gradient(135deg, var(--pk-accent) 0%, #f97316 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hm-hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.7);
  max-width: 560px;
  margin: 0 auto 2.4rem;
  line-height: 1.65;
  font-weight: 300;
}

.hm-hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hm-hero__stats {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  padding: 1rem 2rem;
  border-radius: var(--pk-radius-lg);
}

.hm-stat { text-align: center; }

.hm-stat__num {
  display: block;
  font-family: var(--pk-font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--pk-white);
  line-height: 1;
}

.hm-stat__label {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
  letter-spacing: .5px;
  white-space: nowrap;
}

.hm-stat__div {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.15);
}

/* ── MARQUEE TICKER ──────────────────────────────────────── */
.hm-ticker {
  background: var(--pk-purple);
  padding: .75rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.1);
}

.hm-ticker__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: hm-marquee 35s linear infinite;
}

@keyframes hm-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.33%); }
}

.hm-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 0 1.5rem;
  font-family: var(--pk-font-head);
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  letter-spacing: .5px;
  white-space: nowrap;
}

.hm-ticker__dot {
  font-size: .5rem;
  color: var(--pk-accent);
  opacity: .8;
}

/* ── CATEGORY STRIP ──────────────────────────────────────── */
.hm-cats {
  background: var(--pk-white);
  border-bottom: 1px solid var(--pk-gray-200);
  position: sticky;
  top: 60px;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(91,33,182,.06);
}

.hm-cats__inner {
  display: flex;
  gap: .5rem;
  padding: .9rem 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.hm-cats__inner::-webkit-scrollbar { display: none; }

.hm-cat {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--pk-font-head);
  font-size: .82rem;
  font-weight: 600;
  color: var(--pk-gray-600);
  background: var(--pk-gray-100);
  padding: .45rem 1.1rem;
  border-radius: var(--pk-radius-pill);
  border: 1.5px solid transparent;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
}

.hm-cat:hover {
  background: var(--pk-purple-xlight);
  color: var(--pk-purple);
  border-color: rgba(91,33,182,.2);
}

.hm-cat--active {
  background: var(--pk-purple-xlight);
  color: var(--pk-purple) !important;
  border-color: rgba(91,33,182,.25);
}

.hm-cat__icon { font-size: .9em; }

/* ── FEATURED POST ───────────────────────────────────────── */
.hm-featured {
  padding: 4rem 1.5rem 0;
}

.hm-featured__card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--pk-white);
  border: 1px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-lg);
  overflow: hidden;
  box-shadow: var(--pk-shadow);
  transition: box-shadow .3s, transform .3s;
}

.hm-featured__card:hover {
  box-shadow: var(--pk-shadow-lg);
  transform: translateY(-3px);
}

.hm-featured__img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.hm-featured__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.hm-featured__card:hover .hm-featured__img img {
  transform: scale(1.04);
}

.hm-featured__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91,33,182,.15) 0%, transparent 60%);
}

.hm-featured__img--placeholder {
  background: linear-gradient(135deg, var(--pk-purple-dark), var(--pk-purple-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hm-featured__placeholder-inner span {
  font-size: 5rem;
  opacity: .6;
}

.hm-featured__body {
  padding: 2.5rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .8rem;
}

.hm-featured__meta {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.hm-featured__date {
  font-size: .8rem;
  color: var(--pk-gray-400);
  font-weight: 500;
}

.hm-featured__title {
  font-family: var(--pk-font-head);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.hm-featured__title a {
  color: var(--pk-gray-900);
  transition: color .2s;
}

.hm-featured__title a:hover { color: var(--pk-purple); }

.hm-featured__excerpt {
  font-size: .95rem;
  color: var(--pk-gray-600);
  line-height: 1.65;
  margin: 0;
}

/* ── ARTICLE TYPES GRID ──────────────────────────────────── */
.hm-types {
  padding: 4.5rem 1.5rem;
}

.hm-types__grid {
  display: grid;
  /* base desktop: 5 cols — overridden in breakpoints below */
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
}

.hm-type-card {
  background: var(--pk-white);
  border: 1.5px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-lg);
  padding: 1.8rem 1.4rem;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  position: relative;
  overflow: hidden;
}

.hm-type-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.hm-type-card:hover::before { transform: scaleX(1); }

.hm-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
  border-color: transparent;
}

.hm-type-card__icon {
  font-size: 2rem;
  line-height: 1;
}

.hm-type-card__name {
  font-family: var(--pk-font-head);
  font-size: 1rem;
  font-weight: 800;
  color: var(--pk-gray-900);
  margin: 0;
}

.hm-type-card__desc {
  font-size: .82rem;
  color: var(--pk-gray-600);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.hm-type-card__cta {
  font-family: var(--pk-font-head);
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
  display: block;
}

/* ── POSTS GRID — Rewritten v0.1.13 ──────────────────────── */
.hm-posts {
  padding: 0 1.5rem 4.5rem;
}

/* ── Hero + Side Layout ── */
.hm-posts__hero-wrap {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
  align-items: start;
}

.hm-posts__side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Bottom Row ── */
.hm-posts__bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

/* ══ BASE CARD ══ */
.hm-card {
  background: var(--pk-white);
  border: 1px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: var(--pk-shadow-sm);
}

.hm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pk-shadow-lg);
  border-color: rgba(91,33,182,.2);
}

/* ── Image wrapper ── */
.hm-card__img-wrap {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--pk-purple-xlight);
  flex-shrink: 0;
  text-decoration: none;
}

.hm-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.hm-card:hover .hm-card__img-wrap img {
  transform: scale(1.05);
}

/* ── No image fallback ── */
.hm-card__no-img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pk-purple-dark), var(--pk-purple-light));
  font-family: var(--pk-font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(255,255,255,.25);
  letter-spacing: -1px;
}

/* ── Category badge ── */
.hm-card__badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  font-family: var(--pk-font-head);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--pk-purple);
  background: var(--pk-white);
  padding: .22rem .65rem;
  border-radius: var(--pk-radius-pill);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  text-decoration: none;
  z-index: 2;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.hm-card__badge:hover {
  background: var(--pk-purple);
  color: var(--pk-white);
}

/* ── Image overlay ── */
.hm-card__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.25) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Card body ── */
.hm-card__body {
  padding: 1.3rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}

/* ── Meta row ── */
.hm-card__meta {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .74rem;
  color: var(--pk-gray-400);
  font-weight: 500;
  flex-wrap: wrap;
}

.hm-card__date { color: var(--pk-gray-400); }
.hm-card__sep  { opacity: .4; }

/* ── Title ── */
.hm-card__title {
  font-family: var(--pk-font-head);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.38;
  margin: 0;
  color: var(--pk-gray-900);
}

.hm-card__title a {
  color: var(--pk-gray-900);
  text-decoration: none;
  transition: color .2s;
}

.hm-card__title a:hover { color: var(--pk-purple); }

/* ── Excerpt ── */
.hm-card__excerpt {
  font-size: .84rem;
  color: var(--pk-gray-600);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Read more ── */
.hm-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--pk-font-head);
  font-size: .8rem;
  font-weight: 700;
  color: var(--pk-purple);
  text-decoration: none;
  margin-top: auto;
  padding-top: .3rem;
  transition: gap .2s, color .2s;
}

.hm-card__readmore:hover {
  gap: .55rem;
  color: var(--pk-purple-light);
}

/* ══ HERO CARD ══ */
.hm-card--hero .hm-card__img-wrap {
  aspect-ratio: 16/10;
}

.hm-card--hero .hm-card__body {
  padding: 1.6rem 1.8rem 1.8rem;
  gap: .7rem;
}

.hm-card__title--hero {
  font-size: clamp(1.15rem, 2vw, 1.5rem) !important;
  line-height: 1.3 !important;
}

.hm-card--hero .hm-card__excerpt {
  font-size: .9rem;
  -webkit-line-clamp: 3;
}

.hm-card--hero .hm-card__readmore {
  font-size: .88rem;
  margin-top: .4rem;
}

/* ══ SIDE CARD ══ */
.hm-card--side {
  flex-direction: row !important;
  border-radius: var(--pk-radius);
  min-height: 0;
}

.hm-card--side .hm-card__img-wrap--side {
  width: 130px;
  min-width: 130px;
  aspect-ratio: unset;
  align-self: stretch;
  border-radius: 0;
  flex-shrink: 0;
}

.hm-card--side .hm-card__img-wrap--side img {
  height: 100%;
  min-height: 110px;
}

.hm-card--side .hm-card__no-img {
  min-height: 110px;
  font-size: 1.4rem;
}

.hm-card--side .hm-card__body {
  padding: 1rem 1.2rem;
  gap: .4rem;
}

.hm-card--side .hm-card__title {
  font-size: .9rem;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-card--side .hm-card__badge {
  top: .5rem;
  left: .5rem;
  font-size: .62rem;
}

/* ══ GRID CARD (bottom row) ══ */
.hm-card--grid .hm-card__img-wrap {
  aspect-ratio: 16/10;
}

.hm-card--grid .hm-card__body {
  padding: 1.2rem 1.3rem 1.3rem;
}

.hm-card--grid .hm-card__excerpt {
  -webkit-line-clamp: 2;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hm-posts__hero-wrap {
    grid-template-columns: 1.4fr 1fr;
  }
  .hm-posts__bottom {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
  }
}

@media (max-width: 900px) {
  .hm-posts__hero-wrap {
    grid-template-columns: 1fr;
  }
  .hm-posts__side {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hm-card--side {
    flex: 1;
    min-width: 260px;
    flex-direction: column !important;
  }
  .hm-card--side .hm-card__img-wrap--side {
    width: 100%;
    min-width: unset;
    aspect-ratio: 16/9;
    align-self: auto;
  }
  .hm-posts__bottom {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hm-posts { padding: 0 1.2rem 3rem; }
  .hm-posts__hero-wrap { gap: 1rem; margin-bottom: 1rem; }
  .hm-posts__side { flex-direction: column; }
  .hm-card--side {
    flex-direction: row !important;
    min-width: 0;
  }
  .hm-card--side .hm-card__img-wrap--side {
    width: 110px;
    min-width: 110px;
    aspect-ratio: unset;
    align-self: stretch;
  }
  .hm-posts__bottom {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hm-card--hero .hm-card__body { padding: 1.2rem 1.3rem 1.4rem; }
  .hm-card--side .hm-card__img-wrap--side { width: 95px; min-width: 95px; }
  .hm-card--side .hm-card__body { padding: .85rem 1rem; }
  .hm-card--side .hm-card__title { font-size: .84rem; }
}

/* ── TOOLS SPOTLIGHT ─────────────────────────────────────── */
.hm-tools {
  background: var(--pk-gray-900);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.hm-tools::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 10% 50%, rgba(91,33,182,.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 90% 30%, rgba(124,58,237,.15) 0%, transparent 70%);
  pointer-events: none;
}

.hm-tools .hm-wrap { position: relative; z-index: 1; }

.hm-tools__grid {
  display: grid;
  /* base desktop: 3 cols — overridden in breakpoints below */
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.hm-tool-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--pk-radius-lg);
  padding: 1.6rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: background .2s, border-color .2s, transform .2s;
  backdrop-filter: blur(8px);
}

.hm-tool-card:hover {
  background: rgba(91,33,182,.25);
  border-color: rgba(91,33,182,.4);
  transform: translateY(-3px);
}

.hm-tool-card__icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.hm-tool-card__body { flex: 1; min-width: 0; }

.hm-tool-card__name {
  font-family: var(--pk-font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pk-white);
  margin: 0 0 .3rem;
}

.hm-tool-card__tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  color: var(--pk-accent);
  background: rgba(245,158,11,.12);
  padding: .15rem .6rem;
  border-radius: var(--pk-radius-pill);
  border: 1px solid rgba(245,158,11,.25);
  margin-bottom: .5rem;
}

.hm-tool-card__desc {
  font-size: .84rem;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
  margin: 0;
}

/* ── WHY PROKITS ─────────────────────────────────────────── */
.hm-why {
  padding: 5rem 1.5rem;
}

.hm-why__inner {
  display: grid;
  /* base desktop: 2 cols — overridden in breakpoints below */
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hm-why__text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hm-why__title {
  font-family: var(--pk-font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--pk-gray-900);
  margin: 0;
}

.hm-why__title em {
  font-style: normal;
  color: var(--pk-purple);
  position: relative;
}

.hm-why__title em::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--pk-purple);
  border-radius: 2px;
  opacity: .3;
}

.hm-why__desc {
  font-size: 1rem;
  color: var(--pk-gray-600);
  line-height: 1.7;
  margin: 0;
}

.hm-why__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.hm-why__list li {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .94rem;
  color: var(--pk-gray-700, #374151);
  font-weight: 500;
}

.hm-why__check {
  width: 22px; height: 22px;
  background: var(--pk-purple);
  color: var(--pk-white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Why cards grid */
.hm-why__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hm-why__card {
  background: var(--pk-white);
  border: 1.5px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-lg);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.hm-why__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pk-shadow);
  border-color: rgba(91,33,182,.2);
}

.hm-why__card--1 { border-top: 3px solid var(--pk-purple); }
.hm-why__card--2 { border-top: 3px solid #0ea5e9; }
.hm-why__card--3 { border-top: 3px solid #10b981; }
.hm-why__card--4 { border-top: 3px solid var(--pk-accent); }

.hm-why__card-icon { font-size: 1.8rem; line-height: 1; }

.hm-why__card strong {
  font-family: var(--pk-font-head);
  font-size: .95rem;
  font-weight: 700;
  color: var(--pk-gray-900);
}

.hm-why__card p {
  font-size: .82rem;
  color: var(--pk-gray-600);
  margin: 0;
  line-height: 1.5;
}

/* ── CTA BANNER ──────────────────────────────────────────── */
.hm-cta {
  position: relative;
  overflow: hidden;
  background: var(--pk-purple-dark);
  padding: 5rem 1.5rem;
  text-align: center;
}

.hm-cta__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hm-cta__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.hm-cta__orb--1 {
  width: 400px; height: 400px;
  background: rgba(124,58,237,.5);
  top: -100px; left: -100px;
}

.hm-cta__orb--2 {
  width: 350px; height: 350px;
  background: rgba(245,158,11,.2);
  bottom: -80px; right: -80px;
}

.hm-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.hm-cta__title {
  font-family: var(--pk-font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--pk-white);
  margin: 0 0 1rem;
  line-height: 1.15;
}

.hm-cta__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  margin: 0 0 2.2rem;
  line-height: 1.6;
}

.hm-cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════
   ASTRA OVERRIDE — prevent theme from squashing our layout
   ══════════════════════════════════════════════════════════ */
.page-template-templates-template-homepage .site-content,
.page-template-templates-template-homepage #primary,
.page-template-templates-template-homepage .ast-article-post,
.page-template-templates-template-homepage .entry-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

.page-template-templates-template-homepage #secondary { display: none !important; }

.page-template-templates-template-homepage .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* ══════════════════════════════════════════════════════════
   DESKTOP BASE GRIDS — these MUST be defined here (not only
   inside breakpoints) so desktop gets the correct layout
   ══════════════════════════════════════════════════════════ */

/* Featured: image left + body right, side by side */
.hm-featured__card {
  grid-template-columns: 1.1fr 1fr;
}

/* 5-column type cards */
.hm-types__grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
}

/* 3-column tools grid */
.hm-tools__grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

/* 2-column why section */
.hm-why__inner {
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

/* 2-column why cards */
.hm-why__cards {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — desktop → mobile (max-width breakpoints)
   ══════════════════════════════════════════════════════════ */

/* ── 1440px+ (XL desktops) ───────────────────────────────── */
@media (min-width: 1440px) {
  .hm-hero__inner { max-width: 900px; margin: 0 auto; padding: 4.5rem 1.5rem 4rem; }
  .hm-hero__title { font-size: 5rem; letter-spacing: -3px; }
  .hm-hero__sub   { font-size: 1.2rem; }
  .hm-wrap        { max-width: 1280px; }
}

/* ── 1280px ──────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .hm-wrap { max-width: 1100px; }
  .hm-hero__title { font-size: clamp(3rem, 6vw, 5rem); }
}

/* ── 1200px ──────────────────────────────────────────────── */
@media (max-width: 1200px) {
  /* 5 → 3 type cards */
  .hm-types__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  /* last 2 cards stretch to fill row */
  .hm-types__grid .hm-type-card:nth-child(4),
  .hm-types__grid .hm-type-card:nth-child(5) {
    grid-column: span 1;
  }
}

/* ── 1024px (laptops / small desktops) ──────────────────── */
@media (max-width: 1024px) {
  .hm-hero__title { font-size: clamp(2.6rem, 5.5vw, 3.8rem); letter-spacing: -1.5px; }
  .hm-hero__inner { padding: 3.5rem 2rem 3rem; }

  /* 3 → 2 tools */
  .hm-tools__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Why: tighten gap */
  .hm-why__inner { gap: 2.5rem; }

  /* Sections: reduce padding */
  .hm-featured { padding: 3.5rem 1.5rem 0; }
  .hm-types    { padding: 3.5rem 1.5rem; }
  .hm-posts    { padding: 0 1.5rem 3.5rem; }
  .hm-why      { padding: 4rem 1.5rem; }
  .hm-cta      { padding: 4rem 1.5rem; }
  .hm-tools    { padding: 3.5rem 0; }
}

/* ── 900px (large tablets) ───────────────────────────────── */
@media (max-width: 900px) {
  /* Featured: stack vertically */
  .hm-featured__card { grid-template-columns: 1fr; }
  .hm-featured__img  { aspect-ratio: 16/7; }
  .hm-featured__body { padding: 2rem; }

  /* Why: stack vertically */
  .hm-why__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hm-why__cards { grid-template-columns: repeat(2, 1fr); }

  /* Type cards: 3 → 2 cols on this range */
  .hm-types__grid { grid-template-columns: repeat(2, 1fr); }

  /* Tools: 2 → 1 col */
  .hm-tools__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 768px (tablets portrait) ───────────────────────────── */
@media (max-width: 768px) {
  .hm-hero__inner { padding: 3rem 1.5rem 2.8rem; }
  .hm-hero__title { font-size: clamp(2.2rem, 7vw, 3.2rem); letter-spacing: -1px; }
  .hm-hero__sub   { font-size: 1rem; }
  .hm-hero__stats {
    gap: 1rem;
    padding: .9rem 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hm-hero__actions { flex-direction: column; align-items: center; }
  .hm-btn--primary,
  .hm-btn--ghost { width: 100%; max-width: 340px; justify-content: center; }

  /* Sections */
  .hm-featured { padding: 3rem 1.2rem 0; }
  .hm-types    { padding: 3rem 1.2rem; }
  .hm-posts    { padding: 0 1.2rem 3rem; }
  .hm-why      { padding: 3rem 1.2rem; }
  .hm-cta      { padding: 3.5rem 1.2rem; }
  .hm-tools    { padding: 3rem 0; }

  /* Type cards: stay 2 cols */
  .hm-types__grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; }

  /* Tools: 2 → 1 */
  .hm-tools__grid { grid-template-columns: 1fr; gap: .9rem; }

  /* Sticky cats: adjust for smaller header */
  .hm-cats { top: 55px; }
}

/* ── 600px (large phones) ────────────────────────────────── */
@media (max-width: 600px) {
  .hm-hero__badge  { font-size: .7rem; padding: .35rem .9rem; }
  .hm-hero__title  { font-size: 2.2rem; letter-spacing: -.8px; }
  .hm-hero__stats  { gap: .8rem; }
  .hm-stat__num    { font-size: 1.3rem; }
  .hm-stat__div    { height: 26px; }

  /* Type cards: 2 → 1 col, horizontal layout */
  .hm-types__grid  { grid-template-columns: 1fr; gap: .8rem; }
  .hm-type-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
  }
  .hm-type-card__icon { font-size: 1.8rem; flex-shrink: 0; margin-top: .1rem; }
  .hm-type-card__desc { display: none; } /* hide desc to save space */
  .hm-type-card__cta  { display: none; }

  /* Why cards: 2 → 1 col */
  .hm-why__cards { grid-template-columns: 1fr; gap: .8rem; }

  /* CTA buttons full-width */
  .hm-cta__actions { flex-direction: column; align-items: center; }
  .hm-btn--white,
  .hm-btn--outline-white { width: 100%; max-width: 300px; justify-content: center; }

  /* Featured */
  .hm-featured__body { padding: 1.6rem 1.4rem; }
  .hm-featured__title { font-size: 1.3rem; }
}

/* ── 480px (phones) ──────────────────────────────────────── */
@media (max-width: 480px) {
  .hm-hero__inner { padding: 2.5rem 1rem 2.2rem; }
  .hm-hero__title { font-size: 1.9rem; letter-spacing: -.5px; }
  .hm-hero__sub   { font-size: .92rem; margin-bottom: 1.8rem; }
  .hm-hero__stats { gap: .6rem; padding: .75rem 1rem; }
  .hm-stat__label { font-size: .66rem; }
  .hm-hero__badge { font-size: .7rem; letter-spacing: 1px; }

  .hm-section-head { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .hm-section-all  { margin-left: 0; }

  .hm-featured__img  { aspect-ratio: 16/9; }
  .hm-featured__body { padding: 1.4rem 1.1rem; }
  .hm-featured__title { font-size: 1.15rem; }
  .hm-featured__excerpt { font-size: .86rem; }

  .hm-tool-card       { padding: 1.2rem; gap: .8rem; }
  .hm-tool-card__icon { font-size: 1.5rem; }
  .hm-tool-card__name { font-size: .92rem; }
  .hm-tool-card__desc { font-size: .8rem; }

  .hm-why__card { padding: 1.2rem 1.1rem; }

  .hm-cta { padding: 3rem 1rem; }
  .hm-cta__title { font-size: 1.6rem; }
  .hm-cta__desc  { font-size: .9rem; }

  .hm-types { padding: 2.5rem 1rem; }
  .hm-posts { padding: 0 1rem 2.5rem; }
  .hm-why   { padding: 2.5rem 1rem; }
}

/* ── 360px (small phones) ────────────────────────────────── */
@media (max-width: 360px) {
  .hm-hero__title  { font-size: 1.65rem; }
  .hm-hero__badge  { font-size: .65rem; letter-spacing: .8px; }
  .hm-stat__num    { font-size: 1.1rem; }
  .hm-stat__div    { height: 22px; }
  .hm-hero__inner  { padding: 3rem .9rem 2.5rem; }
  .hm-featured__body { padding: 1.2rem 1rem; }
  .hm-type-card { padding: 1rem; }
}

/* ── Landscape phones ────────────────────────────────────── */
@media (max-width: 768px) and (orientation: landscape) {
  .hm-hero__inner { padding: 2rem 2rem 1.8rem; }
  .hm-hero__title { font-size: 2rem; }
  .hm-hero__stats { display: none; }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hm-hero__orb,
  .hm-hero__badge-dot,
  .hm-ticker__track { animation: none !important; }

  .hm-featured__card:hover,
  .hm-type-card:hover,
  .hm-card:hover,
  .hm-tool-card:hover,
  .hm-why__card:hover { transform: none !important; }
}
