/* ═════════════════════════════════════════════════════════════
   NARTON ATLAS — HOMEPAGE
   Scoped under .hp. Shared tokens, colours, reveal and section
   headings live in atlas-ui.css (load it first).
═════════════════════════════════════════════════════════════ */

/* ═════════════════ HERO ═════════════════ */
.hp-hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4.5rem, 8vw, 6.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hp-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hp-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26,78,216,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,78,216,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 65% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 60% 40%, #000 30%, transparent 75%);
}
.hp-blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .55;
  animation: hpFloat 18s ease-in-out infinite alternate;
}
.hp-blob--a { width: 480px; height: 480px; background: #c7d6ff; top: -140px; right: 8%; }
.hp-blob--b { width: 380px; height: 380px; background: #e6dbff; bottom: -160px; left: -80px; animation-delay: -7s; }
@keyframes hpFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-40px, 30px) scale(1.08); }
  100% { transform: translate(30px, -20px) scale(.95); }
}

.hp-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
}

.hp-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 500;
  color: var(--blue);
  background: rgba(255,255,255,.75);
  border: 1px solid var(--blue-dim);
  padding: .4rem .85rem .4rem .7rem;
  border-radius: 50px;
  backdrop-filter: blur(6px);
  margin-bottom: 1.4rem;
}
.hp-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #16a34a; position: relative;
}
.hp-pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: #16a34a; animation: hpPing 2s ease-out infinite;
}
@keyframes hpPing { to { transform: scale(2.8); opacity: 0; } }

.hp-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.hp-title em { color: var(--ink); font-style: italic; font-weight: 400; }

.hp-rotator {
  display: block;
  position: relative;
  white-space: nowrap;
  font-size: min(1em, 9vw);
  height: 1.12em;
  overflow: hidden;
  padding-bottom: .04em;
}
.hp-rotator-word {
  display: inline-block;
  background: linear-gradient(100deg, var(--blue) 10%, #6d5bf5 60%, #a855f7 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  transition: transform .55s var(--ease-out), opacity .45s, filter .45s;
}
.hp-rotator-word.is-out { transform: translateY(-70%); opacity: 0; filter: blur(6px); }
.hp-rotator-word.is-pre { transform: translateY(70%);  opacity: 0; filter: blur(6px); transition: none; }

.hp-sub {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

/* Search */
.hp-search {
  position: relative;
  display: flex; align-items: center;
  max-width: 560px;
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: .4rem .4rem .4rem 3rem;
  box-shadow: 0 10px 30px -12px rgba(15,23,42,.18);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease-out);
}
.hp-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 5px rgba(26,78,216,.12), 0 18px 40px -14px rgba(26,78,216,.35);
  transform: translateY(-1px);
}
.hp-search-icon {
  position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 1.05rem; transition: color .2s;
}
.hp-search:focus-within .hp-search-icon { color: var(--blue); }
.hp-search-input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font: 400 1rem var(--font-body);
  color: var(--ink);
  padding: .75rem .5rem .75rem 0;
}
.hp-search-input::placeholder { color: #94a3b8; }
.hp-search-input::-webkit-search-cancel-button { display: none; }
.hp-search-kbd {
  font: 500 .72rem var(--font-body);
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: .12rem .45rem;
  margin-right: .6rem;
  box-shadow: none;
}
.hp-search:focus-within .hp-search-kbd { opacity: 0; }
.hp-search-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 0; border-radius: 13px;
  background: var(--blue); color: #fff;
  font: 600 .92rem var(--font-body);
  padding: .8rem 1.25rem;
  cursor: pointer;
  transition: background .2s, transform .2s var(--ease-out);
}
.hp-search-btn i { transition: transform .25s var(--ease-out); }
.hp-search-btn:hover { background: var(--blue-dark); }
.hp-search-btn:hover i { transform: translateX(3px); }
.hp-search-btn:active { transform: scale(.97); }

/* Chips */
.hp-chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-top: 1.25rem;
}
.hp-chips-label { font-size: .8rem; color: var(--muted); margin-right: .15rem; }
.hp-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 500;
  color: var(--ink) !important;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .35rem .8rem;
  transition: border-color .2s, color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.hp-chip i { color: var(--blue); }
.hp-chip:hover {
  border-color: var(--blue); color: var(--blue) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -6px rgba(26,78,216,.35);
}

/* ── Orbit ─────────────────────────── */
.hp-orbit-wrap { display: grid; place-items: center; }
.hp-orbit {
  --s: min(520px, 42vw);
  --spin: 90s;
  position: relative;
  width: var(--s); height: var(--s);
}
.hp-orbit-core {
  position: absolute; inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: calc(var(--s) * .24); height: calc(var(--s) * .24);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #4b78f0, var(--blue) 55%, var(--blue-dark));
  box-shadow: 0 0 0 10px rgba(26,78,216,.08), 0 0 0 22px rgba(26,78,216,.04), var(--shadow-lg);
  display: grid; place-content: center; text-align: center;
  color: #fff; z-index: 2;
  animation: hpBreathe 5s ease-in-out infinite;
}
@keyframes hpBreathe {
  50% { box-shadow: 0 0 0 16px rgba(26,78,216,.07), 0 0 0 34px rgba(26,78,216,.03), var(--shadow-lg); }
}
.hp-core-mark { font-family: var(--font-display); font-weight: 700; font-size: calc(var(--s) * .085); line-height: 1; }
.hp-core-label { font-size: .68rem; opacity: .8; margin-top: .2rem; letter-spacing: .04em; }

.hp-ring {
  --r: .42;
  position: absolute; inset: 50% auto auto 50%;
  width: calc(var(--s) * var(--r)); height: calc(var(--s) * var(--r));
  margin: calc(var(--s) * var(--r) / -2) 0 0 calc(var(--s) * var(--r) / -2);
  border: 1px dashed rgba(26,78,216,.22);
  border-radius: 50%;
  animation: hpSpin var(--spin) linear infinite;
}
.hp-ring--2 { --r: .69; --spin: 130s; animation-direction: reverse; border-style: solid; border-color: rgba(26,78,216,.1); }
.hp-ring--3 { --r: .97; --spin: 170s; }
@keyframes hpSpin { to { transform: rotate(360deg); } }

.hp-planet {
  --size: clamp(34px, calc(var(--s) * .09), 46px);
  position: absolute; top: 50%; left: 50%;
  width: var(--size); height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  transform: rotate(var(--a)) translateX(calc(var(--s) * var(--r) / 2)) rotate(calc(var(--a) * -1));
}
.hp-planet-body {
  position: relative;
  display: grid; place-items: center;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--paper);
  color: var(--c);
  border: 1.5px solid color-mix(in srgb, var(--c) 25%, transparent);
  box-shadow: var(--shadow-sm);
  font-size: calc(var(--size) * .42);
  animation: hpSpin var(--spin) linear infinite;
  animation-direction: inherit;
  transition: transform .3s var(--ease-out), background .25s, color .25s, box-shadow .25s;
}
/* Counter-rotate so icons stay upright: run the opposite way of the ring */
.hp-ring--1 .hp-planet-body,
.hp-ring--3 .hp-planet-body { animation-direction: reverse; }
.hp-ring--2 .hp-planet-body { animation-direction: normal; }

.hp-planet:hover { z-index: 5; }
.hp-planet:hover .hp-planet-body {
  background: var(--c); color: #fff;
  box-shadow: 0 10px 24px -6px color-mix(in srgb, var(--c) 60%, transparent);
}
.hp-planet-body > i { transition: transform .3s var(--ease-out); }
.hp-planet:hover .hp-planet-body > i { transform: scale(1.15); }
.hp-planet-tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translate(-50%, 4px);
  white-space: nowrap;
  font: 500 .74rem var(--font-body);
  color: #fff; background: var(--ink);
  padding: .3rem .6rem; border-radius: 7px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s var(--ease-out);
}
.hp-planet:hover .hp-planet-tip { opacity: 1; transform: translate(-50%, 0); }

/* Pause the whole system while the user is aiming at a planet */
.hp-orbit:hover .hp-ring,
.hp-orbit:hover .hp-planet-body { animation-play-state: paused; }

/* Scroll cue */
.hp-scroll-cue {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  width: 24px; height: 38px; border-radius: 14px;
  border: 1.5px solid rgba(15,23,42,.25);
  opacity: .8; transition: opacity .2s, border-color .2s;
}
.hp-scroll-cue:hover { opacity: 1; border-color: var(--blue); }
.hp-scroll-cue span {
  position: absolute; left: 50%; top: 7px;
  width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--blue);
  animation: hpScroll 1.8s ease-in-out infinite;
}
@keyframes hpScroll {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ═════════════════ STATS ═════════════════ */
.hp-stats { position: relative; margin-top: -2.25rem; z-index: 2; }
.hp-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 50px -25px rgba(15,23,42,.25);
  overflow: hidden;
}
.hp-stat {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.6rem 1rem;
  position: relative;
}
.hp-stat + .hp-stat::before {
  content: ''; position: absolute; left: 0; top: 25%; bottom: 25%;
  width: 1px; background: var(--border);
}
.hp-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 700; line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hp-stat:last-child .hp-stat-num { color: #16a34a; }
.hp-stat-label { font-size: .82rem; color: var(--muted); margin-top: .25rem; }

/* ═════════════════ STEPS ═════════════════ */
.hp-steps-section { padding: clamp(4rem, 8vw, 6rem) 0 1rem; }
.hp-steps-section .hp-head { text-align: center; }
.hp-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  position: relative;
}
.hp-steps::before {   /* dotted connector behind the icons */
  content: ''; position: absolute; top: 2.75rem; left: 16%; right: 16%;
  border-top: 2px dashed var(--blue-dim);
  z-index: 0;
}
.hp-step {
  position: relative; z-index: 1;
  text-align: center;
  padding: 0 1rem 1rem;
}
.hp-step-icon {
  display: grid; place-items: center;
  width: 5.5rem; height: 5.5rem; margin: 0 auto 1.1rem;
  border-radius: 26px;
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 1.9rem; color: var(--blue);
  transition: transform .4s var(--ease-out), box-shadow .3s, background .3s, color .3s;
}
.hp-step:hover .hp-step-icon {
  transform: translateY(-6px) rotate(-6deg);
  background: var(--blue); color: #fff;
  box-shadow: var(--shadow-lg);
}
.hp-step-num {
  display: block; font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  color: var(--muted); margin-bottom: .3rem;
}
.hp-step h3 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  margin-bottom: .45rem; color: var(--ink);
}
.hp-step p { font-size: .92rem; color: var(--muted); line-height: 1.65; max-width: 280px; margin: 0 auto; }

/* ═════════════════ SUBJECTS ═════════════════ */
.hp-subjects { padding: clamp(3.5rem, 7vw, 5.5rem) 0; scroll-margin-top: 70px; }

.hp-tabs {
  position: relative;
  display: flex; gap: .25rem;
  padding: .3rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow-x: auto; scrollbar-width: none;
  max-width: 100%;
}
.hp-tabs::-webkit-scrollbar { display: none; }
.hp-tabs-pill {
  position: absolute; top: .3rem; bottom: .3rem; left: 0; width: 0;
  background: var(--ink);
  border-radius: 10px;
  transition: transform .45s var(--ease-out), width .45s var(--ease-out);
  z-index: 0;
}
.hp-tab {
  position: relative; z-index: 1;
  border: 0; background: transparent;
  font: 500 .85rem var(--font-body);
  color: var(--muted);
  padding: .5rem .95rem;
  border-radius: 10px;
  white-space: nowrap;
  cursor: pointer;
  transition: color .3s;
}
.hp-tab:hover { color: var(--ink); }
.hp-tab.is-active { color: #fff; }
.hp-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.hp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.hp-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.35rem 1.35rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--ink) !important;
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease-out), box-shadow .35s, border-color .35s,
              opacity .3s, scale .3s var(--ease-out);
}
.hp-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--c) 40%, transparent);
  box-shadow: 0 22px 40px -22px color-mix(in srgb, var(--c) 55%, transparent);
}
/* Spotlight that follows the cursor */
.hp-card-glow {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%),
              color-mix(in srgb, var(--c) 12%, transparent), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.hp-card:hover .hp-card-glow { opacity: 1; }

.hp-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.hp-card-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--c-soft); color: var(--c);
  font-size: 1.3rem;
  transition: transform .4s var(--ease-out), background .3s, color .3s;
}
.hp-card:hover .hp-card-icon { transform: scale(1.08) rotate(-6deg); background: var(--c); color: #fff; }
.hp-card-count {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--c); line-height: 1;
}
.hp-card-count small { font-family: var(--font-body); font-weight: 500; font-size: .72rem; color: var(--muted); }
.hp-card-soon {
  font-size: .68rem; font-weight: 600;
  color: var(--muted); background: var(--bg);
  border: 1px dashed var(--border);
  padding: .2rem .55rem; border-radius: 50px;
}
.hp-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem; font-weight: 700;
  line-height: 1.25; margin: 0 0 .35rem;
  padding-right: 1.5rem;
}
.hp-card-meta {
  display: flex; align-items: center; gap: .45rem;
  font-size: .8rem; color: var(--muted); margin-bottom: .9rem;
}
.hp-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.hp-card-topics { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; }
.hp-topic {
  font-size: .72rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: .18rem .55rem;
  border-radius: 50px;
  white-space: nowrap; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis;
  transition: background .3s, border-color .3s;
}
.hp-card:hover .hp-topic { background: var(--c-soft); border-color: transparent; }
.hp-card-arrow {
  position: absolute; right: 1.1rem; top: 4.4rem;
  color: var(--c); font-size: 1rem;
  opacity: 0; transform: translate(-6px, 6px);
  transition: opacity .3s, transform .35s var(--ease-out);
}
.hp-card:hover .hp-card-arrow { opacity: 1; transform: none; }

/* Filtering states */
.hp-card.is-leaving { opacity: 0 !important; scale: .94; }
.hp-card.is-hidden  { display: none; }
.hp-card.is-entering { opacity: 0 !important; scale: .94; }

/* ═════════════════ FEATURED CAROUSEL ═════════════════ */
.hp-featured {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  background: linear-gradient(180deg, var(--paper), var(--bg));
  border-top: 1px solid var(--border);
}
.hp-carousel-nav { display: flex; gap: .5rem; }
.hp-nav-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--paper);
  color: var(--ink); font-size: 1.05rem;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease-out), opacity .2s;
}
.hp-nav-btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.hp-nav-btn:active:not(:disabled) { transform: scale(.92); }
.hp-nav-btn:disabled { opacity: .35; cursor: default; }

.hp-carousel {
  --gutter: max(16px, calc((100vw - 1320px) / 2 + 12px));
  display: flex; gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: .5rem var(--gutter) 1.75rem;
  scrollbar-width: none;
  outline: none;
}
.hp-carousel::-webkit-scrollbar { display: none; }

.hp-fcard {
  flex: 0 0 clamp(260px, 26vw, 320px);
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  color: var(--ink) !important;
  transition: transform .4s var(--ease-out), box-shadow .35s, border-color .3s;
}
.hp-fcard:hover {
  transform: translateY(-6px);
  border-color: rgba(26,78,216,.3);
  box-shadow: var(--shadow-lg);
}
.hp-fcard-thumb {
  position: relative; display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--blue-dim);
}
.hp-fcard-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.hp-fcard:hover .hp-fcard-thumb img { transform: scale(1.06); }

.hp-fcard-ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #1a4ed8, #6d5bf5);
  transition: transform .7s var(--ease-out);
}
.hp-fcard:nth-child(4n+2) .hp-fcard-ph { background: linear-gradient(135deg, #7c3aed, #db2777); }
.hp-fcard:nth-child(4n+3) .hp-fcard-ph { background: linear-gradient(135deg, #0f8a6a, #0ea5e9); }
.hp-fcard:nth-child(4n+4) .hp-fcard-ph { background: linear-gradient(135deg, #d9480f, #f59e0b); }
.hp-fcard-ph::before {   /* soft pattern */
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
}
.hp-fcard-ph span {
  position: relative;
  font-family: var(--font-display); font-weight: 700;
  font-size: 3.4rem; color: rgba(255,255,255,.95);
  text-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.hp-fcard:hover .hp-fcard-ph { transform: scale(1.06); }

.hp-fcard-badge {
  position: absolute; left: .75rem; top: .75rem;
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .7rem; font-weight: 600;
  color: var(--ink);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  padding: .25rem .6rem; border-radius: 50px;
}
.hp-fcard-badge .bi-youtube { color: #e11d48; }
.hp-fcard-badge .bi-globe2 { color: var(--blue); }

.hp-fcard-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.2rem; }
.hp-fcard-by { font-size: .75rem; font-weight: 600; color: var(--blue); margin-bottom: .3rem; }
.hp-fcard h3 {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  line-height: 1.3; margin: 0 0 .45rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hp-fcard p { font-size: .84rem; color: var(--muted); line-height: 1.55; margin: 0 0 .9rem; }
.hp-fcard-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; }
.hp-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--border);
  padding: .2rem .55rem; border-radius: 6px;
}
.hp-tag i { color: var(--muted); }

/* ═════════════════ CTA ═════════════════ */
.hp-cta-section { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem); }
.hp-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: clamp(2rem, 5vw, 3.25rem);
  border-radius: 26px;
  background: linear-gradient(120deg, #0f2a8a, var(--blue) 55%, #5b4ff0);
  color: #fff;
}
.hp-cta-orb {
  position: absolute; z-index: -1; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  animation: hpSpin 40s linear infinite;
}
.hp-cta-orb::after {
  content: ''; position: absolute; top: -5px; left: 50%;
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.7);
}
.hp-cta-orb--1 { width: 340px; height: 340px; right: -90px; top: -150px; }
.hp-cta-orb--2 { width: 520px; height: 520px; right: -200px; top: -240px; animation-duration: 70s; animation-direction: reverse; }
.hp-cta-copy { max-width: 560px; }
.hp-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700;
  margin-bottom: .6rem;
}
.hp-cta p { color: rgba(255,255,255,.78); margin: 0; line-height: 1.7; }
.hp-cta-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: #fff; color: var(--blue) !important;
  font-weight: 600; font-size: .95rem;
  padding: .95rem 1.5rem; border-radius: 14px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.35);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.hp-cta-btn i { transition: transform .35s var(--ease-out); }
.hp-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -12px rgba(0,0,0,.45); }
.hp-cta-btn:hover i { transform: rotate(90deg); }

/* ═════════════════ RESPONSIVE ═════════════════ */
@media (max-width: 991.98px) {
  .hp-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hp-hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hp-sub { margin-left: auto; margin-right: auto; }
  .hp-search { width: 100%; }
  .hp-chips { justify-content: center; }
  .hp-orbit { --s: min(440px, calc(100vw - 48px)); }
  .hp-orbit-wrap { margin-top: 1rem; }
  .hp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-stat:nth-child(3)::before { display: none; }
  .hp-stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}

@media (max-width: 767.98px) {
  .hp-steps { grid-template-columns: 1fr; gap: 2rem; }
  .hp-steps::before { display: none; }
  .hp-head--row { align-items: flex-start; }
  .hp-tabs { width: 100%; }
}

@media (max-width: 575.98px) {
  .hp-search { padding-left: 2.6rem; }
  .hp-search-icon { left: .95rem; }
  .hp-search-kbd { display: none; }
  .hp-search-btn span { display: none; }
  .hp-search-btn { padding: .8rem 1rem; }
  .hp-cards { grid-template-columns: 1fr; }
  .hp-carousel-nav { display: none; }
  .hp-fcard { flex-basis: 82vw; }
  .hp-scroll-cue { display: none; }
  .hp-cta { flex-direction: column; align-items: flex-start; }
}

