/* ==========================================================================
   Hire Next.js Developer — bespoke page design. Namespaced `.hnj-`.
   Visual language: server/edge/browser rendering flows, application
   architecture, performance — the most "advanced" of the dev pages.
   ========================================================================== */

.hnj-page { background: var(--sap-white); overflow-x: clip; }
.hnj-page section { position: relative; }
.hnj-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--sap-font-heading); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sap-primary); margin-bottom: 1.1rem; }
.hnj-eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--sap-primary); display: inline-block; }

/* 1. HERO — dark, rendering pipeline */
.hnj-hero { position: relative; overflow: hidden; background: #08090c; color: #fff; padding: calc(var(--sap-header-height) + 5rem) 0 5.5rem; }
.hnj-hero__mesh { position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle at 80% 15%, rgba(254,109,13,.16), transparent 45%); }
.hnj-hero__content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto 3.5rem; text-align: center; }
.hnj-hero__kicker { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1rem .5rem .6rem; border-radius: var(--sap-radius-pill); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.85); margin-bottom: 1.75rem; }
.hnj-hero__kicker span.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sap-primary); box-shadow: 0 0 0 4px rgba(254,109,13,.2); flex-shrink: 0; }
.hnj-hero__title { font-family: var(--sap-font-heading); font-weight: 800; font-size: clamp(2.4rem, 4.8vw, 3.8rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 1.5rem; color: #fff; }
.hnj-hero__title .accent { color: var(--sap-primary); }
.hnj-hero__text { font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,.65); margin: 0 auto 2rem; }
.hnj-hero__actions { display: flex; align-items: center; justify-content: center; gap: 1.75rem; flex-wrap: wrap; }
.hnj-hero__secondary { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .95rem; color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 3px; }
.hnj-hero__secondary:hover { border-color: var(--sap-primary); color: var(--sap-primary); }

.hnj-pipeline-visual { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: .75rem; max-width: 900px; margin: 0 auto; flex-wrap: wrap; }
.hnj-pipeline-node { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--sap-radius-lg); padding: 1.5rem; text-align: center; flex: 1 1 180px; }
.hnj-pipeline-node--highlight { background: var(--sap-gradient); border-color: transparent; }
.hnj-pipeline-node__icon { width: 40px; height: 40px; border-radius: var(--sap-radius-md); background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; margin: 0 auto .8rem; color: var(--sap-primary); }
.hnj-pipeline-node--highlight .hnj-pipeline-node__icon { background: rgba(255,255,255,.2); color: #fff; }
.hnj-pipeline-node__icon svg { width: 20px; height: 20px; }
.hnj-pipeline-node h3 { font-size: .88rem; margin-bottom: .3rem; color: #fff; }
.hnj-pipeline-node p { font-size: .74rem; color: rgba(255,255,255,.5); margin-bottom: 0; }
.hnj-pipeline-arrow { color: var(--sap-primary); }
.hnj-pipeline-arrow svg { width: 18px; height: 18px; }

/* 2. PROBLEM */
.hnj-problem { padding: var(--sap-section-space) 0; background: var(--sap-bg-tint); }
.hnj-problem__head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.hnj-problem__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.hnj-problem__head .accent { color: var(--sap-primary); }
.hnj-problem__head p { color: var(--sap-muted); }
.hnj-problem__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 980px; margin: 0 auto; }
.hnj-problem-card { background: var(--sap-white); border-radius: var(--sap-radius-lg); padding: 1.75rem; }
.hnj-problem-card__icon { width: 44px; height: 44px; border-radius: var(--sap-radius-md); background: rgba(255,107,107,.1); color: #E24444; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.hnj-problem-card__icon svg { width: 21px; height: 21px; }
.hnj-problem-card h3 { font-size: .98rem; margin-bottom: .4rem; }
.hnj-problem-card p { font-size: .86rem; color: var(--sap-muted); margin-bottom: 0; }

/* 3. WHAT WE BUILD */
.hnj-shelf { padding: var(--sap-section-space) 0; background: var(--sap-white); }

.hnj-shelf__head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.hnj-shelf__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.hnj-shelf__head p { color: var(--sap-muted); }
.hnj-shelf__rail { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x proximity; padding: .5rem .5rem 1rem; }
.hnj-shelf__rail { scrollbar-width: none; -ms-overflow-style: none; }
.hnj-shelf__rail::-webkit-scrollbar { display: none; }
.hnj-shelf__rail {
	mask-image: linear-gradient(to right, black calc(100% - 48px), transparent 100%);
	-webkit-mask-image: linear-gradient(to right, black calc(100% - 48px), transparent 100%);
}

.hnj-shelf-card { scroll-snap-align: start; flex: 0 0 auto; width: 230px; background: var(--sap-bg-tint); border-radius: var(--sap-radius-lg); padding: 1.5rem; transition: transform .25s ease, box-shadow .25s ease; }
.hnj-shelf-card:hover { transform: translateY(-4px); box-shadow: var(--sap-shadow-md); }
.hnj-shelf-card__icon { width: 42px; height: 42px; border-radius: var(--sap-radius-md); background: var(--sap-white); color: var(--sap-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.hnj-shelf-card__icon svg { width: 21px; height: 21px; }
.hnj-shelf-card h3 { font-size: .95rem; margin-bottom: .4rem; }
.hnj-shelf-card p { font-size: .82rem; color: var(--sap-muted); margin-bottom: 0; }

/* 4. RENDERING APPROACHES */
.hnj-render { padding: var(--sap-section-space) 0; background: var(--sap-dark); color: #fff; }
.hnj-render__head { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.hnj-render__head .hnj-eyebrow { color: var(--sap-accent); }
.hnj-render__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); color: #fff; }
.hnj-render__head p { color: rgba(255,255,255,.6); }
.hnj-render__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 980px; margin: 0 auto; }
.hnj-render-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--sap-radius-lg); padding: 1.75rem; }
.hnj-render-card__tag { font-family: var(--sap-font-heading); font-weight: 800; font-size: .78rem; color: var(--sap-primary); letter-spacing: .04em; margin-bottom: .75rem; display: block; }
.hnj-render-card h3 { font-size: 1.02rem; margin-bottom: .5rem; color: #fff; }
.hnj-render-card p { font-size: .84rem; color: rgba(255,255,255,.55); margin-bottom: 0; }

/* 5. APPLICATION ARCHITECTURE */
.hnj-arch { padding: var(--sap-section-space) 0; background: var(--sap-white); }
.hnj-arch__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hnj-arch__content .hnj-eyebrow { color: var(--sap-primary); }
.hnj-arch__content h2 { font-size: clamp(1.8rem, 2.8vw, 2.3rem); margin-bottom: 1rem; }
.hnj-arch__content p { color: var(--sap-muted); line-height: 1.7; margin-bottom: 0; }
.hnj-arch__diagram { background: var(--sap-bg-tint); border-radius: var(--sap-radius-lg); padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.hnj-arch__box { background: var(--sap-white); border: 1px solid var(--sap-border); border-radius: var(--sap-radius-md); padding: .9rem 1.25rem; font-size: .85rem; font-weight: 600; }
.hnj-arch__box--server { border-left: 3px solid var(--sap-primary); }
.hnj-arch__box--client { margin-left: 1.5rem; border-left: 3px solid var(--sap-accent); }

/* 6. PERFORMANCE */
.hnj-perf { padding: var(--sap-section-space) 0; background: var(--sap-bg-tint); }
.hnj-perf__head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.hnj-perf__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.hnj-perf__head p { color: var(--sap-muted); }
.hnj-waterfall { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: .6rem; }
.hnj-waterfall__row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 1rem; }
.hnj-waterfall__label { font-size: .8rem; color: var(--sap-muted); text-align: right; }
.hnj-waterfall__bar { height: 10px; border-radius: 5px; background: var(--sap-gradient); }

/* 7. APIS & DEPLOYMENT */
.hnj-deploy { padding: var(--sap-section-space) 0; background: var(--sap-white); }
.hnj-deploy__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hnj-deploy__content .hnj-eyebrow { color: var(--sap-primary); }
.hnj-deploy__content h2 { font-size: clamp(1.8rem, 2.8vw, 2.3rem); margin-bottom: 1rem; }
.hnj-deploy__content p { color: var(--sap-muted); line-height: 1.7; margin-bottom: 0; }
.hnj-deploy__points { display: flex; flex-direction: column; gap: .8rem; }
.hnj-deploy__point { display: flex; align-items: flex-start; gap: .7rem; background: var(--sap-bg-tint); border-radius: var(--sap-radius-md); padding: 1rem 1.25rem; font-size: .88rem; }
.hnj-deploy__point svg { width: 18px; height: 18px; color: var(--sap-primary); flex-shrink: 0; margin-top: .1rem; }

/* 8. PROCESS */
.hnj-process { padding: var(--sap-section-space) 0; background: var(--sap-secondary); color: #fff; }
.hnj-process__head { max-width: 620px; margin: 0 auto 4rem; text-align: center; }
.hnj-process__head .hnj-eyebrow { color: var(--sap-accent); }
.hnj-process__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); color: #fff; }
.hnj-process__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; max-width: 1080px; margin: 0 auto; }
.hnj-process__step { text-align: center; }
.hnj-process__num { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 1.1rem; display: flex; align-items: center; justify-content: center; background: var(--sap-gradient); color: #fff; font-family: var(--sap-font-heading); font-weight: 800; font-size: .8rem; }
.hnj-process__step h3 { font-size: .9rem; margin-bottom: .35rem; color: #fff; }
.hnj-process__step p { font-size: .76rem; color: rgba(255,255,255,.5); margin-bottom: 0; }

/* 9. WHY HIRE */
.hnj-why { padding: var(--sap-section-space) 0; background: var(--sap-white); }
.hnj-why__layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4.5rem; }
.hnj-why__statement { font-family: var(--sap-font-heading); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.3; align-self: start; position: sticky; top: calc(var(--sap-header-height) + 2rem); }
.hnj-why__statement .accent { color: var(--sap-primary); }
.hnj-why__list { display: flex; flex-direction: column; }
.hnj-why-item { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--sap-border); }
.hnj-why-item:last-child { border-bottom: 1px solid var(--sap-border); }
.hnj-why-item__mark { color: var(--sap-primary); }
.hnj-why-item__mark svg { width: 20px; height: 20px; }
.hnj-why-item h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.hnj-why-item p { font-size: .88rem; color: var(--sap-muted); margin-bottom: 0; }

/* 10. ENGAGEMENT */
.hnj-engage { padding: var(--sap-section-space) 0; background: var(--sap-bg-tint); }
.hnj-engage__head { max-width: 620px; margin: 0 auto 3rem; text-align: center; }
.hnj-engage__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.hnj-engage__head p { color: var(--sap-muted); }
.hnj-engage__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.hnj-engage-panel { border-radius: var(--sap-radius-lg); padding: 2.25rem; border: 1px solid var(--sap-border); background: var(--sap-white); }
.hnj-engage-panel--dark { background: var(--sap-dark); color: #fff; border-color: transparent; }
.hnj-engage-panel__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sap-primary); margin-bottom: .8rem; }
.hnj-engage-panel h3 { font-size: 1.2rem; margin-bottom: .65rem; }
.hnj-engage-panel--dark h3 { color: #fff; }
.hnj-engage-panel p { color: var(--sap-muted); font-size: .88rem; line-height: 1.6; margin-bottom: 1.1rem; }
.hnj-engage-panel--dark p { color: rgba(255,255,255,.6); }
.hnj-engage-panel__link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .85rem; color: var(--sap-primary); }
.hnj-engage-panel--dark .hnj-engage-panel__link { color: #fff; }
.hnj-engage-panel__link svg { width: 15px; height: 15px; transition: transform .25s ease; }
.hnj-engage-panel:hover .hnj-engage-panel__link svg { transform: translateX(4px); }

/* 11. TECH */
.hnj-tech { padding: 3.5rem 0; background: #08090c; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.hnj-tech__label { text-align: center; color: rgba(255,255,255,.45); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.75rem; }
.hnj-tech__track { display: flex; gap: 3.5rem; width: max-content; animation: hnjMarquee 30s linear infinite; }
.hnj-tech__item { font-family: var(--sap-font-heading); font-weight: 700; font-size: 1.2rem; color: rgba(255,255,255,.35); white-space: nowrap; }
@keyframes hnjMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 12. FAQ */
.hnj-faq { padding: var(--sap-section-space) 0; background: var(--sap-white); }
.hnj-faq__layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 4rem; }
.hnj-faq__sticky { position: sticky; top: calc(var(--sap-header-height) + 2rem); align-self: start; }
.hnj-faq__sticky h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 1rem; }
.hnj-faq__sticky p { color: var(--sap-muted); }
.hnj-faq__list { border-top: 1px solid var(--sap-border); }
.hnj-faq-item { border-bottom: 1px solid var(--sap-border); }
.hnj-faq-item__trigger { width: 100%; display: grid; grid-template-columns: 3rem 1fr 1.5rem; align-items: center; gap: 1.25rem; padding: 1.5rem 0; text-align: left; }
.hnj-faq-item__num { font-family: var(--sap-font-heading); font-weight: 800; color: var(--sap-primary); font-size: .85rem; }
.hnj-faq-item__q { font-size: 1.02rem; font-weight: 600; }
.hnj-faq-item__icon { width: 20px; height: 20px; color: var(--sap-muted); transition: transform .3s ease; flex-shrink: 0; }
.hnj-faq-item__trigger[aria-expanded="true"] .hnj-faq-item__icon { transform: rotate(45deg); color: var(--sap-primary); }
.hnj-faq-item__panel { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.hnj-faq-item__panel p { padding: 0 0 1.5rem 4.25rem; color: var(--sap-muted); font-size: .92rem; line-height: 1.7; margin-bottom: 0; max-width: 620px; }

/* 13. RELATED */
.hnj-related { padding: var(--sap-section-space) 0; background: var(--sap-bg-tint); }
.hnj-related__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.hnj-related__head h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); margin-bottom: 0; }
.hnj-related__rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.hnj-related-card { background: var(--sap-white); border: 1px solid var(--sap-border); border-radius: var(--sap-radius-lg); padding: 1.6rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.hnj-related-card:hover { transform: translateY(-4px); box-shadow: var(--sap-shadow-md); border-color: transparent; }
.hnj-related-card__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--sap-bg-tint); color: var(--sap-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.hnj-related-card__icon svg { width: 20px; height: 20px; }
.hnj-related-card h3 { font-size: .95rem; margin-bottom: 0; line-height: 1.4; }

/* 14. FINAL CTA */
.hnj-final { position: relative; overflow: hidden; background: #08090c; color: #fff; text-align: center; padding: 6rem 0; }
.hnj-final__glow { position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 900px; height: 700px; background: var(--sap-primary); opacity: .16; filter: blur(120px); border-radius: 50%; }
.hnj-final__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hnj-final h2 { font-family: var(--sap-font-heading); font-weight: 800; font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.15; color: #fff; margin-bottom: 1.25rem; }
.hnj-final p { color: rgba(255,255,255,.65); font-size: 1.05rem; margin-bottom: 2.5rem; }
.hnj-final__actions { display: flex; align-items: center; justify-content: center; gap: 1.75rem; flex-wrap: wrap; }
.hnj-final__secondary { color: #fff; font-weight: 700; font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 3px; }
.hnj-final__secondary:hover { border-color: var(--sap-primary); color: var(--sap-primary); }

/* Responsive */
@media (max-width: 1080px) {
	.hnj-problem__grid { grid-template-columns: repeat(2, 1fr); }
	.hnj-render__grid { grid-template-columns: 1fr; }
	.hnj-arch__layout { grid-template-columns: 1fr; }
	.hnj-arch__visual { order: -1; }
	.hnj-deploy__layout { grid-template-columns: 1fr; }
	.hnj-deploy__visual { order: -1; }
	.hnj-process__steps { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
	.hnj-why__layout { grid-template-columns: 1fr; }
	.hnj-why__statement { position: static; margin-bottom: 2rem; }
	.hnj-engage__grid { grid-template-columns: 1fr; }
	.hnj-faq__layout { grid-template-columns: 1fr; }
	.hnj-faq__sticky { position: static; margin-bottom: 2rem; }
	.hnj-related__rail { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.hnj-pipeline-visual { flex-direction: column; }
	.hnj-pipeline-arrow { transform: rotate(90deg); }
	.hnj-problem__grid { grid-template-columns: 1fr; }
	.hnj-process__steps { grid-template-columns: repeat(2, 1fr); }
	.hnj-related__rail { grid-template-columns: 1fr; }
	.hnj-faq-item__panel p { padding-left: 0; }
	.hnj-faq-item__trigger { grid-template-columns: 2.25rem 1fr 1.25rem; }
	.hnj-waterfall__row { grid-template-columns: 80px 1fr; }
	.hnj-arch__box--client { margin-left: .5rem; }
}
