/* HADAFIN homepage premium layer — professional SaaS typography & sections */
body.home-premium,
body.home-premium .home-mp--premium,
.home-mp--premium {
  --hp-ink: #0c1222;
  --hp-muted: #5b6578;
  --hp-navy: #0b1f3a;
  --hp-line: #e8edf5;
  --hp-surface: #ffffff;
  --hp-soft: #f5f7fb;
  --hp-emerald: #0d9488;
  --hp-gold: #b8860b;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif !important;
  color: var(--hp-ink);
  letter-spacing: -0.01em;
}

body.home-premium .home-mp--premium h1,
body.home-premium .home-mp--premium h2,
body.home-premium .home-mp--premium h3,
body.home-premium .home-mp-brand-mark,
body.home-premium .home-mp-footer-logo,
body.home-premium .home-mp-metric strong {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif !important;
  font-feature-settings: "ss01" on, "kern" on;
}

/* Kill game-like display styling from prior Syne pass */
.home-mp--premium .home-mp-brand-mark {
  font-size: clamp(0.78rem, 1.2vw, 0.88rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: #e8c547 !important;
  opacity: 0.95;
  animation: none !important;
}
.home-mp--premium .home-mp-hero--split h1 {
  font-size: clamp(1.55rem, 3.4vw, 2.45rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.028em !important;
  line-height: 1.18 !important;
  max-width: 16.5ch;
  animation: none !important;
}
.home-mp--premium .home-mp-hero--split .tagline {
  font-size: 0.95rem !important;
  font-weight: 450;
  letter-spacing: -0.005em;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.92) !important;
  max-width: 34rem;
  animation: none !important;
}
.home-mp--premium .home-mp-cta-row { animation: none !important; }
.home-mp--premium .home-mp-hero-ai { animation: none !important; }

.home-mp--premium .home-mp-cta {
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: -0.01em;
  padding: 0.65rem 1.1rem;
}
.home-mp--premium .home-mp-cta--primary {
  background: #0d9488;
  border-color: #0f766e;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.28);
}
.home-mp--premium .home-mp-ai-bubble {
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
}
.home-mp--premium .home-mp-ai-name {
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 0.68rem;
}
.home-mp--premium .home-mp-ai-msg {
  font-size: 0.84rem;
  font-weight: 450;
  line-height: 1.45;
  color: #3d4659;
}
.home-mp--premium .home-mp-section h2,
.home-mp--premium .home-mp-section-head h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hp-ink);
}
.home-mp--premium .home-mp-section {
  padding-top: 1.75rem;
  padding-bottom: 0.35rem;
}

/* Announcement */
.hp-announce {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.7rem 1.25rem;
  background: linear-gradient(90deg, #0b1f3a, #134e4a);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 500;
}
.hp-announce p { margin: 0; flex: 1 1 200px; line-height: 1.4; }
.hp-announce a {
  color: #fbbf24;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}
.hp-announce-pill {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

/* Universal search */
.hp-search-wrap {
  padding: 0 1.15rem 0.25rem;
  margin-top: -1.35rem;
  position: relative;
  z-index: 4;
}
@media (min-width: 640px) { .hp-search-wrap { padding-left: 1.4rem; padding-right: 1.4rem; } }
.hp-search {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: 1rem;
  padding: 0.4rem 0.45rem 0.4rem 0.85rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}
.hp-search-icon { color: #94a3b8; font-size: 1.15rem; }
.hp-search input {
  flex: 1 1 120px;
  border: 0;
  outline: none;
  min-width: 0;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--hp-ink);
  background: transparent;
  padding: 0.55rem 0.35rem;
}
.hp-search-mod {
  border: 1px solid var(--hp-line);
  border-radius: 0.55rem;
  background: var(--hp-soft);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--hp-ink);
  padding: 0.45rem 0.5rem;
  max-width: 120px;
}
.hp-search-go,
.hp-search-ai {
  border: 0;
  border-radius: 0.55rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.6rem 0.95rem;
  cursor: pointer;
}
.hp-search-go { background: var(--hp-navy); color: #fff; }
.hp-search-go:hover { background: #134e4a; }
.hp-search-ai {
  background: #ecfdf5;
  color: #0f766e;
  border: 1px solid #a7f3d0;
}
.hp-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  padding: 0 0.15rem;
}
.hp-suggest-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-right: 0.2rem;
}
.hp-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hp-line);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hp-chip:hover {
  border-color: #99f6e4;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.1);
  color: #0f766e;
}

/* Cards polish */
.home-mp--premium .hp-card,
.home-mp--premium .home-mp-card {
  border-radius: 1.05rem;
  border-color: var(--hp-line);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}
.home-mp--premium .home-mp-card:hover {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}
.home-mp--premium .home-mp-topcat {
  border-radius: 0.85rem;
  font-weight: 600;
}

/* Grids */
.hp-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 720px) { .hp-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.hp-project {
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--hp-line);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hp-project:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1); }
.hp-project-img {
  display: block;
  height: 132px;
  background: #e2e8f0 center/cover no-repeat;
}
.hp-project-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem 1rem;
}
.hp-project-body strong { font-size: 0.92rem; font-weight: 700; color: var(--hp-ink); }
.hp-project-body em { font-style: normal; font-size: 0.75rem; color: var(--hp-muted); font-weight: 500; }

.hp-biz {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--hp-line);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.hp-biz:hover { border-color: #99f6e4; transform: translateY(-1px); }
.hp-biz .ti { font-size: 1.35rem; color: #0d9488; margin-bottom: 0.25rem; }
.hp-biz strong { font-size: 0.92rem; font-weight: 700; }
.hp-biz span { font-size: 0.75rem; color: var(--hp-muted); font-weight: 500; }

/* Split panels */
.hp-split-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 1.4rem 1.25rem;
  border-radius: 1.15rem;
  background: linear-gradient(135deg, #0b1f3a 0%, #12324f 55%, #0f3d3a 100%);
  color: #f1f5f9;
  box-shadow: 0 16px 40px rgba(11, 31, 58, 0.22);
}
@media (min-width: 800px) {
  .hp-split-panel { grid-template-columns: 1.3fr 0.7fr; align-items: center; padding: 1.75rem 1.6rem; }
}
.hp-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fbbf24;
}
.hp-split-panel h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff !important;
  line-height: 1.25;
}
.hp-inline-ctas { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  padding: 0.6rem 1.05rem;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.hp-btn--dark { background: #fff; color: #0b1f3a; }
.hp-btn--dark:hover { background: #f8fafc; }
.hp-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}
.hp-btn--ghost:hover { background: rgba(255,255,255,0.22); border-color: #fff; }
.hp-btn--emerald { background: #0d9488; color: #fff; }
.hp-btn--emerald:hover { background: #0f766e; }
.hp-lead {
  margin: 0.55rem 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e2e8f0; /* stronger than 0.9 alpha slate */
  max-width: 36rem;
}
.hp-ai-stats span {
  color: #cbd5e1;
}
.hp-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.hp-checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f1f5f9;
}
.hp-checklist .ti { color: #34d399; }
.hp-split-panel--ai {
  background: linear-gradient(135deg, #042f2e 0%, #0b1f3a 50%, #123047 100%);
}
.hp-ai-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.hp-ai-stats div {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.85rem;
  padding: 0.85rem 0.7rem;
  text-align: center;
}
.hp-ai-stats strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}
.hp-ai-stats span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
}

/* Agents */
.hp-agents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 720px) { .hp-agents { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .hp-agents { grid-template-columns: repeat(6, 1fr); } }
.hp-agent {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1rem 0.65rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--hp-line);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
.hp-agent:hover { border-color: #99f6e4; }
.hp-agent-av {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: #ecfdf5 center/cover no-repeat;
  display: grid;
  place-items: center;
  color: #0d9488;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}
.hp-agent strong { font-size: 0.78rem; font-weight: 700; line-height: 1.25; }
.hp-agent span { font-size: 0.65rem; color: var(--hp-muted); font-weight: 500; }

/* Trends */
.hp-trends-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 800px) { .hp-trends-grid { grid-template-columns: 1fr 1fr; } }
.hp-trends h3 {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--hp-ink);
}
.hp-city-list { display: grid; gap: 0.4rem; }
.hp-city-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-radius: 0.7rem;
  background: #fff;
  border: 1px solid var(--hp-line);
  text-decoration: none;
  color: var(--hp-ink);
  font-size: 0.85rem;
  font-weight: 600;
}
.hp-city-list em { font-style: normal; color: #0d9488; font-weight: 700; font-size: 0.78rem; }
.hp-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.hp-muted { font-size: 0.75rem; color: var(--hp-muted); font-weight: 500; }

/* Quotes */
.hp-quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 800px) { .hp-quotes { grid-template-columns: repeat(3, 1fr); } }
.hp-quote {
  margin: 0;
  padding: 1.15rem 1.1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--hp-line);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}
.hp-quote p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334155;
  font-weight: 500;
}
.hp-quote footer {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0b1f3a;
}

/* Partners */
.hp-partner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}
.hp-partner-row span {
  padding: 0.65rem 1.1rem;
  border-radius: 0.75rem;
  background: var(--hp-soft);
  border: 1px solid var(--hp-line);
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: -0.01em;
}

/* Blog / Forum */
.hp-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 720px) { .hp-blog-grid { grid-template-columns: repeat(3, 1fr); } }
.hp-blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.05rem 1rem;
  border-radius: 0.95rem;
  background: #fff;
  border: 1px solid var(--hp-line);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
.hp-blog-card:hover { border-color: #99f6e4; }
.hp-blog-card strong { font-size: 0.9rem; font-weight: 700; line-height: 1.35; }
.hp-blog-card span { font-size: 0.72rem; color: var(--hp-muted); font-weight: 500; }

.hp-forum-list {
  display: grid;
  gap: 0.5rem;
}
.hp-forum-list a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid var(--hp-line);
  text-decoration: none;
  color: inherit;
}
.hp-forum-list a:hover { border-color: #99f6e4; }
.hp-forum-list strong { font-size: 0.88rem; font-weight: 700; }
.hp-forum-list span { font-size: 0.72rem; color: var(--hp-muted); text-transform: capitalize; }

/* Metrics spacing under stories */
.home-mp--premium .home-mp-metrics {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.home-mp--premium .home-mp-metric strong {
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Why cards */
.home-mp--premium .home-mp-why-item {
  border-radius: 1rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}
.home-mp--premium .home-mp-why-item h3 {
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* Newsletter */
.home-mp--premium .home-mp-newsletter h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Footer typography */
body.home-premium .home-mp-footer-logo {
  letter-spacing: 0.08em !important;
  font-weight: 800 !important;
}

@media (max-width: 640px) {
  .hp-search { flex-wrap: wrap; }
  .hp-search-mod { max-width: none; flex: 1 1 40%; }
  .hp-search-go { flex: 1 1 auto; }
  .hp-search input { flex: 1 1 100%; order: -1; width: 100%; }
  .hp-search-icon { display: none; }
}
